-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1136 +/- ##
=======================================
Coverage 43.21% 43.21%
=======================================
Files 356 356
Lines 38662 38662
Branches 6561 6561
=======================================
Hits 16706 16706
Misses 21293 21293
Partials 663 663
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question inline.
I found the internal issue where this was discussed, which brought some clarification. I'll update the bug description to match this, and also I think when this lands, the commit message should include this info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should use
requires:
cpuinfo.type == 'GenuineIntel'
instead of using templated jobs. It will have the same effect: the jobs will be skipped on non-Intel platforms.
I intend to make the platform other than Intel can't see the job, is it not allowed? It is why I use template, I don't know which is better. |
@KaiChuan-Hsieh it's one way to do it, indeed, but we usually just go with the |
0f496e9
to
efaca2e
Compare
Hello, Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to find a better way to skip these jobs if a Nvidia GPU is detected, but the resource expressions in Checkbox are very tricky, and I couldn't find something simple.
That said, I made a comment inline and a suggestion. You will need to apply them to both stress/s3_pm-graph_30
and stress/s2idle_pm-graph_30
jobs and their related attachment jobs.
efaca2e
to
98bd6d1
Compare
* Filter cpuinfo to GenuineIntel only * Align the sleep time with Windows, https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-stress-and-long-duration-validation#test-operation Signed-off-by: Kai-Chuan Hsieh <[email protected]>
98bd6d1
to
8572de7
Compare
Upload submission of executing $ checkbox-cli run com.canonical.certification::stress-pm-graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Limit the platform to perform the sleepgraph test (BugFix) (#1054)
Filter cpuinfo to GenuineIntel only
Align the sleep delay time with Windows, https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-stress-and-long-duration-validation#test-operation
Description
Resolved issues
#1054
Documentation
https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-stress-and-long-duration-validation#test-operation
Tests
Verify the test by running the plan
$ checkbox-cli run com.canonical.certification::stress-pm-graph