Skip to content

Commit e3631e2

Browse files
fix(ci): build testkit dist before adapter/release tests that import it
The memory + postgres adapter conformance tests import @razroo/parallel-mcp-testkit, which resolves (via npm workspaces) to testkit/dist/index.js. On a clean checkout the dist/ directory is empty, so vitest fails with "Failed to resolve entry for package @razroo/parallel-mcp-testkit". Build testkit before those tests run in both .github/workflows/ci.yml (main + compat-sqlite) and .github/workflows/release.yml. Surfaced by the v0.4.0 release run (failed at "Test (all workspaces)"). Local runs masked it because a prior pack:check left dist/ populated. Made-with: Cursor
1 parent 3bdccb0 commit e3631e2

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
- name: Typecheck (all workspaces)
3838
run: npm run check
3939

40+
- name: Build testkit (required before adapter tests that import it)
41+
run: npm run build:testkit
42+
4043
- name: Test core
4144
run: npm test
4245

@@ -55,9 +58,6 @@ jobs:
5558
- name: Build server
5659
run: npm run build:server
5760

58-
- name: Build testkit
59-
run: npm run build:testkit
60-
6161
- name: Build postgres adapter
6262
run: npm run build:postgres
6363

@@ -140,6 +140,9 @@ jobs:
140140
- name: Typecheck
141141
run: npm run check
142142

143+
- name: Build testkit (required by memory adapter test imports)
144+
run: npm run build:testkit
145+
143146
- name: Test core
144147
run: npm test
145148

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ jobs:
6060
- name: Check (all workspaces)
6161
run: npm run check
6262

63+
- name: Build server + testkit + postgres + memory (required before tests that import testkit)
64+
run: npm run build:server && npm run build:testkit && npm run build:postgres && npm run build:memory
65+
6366
- name: Test (all workspaces)
6467
run: npm run test:all
6568

66-
- name: Build server + testkit + postgres + memory
67-
run: npm run build:server && npm run build:testkit && npm run build:postgres && npm run build:memory
68-
6969
- name: Pack core
7070
id: pack_core
7171
shell: bash

0 commit comments

Comments
 (0)