Repository navigation
ci: retry transient APT downloads and stop on index failures - #8453
Merged
mohanchen merged 2 commits intoDec 4, 2026
Merged
Conversation
ABACUS-PR-BOT
left a comment
Collaborator
There was a problem hiding this comment.
No actionable issue found in the four workflow APT changes at 253ed68193 (base 5064965fa8). The static review covered failure propagation, retry and timeout scope, package lists, and compatibility with the updated workflow matrix. Hosted behavior and runner APT versions remain unverified.
Static review only; no builds or runtime tests were run.
Critsium-xy
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI runners intermittently failed to download indexes and packages from Ubuntu archive/security endpoints during dependency setup, before ABACUS compilation or tests could start. This PR adds limited retries and connection/read timeouts, and ensures that an incomplete index update stops the installation step. The available logs do not identify which part of the network path caused the connection failures.
Linked Issue
Observed during #8264; no separate issue is required because the failed runs provide the reproducer:
This branch starts from
developata3d90481d48be532d4e8dbdeb1f0d35bb19fb030. Its only commit changes the four affected workflows.What the failure and rerun establish
The failed jobs reported
Connection failedor connection timeouts while contactingarchive.ubuntu.com/security.ubuntu.com. This establishes a connectivity failure between the CI environment and those endpoints. The logs do not distinguish an Ubuntu server problem from a routing, proxy, or runner-side problem.For #8264, commit
7b799dd9eis an empty commit on top off508f54f1: the comparison contains no file changes. It triggered a fresh CI run, which successfully installed dependencies and completed the CPU tests, CUDA tests, build matrix, and ASE tests. As checked on 2026-12-01, all 16 GitHub checks and both Read the Docs checks on that commit passed.That successful rerun did not contain this PR's patch. It supports an intermittent dependency-download failure; the recovery cannot be attributed to the changes proposed here. #8453 is a separate reliability improvement intended to tolerate some short-lived download failures and stop clearly when dependency setup remains incomplete. Persistent outages can still fail a job, and additional retries can increase the wait before failure.
What's changed?
apt-getconsistently, withAcquire::Retries=5for index and package downloads. Current APT already defaults to three retries; this increases that budget.APT::Update::Error-Mode=anyso an incomplete index refresh fails explicitly, including when APT could otherwise reuse old indexes.update && installlist could continue to subsequent toolchain commands after update failed, despite Bash-e.Package lists, repository URLs, signature verification, and build/test commands are unchanged.
Unit Tests and/or Case Tests for my changes
Fresh local validation used APT 2.8.4, a temporary GPG-signed HTTP repository, and isolated APT state/configuration/cache directories. Packages were downloaded only; their SHA256 hashes were checked and the isolated dpkg status remained empty.
&&list / separate commandThe retry-count comparison used strict update errors on both sides to isolate retry behavior. 12/12 real-APT expected-outcome checks passed, including the deliberately failing controls.
Commands run (local diagnostic harness retained outside the repository):
The last command passed 16/16 workflow checks: YAML parsing,
bash -n, unchanged package lists, and actual modified installation blocks executed with a stubbedsudounderbash --noprofile --norc -e -o pipefailto verify failure propagation.Additional checks passed:
Actionlint v1.7.12 used a local configuration declaring the existing
cpu,gpu, andlinux-x64runner labels; separate ShellCheck/Pyflakes integrations were disabled. Governance reported no findings. The fault-injection harness exercised HTTP, not HTTPS. Full ABACUS builds and runtime tests were not rerun locally for these workflow-only changes. As checked on 2026-12-01, all GitHub Actions checks on this PR passed, including the CPU, CUDA, build-matrix and ASE jobs. The two external Read the Docs checks failed as described below.Read the Docs follow-up (updated 2026-12-01)
Both external documentation builds timed out: abacus-rtd after 900 seconds and abacus-develop after 1852 seconds. RTD's notifications explicitly report build timeouts. In both records, the last command is
apt-get update --assume-yes --quiet, with no command output or exit status recorded. No documentation-generation or Sphinx command was reached. The empty output does not identify a specific mirror or lower-level cause.The unchanged
developbasea3d90481dpassed both abacus-rtd and abacus-develop documentation builds. Earlier builds on #8264 and #8436 show the same 900-second stall at APT update. This is consistent with an intermittent dependency-setup problem; the available records do not establish that it has the same underlying cause as the GitHub Actions connection errors.The four GitHub Actions installation commands changed here do not configure RTD's separate
build.apt_packagesphase;.readthedocs.yamland documentation files are unchanged. Both RTD checks still require a successful retry and remain failed in this PR's validation status.Governance Notes
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.