Repository navigation
refactor(lanes): share retry-fetch and markLaneHold through .github/scripts/lib - #15472
Conversation
…cripts/lib retry-fetch.mjs lived as three byte-identical copies in apply-patch/, pr-unblock/ and work-resolve-issue/, and report-outcome.mjs carried its own copy of markLaneHold. collect-base-activity stages the whole base .github/scripts/lib/ beside every script copy, so both now live once in lib/ and every importer reads them from there. The test that only held the copies equal is gone, and lane-hold-marker.test.mjs tests the one markLaneHold. The hold floor keeps every module the floored scripts import: the three retry-fetch enforcement rows become one lib/retry-fetch.mjs row, and lib/lane-hold-marker.mjs gets an enforcement row, since report-outcome now imports it (test_merge_holds_sync asks for it). ci-status's base-config sparse checkout lists both lib files. merge-holds.mjs, both review workflows' hold-paths and ci-status's hold_patterns are regenerated by scripts/sync-hold-floor.py; the floor-row tests and the test_floor_paths pins follow the moved paths. Refs: #15444 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
Refs: #15444 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
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 #15472 (head d2f5238)No security issues found. This lane already reviewed an earlier head ( What I checked. I read every hunk of all 21 listed files, plus the two deleted
PR text. No embedded instructions in the PR description or the issue context. Spend. None. Nothing changes lane runs, models, schedules or billing. critical-findings: 0 |
|
claude-review reviewed Code review: PR #15472, moving retry-fetch and markLaneHold into
|
apply-patch.mjs now imports ../lib/retry-fetch.mjs. The write runner's apply-base step copies each cross-directory module apply-patch imports out of the base before the head checkout replaces it, so it copies lib/retry-fetch.mjs too; the collect-base-activity test's base fixture stages it for deny-rules.mjs. Refs: #15444 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
Closes #15444
Summary
retry-fetch.mjslived as three byte-identical copies inapply-patch/,pr-unblock/andwork-resolve-issue/, andreport-outcome.mjscarried its own copy ofmarkLaneHold. Both now live once in.github/scripts/lib/, which collect-base-activity already stages beside every script copy, and every importer reads them from there. Part of restructuring pass #14159 (R1).Built in a session because the shared-lib move is outside what the issue lane can patch (host-run); agreed with the hub session.
session: Simplify Planning
Fix
lib/retry-fetch.mjsreplaces the three copies;apply-patch.mjs,address-feedback.mjs,post-statuses.mjsandreport-outcome.mjsimport it.report-outcome.mjsimportsmarkLaneHoldfromlib/lane-hold-marker.mjs.enforcementrows become onelib/retry-fetch.mjsrow, andlib/lane-hold-marker.mjsgains anenforcementrow, sincereport-outcome.mjsnow imports it. No row is dropped for a file that still exists and no class changes (60 rows to 59).merge-holds.mjs, both review workflows' hold-paths and ci-status'shold_patternsare regenerated byscripts/sync-hold-floor.py.lib/retry-fetch.mjsout of the base with apply-patch's other cross-directory imports, and the collect-base-activity test's base fixture stages it fordeny-rules.mjs(the first CI run's test-node and write-runner-never-rules failures). That fix and apr-pipelinechangelog fragment take the change past the issue's 15-file cap to 18 files; each is required for the move to work or to release.lane-hold-marker.test.mjstests the onemarkLaneHold. Floor-row tests,test_babysit_riskcounts andtest_floor_pathspins follow the moved paths.Verification
python3 scripts/sync-hold-floor.py --check: pass, after merging current main.test_merge_holds_sync(18), the full babysit-prs Python suite (4,295),callers.test.mjs, and the node suites inlib,apply-patch,pr-unblock,work-resolve-issueandpr-merge(3,441): pass.scripts/ci-lanes-pr-hold.test.sh: exit 0. actionlint on the three workflows: clean.test_floor_pathspins: the old and new floor sets were diffed by script first, and it reproduced the old pins exactly before they were updated.clear-escalations.mjscannot import from base-config, because baseaddress-feedback.mjsstill imports./retry-fetch.mjs(pr-require-checks.yml:5987-6002). It fails closed (the hold stays) and matters only if the lanes App clears a stale hold on this PR.Related
Follow-ups
test_floor_paths.py, which pins the floor's counts and digests; R1-5a (Run lane script entry points through one lib helper (part 1 of 2) #15448) and R1-7 (Move file-due onto lib/github-rest budgetedClient #15456) will need the same pin update.🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH