Skip to content

Skip required gates on PR metadata-only edits - #3466

Closed
benhook1013 wants to merge 3 commits into
developfrom
ci/metadata-edit-gate-skip
Closed

benhook1013 wants to merge 3 commits into
developfrom
ci/metadata-edit-gate-skip

Conversation

@benhook1013

@benhook1013 benhook1013 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Requested by Ben · project thread

Pull Request

Summary

  • A PR title or description edit no longer runs any gate work. The five required gates (Validation, Security, CodeQL, License, Smoke) skip under non-required names such as PR Metadata Edit (Validation Gate), so the earlier substantive result stands and an edit can never turn a failing PR green.
  • Base retargets are still edited events with changes.base set, so they keep the required names and rerun the full gates.
  • This retires the metadata preservation machinery (about 5,000 lines): the preserve-required-gate and publish-required-gate-status actions, the Resolve Required Gates callback, their pending same-name statuses, and the gate jobs' checks/actions/statuses: write permissions.
  • Owners: CI/CD: Required Gates on Metadata Edits and the Platform Operations and Delivery tracker.

What Changed

  • Gate workflows (ci, security, license-scan, codeql, smoke): gate job name and if now branch on metadata-only edits; preservation, publisher and deferral steps removed; separate metadata concurrency namespaces kept so an edit cannot cancel a substantive run. validate-kustomize-overlays.yml and preview.yml already skip metadata edits and are unchanged.
  • runtime-images.yml CI callback: a substantive CI attempt is now identified by its required-name Validation Gate with executed enforcement, instead of a skipped preservation step that no longer exists. The Smoke Gate producer fingerprint is updated and the previous one moves to the trusted-refresh slot, following the usual rollout pattern.
  • static-analysis-summary.yml: metadata runs are excluded when picking the CodeQL/License run, so a later edit cannot show a passing summary over a real failure (new fixture covers it).
  • pr-required-gate-context-contract.sh: preservation fixtures removed (3,761 to about 830 lines); new checks cover gate names, conditions (edit skips; open, push, reopen and retarget run), other jobs staying idle, and concurrency. Smoke clock, producer fingerprint and PLAY-transition coverage are unchanged. pr-retarget-workflow-contract.sh and ci-validation-summary-contract.sh updated for the new shapes.
  • Docs: CI/CD design section rewritten, tracker section replaced, PR lifecycle retarget note shortened.

Validation

  • bash dev-tools/tests/pr-required-gate-context-contract.sh (plus a mutation check that a gate without the skip fails it)
  • bash dev-tools/tests/pr-retarget-workflow-contract.sh
  • bash dev-tools/tests/static-analysis-summary-contract.sh (fails if the metadata-run exclusion is removed)
  • bash dev-tools/tests/ci-validation-summary-contract.sh, ci-lightweight-scope-contract.sh, hosted-identity-controller-workflow-contract.sh, security-summary-contract.sh, pr-runtime-image-publication-contract.sh, architecture-doc-contracts.sh and the other contracts that read these workflows
  • actionlint, shellcheck on changed scripts, CHECK_EXTERNAL_LINKS=0 bash dev-tools/docs/link-check.sh
  • Not run locally: YAML lint (needs the CI venv; runs in CI). No Gradle work is affected.
  • Native proof on disposable Disposable proof: metadata-edit gate skip (do not merge) #3467 (closed): a body edit created only skipped metadata-named gate runs and left all five required checks unchanged; a retarget reran all five under their required names (all passed). GitHub shows a skipped job's name expression unevaluated, so the metadata check is named by the expression text; the Static Analysis Summary matches the label inside it.

Notes

Checklist

  • I have listed the validation I actually ran
  • I have referenced related issues, domain implementation trackers, and canonical design docs where relevant
  • For architecture or capability/tracker completion changes, I checked the relevant domain implementation tracker, canonical design, proto/API contracts, service implementation, and focused tests before marking work complete or filing blockers

🤖 Generated with Claude Code

A title or description edit (edited with no base change) now skips every
job in the five required-gate workflows, and each gate skips under a
non-required "PR Metadata Edit (<gate>)" name. The earlier substantive
result stands, a retarget still reruns the full gates, and an edit can no
longer turn a failing PR green.

This retires the metadata preservation machinery: the preserve-required-gate
and publish-required-gate-status actions, the Resolve Required Gates
callback, their supplementary pending statuses and the extra gate
permissions. The runtime-image CI callback and Static Analysis Summary now
ignore metadata runs by gate name, and the required-gate contract keeps its
smoke fingerprint and PLAY-transition coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

❌ Full-stack smoke completed with Smoke Gate: failure

  • ✅ Changes detection: success
  • ❌ Smoke Gate: failure
  • ❌ PR Full-Stack Smoke: failure

@github-actions

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

GitHub leaves a skipped job's name expression unevaluated, so the metadata
gate check run carries the expression text rather than the evaluated
'PR Metadata Edit (...)' label. Match the label inside the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ⏭️ CodeQL gate: skipped
  • ⏭️ License gate: skipped

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@benhook1013

Copy link
Copy Markdown
Owner Author

Superseded by #3458 after verified consumption into fa305e5. Original head 30f030e is an ancestor. Semantic integration preserves existing runtime/summary proof checks; five workflow contracts and independent review passed. Original branch is intentionally preserved for inspection.

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