Files
Dragan Spiridonov accb9a774d fix(release-gate): share single npm install across fixtures
The v3.9.7 publish attempt hit the `pre-publish-gate` job's 10-min
timeout because `run-gate.sh` was doing a fresh `npm install
agentic-qe-X.Y.Z.tgz` in each of the 4 fixture cleanrooms. On CI
runners each install takes 2-3 min (better-sqlite3 + hnswlib-node
prebuilds + the full transitive tree). Total install budget ~10-12 min,
blowing the timeout even though `aqe init` itself is 0-5s per fixture.

Fix: install agentic-qe ONCE into a host dir at the top of run-gate.sh
and invoke the binary via absolute path from each fixture cleanroom.
This is what a real user does with `npm install -g agentic-qe` + run
init in any project dir.

Changes:
  - run-gate.sh: new HOST_DIR one-time install, AQE_BINARY used by
    all fixtures instead of cleanroom-local node_modules/.bin/aqe.
    A5/A6 assertions removed from the comment block (they're now
    enforced once at the top of the script, not per-fixture).
  - run-gate.sh: kg_entries query (A12) now uses NODE_PATH pointing
    at HOST_DIR/node_modules so better-sqlite3 resolves. Same for
    the workers registry query (A19).
  - run-gate.sh: cleanup host dir at exit unless AQE_GATE_KEEP_HOST=1
    or AQE_GATE_HOST_DIR is set externally.
  - run-gate.sh: A12 diagnostic now includes the error message (not
    just '-1') so future DB query failures are self-diagnosing.
  - npm-publish.yml: pre-publish-gate timeout-minutes bumped from 10
    to 20 as a safety net. Shared install takes 143s locally; CI
    runners are slower but well within 20 min.

Evidence:
  - Local full corpus run with shared install: 4/4 pass, host install
    143s, per-fixture init 0-2s each, total wall clock ~3 min.
  - All 22 assertions per fixture still pass (A5/A6 subsumed into
    the one-time host install check).

Refs: #401, #412, v3.9.7 release attempt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 18:12:03 +00:00
..
2026-04-05 18:51:49 +02:00
2026-04-05 18:51:49 +02:00
2026-04-05 18:51:49 +02:00