Skip to content

Move the retry-fetch copies and report-outcome's markLaneHold copy into .github/scripts/lib #15444

Description

@kyle-sexton

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.mjs exists as three byte-identical 146-line copies: .github/scripts/apply-patch/retry-fetch.mjs, .github/scripts/pr-unblock/retry-fetch.mjs and .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, but collect-base-activity/action.yml:148-162 stages the whole base .github/scripts/lib/ beside every such copy. work-resolve-issue/retry-fetch.test.mjs:10-16 requires 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-217 is a verbatim copy of markLaneHold from lib/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-10 compares the two.

Desired behavior:

  • git mv .github/scripts/work-resolve-issue/retry-fetch.mjs .github/scripts/lib/retry-fetch.mjs, git rm the other two copies, and point the four importers at ../lib/retry-fetch.mjs. retry-fetch.test.mjs moves the same way and drops its copies-equal test.
  • report-outcome imports markLaneHold from ../lib/lane-hold-marker.mjs and its copy is removed.
  • In docs/conventions/pr-pipeline.yaml:1827-1834,1869-1870 the 3 retry-fetch floor rows become 1, plus a lib/lane-hold-marker.mjs row if the import-closure test asks for it. In .github/workflows/pr-require-checks.yml:5377,5381 the 2 retry-fetch sparse entries become 1, plus /.github/scripts/lib/lane-hold-marker.mjs. docs/conventions/pr-pipeline/README.md:1415,1422 names the new path.
  • Then python3 -I scripts/sync-hold-floor.py regenerates merge-holds.mjs:430,433,451, the hold-paths of both review workflows (:444-465) and pr-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 from work-resolve-issue/)
  • .github/scripts/lib/retry-fetch.test.mjs (moved from work-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.mjs
  • docs/conventions/pr-pipeline.yaml
  • docs/conventions/pr-pipeline/README.md
  • .github/workflows/pr-require-checks.yml
  • .github/scripts/pr-merge/merge-holds.test.mjs
  • plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_risk.py
  • scripts/ci-lanes-pr-hold.test.sh

Key interfaces:

  • retryFetch, markLaneHold and 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-1237 and scripts/ci-lanes-pr-hold.test.sh:725-734. Because test_babysit_risk.py is a plugin file, the PR adds a .changes/source-control/ patch fragment: "Internal restructuring, no behavior change."
  • A pull request touching pr-pipeline.yaml, merge-holds.mjs and pr-require-checks.yml holds for a person's review.

Acceptance criteria:

  • retry-fetch.mjs exists once, in .github/scripts/lib/, and markLaneHold exists once, in lib/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.py regenerates, and one .changes/source-control/ patch fragment.
  • 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 --check passes.
  • test_merge_holds_sync.py, test_babysit_risk.py, .github/actions/resolve-config/callers.test.mjs and 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) and plugins/source-control/CHANGELOG.md (history), other duplication, eval cases, fixtures, and skill and agent text.

Activity

  1. added
    status: ready
    host-run
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. removed
    status: ready
    on Nov 11, 2026
  4. self-assigned this
    on Nov 11, 2026
  5. kyle-sexton commented on Nov 11, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  6. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  7. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: a no-behavior-change restructuring that keeps one retry-fetch.mjs and one markLaneHold in .github/scripts/lib/. It repoints the four importers, updates the floor rows and sparse lists, and regenerates the hold floor with sync-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.

  8. melodic-automation-lanes commented on Nov 11, 2026

    @melodic-automation-lanes
    Contributor

    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).

  9. removed
    host-run
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Work status

confirmed

Priority

low

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions