Skip to content

fix(pr-pipeline): install resolve-config before the pr-unblock suite - #10950

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/pr-unblock-resolve-config-dep
Oct 29, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/pr-unblock-resolve-config-dep

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: a CI test-dependency fix found when #10948's test-node failed on main's code.

Summary

test-node fails on any pull request whose test selection runs the pr-unblock suite without another package that installs resolve-config. The ownerAdoption test in .github/scripts/pr-unblock/feedback-dispatch.test.mjs imports .github/actions/resolve-config/resolve-config.mjs, which needs ajv, and pr-unblock never declared that dependency.

Fix

.github/scripts/pr-unblock/package.json declares "resolve-config": "file:../../actions/resolve-config", as collect-base-activity and check-wip-cap already do. scripts/run-outside-node-suites.sh runs npm ci for each file: dependency with a lockfile before the package's tests, so ajv is installed.

Verification

  • Failing before: fix(planning): read Cloudflare's plain-text no-connector answer as a free link #10948's test-node on 814554c963 (run 40882823673): ownerAdoption reads the base adoption section ... fails at assert.ok(Number.isInteger(adoption.idleHours)), because ownerAdoption catches the missing ajv and returns no adoption.
  • With the fix: scripts/run-outside-node-suites.sh --paths naming the suite prints "npm ci in .github/actions/resolve-config, a file: dependency of .github/scripts/pr-unblock", then tests 973, pass 973, fail 0.

Related

🤖 Generated with Claude Code

The ownerAdoption test (feedback-dispatch.test.mjs) imports
.github/actions/resolve-config/resolve-config.mjs, which needs ajv, but
pr-unblock's package.json declared no file: dependency on resolve-config, so
run-outside-node-suites.sh never ran its npm ci. The test passed only when
another selected package installed it first, and failed on a pull request whose
selection ran pr-unblock alone. Declare the dependency, as collect-base-activity
does, so the runner installs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 29, 2026 13:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T13:44:28.219125Z feef7fa Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed feef7fa1ed3844356252e268dbcb3039843d1f4a: 0 finding(s), 0 as inline comments.

No security issues found.

The change adds one test-time dependency, "resolve-config": "file:../../actions/resolve-config", to .github/scripts/pr-unblock/package.json. I checked the following:

  • The dependency is a local path inside the repository, so it adds no outside source and no unpinned package.
  • pr-unblock has no lockfile. scripts/run-outside-node-suites.sh only runs npm ci for file: dependencies that have a lockfile (line 107 onward), and that lockfile belongs to resolve-config.
  • The production pr-unblock.yml workflow does not install from this package.json. It runs npm ci --ignore-scripts --omit=dev --prefix .base/.github/actions/resolve-config against the base checkout (line 2000).
  • The pull request modifies no file in resolve-config or its signer load path. It adds no token scope, kill-switch change, merge-hold change or trusted-actor change.
  • The pull request changes no .claude-plugin manifest.
  • The PR description contains no embedded instructions.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed feef7fa1ed3844356252e268dbcb3039843d1f4a: 0 finding(s), 0 as inline comments.

No findings. The change adds "resolve-config": "file:../../actions/resolve-config" to .github/scripts/pr-unblock/package.json, and I found nothing wrong with it.

What I checked by reading the files:

  • .github/actions/collect-base-activity/package.json and .github/actions/check-wip-cap/package.json already declare the same kind of file: dependency on resolve-config, so the PR's claim holds. Both use ../resolve-config, since they sit in actions/. The ../../actions/resolve-config path for .github/scripts/pr-unblock resolves correctly.
  • .github/actions/resolve-config/package.json declares ajv and yaml, and it has a package-lock.json.
  • scripts/run-outside-node-suites.sh (install_locked_deps, lines 107-120) reads file: dependencies from the package's package.json. For each one that has a lockfile, it runs npm ci --ignore-scripts. .github/scripts/pr-unblock is listed in scripts/outside-node-packages.txt, so the suite picks up the fix. The --ignore-scripts flag keeps install scripts from running.
  • The PR adds no lockfile for pr-unblock and none is needed, because the script only installs dependencies that have a lockfile of their own.

I did not run the suite. The PR's reported results (973 tests passing, the failing run on #10948) are the author's claims and I have not confirmed them.

Trusted paths: none of the changed files matches the trusted-path globs. The change adds a local file: dependency and no external package or registry source.

No manifest, userConfig, cost or security concerns. The PR context lists no closing issue, so there are no acceptance criteria to check.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit a192b74 Oct 29, 2026
61 of 73 checks passed
@kyle-sexton
kyle-sexton deleted the fix/pr-unblock-resolve-config-dep branch October 29, 2026 13:52
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