Skip to content

Audio: fix/update record-playback test to use shared recorded directory#367

Open
nitinn22 wants to merge 1 commit intoqualcomm-linux:mainfrom
nitinn22:feature/audio-record-playback-fix-clean
Open

Audio: fix/update record-playback test to use shared recorded directory#367
nitinn22 wants to merge 1 commit intoqualcomm-linux:mainfrom
nitinn22:feature/audio-record-playback-fix-clean

Conversation

@nitinn22
Copy link
Copy Markdown
Contributor

Scope

Audio Record / Playback test updates only.

Changes

  • Update Audio_Record_Playback.yaml to use shared recorded directory
  • Update run.sh for consistent record/playback handling

Notes

  • Audio-only changes

Validation

  • Local sanity tested for audio record/playback flow
  • No impact to camera or other multimedia suites

@nitinn22
Copy link
Copy Markdown
Contributor Author

@@ -21,6 +22,26 @@ run:
steps:
- REPO_PATH="$PWD"
- cd Runner/suites/Multimedia/GSTreamer/Audio/Audio_Record_Playback/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use the repo-standard path form here:

- REPO_PATH="$PWD"
- cd "$REPO_PATH/Runner/suites/Multimedia/GSTreamer/Audio/Audio_Record_Playback"

The current relative cd Runner/... form is not aligned with the usual test definition pattern.

@nitinn22
Copy link
Copy Markdown
Contributor Author

@smuppand
Copy link
Copy Markdown
Contributor

@nitinn22 I would suggest squashing the commits for cleaner history

- Use common recorded directory across audio tests
- Update run.sh and YAML for consistent folder handling
- Allow individual test execution
- Address review feedback# This is the 1st commit message:

Audio: fix/update record‑playback test to use shared recorded directory

Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>

addressed comments related to making common util for folder handling for video and audio

Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>

added individual test case run possibility for audio suite

Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>

Modified yaml file to handle common directory structure for files

Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>

Modified run sh file to handle common dir

Signed-off-by: Nitin Nakka <nitinn@qti.qualcomm.com>

Modified Audio scripts based on comments received

Signed-off-by: nitinn <nitinn@qti.qualcomm.com>

audio: address final review comments

Signed-off-by: nitinn <nitinn@qti.qualcomm.com>
@nitinn22 nitinn22 force-pushed the feature/audio-record-playback-fix-clean branch from 5a40b13 to 37ac48e Compare March 27, 2026 12:41
@nitinn22
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

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

Only the three README fixes are still outstanding. Everything else looks fine.

4. **Recording phase (ENCODE - 4 tests)**:
- **audiotestsrc tests**: Generates sine wave at 440Hz, encodes to WAV/FLAC
- **pulsesrc tests**: Captures from hardware audio input, encodes to WAV/FLAC
- Saves recorded files to `logs/Audio_Record_Playback/recorded/`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line is now inaccurate:

Saves recorded files to logs/Audio_Record_Playback/recorded/

With the current runner, recorded artifacts may go to the shared directory via AUDIO_SHARED_RECORDED_DIR / gstreamer_shared_recorded_dir(), and logs/.../recorded/ is only the local fallback. Please update this line so it matches the actual runtime behavior.

Comment on lines 98 to 99
- **Playback**: Pipeline completes successfully with exit code 0 (clean completion)
- **Note**: Timeout (exit code 124) or termination (exit code 143) are treated as **FAIL** for controlled-duration recordings
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This wording no longer matches the implementation:

Timeout (exit code 124) or termination (exit code 143) are treated as FAIL for controlled-duration recordings

In the current run.sh, the pulsesrc record path does not fail solely on timeout/termination; it validates the log and then passes if the recorded file exists and is large enough. Please align the README with the actual behavior.

- `SKIP` - No tests executed or all skipped
- Test summary is logged showing pass/fail/skip counts
- Individual test logs are available in `logs/Audio_Record_Playback/`
- Recorded files are preserved in `logs/Audio_Record_Playback/recorded/` for debugging
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line should be updated:

Recorded files are preserved in logs/Audio_Record_Playback/recorded/ for debugging

That is only the local fallback now. In CI/LAVA runs, recorded artifacts may be placed in the shared recorded directory instead. Please make this note consistent with the new shared-artifact behavior documented above.

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