Repository navigation
[backport] ci: fall back off a slow Azure apt mirror in smoke tests - #15204
Merged
Merged
Conversation
A degraded node in the azure.archive.ubuntu.com pool serves package indexes at full speed but archives at tens of kB/s. The runner images set apt timeouts that only catch a full stall, so apt never moves to archive.ubuntu.com. The Playwright dependency step then hits its 15 minute limit and setup-r takes about 20 minutes. The Azure line is dropped from apt-mirrors.txt only when the mirror is measured slow, so healthy runs keep using it. - Sample one .deb from the Azure mirror before setup-r, whose apt calls cannot be wrapped, and drop the mirror when it stays under 1 MB/s for 10 seconds - Run the later apt steps through a helper that gives each attempt 3 minutes, drops the mirror after a failure, and retries - Run dpkg --configure -a before each retry, in case a timeout interrupted an install (not exercised by the probes) The logic is inline in test-smokes.yml rather than a local composite action, because release mode checks out older tags that lack the action directory. See #15186 (job that hit the 15 minute limit), actions/runner-images#14823, and actions/runner-images#14596. (cherry picked from commit 1d82b12)
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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.
Important
Backport from #15203
Backport so CI on
v1.10backport PRs gets the same protection asmain. When a node in theazure.archive.ubuntu.commirror pool is degraded, apt downloads crawl and the Playwright system dependencies step hits its 15 minute timeout, failing the Linux smoke job. Smoke tests now sample the Azure mirror beforesetup-rand drop it forarchive.ubuntu.comwhen it is slow, and the other apt steps retry with a per-attempt timeout, dropping Azure after a failed attempt. Healthy runs keep using the Azure mirror.CI-only change, so no changelog entry.
Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.