ci: guard production's version instead of requiring a Release-As pin - #186
Open
finalerock44 wants to merge 1 commit into
Open
finalerock44 wants to merge 1 commit into
finalerock44 wants to merge 1 commit into
Conversation
promotion-pin was guarding the wrong thing and blocked release-please's own Release PR, which has no pin by design (#185). The 5.6.0 failure was not tag reachability: release-please anchored correctly on v5.5.0 from the manifest, then read production's package.json as the current version and logged `updating from 5.6.0-beta.1 to 5.6.0-beta.1`. The prerelease came in on the promotion merge, not from a tag. So assert what actually matters — a PR into production must leave package.json on a plain X.Y.Z. npm-publish.yml checks the same thing, but only after the tag and release exist.
| # | ||
| # This also passes on release-please's own Release PR, which sets the stable | ||
| # version — so it does not need an exemption. | ||
| production-version: |
There was a problem hiding this comment.
Renaming this job orphans the required status check on the production ruleset.
This renames the job key promotion-pin → production-version. GitHub matches required status checks by name, and the in-file comment notes this gate "is required by the production ruleset":
dcd-cli/.github/workflows/cli-ci.yml
Lines 117 to 119 in a142328
Because the check reports under a new name after this merges, one of two things happens unless the ruleset is updated in lockstep:
- If the ruleset still requires
promotion-pin, that context is never reported again — every promotion PR sits on "Expected — waiting for status" and becomes unmergeable. - If nobody adds
production-versionto the required-check list, the new gate becomes advisory only — a promotion carrying a-betaversion could be merged despite the check, which defeats the job's entire purpose.
Please update the production branch ruleset's required-status-check list from promotion-pin to production-version when this merges. (Not fixable in the diff — it's a repo setting — so no suggestion block.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
promotion-pin was guarding the wrong thing and blocked release-please's own Release PR, which has no pin by design (#185).
The 5.6.0 failure was not tag reachability: release-please anchored correctly on v5.5.0 from the manifest, then read production's package.json as the current version and logged
updating from 5.6.0-beta.1 to 5.6.0-beta.1. The prerelease came in on the promotion merge, not from a tag.So assert what actually matters — a PR into production must leave package.json on a plain X.Y.Z. npm-publish.yml checks the same thing, but only after the tag and release exist.
What & why
Type of change
fix— bug fixfeat— new featureperf— performance improvementrefactor— code change that's neither a fix nor a featuredocs— documentation onlychore/ci/build/test— tooling, no user-facing change!or PR notes aBREAKING CHANGE:)Checklist
pnpm lintpassespnpm typecheckpassespnpm buildpassesCHANGELOG.md(release-please handles this)README.md/STYLE_GUIDE.mdupdated if behaviour or output changedHow to test