mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
fix(metaharness-ci): use pnpm not npm for v3 workspace install (iter 117)
All 4 build steps in metaharness-ci.yml ran `npm install` inside v3/@claude-flow/cli/, but this fails with EUNSUPPORTEDPROTOCOL "workspace:*" because the v3 monorepo uses pnpm workspaces (v3/pnpm-workspace.yaml). npm can't resolve the workspace:* protocol. This was masked locally during iter dev because the cli dist/ already existed on disk — the smoke ran the already-built CLI. In CI, the build step actually runs and fails silently (--silent suppresses the EUNSUPPORTEDPROTOCOL error, exit 1 with no log). Fix: install at workspace root with pnpm@8.15.0 (matches v3/package.json's packageManager pin), then cd into the pkg to build. All 4 affected steps: 1. test-mcp-tools (line 138, MCP runtime contract — 65 assertions) 2. eject build (line 190, Phase-2 differentiator) 3. similarity dispatcher round-trip (line 343, iter 36) 4. score dispatcher round-trip (line 430, iter 47 fix) Local repro of the pre-fix failure: $ cd v3/@claude-flow/cli && npm install --no-audit --no-fund --ignore-scripts npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "workspace:": workspace:* Local validation post-fix: $ cd v3 && pnpm@8.15.0 install --frozen-lockfile Scope: all 24 workspace projects Done in 3.2s $ cd @claude-flow/cli && pnpm@8.15.0 run build [tsc completes] $ node v3/@claude-flow/cli/bin/cli.js metaharness score --path . --format json {"harnessFit": 80, ..., "generatedAt": "2026-06-17T14:23:18.402Z"} Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
1 parent
36ef4922e7
commit
86da784331
1 file changed
+36
-12
@@ -136,9 +136,15 @@ jobs:
|
||||
# 65 assertions across 7 tools. Slow path (~50s) due to npx
|
||||
# warmup; runs only on PRs that touched the MCP wiring.
|
||||
run: |
|
||||
cd v3/@claude-flow/cli
|
||||
npm install --no-audit --no-fund --ignore-scripts --silent
|
||||
npm run build
|
||||
# iter 117 — `npm install` in a single v3 workspace pkg fails with
|
||||
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
|
||||
# (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
|
||||
# cd into the pkg to build. pnpm@8.15.0 matches v3/package.json's
|
||||
# packageManager pin (newer pnpm would emit a v9+ lockfile format).
|
||||
cd v3
|
||||
npx -y pnpm@8.15.0 install --frozen-lockfile --reporter=append-only
|
||||
cd @claude-flow/cli
|
||||
npx -y pnpm@8.15.0 run build
|
||||
cd ../../..
|
||||
node plugins/ruflo-metaharness/scripts/test-mcp-tools.mjs
|
||||
|
||||
@@ -186,9 +192,15 @@ jobs:
|
||||
# The eject command lives in v3/@claude-flow/cli/src/commands/.
|
||||
# CI doesn't have the bundled dist; build it here.
|
||||
run: |
|
||||
cd v3/@claude-flow/cli
|
||||
npm install --no-audit --no-fund --ignore-scripts --silent
|
||||
npm run build
|
||||
# iter 117 — `npm install` in a single v3 workspace pkg fails with
|
||||
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
|
||||
# (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
|
||||
# cd into the pkg to build. pnpm@8.15.0 matches v3/package.json's
|
||||
# packageManager pin (newer pnpm would emit a v9+ lockfile format).
|
||||
cd v3
|
||||
npx -y pnpm@8.15.0 install --frozen-lockfile --reporter=append-only
|
||||
cd @claude-flow/cli
|
||||
npx -y pnpm@8.15.0 run build
|
||||
|
||||
- name: eject dry-run produces a valid plan
|
||||
run: |
|
||||
@@ -339,9 +351,15 @@ jobs:
|
||||
|
||||
- name: Build CLI dist (for dispatcher round-trip)
|
||||
run: |
|
||||
cd v3/@claude-flow/cli
|
||||
npm install --no-audit --no-fund --ignore-scripts --silent
|
||||
npm run build
|
||||
# iter 117 — `npm install` in a single v3 workspace pkg fails with
|
||||
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
|
||||
# (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
|
||||
# cd into the pkg to build. pnpm@8.15.0 matches v3/package.json's
|
||||
# packageManager pin (newer pnpm would emit a v9+ lockfile format).
|
||||
cd v3
|
||||
npx -y pnpm@8.15.0 install --frozen-lockfile --reporter=append-only
|
||||
cd @claude-flow/cli
|
||||
npx -y pnpm@8.15.0 run build
|
||||
|
||||
- name: CLI dispatcher round-trip — `node bin/cli.js metaharness similarity` (iter 36)
|
||||
# Proves the iter-36 SUBCOMMANDS entry actually dispatches at the
|
||||
@@ -426,9 +444,15 @@ jobs:
|
||||
# consumes internally.
|
||||
run: |
|
||||
set -e
|
||||
cd v3/@claude-flow/cli
|
||||
npm install --no-audit --no-fund --ignore-scripts --silent
|
||||
npm run build
|
||||
# iter 117 — `npm install` in a single v3 workspace pkg fails with
|
||||
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
|
||||
# (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
|
||||
# cd into the pkg to build. pnpm@8.15.0 matches v3/package.json's
|
||||
# packageManager pin (newer pnpm would emit a v9+ lockfile format).
|
||||
cd v3
|
||||
npx -y pnpm@8.15.0 install --frozen-lockfile --reporter=append-only
|
||||
cd @claude-flow/cli
|
||||
npx -y pnpm@8.15.0 run build
|
||||
cd ../../../
|
||||
OUT=$(node v3/@claude-flow/cli/bin/cli.js metaharness score --path . --format json)
|
||||
echo "$OUT" | grep -q '"harnessFit"' || { echo "FAIL: score dispatcher dropped harnessFit"; exit 1; }
|
||||
|
||||
Reference in new issue
Block a user