Commit e94ce22
fix(ci): unbreak build — separate workerd test pool, correct phantom dep version
The `build` job has been red on every PR opened or updated since the DO
coordinator merge (c979f6a, Aug 2). The cause was not in any of those PRs.
1. vitest config overlap. vitest.config.ts globs `tests/**/*.test.ts`, which
also matched tests/workers/coordinator.test.ts — a workerd-pool test that
imports `cloudflare:test`. That specifier only resolves under
@cloudflare/vitest-pool-workers (vitest.workers.config.mts), so the node
suite died at import with ERR_MODULE_NOT_FOUND before running an assertion.
Excluded tests/workers/** from the node suite, preserving vitest's default
node_modules/dist excludes.
2. hono-agents "^0.19.0" never existed. a60d0e1 applied the agents-SDK version
to the wrong package; the registry tops out at 3.0.12 and the lockfile
already pins 3.0.7. Fresh `npm i` failed outright. Aligned the manifest to
the locked version — the resolved version is still 3.0.7, so this is a
manifest-only correction with no runtime change.
3. The workers suite ran nowhere in CI. `npm run test:workers` was never
invoked by any workflow, so the DO coordinator tests had never executed.
Excluding them from `npm test` would have converted "loudly broken" into
"silently unrun", so they are now wired into the build job. Booting them
required @cloudflare/vitest-pool-workers 0.22: the pinned 0.20.1 bundles a
workerd supporting compatibility dates only through 2026-08-06, one day
behind the 2026-08-07 date a60d0e1 set. Dev-only; the lockfile change is
confined to that chain (pool-workers, miniflare, wrangler, workerd).
Verified locally, full build sequence: tsc --noEmit clean; npm test 68 passed;
npm run test:workers 24 passed (previously 0 — the suite could not boot).
Not addressed here: the production advisories (hono, js-yaml, fast-uri,
ip-address, nanoid) that fail the Dependency Audit gate are pre-existing on
main and are what PR #128 already fixes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SpK3ddoHzUqgW3keYafHsD1 parent a60d0e1 commit e94ce22
4 files changed
Lines changed: 54 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments