Repository navigation
fix(pr-unblock): stage apply-patch/cdn-paths.mjs for base-script activities - #18660
Conversation
…vities collect-base-activity copies a script activity's directory to $RUNNER_TEMP/base-script with lib/ and pr-merge/merge-holds.mjs beside it, but not apply-patch/cdn-paths.mjs. apply-dependency-verdict.mjs and cdn-pins-sync.mjs (which review-dependency.mjs imports) load it as ../apply-patch/cdn-paths.mjs, so apply-dependency-verdict failed with ERR_MODULE_NOT_FOUND on every Dependabot pull request since #18336. Stage cdn-paths.mjs into $RUNNER_TEMP/apply-patch/ in the same shape as merge-holds.mjs. A new test runs the staging step for every .mjs script activity a lane runs through pr-run-activity-read or -write and checks that each static relative import resolves in the staged layout. It pins the one remaining gap, declare-test-scope.mjs, which this change leaves. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #18660I found no security issues. This lane already reviewed an earlier head, so this review reported only CRITICAL and IMPORTANT findings. There were none. What changed since the last review. This head is a merge of
What I checked
Untrusted-text check. The PR description contains no instructions aimed at the lane. Not counted. The description lists other staging gaps in files this PR does not change: Spend. None. critical-findings: 0 |
|
claude-review reviewed Code review: PR #18660, stage
|
|
The claude-review advisory ( |
Lane-Activity: pr-unblock/resolve-conflicts
No related issue: regression from #18336 found by the hub in pr-unblock runs 45296291302 and 45296314384
Summary
pr-unblock's
apply-dependency-verdictactivity fails on every Dependabot pull request withERR_MODULE_NOT_FOUND: Cannot find module '/home/runner/work/_temp/apply-patch/cdn-paths.mjs'.collect-base-activitystages a script activity's directory to$RUNNER_TEMP/base-script, withlib/andpr-merge/merge-holds.mjsbeside it, but neverapply-patch/cdn-paths.mjs. Since #18336,apply-dependency-verdict.mjsandcdn-pins-sync.mjs(whichreview-dependency.mjsimports) load it as../apply-patch/cdn-paths.mjs.Fix
.github/actions/collect-base-activity/action.yml: the script staging step copies.github/scripts/apply-patch/cdn-paths.mjsinto$RUNNER_TEMP/apply-patch/when the base has it, in the same shape as themerge-holds.mjscopy.cdn-paths.mjshas no imports of its own.collect-base-activity.test.mjs: a new test readsdocs/conventions/pr-pipeline.yaml, takes every.mjsscript activity of a lane whose workflow callspr-run-activity-read.ymlorpr-run-activity-write.yml, runs the action's real staging step for it against this checkout, and walks the staged entry script's static relative imports. Each must resolve inside the staged layout.apply-patch.mjsalso gets the copies the write runner's apply-base step makes, read from that step'scplines. The suite'stest-scopenow also covers.github/scripts/*.mjs,pr-pipeline.yamlandpr-run-activity-write.yml, so a new cross-directory import selects it.declare-test-scope.mjs(thefix-test-scopeactivity,effect: read) statically imports../maintenance-reconcile-lost-runs/infra-failure.mjsand, through../lib/github-rest.mjs,../../actions/log-api-budget/rate-guard.mjs. Neither is staged, so that activity should fail to load in the read runner the same way. Both imports came in with feat(pr-unblock): dark-launch test-scope declarations from the selection trace #18460. The test fails if that gap changes, in either direction.pr-pipelinepatch changelog fragment.Verification
apply-dependency-verdict.mjs: ['apply-patch/cdn-paths.mjs']as unresolved; with it, only the pinneddeclare-test-scope.mjsentry remains.node --test --test-concurrency=4 .github/actions/collect-base-activity/collect-base-activity.test.mjs: 159 pass, 0 fail.bash scripts/check-affected.sh --base origin/main: 19 passed, 5 skipped.Related
declare-test-scope.mjsimports the test pins.report-escalation.sh(apr-unblockscript activity) loads../pr-merge/refire-refused.mjsinretried_refusal, which is not staged. Thenode -ecall's stderr goes to/dev/nulland a failure returns 1, so the workflow-modified-refusal check never holds a status back in the lane. Its../../../.github/actions/log-api-budget/api-budget.bashsource path does not resolve frombase-scripteither. That call is guarded, so the API-budget wrap is skipped without an error.address-feedback.mjslazily imports../pr-verify/resolve-pr.mjs,../intake-triage/admit.mjsand../../actions/log-api-budget/rate-guard.mjs, none staged.publish-feedback,resolve-threadsandapply-dependency-verdictreachaddress-feedback.mjs, so any of them that takes one of those code paths fails at that call.🤖 Generated with Claude Code
https://claude.ai/code/session_01UJUn7JjbzH3qP4NugM6Ns5