Skip to content

fix(ci): fail the Success gate explicitly and report on merge groups - #2247

Merged
lgecse merged 1 commit into
mainfrom
ci/merge-queue-readiness
Oct 1, 2026
Merged

lgecse merged 1 commit into
mainfrom
ci/merge-queue-readiness

Conversation

@muscariello

@muscariello muscariello commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

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

Success did not block failing PRs

Success was gated with if: !contains(needs.*.result, 'failure') …, so when a job it needs failed, Success was 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:

Failing job Success
Test / E2E / Test Local Kind skipped
Lint skipped
Lint skipped

So a PR with failing CI looked mergeable. Under a merge queue nobody reviews each entry, so the queue would merge those failures automatically.

Success now runs with if: always(), and its first step fails when any needed job failed or was cancelled. Skipped needs (for example release on a PR, or everything after changes on 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.
  • Merge groups always build. The dorny/paths-filter step is skipped for them and Determine result sets code=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, release and integration run only on pushes and tags, so they're skipped.
  • build doesn't push.
  • The Codecov upload doesn't fail CI when it errors.

Checked

  • YAML parses.
  • actionlint: no new findings. The only two are SC2086 infos on unquoted $GITHUB_OUTPUT, which are already on main.
  • Worth checking on this PR itself: when a job fails, Success should now show failed, not skipped.

@muscariello
muscariello requested a review from a team as a code owner September 30, 2026 19:18
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Sep 30, 2026
@muscariello
muscariello force-pushed the ci/merge-queue-readiness branch from c9a90af to dda3787 Compare September 30, 2026 19:26
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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
lgecse force-pushed the ci/merge-queue-readiness branch from dda3787 to 1c6aed6 Compare October 1, 2026 07:43
@lgecse
lgecse enabled auto-merge (squash) October 1, 2026 07:50
@lgecse
lgecse merged commit 644d5e4 into main Oct 1, 2026
34 checks passed
@lgecse
lgecse deleted the ci/merge-queue-readiness branch October 1, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants