Repository navigation
Fail CI when a setup-node job would look for pnpm it never installed - #255
Merged
Merged
Conversation
setup-node@v5 reads packageManager (pnpm since #196) and caches that package manager by default, so a job that never installs pnpm fails at setup. The v0.1.0 attach job did, after every signing and acceptance job had passed (#251). scripts/test/workflow-setup-node.test.mjs reads every workflow and fails when a job runs actions/setup-node without an earlier pnpm/action-setup step in the same job or package-manager-cache: false on that step. It runs in pnpm test, so the required unit + e2e (macOS) check enforces it. It refuses to pass if it finds no setup-node steps at all, and a second test covers the accepted and refused shapes. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 8 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
BunsDev
added a commit
that referenced
this pull request
Oct 16, 2026
…reply (#266) The Images live-update subscription depended on the expanded job id. Submitting a job sets that id, so React tore the subscription down and cleared its pending 100 ms refresh. When main took the new job from queued to waiting-for-approval before React committed that render, every change event had already been folded into the cleared refresh. No further event comes while a job waits for approval, so the list kept the "queued" it read right after submitting, and the open transcript kept the previous job's items with no Approve button, until the window regained focus. The job queue is not involved. The two failing CI runs (38856460357 for #255 and 38850091541 for #263) show the same snapshot: the revision job "queued" with the first job's transcript, "Decision: yes", under it. A stale transcript means no refresh fired after the job id changed in the 15 s wait. Their traces show the first job succeeding about 110 ms after Approve and the revision click 250 ms later, so CI was not slow. Probe logs locally: the effect re-ran 7-33 ms after the submit, and main reached approval 90-330 ms after it because each store write fsyncs on a busy disk. With fsync stubbed in main, as on a fast CI disk, main reached approval in 5-9 ms, before React's effect at 11-16 ms. The existing spec then failed 8 of 10 runs with the CI snapshot. With this change it passed 10 of 10. The subscription now lives for as long as Images is shown. It reads the current refresh and job id from refs when it fires. Submitting points it at the new job immediately and clears the old transcript. Showing Images again reloads the open job's transcript, because events are not observed while it is hidden. New e2e test: it pauses the renderer through CDP right after it sends the submission and resumes once jobs.json says waiting-for-approval. The new job's Approve button must then appear without reopening Execution details. It failed 3 of 3 runs before the change and passes after it. Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
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.
actions/setup-node@v5readspackageManager(pnpm since #196) and caches that package manager by default, so a job that never installs pnpm fails at setup. v0.1.0'sattach-releasejob did exactly that (#251), after every signing and acceptance job had passed.scripts/test/workflow-setup-node.test.mjsnow reads every workflow in.github/workflows/. It fails if a job runsactions/setup-nodewithout either an earlierpnpm/action-setupstep in the same job orpackage-manager-cache: falseon that step. It runs inpnpm test(test:worktrees), so the requiredunit + e2e (macOS)check enforces it.The parser follows the workflows' own layout: jobs at 2 spaces, steps at 6. It fails loudly if it finds no setup-node steps at all, so a layout change can't make it pass vacuously. A second test covers the cases: a job without pnpm is named;
pnpm/action-setupfirst or the cache turned off are both accepted; pnpm installed by another job does not count; a named step withuseson its second line is still seen.Verified
main's workflows.package-manager-cache: falseremoved fromrelease.yml, it fails and namesrelease.yml job attach-release, the Let the release attach job run without pnpm #251 regression.pnpm build && pnpm testlocally: 109/109 script tests and 1,419/1,437 desktop tests passed (16 skipped). The two failures were timing-bound tests under a load average of about 45:demo waits for a slow turn…(5 s budget) andreadLoginPath falls back…. Both pass when rerun alone, and neither touches workflows. The suites that the failure skipped also pass: the desktop extras 21/21, site 10/10 and Store desktop 16/16.Part of the post-v0.1.0 release-tooling follow-ups.
Coven-Harness: Claude Code / claude-opus-5-5