Skip to content

Fail CI when a setup-node job would look for pnpm it never installed - #255

Merged
BunsDev merged 2 commits into
mainfrom
ci-setup-node-guard
Oct 16, 2026
Merged

BunsDev merged 2 commits into
mainfrom
ci-setup-node-guard

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

actions/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. v0.1.0's attach-release job did exactly that (#251), after every signing and acceptance job had passed.

scripts/test/workflow-setup-node.test.mjs now reads every workflow in .github/workflows/. It fails if a job runs actions/setup-node without either an earlier pnpm/action-setup step in the same job or package-manager-cache: false on that step. It runs in pnpm test (test:worktrees), so the required unit + 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-setup first or the cache turned off are both accepted; pnpm installed by another job does not count; a named step with uses on its second line is still seen.

Verified

  • Passes on current main's workflows.
  • With package-manager-cache: false removed from release.yml, it fails and names release.yml job attach-release, the Let the release attach job run without pnpm #251 regression.
  • pnpm build && pnpm test locally: 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) and readLoginPath 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

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

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
modex Ready Ready Preview Oct 16, 2026 5:34am UTC

Request Review

@github-code-quality

github-code-quality Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 5efafc4 ci-setup-node-guard cb08549 +/-
61% 61% 0%
View coverage of the 8 most impacted files.
File main 5efafc4 ci-setup-node-guard cb08549 +/-
apps/desktop/sr...desktop-host.ts 98% 98% 0%
apps/desktop/sr...sktop-client.ts 99% 99% 0%
apps/desktop/sr...ne/companion.ts 97% 97% 0%
apps/desktop/sr.../notes-store.ts 98% 98% 0%
apps/desktop/sr...pages-agents.ts 100% 100% 0%
apps/desktop/sr...ngine/runner.ts 99% 99% 0%
packages/core/src/agent.ts 92% 92% 0%
apps/desktop/sr...vent-journal.ts 98% 99% +1%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 16, 2026 06:19 UTC

@BunsDev
BunsDev merged commit 00e1e9d into main Oct 16, 2026
13 of 14 checks passed
@BunsDev
BunsDev deleted the ci-setup-node-guard branch October 16, 2026 06:20
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

1 active deployment
Preview — cb085499 Deployed Oct 16, 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.

1 participant