Commit 4ac3aff
committed
fix(test): stop asserting client_path always passes in mcp-cli-doctor.test.ts
Genuinely pre-existing, unrelated to any of the build/caching work on
this branch (confirmed: zero commits since this branch's base touch
this file). Only surfaced now because earlier CI failures on this
branch were catastrophic enough (every mcp-cli-*/miner-* test failing
on a missing binary) to mask this one underneath.
doctor's "local_repo_readiness" group includes a "client_path" check
that scans process.env.PATH for a "loopover-mcp" executable via a
plain findExecutable() -- in practice this resolves through npm's own
workspace bin-link at node_modules/.bin/loopover-mcp. npm only creates
that symlink if the bin target (bin/loopover-mcp.js) already exists at
`npm ci` time. Since build(mcp,miner): stop committing compiled .js/
.d.ts entirely stopped committing that file, every CI job's npm ci now
runs before any build step ever does, so the symlink is never created
there -- regardless of a later build succeeding. The check itself
already treats this gracefully (status "warn" with remediation
guidance, never "fail"), but the test hardcoded status: "pass" for the
whole group, which only happened to hold locally because of a stray
global @loopover/mcp install left on this machine's own PATH from
earlier, unrelated testing -- not something any CI runner, or a fresh
contributor checkout, would ever have.
Verified by literally reproducing the CI condition: moved my own
machine's global loopover-mcp symlink aside, confirmed `which
loopover-mcp` finds nothing (matching a clean CI PATH), ran this exact
test file against that state -- all 19 tests pass, including this one.
Restored the symlink afterward.1 parent 700bc9c commit 4ac3aff
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
0 commit comments