Repository navigation
ci(workflows): collapse the required-context rename mirrors - #894
Conversation
Step 4 of the additive required-context rename, and the last one. The five gated contexts no longer carry an emoji anywhere: the real jobs publish the emoji-free names themselves, so the temporary mirrors that were publishing them have nothing left to do. - ci(workflows): drop the five renamed-* mirror jobs from ci-verify.yml - ci(workflows): strip the emoji from the five real job names - test(workflows): delete required-context-rename-mirrors.test.ts - test(workflows): drop the five renamed-* entries from harden-runner's expectedPolicy, and retitle the secrets job's expected name Ordering, because this is the step where getting it backwards wedges the repo. A required context that no job produces leaves every PR pending forever, so the emoji names could only be dropped from the rulesets while something was still publishing the emoji-free ones. Both rulesets were migrated first, in their own zero-open-PR window: 13077055 (main) and 20957219 (dev/*) each require the same 11 emoji-free contexts, verified required-minus-observed at 0 missing of 11 on both. Only then is deleting the mirrors safe. What step 1 actually established, since it is worth recording accurately: on #893 all five pairs went green, four of them off a `success` dependency and one off a `skipped` one. `web` was path-filtered out and skipped while `renamed-web` ran anyway on `if: always()` and published green, which exercised the `= "skipped"` half of the verdict live rather than only in the unit test. The mirrors in a set do not all take the same branch on the same diff, because the real jobs carry different path and event filters. LEGACY_ISSUE_TITLE keeps its emoji on purpose. The fuzz job's notifier both writes an issue title and matches on it, so the legacy form has to stay matchable until any issue filed under it has been retitled.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@coderabbitai review |
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughFive CI workflow job names no longer use emoji prefixes. The temporary 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
biggest-littlest
left a comment
There was a problem hiding this comment.
Step 4 of the additive rename. Verified the numbers on this head rather than taking them on trust: required-minus-observed against ruleset 13077055 is 0 missing of 11, and 0 emoji contexts are published, so the real jobs produce every required context with no mirror behind them. The block deletion was done with asserted line boundaries rather than a sed range, which caught an off-by-one before anything was written. LEGACY_ISSUE_TITLE correctly retained. Approving.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Step 4 of the additive rename. Verified the numbers on this head rather than taking them on trust: required-minus-observed against ruleset 13077055 is 0 missing of 11, and 0 emoji contexts are published, so the real jobs produce every required context with no mirror behind them. The block deletion was done with asserted line boundaries rather than a sed range, which caught an off-by-one before anything was written. LEGACY_ISSUE_TITLE correctly retained. Approving.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Step 4 of the additive required-context rename, and the last one. After this the five gated contexts carry no emoji anywhere: the real jobs publish the emoji-free names themselves, so the temporary mirrors have nothing left to do.
What changed
renamed-*mirror jobs fromci-verify.ymlrequired-context-rename-mirrors.test.tsrenamed-*entries fromharden-runner-workflow.test.ts, and retitles the secrets job's expected name inci-verify-workflow.test.tsNet
+6 / -286across 4 files.Why the order matters
A required context that no job produces leaves every PR pending forever, which is the whole reason this took four steps instead of one. The emoji names could only come off the rulesets while something was still publishing the emoji-free ones, and the mirrors are that something. So deleting them is only safe after both rulesets have already moved.
Both were migrated in their own zero-open-PR window before this branch existed.
13077055(main) and20957219(dev/*) now require the same 11 emoji-free contexts, verified required-minus-observed at 0 missing of 11 on each. Surrounding parameters were asserted too, not just the context list, because they differ between the two: main isstrict=true dnoc=false, dev isstrict=false dnoc=true, and both stayed put.One thing worth recording from that window: the two rulesets disagree on
integration_id. Main pins nothing on any of its contexts, dev pins15368on all of them. The migration script derives the value per ruleset rather than carrying a constant across, because a required context pinned to the wrong publisher is never satisfied, which is the same wedge this procedure exists to avoid.What step 1 established
On #893 all five pairs went green, four off a
successdependency and one off askippedone.webwas path-filtered out and skipped whilerenamed-webran anyway onif: always()and published green, so the= "skipped"half of the verdict was exercised in CI and not only in the unit test.That asymmetry is the point rather than a detail: the real jobs carry different path and event filters, so the mirrors in a set do not all take the same branch on the same diff. Checking one and generalising to five is how you get a confident wrong answer here.
What is deliberately left alone
LEGACY_ISSUE_TITLEkeeps its emoji. The fuzz job's notifier both writes an issue title and matches on it, so the legacy form has to stay matchable until anything filed under it has been retitled.ci-verify-fuzz-issue-title.test.tspins that behaviour and stays.Roughly 80 decorative emoji remain in
scripts/*.shandscripts/*.mjs. Those are console output, not check names, and they are their own change. A few of them are load-bearing rather than decorative, most notablyrelease-precut-check.mjswhich parses a checkbox glyph rather than printing it, so that one needs care rather than a sweep.Changelog
renamed-*mirror jobs from.github/workflows/ci-verify.yml.Concerns