Commit 16fa59b
authored
fix(ci): build mcp/miner before test:coverage in test:ci (#7873)
npm run test:ci built @loopover/mcp and @loopover/miner (build:mcp/
build:miner) after test:coverage, but packages/loopover-mcp and
packages/loopover-miner ship .ts source only -- bin/*.js and lib/*.js
are gitignored. Every mcp-cli-*/miner-* test that spawns the compiled
CLI via StdioClientTransport with a hardcoded bin/loopover-mcp.js or
bin/loopover-miner.js path needs those binaries to already exist on
disk, so a fresh checkout's local test:coverage step failed with
McpError: MCP error -32000: Connection closed (root cause:
MODULE_NOT_FOUND on the missing compiled bin).
CI's own validate-tests job already builds engine, MCP, and miner
before its "Test with coverage" step -- only the local composite
script was out of order. Move build:mcp/build:miner next to the
already-correctly-ordered engine/discovery-index builds, ahead of
typecheck and test:coverage, matching CI. test:mcp-pack/test:miner-pack
keep their existing position: they still run after their respective
builds, just much earlier in the pipeline now.
Verified by deleting the gitignored mcp/miner build artifacts from a
clean state to reproduce the failure, then confirming the corrected
order builds both binaries before test:coverage runs and the full
local gate (npm run test:ci) passes end to end.1 parent 283fb8f commit 16fa59b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments