Skip to content

CI: Refactor pre-merge workflows and integrate LAVA trigger flow - #16

Open
ffrancis123 wants to merge 1 commit into
AudioReach:mainfrom
ffrancis123:switch
Open

ffrancis123 wants to merge 1 commit into
AudioReach:mainfrom
ffrancis123:switch

Conversation

@ffrancis123

Copy link
Copy Markdown
Contributor

Align pre-merge build workflows with audioreach-workflows [1]. Refactor CI logic to improve security, reusability, and clarity. Switch the workflow trigger from pull_request_target to pull_request to follow standard GitHub Actions practices and enhance security. Normalize YAML formatting and dependencies [2].

Refactor build and test orchestration by introducing filtering of test-ready entries from the build matrix using improved jq logic with JSON validation and support for both object and array formats. Persist the filtered results to test_matrix.json and upload it as an artifact for downstream use.

Replace inline LAVA triggering with the trigger_lava_on_success workflow. Run it after successful builds to retrieve artifacts, extract build metadata, and trigger LAVA tests using the prepared filtered matrix.

Add a reusable pre_build script to fetch the SDK from AWS S3 and move setup logic out of CI. Enable reuse in standalone and local build environments.

Grant required workflow permissions (checks and pull-requests write) to enable PR checks and allow the trigger_lava job to function correctly.

[1] AudioReach/audioreach-workflows#38
[2] AudioReach/audioreach-workflows#73

Align pre-merge build workflows with audioreach-workflows [1].
Refactor CI logic to improve security, reusability, and clarity.
Switch the workflow trigger from pull_request_target to
pull_request to follow standard GitHub Actions practices and
enhance security. Normalize YAML formatting and dependencies [2].

Refactor build and test orchestration by introducing filtering of
test-ready entries from the build matrix using improved jq logic
with JSON validation and support for both object and array formats.
Persist the filtered results to test_matrix.json and upload it as
an artifact for downstream use.

Replace inline LAVA triggering with the trigger_lava_on_success
workflow. Run it after successful builds to retrieve artifacts,
extract build metadata, and trigger LAVA tests using the prepared
filtered matrix.

Add a reusable pre_build script to fetch the SDK from AWS S3 and
move setup logic out of CI. Enable reuse in standalone and local
build environments.

Grant required workflow permissions (checks and pull-requests
write) to enable PR checks and allow the trigger_lava job to
function correctly.

[1] AudioReach/audioreach-workflows#38
[2] AudioReach/audioreach-workflows#73

Signed-off-by: ffrancis <ffrancis@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants