Skip to content

Use checkbox-pipewire-utils default_device_is_real in test jobs (New)#2399

Open
tomli380576 wants to merge 4 commits intomainfrom
check-dummy-sink-job
Open

Use checkbox-pipewire-utils default_device_is_real in test jobs (New)#2399
tomli380576 wants to merge 4 commits intomainfrom
check-dummy-sink-job

Conversation

@tomli380576
Copy link
Contributor

@tomli380576 tomli380576 commented Mar 18, 2026

WARNING: This modifies com.canonical.certification::sru-server

Description

This PR is the 2nd half of #2317 with all the job changes.

Resolved issues

Prevents virtual devices from being used in tests

Documentation

See #2317 for code changes.

One thing to note is that we are still allowing all the audio jobs to run even if the speakers are completely not detected by the system (i.e. audio/detect_sources and audio/detect_sinks do not use this check). This hopefully makes the results clearer, lmk what you think.

Tests

Happy path: https://certification.canonical.com/hardware/202503-36476/submission/478430/
Dummy sink (virtual machine result): https://certification.canonical.com/hardware/202503-36476/submission/478750/

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.76%. Comparing base (b196516) to head (a8a0cb7).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2399   +/-   ##
=======================================
  Coverage   57.76%   57.76%           
=======================================
  Files         467      467           
  Lines       47299    47299           
  Branches     8419     8419           
=======================================
  Hits        27321    27321           
- Misses      19092    19095    +3     
+ Partials      886      883    -3     
Flag Coverage Δ
checkbox-ng 75.68% <ø> (ø)
checkbox-support 66.84% <ø> (ø)
provider-base 32.53% <ø> (ø)

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates audio job definitions to proactively fail tests when Pipewire’s current default audio devices are dummy/virtual, leveraging the new checkbox-support-pipewire-utils default_device_is_real subcommand introduced in #2317.

Changes:

  • Add checkbox-support-pipewire-utils default_device_is_real checks (audio-sink/audio-source) to multiple audio jobs before running playback/record pipelines.
  • Enable set -e in the Pipewire paths so failures in the “device is real” check abort the job immediately.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tomli380576 tomli380576 marked this pull request as ready for review March 19, 2026 06:42
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