Add ALSA UCM audio tests (New)#2659
Conversation
Add a standalone CE OEM audio plan for ALSA UCM sink, source, and loopback validation. Include resource and template units, documentation, and unit tests for the migrated helper.
There was a problem hiding this comment.
Pull request overview
Adds a new standalone ALSA UCM audio validation plan to the CE OEM provider, including resource discovery units, templated sink/source/loopback jobs, a helper script to drive alsaucm + stream checks, and unit tests/docs to support the new workflow.
Changes:
- Introduce a standalone
ce-oem-audio-alsa-ucmtest plan with bootstrap resources and templated jobs for sinks, sources, and loopback pairs. - Add the
alsa_ucm_test.pyhelper (resource emission + single-device tests + loopback test) and a manifest gate (has_alsa_ucm). - Add documentation and unit tests for key helper behaviors (pairing parsing, resource-row building, CLI formatting, command argv builders, dispatch).
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/audio/test-plan.pxu | Adds the new standalone ALSA UCM test plan and ties together bootstrap resources + templates. |
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/audio/README.md | Documents how to run the plan, required manifest gate, env vars, and example commands/outputs. |
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/audio/manifest.pxu | Introduces has_alsa_ucm manifest entry used to gate generated jobs. |
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/audio/alsa_ucm.pxu | Defines resource units and templated jobs for sink/source/loopback validation. |
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/tests/test_alsa_ucm_test.py | Adds unit tests for pairing/resource-row logic and command builders/dispatch. |
| contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/alsa_ucm_test.py | Adds the ALSA UCM helper CLI implementing resource emission and test execution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Switch ALSA UCM template jobs to user-interact-verify and document the required human playback and recording verification steps.
The new ce-oem-audio-alsa-ucm plan was not nested in any top-level plan, so its tests never ran in the standard OEMQA manual pass. All three included templates are user-interact-verify, so the plan belongs to the manual family. Rename the plan to ce-oem-audio-alsa-ucm-manual to match the category naming convention, nest it in ce-oem-manual next to ce-oem-audio-manual, and update the README reference. The also-after-suspend flags on the templates automatically add the after-suspend variants to the session when the originals are selected, so no separate after-suspend include is needed.
|
Verification evidence for commit Results
Command Full list-bootstrapped log |
Description
Add a standalone CE OEM audio plan for ALSA UCM sink, source, and loopback validation. Include resource and template units, documentation, and unit tests for the migrated helper.
https://warthogs.atlassian.net/browse/OEMQA-6745
Resolved issues
Documentation
Tests