Skip to content

Commit 12c4529

Browse files
committed
Boot_Systemd_KPI_Loop: decouple KPI loop from boot transaction
Switch auto-reboot orchestration to a oneshot systemd service + timer. Let the loop manage iterations/state while keeping the boot path clean. Ensure the KPI service exits quickly so FinishTimestampMonotonic is not blocked. Document usage while preserving behavior for manual single-shot runs. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent 4ae7c62 commit 12c4529

File tree

3 files changed

+939
-0
lines changed

3 files changed

+939
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
metadata:
2+
name: boot-systemd-kpi-loop
3+
format: "Lava-Test Test Definition 1.0"
4+
description: "Multi-boot KPI aggregator wrapper for Boot_Systemd_Validate with optional auto-reboot orchestration."
5+
os:
6+
- linux
7+
scope:
8+
- performance
9+
- functional
10+
11+
params:
12+
# Where the child KPI script lives (Boot_Systemd_Validate)
13+
KPI_SCRIPT: "./../Boot_Systemd_Validate/run.sh"
14+
KPI_OUT_DIR: "./../Boot_Systemd_Validate/logs_Boot_Systemd_Validate"
15+
16+
# Averaging window / iteration collection
17+
ITERATIONS: "5"
18+
BOOT_TYPE: "cold" # cold|warm|unknown etc
19+
20+
# Forwarded knobs to Boot_Systemd_Validate
21+
DISABLE_GETTY: "1" # 1|0
22+
DISABLE_SSHD: "0" # 1|0
23+
EXCLUDE_NETWORKD_WAIT_ONLINE: "1" # 1|0
24+
EXCLUDE_SERVICES: "" # space-separated service names
25+
NO_SVG: "1" # 1 disables svg
26+
VERBOSE: "0" # 1 dumps key artifacts
27+
28+
# Orchestration
29+
AUTO_REBOOT: "0" # 1 enables loop orchestration
30+
REBOOT_RESULT_MODE: "PASS" # PASS (default) or SKIP when reboot requested mid-loop
31+
32+
run:
33+
steps:
34+
- REPO_PATH=$PWD
35+
- cd Runner/suites/Performance/Boot_Systemd_KPI_Loop/
36+
- ./run.sh || true
37+
- $REPO_PATH/Runner/utils/send-to-lava.sh Boot_Systemd_KPI_Loop.res || true

0 commit comments

Comments
 (0)