Skip to content

ci: Trigger approved PR validation with three hosted LAVA queues - #696

Merged
Bhargav-qcom (bhargav0610) merged 3 commits into
qualcomm-linux:mainfrom
smuppand:lava-approval-validation
Nov 26, 2026
Merged

Bhargav-qcom (bhargav0610) merged 3 commits into
qualcomm-linux:mainfrom
smuppand:lava-approval-validation

Conversation

@smuppand

@smuppand Srikanth Muppandam (smuppand) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PR validation currently requires a manual dispatch and one global lock serializes every request.

Automatically request PR-only LAVA validation when a repository writer approves the current PR commit, with duplicate and stale approval checks. Use GitHub-hosted runners with three round-robin validation queues, preserve pending requests, and keep runs for the same PR serialized. Retain manual test selection, cleanup and result reporting.

Resolve the inherited zizmor findings by restricting lint permissions, removing persisted checkout credentials while preserving authenticated snapshot pushes, replacing archived release actions with GitHub CLI, and adding a seven-day Dependabot version-update cooldown.

@smuppand
Srikanth Muppandam (smuppand) force-pushed the lava-approval-validation branch 2 times, most recently from 64a9eda to 7fa5b81 Compare November 25, 2026 16:10
Verify approval identity, permissions and the reviewed revision before dispatching PR-only validation. Reserve each approved SHA to prevent duplicate hardware requests after repeated reviews or uncertain dispatch responses.

Expose a stable round-robin slot for the three hosted validation queues. Workflow integration follows in the next commit.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add an unprivileged review notification and a trusted dispatcher that reuse the existing LAVA controller. Queue validations in three GitHub-hosted slots while serializing requests for each PR and retaining pending work.

Document approval defaults and queue behavior. The privileged fork-approval handoff executes only trusted default-branch code and revalidates API identities, with no PR artifacts, caches or commands. Scope the trigger audit exception to this handoff.

Depends on the controller approval and slot outputs in the preceding commit, revert this integration before that foundation.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Limit ShellCheck to read-only contents access and disable persisted checkout credentials in lint, inventory, release and snapshot workflows. Authenticate snapshot pushes through a command-scoped GitHub CLI credential helper.

Replace the archived release actions with GitHub CLI while retaining the existing PAT, release title and archive. Add a seven-day Dependabot version-update cooldown without delaying security updates.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@bhargav0610
Bhargav-qcom (bhargav0610) merged commit 793007e into qualcomm-linux:main Nov 26, 2026
16 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