Skip to content

add a check if wakealarm is supported (bugfix) #1921

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aglinserer
Copy link
Contributor

Description

This avoids a failing test and skips it instead if the rtc does not support an automatic wakeup.
The suspend_advanced_auto job is failing even though it cannot be run when the wakealarm is not supported.

Resolved issues

N/A

Documentation

N/A

Tests

N/A

Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.47%. Comparing base (dc0c59e) to head (e26f58f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1921   +/-   ##
=======================================
  Coverage   50.47%   50.47%           
=======================================
  Files         382      382           
  Lines       41055    41055           
  Branches     6895     6895           
=======================================
  Hits        20722    20722           
  Misses      19587    19587           
  Partials      746      746           
Flag Coverage Δ
provider-base 26.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This avoids a failing test and skips it instead if the rtc does
not support an automatic wakeup.
@aglinserer aglinserer changed the title add a check if wakealarm is supported (fix) add a check if wakealarm is supported (bugfix) May 13, 2025
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

I left a comment inline.

Can you describe the use case you have and the issue you're encountering? This job is very sensitive because it's used in almost every test plan we maintain, so modifying it is always a bit risky.

@@ -251,7 +251,7 @@ category_id: com.canonical.plainbox::suspend
id: suspend/suspend_advanced_auto
requires:
sleep.mem == 'supported'
rtc.state == 'supported'
rtc.state == 'supported' and rtc.wakealarm == 'supported'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rtc.state == 'supported' and rtc.wakealarm == 'supported'
rtc.state == 'supported'
rtc.wakealarm == 'supported'

You can just place the new requirement on another line and it acts as an and (see doc)

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.

2 participants