Skip to content

Retry the Package Upgrade Once After a Mirror Mismatch in upgrade-host.sh - #4532

Merged
ptr727 merged 14 commits into
developfrom
upgrade-host-apt-retry
Nov 28, 2026
Merged

ptr727 merged 14 commits into
developfrom
upgrade-host-apt-retry

Conversation

@ptr727

@ptr727 ptr727 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

upgrade-host.sh --yes now retries a failed apt-get list read, install, or upgrade once through a new apt_retry helper. It waits 90 seconds, runs apt-get update again (unless the failed call was the list read itself), and then repeats the call. A third-party mirror caught mid-sync serves files that disagree with its own index, and apt's own fetch retries read that same stale index. A second failure still exits with apt's status, so a fault that persists still surfaces. An attended run does not retry, because a declined apt prompt also exits non-zero.

  • The helper wraps every update, install, full-upgrade, and upgrade --without-new-pkgs the script runs, on both the packages path and the Debian and Ubuntu release paths. autoremove and autoclean do not fetch, so they stay on the plain helper.
  • The issue also proposed -o Acquire::Retries=3. This PR leaves it out on purpose. apt 2.3.2 and later already default to 3, which covers every Debian and Ubuntu release still in standard support. A command-line -o would also lower a host whose own apt.conf.d sets a higher count.
  • host-setup/linux/README.md gains a section describing the retry, and --help describes it under --yes.
  • tests/test_upgrade_host_linux.py is new. It drives the whole script against stubbed apt-get, sudo, sleep, snap, and systemctl, with TMPDIR inside the test's temporary directory, so no test touches the host. It covers a single upgrade failure, a single install failure, a single list-read failure, two failures in a row, a failed list read inside the retry, and an attended run that is not retried. Run against the unchanged script, every retry case fails.
  • The same gap in install-tools.sh's apt_refresh is filed as Retry a Failed Package List Read Once in install-tools.sh #4531.

Local review findings

None are open. Each finding the local passes raised has an outcome:

  • Fixed, test: the retried install, full-upgrade, and update lines are asserted in full, arguments and APT_OPTS included (9be87a6, dfba6ae).
  • Fixed, test: a guard pins every line outside a comment that mentions apt_get or apt-get, so any new call, in any shape, fails it until the list is updated on purpose (e6fef52, c10cea9, a8fa745). This stands in for a behavioral test of the release path, which rewrites real /etc/apt paths and cannot run against stubs.
  • Fixed, test: the update and install tests reuse the retried-call assertion rather than repeating it inline (2f32376).
  • Fixed, README: a failed list read is said to retry with no extra list read, which is what the script does (2f32376).
  • Fixed, --help and README: the retry wording names apt-get, since Ubuntu's do-release-upgrade is not wrapped (6247a9c).
  • Fixed, README: the section heading names the unattended apt-get calls it covers rather than every package step (1a8a215).
  • Fixed, CI: the test's text-mode subprocess.run names encoding="utf-8", which tests/test_tooling_encoding.py requires of every text-mode spawn (94981e4).
  • Declined, upgrade-host.sh: "the 90 s wait runs in the foreground, so a SIGTERM to the shell waits it out." The script runs every command in the foreground, per the launcher case of CODESTYLE.md "Interrupts in Shell", which its header states. A SIGTERM sent to the shell alone already waits out a running apt-get, which takes far longer than 90 s. A terminal Ctrl-C reaches the whole foreground process group, and a systemd stop reaches the whole cgroup, so either one ends the wait itself. The background wait added for this finding (e6fef52, fdd3e77) is reverted in 5601c48. So are its trap handling and its mid-wait signal test, and the three findings raised against that code have no code left to apply to.
  • Declined, upgrade-host.sh apt_retry: "a Ctrl-C during dpkg makes apt exit 100, which the helper retries." A probe disproves it. A child traps INT and exits 100, under a parent carrying this script's INT trap and child || status=$?, and SIGINT is sent to the process group. The parent's trap ran as soon as the child returned and re-raised the signal, and the line after || status=$? never ran.

Verification

  • python3 tests/test_upgrade_host_linux.py passes, 7 tests.
  • The full suite under CI's environment (uvx --with-requirements tests/requirements.txt python -m unittest discover) passes but for test_docker_lint's pull-retry case. That case fails on this host only, and CI's run of that suite passes it.
  • shellcheck and shfmt, at the pinned images, are clean. ruff check and ruff format --check are clean. prose_lint.py --diff origin/develop reports nothing.

Closes #4530

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Unattended Linux host upgrades now retry a failed package-list read, install, or upgrade once after 90 seconds. Before retrying an install or upgrade, package lists are refreshed. If the retry fails, the run ends with the package manager’s error status. Attended runs do not retry.
  • Documentation
    • Linux host upgrade instructions and help text now describe the retry behavior.

ptr727 and others added 3 commits November 28, 2026 07:34
…t.sh

An unattended run now waits 90 seconds, reads the package lists again,
and retries a failed full-upgrade or upgrade --without-new-pkgs once.
A mirror caught mid-sync serves files that disagree with its own index,
and apt's fetch retries read that same stale index. A second failure
still exits with apt's status. An attended run does not retry, since a
declined prompt also exits non-zero. Every apt-get call through the
helper also passes -o Acquire::Retries=3.

Closes #4530

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The same mirror-sync window that fails an upgrade's fetch can fail
apt-get update on index files whose size or hash disagrees. The helper
now covers each list read the script runs, and the README names only
the calls that pass Acquire::Retries. The test keeps mktemp inside its
own temporary directory and no longer filters the inherited environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every apt shipped since 2.3.2 already retries a fetch 3 times, and a
command-line -o would lower a host whose own apt.conf.d sets more. The
installs upgrade-host.sh runs fetch from the same mirrors, so they now
take the same single retry as the list reads and upgrades.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727 ptr727 added enhancement New feature or request script A defect in hub tooling labels Nov 28, 2026
Copilot AI lite review requested due to automatic review settings November 28, 2026 15:56
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Linux host upgrader adds a 90-second retry for selected failed apt operations in unattended mode. It applies the retry to package upgrades and release-upgrade operations. New tests cover retry and failure cases, including attended mode.

Changes: Linux apt retry

Layer / File(s) Summary
Define apt retry behavior
host-setup/linux/upgrade-host.sh, host-setup/linux/README.md
The script adds a helper that waits 90 seconds and retries a failed apt command once when unattended mode is enabled. For commands other than update, it runs apt-get update before retrying. The help text and README document this behavior and its failure handling.
Apply retries to package and release operations
host-setup/linux/upgrade-host.sh, tests/test_upgrade_host_linux.py
Package upgrades, Debian release prerequisites and upgrades, and Ubuntu’s update-manager-core installation use the helper. Tests cover retry success, repeated failures, failed list refreshes, preserved arguments, and attended mode.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Severity of issue fixed: Low

Possibly related issues

  • ptr727/ProjectTemplate issue 4531 requests a similar retry for install-tools.sh. This PR changes upgrade-host.sh and does not implement that objective.
Merge Risk: Minimal · up to 94981

This change makes unattended Linux host upgrades retry once after a transient apt failure and keeps a non-zero exit if the retry fails. No actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the retry behavior after a mirror mismatch, which is the main change. The PR adds an apt_retry helper to upgrade-host.sh that retries a failed apt-get list read, install, or upgrade on…
Linked Issues check Passed [#4530] requests a bounded wait, a package-list refresh, and one retry of a failed upgrade, with a non-zero exit if the retry fails. At the reviewed head, host-setup/linux/upgrade-host.sh defines APT_…
Out of Scope Changes check Passed The retry wrapper also covers update, install, and install -f (for dpkg recovery), and the packages path also covers install curl and ensure_release_prerequisites. These calls read the same package in…
Full details: Title check

Explanation

The title names the retry behavior after a mirror mismatch, which is the main change. The PR adds an apt_retry helper to upgrade-host.sh that retries a failed apt-get list read, install, or upgrade once after a 90-second wait in --yes runs. The title says the retry covers a mirror mismatch, but the diff and objectives describe a general transient apt failure, so the title is partially accurate. It also omits the wait and the unattended-only scope.

Full details: Linked Issues check

Explanation

[#4530] requests a bounded wait, a package-list refresh, and one retry of a failed upgrade, with a non-zero exit if the retry fails. At the reviewed head, host-setup/linux/upgrade-host.sh defines APT_RETRY_DELAY=90 and apt_retry. On failure with --yes, apt_retry warns, sleeps 90 s, runs apt_get update (unless the failed call was update), and repeats the original call. A second failure returns apt's status through set -e. upgrade_packages uses apt_retry for full-upgrade, so the packages path meets the issue's core requirement. The PR description states that the Debian and Ubuntu release paths also use apt_retry for upgrade --without-new-pkgs. I could not read that part of the file because the evidence was truncated at 16000 bytes, so this release-path coverage rests on the PR description, the raw summary, and the call-site guard test in tests/test_upgrade_host_linux.py. The issue's proposed -o Acquire::Retries=3 is omitted on purpose, with a stated reason (apt 2.3.2 and later default to 3, and a command-line value could lower a host's higher setting). The issue lists this option as a proposal, and the core retry behavior it asks for is implemented. The tests in tests/test_upgrade_host_linux.py cover the single-failure, double-failure, and attended cases.

Full details: Out of Scope Changes check

Explanation

The retry wrapper also covers update, install, and install -f (for dpkg recovery), and the packages path also covers install curl and ensure_release_prerequisites. These calls read the same package index that the issue identifies as stale, and the issue's mechanism requires refreshing the lists before a retry, so they are part of the same recovery path rather than unrelated changes. autoremove and autoclean stay unwrapped because they do not fetch. The README, --help text, and tests/test_upgrade_host_linux.py support the change. The install-tools.sh gap is not changed here and is deferred to #4531, which keeps the PR within scope. The PR does not change repository channel selection, which the issue excludes. No unrelated change is demonstrated in the reviewed evidence.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2ece1b3 and 94981e4.

Files selected for processing: 3

  • host-setup/linux/README.md
  • host-setup/linux/upgrade-host.sh
  • tests/test_upgrade_host_linux.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 0c67513f5db92c053abb88c0b0310aafd00adeed, the content this pull request carries at that commit against develop, and it recorded 1 finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still has two moderate test-coverage gaps: release-upgrade retry behavior is untested, and retry assertions omit key apt arguments, allowing regressions to pass.

2 open issues
What changed in this PR

This pull request adds a bounded retry for failed unattended APT operations in upgrade-host.sh, helping recover from temporary mirror synchronization mismatches while preserving persistent failures.

Changes:

  • Adds apt_retry with a 90-second wait, refreshed package lists, and one retry for unattended APT operations.
  • Applies the helper to package and release upgrade paths while leaving non-fetching cleanup commands unchanged.
  • Documents the retry behavior and adds stubbed end-to-end Linux tests.
File Description
tests/​test_upgrade_host_linux.py Adds end-to-end tests using stubbed host commands to exercise unattended and attended APT retry scenarios.
host-setup/​linux/​upgrade-host.sh Implements the delayed unattended APT retry helper across package and release upgrade operations.
host-setup/​linux/​README.md Documents the APT retry behavior and links to the Linux upgrade test suite.

Review effort: Lite

Comment thread host-setup/linux/upgrade-host.sh Resolved
Comment thread tests/test_upgrade_host_linux.py Resolved
ptr727 and others added 2 commits November 28, 2026 08:01
… Sites

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Guard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c10cea926772e4c985ca4b72ed8b08246fe1eb74, the content this pull request carries at that commit against develop, and it recorded 1 finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head fdd3e774ef5495db322e01bee3a2134ff6c77178, the content this pull request carries at that commit against develop, and it recorded 2 findings.

… Written

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head dfba6ae12d3622d7c84a213d89a2c5a125485840, the content this pull request carries at that commit against develop, and it recorded 3 findings.

ptr727 and others added 3 commits November 28, 2026 08:18
The script runs every command in the foreground, per the launcher case
of CODESTYLE.md "Interrupts in Shell", and its header says so. A signal
reaching this shell alone already waits out a running apt-get, which
takes far longer than the 90 second wait, and a Ctrl-C or a systemd stop
reaches the wait itself. So the background wait, its trap handling, and
the test written for it are removed, back to a plain sleep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard read only lines opening on the call, so a call inside an if,
a command substitution, after && or ||, or through the sudo array
escaped it. It now pins every line outside a comment that names apt_get
or apt-get, so any new mention fails it until the list is updated on
purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 2f32376d9ac8ef33554d7ee4a66d19ba251c571d, the content this pull request carries at that commit against develop, and it recorded 1 finding.

ptr727 and others added 2 commits November 28, 2026 08:32
On Ubuntu the release upgrade itself is do-release-upgrade, which the
helper does not wrap, so the help text and the README now name apt-get.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 1a8a2155062c9a1389d012087088a1d1e1c734ae, the content this pull request carries at that commit against develop, and it recorded 0 findings.

The tooling-encoding test refuses a text-mode subprocess that leaves its
encoding to the locale, which CI caught on both its Linux and Windows
unit jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 94981e4173af36055570bfba66b742561bb03a2e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.06%. Comparing base (b38e084) to head (94981e4).
⚠️ Report is 382 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4532      +/-   ##
===========================================
- Coverage    81.60%   79.06%   -2.55%     
===========================================
  Files           26       50      +24     
  Lines         9070    16939    +7869     
===========================================
+ Hits          7402    13392    +5990     
- Misses        1668     3547    +1879     
Flag Coverage Δ
python-3.13 79.06% <ø> (-2.55%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit b6765e4 into develop Nov 28, 2026
14 checks passed
@ptr727
ptr727 deleted the upgrade-host-apt-retry branch November 28, 2026 17:33
ptr727 added a commit that referenced this pull request Nov 28, 2026
## Summary

`install-tools.sh --yes` now retries a failed `apt-get` list read or
install once through its own `apt_retry` helper. The retry waits 90
seconds, runs `apt-get update` again (unless the failed call was the
list read itself), and repeats the call. This matches what #4532 gave
`upgrade-host.sh`. An attended run does not retry.

- The helper wraps the list read in `apt_refresh` and the installs in
`apt_install`, `apt_install_displacing`, and `ensure_prerequisites`. The
removal of a conflicting Docker package and the `apt-get -s` simulation
read nothing from a mirror, so they stay unwrapped.
- Each script carries its own copy of the helper rather than sharing
one, since each must run when fetched on its own. A test holds the two
retry waits equal. This copy differs in one place: the list read inside
the retry returns its failure explicitly, because the tool installers
run with errexit off.
- A list read that fails twice prints a warning and is not read again
until a sources file changes. Tools then install from the lists already
on disk, so a removed `rg` or portable `pwsh` is still replaced. Unless
a later read succeeds, the run exits non-zero and names `apt-get update`
in its "Failed:" line.
- A tool whose repository those lists do not hold yet can install the
distro's package instead. Checking each repository against apt's own
lists is #4537.
- An install that fails twice returns apt's status to its caller. For a
managed tool's own packages that fails the tool. For the shared
prerequisites, or a package `--repo` declares, it ends the run.
`git_restore_mtime_install` now stops when its python3 install fails,
rather than installing a script with no runtime.
- `--help` describes the retry under `--yes`, and
`host-setup/linux/README.md`'s retry section now covers
`install-tools.sh`.
- `tests/test_install_tools.py` gains `TestLinuxAptRetry`, 14 tests
against a stubbed root command and `sleep`, attended and unattended,
with errexit off and on. Each retry case fails against the unchanged
script. `test_install_tools`, `test_upgrade_host_linux`, and
`test_tooling_encoding` pass.

## Local review findings

Eight local passes ran, the last with no findings. Each finding has an
outcome:

- Fixed, script: a list read that failed twice was passed over and the
lists marked read (850b3ec, reworked in 78f0cf5).
- Fixed, script: failing every tool on a failed list read left a removed
`rg` or portable `pwsh` unreplaced, and repeated the 90 second wait per
tool (78f0cf5).
- Fixed, script: a failed list read was never cleared, so a mirror
recovering within the run still failed it (bfef36a).
- Fixed, script: `git_restore_mtime_install` passed over a failed
python3 install (4d2cc91).
- Deferred to #4537, by the maintainer's decision: a tool whose
repository the lists do not hold can install the distro's package. A
per-tool guard for it (fb6f569, 97a4d56) kept missing cases, a feed
two tools share and a repository a previous run never read, so 59a2153
removed it.
- Fixed, test: an attended list-read failure, a prerequisite install
ending the run under errexit, and equal retry waits across both scripts
are now pinned (4d2cc91, fb6f569).
- Fixed, README: it names the distro-package gap and #4537 rather than
claiming a guard (59a2153).
- Fixed, README: what a failed tool reports, which paths end the run,
and a false comparison with the old behavior (850b3ec, 78f0cf5,
bfef36a).
- Declined: `apt_install_displacing`'s removal preview can understate
what a retried install removes under `--yes`. Only a log line is
affected, since `--yes` skips the prompt and apt prints its own removal
list for the real install.

Closes #4531

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Linux tool setup now retries failed package-list reads and
installations once in unattended `--yes` mode, waiting 90 seconds
between attempts. Before retrying an installation, it refreshes package
lists.
* Failed package-list reads and installation attempts are reported, and
dependent setup stops if a required prerequisite cannot be installed.
* **Documentation**
* Linux setup guidance now explains retry behavior, failure handling,
and operations that are not retried. It also links to the related tests.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ptr727 added a commit that referenced this pull request Nov 29, 2026
)

Promotes the 17 pull requests that landed on develop since the last
promotion (#4515).

- #4468: Leave human-authored comments as written and mirror an
out-of-flow main change to develop.
- #4519: Wait for the head's checks and merge on a base requiring none.
- #4518: Retry the workflow token readback before reporting the write
unconfirmed.
- #4451: Hold owed actions in issues, name cross-repository holds, and
pass a parked group's file in backlog-burndown.
- #4526: Carry a fleet default `.python-version` for Python
repositories.
- #4482: Register the managed SSH key through a logged-in `gh` in
setup-github.
- #4521: Extend the interrupt rule to .NET console apps.
- #4532: Retry the package upgrade once after a mirror mismatch in
`upgrade-host.sh`.
- #4535: Retry a failed package list read once in `install-tools.sh`.
- #4538: Pack each target framework's own assembly and install every
.NET line a multi-targeted repo tests.
- #4543: Fail a merge-bot wait with no other check, and share one
`read_api`.
- #4544: Let a bounded cancellation translate to a domain result in the
.NET rule.
- #4546: State that an empty check set never passes in D8.1.
- #4547: Group merge-bot check runs by App and name.
- #4549: State that the merge-bot arms auto-merge where checks gate it.
- #4550: Add full history to the collision check and catch late owed
actions.
- #4552: Hold each owed action in one issue keyed on its pull request.

## Release notes for callers

- #4526: Every Python repository without a root `.python-version` now
audits `.python-version absent`. The resync carries the fleet default.
- #4482: On Linux, a prompting ssh re-probe that fails after `gh` has
added the key now exits 0 with a network message rather than dying, so a
`bootstrap.sh` stand-up continues past it.
- #4538: `nuget-build-default` no longer passes a command-line
`OutputPath`, so a multi-targeted library packs each framework's own
assembly. The release-asset `.7z` now carries only the `.nupkg` and any
`.snupkg`. `validate-task.yml` gains a `dotnet-versions` input, whose
first entry must equal the line the root `global.json` selects.
- #4519: The merge bot now waits for the head's checks and merges on a
base requiring none. It must not reach an operational repository's pin
until every `ptr727-codegen` installation has accepted `checks: read`
and `statuses: read`.
- #4543: On a base requiring no status checks, the merge bot no longer
merges a head on which no check but its own has posted. A repository
whose bot pull requests run no CI workflow now fails that merge at the
20-minute bound instead.
- A fleet resync is owed, because carried text changed: CODESTYLE.md,
WORKFLOW.md, and several skills.

#4528 stays open: #4521 settles its first two items only, and #4544 is
related. #2552 stays open on the maintainer's fresh-host verification of
setup-github.

## Findings from the local strict review

The attested local pass on ebe721b (`main...develop`) raised 198
findings. Their outcomes:

- Declined, 193 `prose_lint` `comment-added` lines: each comment was
added by a feature pull request carrying the `comments` label (#4482,
#4518, #4519), and the promotion re-carries them without that label.
- Fixed by #4543: `.github/workflows/merge-bot-task.yml` counted an
empty check set as passing, so a head with no check posted could merge
after the settle window.
- Fixed by #4543: the merge step's `read_api` duplicated the re-arm
step's. One definition now serves both.
- Declined, `host-setup/linux/install-tools.sh:340` and
`host-setup/linux/upgrade-host.sh:178`, the duplicated `apt_retry`:
`host-setup/README.md` makes the duplication deliberate, since the Linux
and Windows scripts share no file so each is fetchable alone. Each
copy's list-read behavior matches its own README paragraph. The
maintainer confirmed the decline.
- Tracked: the managed-key probe in `host-setup/linux/setup-github.sh`
and `host-setup/windows/setup-github.ps1` is the simplification the
maintainer decided in #4527.
- Fixed by #4544:
`.agents/skills/dotnet-codestyle/references/console-lifetime.md`'s
`ToolRunner` contradicted the exception rule. The rule now lets a
bounded cancellation translate to a domain result.

The attested local pass on 78cac8c (`main...develop`) raised 199
findings. Their outcomes:

- Declined, 198 `prose_lint` `comment-added` lines: the same comments as
above plus those #4543 added under the `comments` label.
- Fixed by #4546: WORKFLOW.md D8.1 and `docs/reusable-workflows.md` did
not state that a head with no other check never merges.

The attested local pass on 95b0bad (`main...develop`) raised 198
findings, all `prose_lint` `comment-added` lines. Each is declined on
the same ground as above, since every one was added by a feature pull
request carrying the `comments` label (#4482, #4518, #4519, #4543).

The attested local pass on eb196a1 (`main...develop`) raised 198
findings, all `prose_lint` `comment-added` lines, declined on the same
ground (#4547 also carries the `comments` label).

The local pass on eb1e23d (`main...develop`) raised 200 findings:
- Declined, 198 `prose_lint` `comment-added` lines, on the same ground.
- Fixed by #4552: promotion assembly re-filed a closed owed-action
holder on every range change.
- Fixed by #4552: "The Round" step 5's done-exemption contradicted the
assembly.

The attested local pass on 19bb2d4 (`main...develop`) raised 202
findings:
- Declined, 198 `prose_lint` `comment-added` lines, on the same ground.
- Deferred to #4553 by the maintainer's decision, three findings on the
merge-bot's no-required-checks path, which reaches only operational
repositories:
  - no re-run of the wait after a head move or a green re-run;
  - stale "arm on opened/reopened" comments in `merge-bot-task.yml`;
- a recovery command in `branch-protection-and-promotion.md` that merges
at once on such a base.
- Deferred to #4554 by the maintainer's decision: an owed action whose
step is an agent's has no seat directed to take it.

## Findings from the hosted review

- Fixed by #4543: Copilot's empty-check-set finding on
`.github/workflows/merge-bot-task.yml`.
- Declined in thread: Copilot asked to collapse commit statuses by
context. The combined `/status` endpoint already returns one status per
context.
- Fixed by #4547: Copilot's finding that grouping check runs by name
alone can hide another App's failed check. Runs are now grouped by App
and name, which matches GitHub's own required-check semantics.
- Declined: the suppressed grammar finding at
`.agents/skills/decision-triage/SKILL.md:31`. "Save" there is a
preposition meaning "except".

CodeRabbit's full review on eb196a1 opened 14 threads, and Copilot
raised two suppressed findings. Their outcomes:

- Fixed by #4550: the parked-branch collision `git log` lacked
`--full-history`, and a late-merged worker's owed actions were held
nowhere (caught at promotion assembly, on the maintainer's choice of
design). #4552 then fixed the holder rule this text introduced.
- Fixed by #4549: D8.1 claimed GitHub arms auto-merge only on a base
requiring status checks.
- Deferred to #4548 by the maintainer's decision: a network failure on
`apt-get update` exits 0, so `apt_retry` never fires for it.
- Deferred to #4527 by the maintainer's decision: setup-github asks a
host reaching GitHub only through its ssh config to paste a registered
key, and two tests meant to cover that case check nothing.
- Declined in thread, each with its evidence:
  - an owed action needing another owner's repository;
  - a signal before the logger exists;
  - `latestMajor` in `global.json`;
- a retried statuses read pairing with stale check runs, the race the
settle window already bounds;
  - the third stop on PID 1;
  - `GH_FORCE_TTY`;
  - a failed list read after a signing add.
- Declined in the conversation: excluding own checks by App, since a
same-named job runs under the same Actions App, and the release's Python
fallback, which is deliberate and already on `main`.
- Filed as `pre-existing`, #4551: the re-arm job reads no base rules,
which #4549's review raised.

Closes #4470
Closes #4377
Closes #4493
Closes #4444
Closes #4445
Closes #4187
Closes #4471
Closes #4483
Closes #4530
Closes #4531
Closes #4534

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request script A defect in hub tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants