Skip to content

ci: Add merge queue tip detection optimization#51

Merged
cgwalters merged 1 commit intomainfrom
add-tip-detection
Apr 28, 2026
Merged

ci: Add merge queue tip detection optimization#51
cgwalters merged 1 commit intomainfrom
add-tip-detection

Conversation

@cgwalters
Copy link
Copy Markdown
Contributor

Modify compute-ci-level so that for merge_group events, only the tip entry (last in the queue) runs the full expensive suite. Non-tip entries skip package, test-integration, test-upgrade, and test-container-export, completing much faster.

Detection uses the GitHub GraphQL mergeQueue API to fetch the last entry's headCommit.oid and compare it to GITHUB_SHA. On any API failure the step falls back to run_heavy=true (safe default).

A step summary shows the SHA comparison so the queue position is visible in the Actions UI.

For merge_group events, detect whether the current entry is the last
(tip) in the queue via the GraphQL mergeQueue API. Non-tip entries skip
expensive heavy jobs (package/test-integration/test-upgrade/test-container-export),
while the tip entry runs the full suite.

Fallback: if the API call fails or returns no result, default to
run_heavy=true (fail-safe).

A step summary is written so the queue position is visible in the
Actions UI.

Assisted-by: OpenCode (claude-sonnet-4-6)
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@cgwalters cgwalters added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 166fd7a Apr 28, 2026
10 of 11 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.

1 participant