Skip to content

Commit

Permalink
add systemd-analyze critical-chain job
Browse files Browse the repository at this point in the history
  • Loading branch information
kissiel committed Apr 8, 2024
1 parent 2be9f23 commit 38c6780
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions providers/base/units/canary/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ include:
com.canonical.certification::lsb
com.canonical.certification::miscellanea/submission-resources
com.canonical.certification::info/systemd-analyze
com.canonical.certification::info/systemd-analyze-critical-chain
com.canonical.certification::firmware/fwts_desktop_diagnosis
com.canonical.certification::firmware/fwts_desktop_diagnosis_results.log.gz
com.canonical.certification::acpi/oem_osi
Expand Down
13 changes: 13 additions & 0 deletions providers/base/units/info/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,19 @@ command:
timeout 60 systemctl is-system-running --wait > /dev/null
systemd-analyze

plugin: shell
category_id: com.canonical.plainbox::info
id: info/systemd-analyze-critical-chain
estimated_duration: 0.2
_summary: Print the tree of the time-critical chain of SystemD
_purpose:
This job prints a tree of the time-critical chain of SystemD units.
command:
# Wait for boot to complete
# https://github.com/systemd/systemd/pull/9796
timeout 60 systemctl is-system-running --wait > /dev/null
systemd-analyze critical-chain

id: lstopo_verbose_attachment
plugin: attachment
category_id: com.canonical.plainbox::info
Expand Down
1 change: 1 addition & 0 deletions providers/base/units/miscellanea/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ mandatory_include:
miscellanea/apport-directory certification-status=non-blocker
miscellanea/ipmi_test certification-status=blocker
info/systemd-analyze certification-status=non-blocker
info/systemd-analyze-critical-chain certification-status=non-blocker
include:
1 change: 1 addition & 0 deletions providers/base/units/submission/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ mandatory_include:
# Meta-job to include required resources, don't remove.
miscellanea/submission-resources
info/systemd-analyze certification-status=non-blocker
info/systemd-analyze-critical-chain certification-status=non-blocker
2 changes: 2 additions & 0 deletions providers/sru/units/sru.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ include:
recovery_info_attachment
miscellanea/submission-resources
info/systemd-analyze
info/systemd-analyze-critical-chain
net_if_management_attachment
audio/alsa_record_playback_automated
install/apt-get-gets-updates
Expand Down Expand Up @@ -107,6 +108,7 @@ include:
recovery_info_attachment
miscellanea/submission-resources
info/systemd-analyze
info/systemd-analyze-critical-chain
net_if_management_attachment
audio/alsa_record_playback_automated
graphics/xorg-version
Expand Down

0 comments on commit 38c6780

Please sign in to comment.