Skip to content

Conversation

@smuppand
Copy link
Contributor

This PR updates the Boot Systemd KPI tests to be fully LAVA-friendly by delivering complete, configurable run.sh + YAML test definitions, and aligning CLI options ↔ LAVA variables/env without changing core KPI logic.
Included tests

  • Boot_Systemd_Validate
    • single-boot KPI capture + validation + rich artifacts
    • LAVA YAML added/updated to expose parameters cleanly
  • Boot_Systemd_KPI_Loop
    • multi-boot KPI aggregation wrapper (optional auto-reboot)
    • LAVA YAML added/updated to control iterations, boot type, reboot behavior

Expose wait_analyze_ready() to poll systemd-analyze time safely.
Record systemctl list-jobs whenever boot is not yet finished.
Allow configurable timeout and poll interval via environment variables.
Prepare shared helpers for reuse across performance KPI test suites.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
- Replace the ad-hoc systemd-analyze polling loop with the shared helper.
- Capture list-jobs when boot is unfinished and log this explicitly.
- Honor extended boot times on slow platforms before parsing KPIs.
- Preserve existing outputs while avoiding misleading 'boot not finished' results.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant