Skip to content

fix(ci): provision node-gate deps in merge-group integration verify - #1312

Merged
4444J99 merged 1 commit into
mainfrom
worktree-fix+merge-group-node-deps
Jul 19, 2026
Merged

fix(ci): provision node-gate deps in merge-group integration verify#1312
4444J99 merged 1 commit into
mainfrom
worktree-fix+merge-group-node-deps

Conversation

@4444J99

@4444J99 4444J99 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Problem

#1265 (peer-conductor mesh) kept being evicted from the merge queue (QUEUE-REMOVED) despite CLEAN exact-head CI. Root cause, proven this session:

  • Every merge_group PR Gate run for feat: add symmetric peer-conductor mesh substrate #1265 fails; every board-projection PR's succeeds.
  • The failing step is worker-check (cd web/worker && npm run check) with ERR_MODULE_NOT_FOUND: 'yaml' / 'ajv'.
  • ci.yml — which npm ci's the worker + moneta — does not trigger on merge_group (only push / pull_request / workflow_dispatch).
  • pr-gate's merge-group integration step runs node gates directly (no --skip-ci-covered), by design, so it can block the merge on a real composition failure — but nothing provisions the worker's node_modules in that runner.
  • So the first web/worker-touching PR to traverse the queue (feat: add symmetric peer-conductor mesh substrate #1265, which also adds the yaml/ajv deps) fails, even though its exact-head CI is green (that path defers worker-check to ci.yml:worker, which installs deps).

Latent class-bug, not a #1265 code problem.

Fix

Add a merge_group-only Node setup + a path-gated npm ci (web/worker, moneta) before the integration verify. Ordinary Python/docs merge groups implicate no node gate and pay nothing.

Verification

  • Reproduced locally: rm -rf web/worker/node_modules && npm run checkERR_MODULE_NOT_FOUND (# fail 3); npm ci && npm run check33/33 pass.
  • scripts/verify.py --changed (this diff): Scoped verification passed — including merge-queue-contract-test, workflow-yaml, check-gates, direct-main-writer-contract.
  • This PR touches only .github/workflows/** → its own merge_group implicates no worker-check → no chicken-and-egg.

Unblocks #1265 and every future web/worker-touching PR through the merge queue.

🤖 Generated with Claude Code

ci.yml (which npm-ci's the worker + moneta) does not run on merge_group,
but pr-gate's integration step runs node gates directly (worker-check =
`npm run check`) without --skip-ci-covered, so it can block the merge on a
real composition failure. Nothing installed those gates' node_modules in the
merge-group runner, so the first web/worker-touching PR to traverse the queue
(#1265, which also adds the yaml/ajv worker deps) failed worker-check with
ERR_MODULE_NOT_FOUND — even though its exact-head CI was green (that path
defers worker-check to ci.yml:worker, which does install deps).

Add a merge_group-only Node setup + a path-gated `npm ci` (web/worker, moneta)
before the integration verify. Ordinary Python/docs merge groups implicate no
node gate and pay nothing. Reproduced locally: rm -rf node_modules && npm run
check -> ERR_MODULE_NOT_FOUND (fail 3); npm ci && npm run check -> 33/33 pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Multi-agent review roll call
@codex review

(CodeRabbit and Claude review automatically. Reviewers: post substantive findings only. Authors/agents: address every thread, push fixes to this branch, reply and resolve, then re-request review.)

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@4444J99, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0b1eb78e-a389-401c-b19d-a8b157c1a404

📥 Commits

Reviewing files that changed from the base of the PR and between 6cc2729 and 239b45e.

📒 Files selected for processing (1)
  • .github/workflows/pr-gate.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-fix+merge-group-node-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 239b45ec2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

exit 2
fi
changed="$(git diff --name-only "$MERGE_GROUP_BASE_SHA"...HEAD || true)"
if printf '%s\n' "$changed" | grep -q '^web/worker/'; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install dashboard deps for merge-group web builds

For merge groups that touch web/app/** or spec/**, scripts/verify.py --changed --integration selects the web-build gate, whose command runs cd web/app && npm run generate:data && npm run build. On a fresh merge-queue runner those scripts need web/app/node_modules (e.g. next), but this provisioning step only installs deps for web/worker and moneta, so dashboard/spec PRs can still be evicted from the queue with missing Node dependencies.

Useful? React with 👍 / 👎.

@4444J99
4444J99 added this pull request to the merge queue Jul 19, 2026
Merged via the queue into main with commit 1416fcd Jul 19, 2026
15 checks passed
@4444J99
4444J99 deleted the worktree-fix+merge-group-node-deps branch August 5, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant