Repository navigation
Skip required gates on PR metadata-only edits - #3466
benhook1013 wants to merge 3 commits into
Conversation
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>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Smoke Summary❌ Full-stack smoke completed with Smoke Gate: failure
|
Security Summary✅ Security checks passed or were intentionally skipped
|
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>
Static Analysis Summary✅ Static analysis checks passed
CodeQL breakdown
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Requested by Ben · project thread
Pull Request
Summary
PR Metadata Edit (Validation Gate), so the earlier substantive result stands and an edit can never turn a failing PR green.editedevents withchanges.baseset, so they keep the required names and rerun the full gates.preserve-required-gateandpublish-required-gate-statusactions, the Resolve Required Gates callback, their pending same-name statuses, and the gate jobs'checks/actions/statuses: writepermissions.What Changed
ci,security,license-scan,codeql,smoke): gate job name andifnow 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.ymlandpreview.ymlalready skip metadata edits and are unchanged.runtime-images.ymlCI callback: a substantive CI attempt is now identified by its required-nameValidation Gatewith 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.shandci-validation-summary-contract.shupdated for the new shapes.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.shbash 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.shand the other contracts that read these workflowsactionlint,shellcheckon changed scripts,CHECK_EXTERNAL_LINKS=0 bash dev-tools/docs/link-check.shNotes
Checklist
🤖 Generated with Claude Code