Repository navigation
v2.9211 — The check a new build passes before it goes live is one tested script (punch list #480, step 2) - #10695
Merged
Conversation
…ted script (punch list #480, step 2) deploy.yml's "Verify build output" step was shell in the workflow: it ran only after a merge and nothing tested it. On 2026-12-02 its last rule refused a page whose comment named the source file, and every deploy of main failed for two hours. - scripts/lib/builtPage.mjs: the rules as data, and builtPageRefusals answers every rule a page breaks - scripts/check-built-page.mjs [folder]: reads a built folder, prints its top and its page, exits 1 on a refusal - deploy.yml's step runs the script, where it sat; the words of each refusal are the shell's own - src/lib/builtPage.test.ts: each refusal, the script's exit, and that deploy.yml keeps no copy of the rules Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ives (scripts/lib/builtPage.mjs) It pinned the deploy's grep line in deploy.yml, which step 2 moved into the script. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Punch list #480, step 2 of 6. A workflow, a script and its test. No screen changes, nothing owed on prod.
Why
deploy.yml's Verify build output step was shell written into the workflow. It ran only on a push tomainand nothing tested it. On 2026-12-02 its last rule refused a built page whose comment named the source file, and every deploy ofmainfailed for almost two hours.What changes
scripts/lib/builtPage.mjsholds the rules as data:.nojekyll,index.htmland404.htmlat the top of the built folder, a built asset named in the page, and nomain.tsxnamed in it.builtPageRefusalsanswers every rule a page breaks, where the shell stopped at the first.scripts/check-built-page.mjs [folder](npm run check:built-page) reads a built folder, prints its top and itsindex.htmlas the step always did, and exits 1 with one line a refusal.deploy.yml's step is nownode scripts/check-built-page.mjs dist, where it sat. The words of each refusal are the shell's own. Nothing else in the deploy changes.Proof
src/lib/builtPage.test.ts, 15 tests: each refusal on a made-up page, the comment of 2026-12-02, the script's exit on made-up folders, and thatdeploy.ymlruns the script after the build and keeps no copy of the rules.vite build, the script green on itsdist(the old shell's rules pass on the same folder), red with the source file's name put in a comment, and two lines for two refusals.deploy.ymlrun onmainafter the merge is the proof on a runner, and this thread reads it.Steps 3 to 6 follow, one PR each. The card's own lines wait for #10666 (step 1's numbers) to land, since both would write the one file.
🤖 Generated with Claude Code