Skip to content

ci(workflows): collapse the required-context rename mirrors - #894

Merged
scttbnsn merged 1 commit into
dev/v1.7from
ci/v1.7-collapse-emoji-contexts
Aug 27, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.7from
ci/v1.7-collapse-emoji-contexts

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Drops the five renamed-* mirror jobs from ci-verify.yml
  • Strips the emoji from the five real job names
  • Deletes required-context-rename-mirrors.test.ts
  • Drops the five renamed-* entries from harden-runner-workflow.test.ts, and retitles the secrets job's expected name in ci-verify-workflow.test.ts

Net +6 / -286 across 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) and 20957219 (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 is strict=true dnoc=false, dev is strict=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 pins 15368 on 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 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, 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_TITLE keeps 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.ts pins that behaviour and stays.

Roughly 80 decorative emoji remain in scripts/*.sh and scripts/*.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 notably release-precut-check.mjs which parses a checkbox glyph rather than printing it, so that one needs care rather than a sweep.

Changelog

  • 🔧 Changed five CI job names to remove emoji prefixes.
  • 🗑️ Removed five renamed-* mirror jobs from .github/workflows/ci-verify.yml.
  • 🗑️ Removed the required-context mirror test.
  • 🔧 Updated workflow policy expectations and the secrets job expectation.

Concerns

  • Verify all external required-context references use the 11 emoji-free job names.

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.
@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drydock-website Ready Ready Preview Aug 27, 2026 6:05am

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

No new commits to review since the last review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7a92336f-7804-4d26-81ab-178c5f141da4

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 68c10f1b-343d-41b9-93b9-e21f42f14370

📥 Commits

Reviewing files that changed from the base of the PR and between bd14019 and 11239ca.

📒 Files selected for processing (4)
  • .github/tests/ci-verify-workflow.test.ts
  • .github/tests/harden-runner-workflow.test.ts
  • .github/tests/required-context-rename-mirrors.test.ts
  • .github/workflows/ci-verify.yml
💤 Files with no reviewable changes (2)
  • .github/tests/required-context-rename-mirrors.test.ts
  • .github/tests/harden-runner-workflow.test.ts

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Five CI workflow job names no longer use emoji prefixes. The temporary renamed-* mirror jobs were removed. The harden-runner policy test no longer expects those mirrors. The workflow test now expects the emoji-free secrets job name.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/v1.7-collapse-emoji-contexts

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit 19335a4 into dev/v1.7 Aug 27, 2026
54 of 56 checks passed
@scttbnsn
scttbnsn deleted the ci/v1.7-collapse-emoji-contexts branch August 27, 2026 06:57

This branch was successfully deployed

1 active deployment
Preview – drydock-website — 11239ca6 Deployed Aug 27, 2026 by vercel[bot]
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.

3 participants