Skip to content

Add changes to enable audio playback test along with its dependencies#6

Merged
mwasilew merged 4 commits intoqualcomm-linux:masterfrom
vnarapar:audio_playback
Jan 22, 2026
Merged

Add changes to enable audio playback test along with its dependencies#6
mwasilew merged 4 commits intoqualcomm-linux:masterfrom
vnarapar:audio_playback

Conversation

@vnarapar
Copy link

@vnarapar vnarapar commented Dec 29, 2025

  • Added changes to generate a pre-signed URL and download the AudioClips
    from AWS when AUDIO_CLIPS_BASE_DIR is defined
  • Added audio test dependent changes as an overlay
  • Added Audio playback and Record testcases to premerge suite
  • Updated formatting for lava_test_plans/init.py

@vnarapar vnarapar force-pushed the audio_playback branch 2 times, most recently from 125ef93 to 2cf84bc Compare December 29, 2025 18:32
Copy link

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

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

You didn't add any tests for the new code and the coverage dropped below the threshold. Please fix that.

I think in the long term this change won't be needed as we'll be able to use s3:// URLs in LAVA. So I'm not sure it's worth adding it at all. I'm estimating s3 support should land in January.

@vnarapar
Copy link
Author

You didn't add any tests for the new code and the coverage dropped below the threshold. Please fix that.

I think in the long term this change won't be needed as we'll be able to use s3:// URLs in LAVA. So I'm not sure it's worth adding it at all. I'm estimating s3 support should land in January.

As discussed we are not adding any additional coverage here as it will be validated as part of workflow

@mwasilew
Copy link

You didn't add any tests for the new code and the coverage dropped below the threshold. Please fix that.
I think in the long term this change won't be needed as we'll be able to use s3:// URLs in LAVA. So I'm not sure it's worth adding it at all. I'm estimating s3 support should land in January.

As discussed we are not adding any additional coverage here as it will be validated as part of workflow

I think you're missing the point. The patch adds new code to lava-test-plans. This code needs it's unit test. Please add it as a part of PR. Without unit tests this PR fails a code coverage check and won't be merged.

@vnarapar vnarapar force-pushed the audio_playback branch 7 times, most recently from a072b3e to 9ae64e9 Compare January 21, 2026 10:50
Added changes to generate a pre-signed URL and download the AudioClips
from AWS when AUDIO_CLIPS_BASE_DIR is defined

Updated formatting for lava_test_plans/__init__.py

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
@mwasilew
Copy link

Thank you. This is great! Is there a chance you have an example job with audio overlay? I'll merge it now, but we need to make sure audio tests work before rolling out to meta-qcom

Copy link

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

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

There is one minor and one major issue. The big problem is that the tests are added to the plan unconditionally. So they will be added even if the audio clips URL is not there. This will make (I didn't check that) the tests fail which will prevent any PRs in meta-qcom to be merged.

I'm OK to live with hardcored file name for now until we find a better solution

name: "BT_ON_OFF"
path: Runner/suites/Connectivity/Bluetooth/BT_ON_OFF/BT_ON_OFF.yaml
repository: {{ TEST_DEFINITIONS_REPOSITORY }}
- from: git

Choose a reason for hiding this comment

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

This will be added even if the audio clips are not present. I think this isn't correct and you should add a conditional statement here.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah thats right, i have updated the check for AudioPlayback

{% if AUDIO_CLIPS_URL is defined %}
- mkdir overlay_root
- tar -xzvf overlay.tar.gz -C overlay_root
- tar -xzvf AudioClips.tar.gz -C overlay_root

Choose a reason for hiding this comment

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

You're hardcoding file name. I know there is no way to use a variable in postprocess step, but maybe this should be a variable in a template with default value AudioClips.tar.gz.

Copy link
Author

Choose a reason for hiding this comment

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

Updated as per comments

@vnarapar vnarapar force-pushed the audio_playback branch 2 times, most recently from a9a743d to 88b9558 Compare January 22, 2026 03:04
@vnarapar
Copy link
Author

There is one minor and one major issue. The big problem is that the tests are added to the plan unconditionally. So they will be added even if the audio clips URL is not there. This will make (I didn't check that) the tests fail which will prevent any PRs in meta-qcom to be merged.

I'm OK to live with hardcored file name for now until we find a better solution

Below is the working Job: https://lava.infra.foundries.io/scheduler/job/134758

Looks like due to the PR being merged for Audio on qcom-linux-testkit i.e qualcomm-linux/qcom-linux-testkit#243 we are seeing issues with latest tip. Working with the PR owner to fix asap

Added audio test dependent changes as an overlay

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
Added Audio playback and Record testcases to premerge suite

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
Enhanced the test coverage for the newly added code

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
@mwasilew mwasilew merged commit e5bc746 into qualcomm-linux:master Jan 22, 2026
3 checks passed
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.

3 participants