Repository navigation
fix(ci): fail the Success gate explicitly and report on merge groups - #2247
Merged
Merged
Conversation
muscariello
force-pushed
the
ci/merge-queue-readiness
branch
from
September 30, 2026 19:26
c9a90af to
dda3787
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
lgecse
approved these changes
Oct 1, 2026
Prepares CI for a merge queue on main. No ruleset change; that follows in agntcy/org-admin once this has landed. Success was gated on the results of the jobs it needs, so whenever one of them failed it was skipped rather than failed. A skipped job satisfies a required check, so a failing PR showed a passing Success. It now always runs and fails in its first step when any needed job failed or was cancelled. Also adds a merge_group trigger, since a required check has to report on queue entries too or every entry waits until the queue's timeout. The merge group always builds: the paths-filter step is skipped for it and "Determine result" sets code=true, as it already does for tags. Signed-off-by: Luca Muscariello <[email protected]>
lgecse
force-pushed
the
ci/merge-queue-readiness
branch
from
October 1, 2026 07:43
dda3787 to
1c6aed6
Compare
lgecse
enabled auto-merge (squash)
October 1, 2026 07:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares CI for a merge queue on
main, following the same steps agntcy/slim took (agntcy/slim#2084, agntcy/slim#2086). This PR doesn't change the ruleset; the queue is enabled separately in agntcy/org-admin once this lands.Merge before https://github.com/agntcy/org-admin/pull/319
Successdid not block failing PRsSuccesswas gated withif: !contains(needs.*.result, 'failure') …, so when a job it needs failed,Successwas skipped instead of failing. GitHub treats a skipped required check as passing. The three most recent failed CI runs on this repo all show it:SuccessSo a PR with failing CI looked mergeable. Under a merge queue nobody reviews each entry, so the queue would merge those failures automatically.
Successnow runs withif: always(), and its first step fails when any needed job failed or was cancelled. Skipped needs (for examplereleaseon a PR, or everything afterchangeson a docs-only PR) still count as passing, same as before.Merge groups
merge_group:trigger added. A required check has to report on queue entries too, otherwise every entry waits until the queue's timeout. Until a queue exists nothing creates merge groups, so this does nothing yet.dorny/paths-filterstep is skipped for them andDetermine resultsetscode=true, as it already does for tag pushes. A queued merge tests the tree that will actually land.The other jobs behave correctly on a merge group without changes:
push,helm-push-latest,releaseandintegrationrun only on pushes and tags, so they're skipped.builddoesn't push.Checked
actionlint: no new findings. The only two are SC2086 infos on unquoted$GITHUB_OUTPUT, which are already onmain.Successshould now show failed, not skipped.