Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the platform to perform the sleepgraph test (BugFix) #1136

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions providers/base/units/stress/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -607,51 +607,67 @@ plugin:shell
category_id: com.canonical.plainbox::stress
id: stress/s2idle_pm-graph_30
estimated_duration: 10m
requires:
requires:
cpuinfo.type == 'GenuineIntel'
executable.name == 'sleepgraph'
sleep.mem_sleep == 's2idle'
user: root
_summary: Resume from idle by using Intel pm-graph
command:
sleepgraph -m freeze -rtcwake 10 -sync -gzip -multi 30 0 -skiphtml -o "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph/s2idle-"$(date -d today +%Y-%m-%d-%H%M)"
if [ ! -f /proc/driver/nvidia/suspend ]; then
sleepgraph -m freeze -rtcwake 60 -sync -gzip -multi 30 30 -skiphtml -o "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph/s2idle-"$(date -d today +%Y-%m-%d-%H%M)"
else
echo "The platform has Nvidia driver loaded, which is not capable of running sleepgraph. Exiting..."
fi

plugin: attachment
pieqq marked this conversation as resolved.
Show resolved Hide resolved
category_id: com.canonical.plainbox::stress
id: stress/s2idle_pm-graph_30.tar.xz
estimated_duration: 1
requires:
requires:
cpuinfo.type == 'GenuineIntel'
sleep.mem_sleep == 's2idle'
after:
stress/s2idle_pm-graph_30
user: root
_summary: Attach pm-graph logs (s2idle)
command:
tar Jcf "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph_30.tar.xz "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph && cat "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph_30.tar.xz
if [ -d "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph ]; then
tar Jcf "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph_30.tar.xz "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph && cat "$PLAINBOX_SESSION_SHARE"/s2idle_pm-graph_30.tar.xz
fi

plugin:shell
category_id: com.canonical.plainbox::stress
id: stress/s3_pm-graph_30
estimated_duration: 10m
requires:
cpuinfo.type == 'GenuineIntel'
executable.name == 'sleepgraph'
sleep.mem_sleep == 'deep'
user: root
_summary: Resume from suspend by using Intel pm-graph
command:
sleepgraph -m mem -rtcwake 10 -sync -gzip -multi 30 0 -skiphtml -o "$PLAINBOX_SESSION_SHARE"/s3_pm-graph/suspend-"$(date -d today +%Y-%m-%d-%H%M)"
if [ ! -f /proc/driver/nvidia/suspend ]; then
sleepgraph -m mem -rtcwake 60 -sync -gzip -multi 30 30 -skiphtml -o "$PLAINBOX_SESSION_SHARE"/s3_pm-graph/suspend-"$(date -d today +%Y-%m-%d-%H%M)"
else
echo "The platform has Nvidia driver loaded, which is not capable of running sleepgraph. Exiting..."
fi

plugin: attachment
category_id: com.canonical.plainbox::stress
id: stress/s3_pm-graph_30.tar.xz
estimated_duration: 1
requires:
cpuinfo.type == 'GenuineIntel'
sleep.mem_sleep == 'deep'
after:
stress/s3_pm-graph_30
user: root
_summary: Attach pm-graph logs (s3)
command:
tar Jcf "$PLAINBOX_SESSION_SHARE"/s3_pm-graph_30.tar.xz "$PLAINBOX_SESSION_SHARE"/s3_pm-graph && cat "$PLAINBOX_SESSION_SHARE"/s3_pm-graph_30.tar.xz
if [ -d "$PLAINBOX_SESSION_SHARE"/s3_pm-graph ]; then
tar Jcf "$PLAINBOX_SESSION_SHARE"/s3_pm-graph_30.tar.xz "$PLAINBOX_SESSION_SHARE"/s3_pm-graph && cat "$PLAINBOX_SESSION_SHARE"/s3_pm-graph_30.tar.xz
fi

unit: job
id: stress/wireless_bluetooth_coex_connect_stress
Expand Down
Loading