make Audio_Record_Playback more deterministic for offline CI#411
make Audio_Record_Playback more deterministic for offline CI#411bhargav0610 merged 2 commits intoqualcomm-linux:mainfrom
Conversation
|
@nitinn22 to review |
|
Main suggestions are around avoiding silent copy failures and improving portability/robustness of the generation pipelines (audioresample, encoder property compatibility). Also, if a LAVA job can be posted with these encode followed by decode and full suite working fine would be perfect. |
| sample_ogg="$outdir/sample_audio.ogg" | ||
| sample_mp3="$outdir/sample_audio.mp3" | ||
|
|
||
| have_ogg=0 |
There was a problem hiding this comment.
have_ogg are global state shared across helper functions. This is fine in POSIX sh, but a short comment noting this dependency would help future readers.
|
I guess we are good post these minor fixes, pls share a working LAVA job. |
Agreed. I added a short comment documenting that have_ogg / have_mp3 are intentionally shared global availability flags in this POSIX sh flow, refreshed by audio_record_mark_existing_samples() and consumed by subsequent provisioning stages.
|
… overrides Update audio clip provisioning to prefer locally generated GStreamer sample clips for OGG and MP3 when no external clip source is explicitly requested, making CI runs less dependent on network availability. This keeps backward compatibility by preserving existing --clip-path, --clip-url, AUDIO_CLIP_PATH, and AUDIO_CLIP_URL behavior. The run.sh changes now track whether an external source was explicitly requested and pass that state into provision_test_files(), while the provisioning logic can still fall back to user-provided clips or downloads when requested. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
encoders in gstreamer_build_audio_record_pipeline(). This makes pulsesrc-based recording paths, especially FLAC, more robust across platforms by improving caps/rate negotiation before encoding and reducing intermittent file-generation failures seen in CI/LAVA runs. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Made minor changes, sometimes still we are observing the After adjusting the duration, the two instances below are now passing. |
Improve Audio_Record_Playback stability and result reporting for CI runs. Enhancements to address as part of #408
This update keeps backward compatibility for user-provided clip sources, but makes the default path more reliable by preferring locally generated OGG/MP3 sample clips when no clip path or clip URL is explicitly requested.
It also tightens result handling for dependent pulsesrc playback cases. When running in all mode, playback_pulsesrc_wav and playback_pulsesrc_flac now fail if the corresponding pulsesrc recording
in the same run did not produce a valid file, instead of being marked as skip. This makes the final summary reflect the actual end-to-end failure more accurately.
Changes included:
prerequisite recording failed in the same run
Why:
Lava jobs for reference with these code changes.
Base/ Config 1 - https://lava.infra.foundries.io/scheduler/job/183417