Skip to content

Fix AudioPlayback testcase ID collision for LAVA CI#396

Open
tmoida wants to merge 1 commit intoqualcomm-linux:mainfrom
tmoida:main
Open

Fix AudioPlayback testcase ID collision for LAVA CI#396
tmoida wants to merge 1 commit intoqualcomm-linux:mainfrom
tmoida:main

Conversation

@tmoida
Copy link
Copy Markdown
Contributor

@tmoida tmoida commented Apr 9, 2026

Description

This PR fixes the testcase ID collision issue in LAVA by implementing flexible testcase naming for the AudioPlayback test suite, enabling parallel execution of multiple AudioPlayback configurations in CI.

Problem

LAVA was experiencing testcase ID collisions because:

  • The AudioPlayback script was hardcoding the testcase name as AudioPlayback in the .res file
  • When running multiple AudioPlayback configurations in parallel (e.g., Config01, Config03, Config05), all tests reported the same testcase ID
  • LAVA expected unique testcase IDs like AudioPlayback_Config01, AudioPlayback_Config03, etc. based on the job definition
  • This collision caused LAVA to overwrite test results and prevented proper CI enablement

Solution

Implemented a flexible testcase naming mechanism that allows LAVA to specify unique testcase IDs:

  • Added RESULT_TESTNAME variable - Defaults to AudioPlayback but can be overridden via CLI parameter
  • Added --lava-testcase-id parameter - Allows LAVA to specify unique testcase names for each configuration
  • Added LAVA_TESTCASE_ID YAML parameter - Passes the testcase ID from LAVA job definition to the script
  • Updated all result handling - Changed all .res file writes to use $RESULT_TESTNAME instead of $TESTNAME
  • Pre-parse support - Early parsing of --lava-testcase-id ensures unique result files even if setup fails

This PR fixes the testcase ID collision issue in LAVA by implementing
flexible testcase naming for the AudioPlayback test suite, enabling
parallel execution of multiple AudioPlayback configurations in CI.

Changes:
- Added RESULT_TESTNAME variable and --lava-testcase-id parameter to run.sh
- Updated AudioPlayback.yaml to pass unique testcase IDs via LAVA_TESTCASE_ID
- Updated Read_me.md with CI/LAVA integration documentation and examples

Signed-off-by: Teja Swaroop Moida <tmoida@qti.qualcomm.com>
@tmoida
Copy link
Copy Markdown
Contributor Author

tmoida commented Apr 9, 2026

Here are the details of the validation job:
https://lava.infra.foundries.io/scheduler/job/174081

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.

1 participant