Repository navigation
Closed
Task
Copy link
Description
Agent Brief
Type: Task
Summary: Move the three retry-fetch.mjs copies and report-outcome's markLaneHold copy into .github/scripts/lib/ (part of restructuring pass #14159).
Current behavior:
retry-fetch.mjsexists as three byte-identical 146-line copies:.github/scripts/apply-patch/retry-fetch.mjs,.github/scripts/pr-unblock/retry-fetch.mjsand.github/scripts/work-resolve-issue/retry-fetch.mjs. The header (:2-5) says each copy exists because its script runs from a copy of its own directory, butcollect-base-activity/action.yml:148-162stages the whole base.github/scripts/lib/beside every such copy.work-resolve-issue/retry-fetch.test.mjs:10-16requires the copies to stay equal. Importers:apply-patch.mjs:80,address-feedback.mjs:50,post-statuses.mjs:41,report-outcome.mjs:196.report-outcome.mjs:205-217is a verbatim copy ofmarkLaneHoldfromlib/lane-hold-marker.mjs:11-21, kept because several jobs sparse-check out report-outcome and its imports by name; a sparse entry removes that reason.lib/lane-hold-marker.test.mjs:7-10compares the two.
Desired behavior:
git mv .github/scripts/work-resolve-issue/retry-fetch.mjs .github/scripts/lib/retry-fetch.mjs,git rmthe other two copies, and point the four importers at../lib/retry-fetch.mjs.retry-fetch.test.mjsmoves the same way and drops its copies-equal test.- report-outcome imports
markLaneHoldfrom../lib/lane-hold-marker.mjsand its copy is removed. - In
docs/conventions/pr-pipeline.yaml:1827-1834,1869-1870the 3 retry-fetch floor rows become 1, plus alib/lane-hold-marker.mjsrow if the import-closure test asks for it. In.github/workflows/pr-require-checks.yml:5377,5381the 2 retry-fetch sparse entries become 1, plus/.github/scripts/lib/lane-hold-marker.mjs.docs/conventions/pr-pipeline/README.md:1415,1422names the new path. - Then
python3 -I scripts/sync-hold-floor.pyregeneratesmerge-holds.mjs:430,433,451, thehold-pathsof both review workflows (:444-465) andpr-require-checks.yml:7128. - This item merges before the other floor items of this pass, which edit the same floor rows and sparse lists.
Files:
.github/scripts/lib/retry-fetch.mjs(moved fromwork-resolve-issue/).github/scripts/lib/retry-fetch.test.mjs(moved fromwork-resolve-issue/).github/scripts/apply-patch/retry-fetch.mjs(deleted).github/scripts/pr-unblock/retry-fetch.mjs(deleted).github/scripts/apply-patch/apply-patch.mjs.github/scripts/pr-unblock/address-feedback.mjs.github/scripts/work-resolve-issue/post-statuses.mjs.github/scripts/work-resolve-issue/report-outcome.mjs.github/scripts/lib/lane-hold-marker.test.mjsdocs/conventions/pr-pipeline.yamldocs/conventions/pr-pipeline/README.md.github/workflows/pr-require-checks.yml.github/scripts/pr-merge/merge-holds.test.mjsplugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_risk.pyscripts/ci-lanes-pr-hold.test.sh
Key interfaces:
retryFetch,markLaneHoldand every export the importers use keep their names, signatures and behavior.- Every script's requests, retries, log lines and exit codes are the same as now.
- Tests that list floor rows change only where they name a moved path:
merge-holds.test.mjs:421-433,test_babysit_risk.py:334-346,1225-1237andscripts/ci-lanes-pr-hold.test.sh:725-734. Becausetest_babysit_risk.pyis a plugin file, the PR adds a.changes/source-control/patchfragment: "Internal restructuring, no behavior change." - A pull request touching
pr-pipeline.yaml,merge-holds.mjsandpr-require-checks.ymlholds for a person's review.
Acceptance criteria:
-
retry-fetch.mjsexists once, in.github/scripts/lib/, andmarkLaneHoldexists once, inlib/lane-hold-marker.mjs; every importer uses those. - Behavior is unchanged: the same requests, retries, log lines and exit codes for the same inputs.
- The diff edits only the listed files, the lines of a test that assert on them when the change breaks that assertion, the files
python3 -I scripts/sync-hold-floor.pyregenerates, and one.changes/source-control/patchfragment. - The pull request stays within 400 changed lines, not counting the two deleted retry-fetch copies and regenerated lines, and 15 hand-edited files.
-
python3 -I scripts/sync-hold-floor.py --checkpasses. -
test_merge_holds_sync.py,test_babysit_risk.py,.github/actions/resolve-config/callers.test.mjsand the node suites of the touched.github/scripts/directories pass. - ci-status is green.
Out of scope:
docs/outage-posture-audit.md(pinned commit permalinks) andplugins/source-control/CHANGELOG.md(history), other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
confirmed
Priority
low
Activity
kyle-sexton commentedon Nov 11, 2026
github-actions commentedon Nov 11, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 11, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Understood: a no-behavior-change restructuring that keeps one
retry-fetch.mjsand onemarkLaneHoldin.github/scripts/lib/. It repoints the four importers, updates the floor rows and sparse lists, and regenerates the hold floor withsync-hold-floor.py. The brief gives exact files, acceptance criteria and size limits, so nothing is missing. The PR will touch hold-gated files, so it will wait for a person's review. I found no open duplicate and no merged PR that already covers this. #14159 is the parent restructuring pass. #15446 is related but covers a different change, the shared retrying REST call.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 11, 2026
Not admitted to the issue lane: its body or a criterion names .github/workflows/pr-require-checks.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it; it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).fix(lanes): stage lib/retry-fetch.mjs with the apply-patch base copy