Repository navigation
fix: gate package tags on release notes and trim Prepare's checkout - #4179
Merged
Merged
Conversation
The traffic snapshot script created its output directory and only then asked Git whether it sat inside a checkout, so a refused path still left empty directories in the repository. Check the deepest existing directory before creating anything, and keep the check on the created directory for a symlink planted meanwhile. Refs #4153
A server that booted on a build-time release list older than six hours reported "no successful refresh within six hours" on its first failed refresh, seconds after a deploy. Report a stale episode only once the feed itself has gone six hours without a successful refresh. /api/health still says what it serves. Refs #4153
RELEASING.md said Prepare rejects "placeholder sections", but the validator only refuses a missing file, a missing, repeated or misordered section, and a section that is empty or holds TODO/TBD. Say exactly that, and that template prose and wrong claims are the review's job. Record why the Create release draft check stays on `gh release view`: gh looks a draft up by its pending tag through GraphQL `release(tagName:)` (cli/cli FetchRelease, v2.62.0 and trunk), the stub test proves only the step's branching, and any failed lookup is treated as a missing release. Refs #4153
"Only comments or markup" overstated it again: the validator strips comments, whitespace and `*`, `_` and `-` only, so a section holding just a heading marker or a quote marker passes. Say exactly that. Refs #4153
Prepare cloned the whole tree, about 540 MB, inside its three-minute timeout to read one notes file. Fetch only `.github/release-notes` and the validator with a sparse, non-cone checkout: actions/checkout then filters blobs, and Prepare stays well inside the same timeout. Also stop persisting the token in Prepare's checkout, which never pushes. The test reads the step's exact paths, checks that the validator imports only Node built-ins, and runs the validation step from a tree holding just those two paths. Refs #4153
Release Prepare refuses a tag without valid authored notes, and that version is never released, but Publish packages ran on the same tag without the check and still pinned `ui-vX.Y.Z` and `marketing-ui-vX.Y.Z` (and moved the `dist/` branches) for it. Run the same validator, with the same version spelling, before the only step that pushes, whenever the job pins a version: a tag push or a `tag_version` dispatch. A plain push to main pins nothing and skips it. The test runs the workflow's own step scripts: Resolve snapshot tag for a branch push, a dispatch and a tag, then the check against no notes, unfinished notes and valid notes. Refs #4153
Contributor
Author
|
Independent review of PR #4179 at
Why it can't merge yet (MEDIUM, verified)
A (on the branch), verified correct
B (applied with
INFO (for the B round)
Next: once B is pushed, I'll compare |
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.
A version rejected by Release for missing or unfinished notes could still receive design-system package tags, and Release Prepare fetched the whole repository under a three-minute timeout. Publish packages now runs the same authored-notes validator before its only push step whenever a version is pinned. A plain main push still updates the moving dist branches without pinning a version. Prepare checks out only the release notes and standalone validator and does not persist credentials.
The change also prevents a newly deployed release feed from reporting a six-hour outage immediately, and refuses private traffic-snapshot destinations inside a checkout before creating directories. The documentation describes exactly what the validator checks, the existing draft-release lookup, and the separate source/ref semantics of manual package dispatches. Package publication and Release remain independent; passing the notes gate does not guarantee later Release success.
The original six author commits are preserved, including the two previously unpublished workflow commits. Current recovery head:
53cbd2be4cfd8739f94b45f5c50d509fd128a76c, composed with main8a580fcc2e453c068a5119a37663777032aa7259. The recovered author diff is byte-identical to the patch in the original review. Follow-up tests pin Bash/root execution and disabled checkout credential persistence, exercise real Git non-cone path matching, and cover the proposed raw..path case. That path case already passed under pinned Bun, so no speculative production change was made.Validation:
Merging this workflow change triggers its normal main-push publication of the moving package snapshots. No release or tag was created during validation.
Closes #4153