Skip to content

test: Verify "Finished Build and Publish" gate catches failures (DO NOT MERGE) - #415

Draft
lfrancke wants to merge 1 commit into
mainfrom
test/finished-gate-required-check
Draft

test: Verify "Finished Build and Publish" gate catches failures (DO NOT MERGE)#415
lfrancke wants to merge 1 commit into
mainfrom
test/finished-gate-required-check

Conversation

@lfrancke

@lfrancke lfrancke commented Aug 4, 2026

Copy link
Copy Markdown
Member

DO NOT MERGE. Test branch for stackabletech/operator-templating#614.

Purpose

Verify the fixed Finished Build and Publish gate on a real operator repo before rolling the template change out everywhere (per @NickLarsenNZ's request on operator-templating#614).

What this branch does

  1. Applies the fixed finished gate to .github/workflows/build.yaml:
    • if: always() so the gate always runs and reports a real success/failure conclusion.
    • Lists every leaf job directly in needs.
    • Fails on any failure/cancelled result, tolerating legitimate skipped.
  2. Temporarily forces publish-index-manifest to fail (a throwaway exit 1 step), reproducing the exact bug from listener-operator run 29825092091.

Expected result (proves the fix)

  • Publish/Sign … Indexfailure
  • Run OpenShift Preflight Checkskipped (cascade)
  • Finished Build and Publishfailure ✅ (previously this was skipped, which branch protection treated as passing → broken build was mergeable)

The PR should show as not mergeable / checks failing. That's success for this test.

After confirming, drop the forced-failure commit to check the gate goes green on a clean run, then close this PR without merging.

🤖 Generated with Claude Code

DO NOT MERGE. Test branch for stackabletech/operator-templating#614.

- Apply the fixed `finished` gate (if: always() + explicit result check +
  all leaf jobs as direct needs).
- Temporarily force publish-index-manifest to fail, reproducing the bug
  where the gate was skipped (and thus treated as passing by branch
  protection). With the fix, the gate must now report failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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

Development

Successfully merging this pull request may close these issues.

1 participant