Repository navigation
fix(ci): prefer Ubuntu mirrors before R setup - #73
Merged
Merged
Conversation
Contributor
Author
|
This is a temporary workaround, and since this was merged in runner-images - actions/runner-images#14643, we will just wait till the runner-image deployments take place within 3 days |
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.
Fixes #75
On some GitHub-hosted Ubuntu runners, apt downloads from
azure.archive.ubuntu.comdrop to ~100 kB/s. This slows R setup and the system requirement installs. Some jobs take 10+ minutes longer, and the linked ggally run took almost 49 minutes before it was cancelled.This change makes
setup-r-packageput the Ubuntu archive mirrors ahead of Azure in/etc/apt/apt-mirrors.txtbeforesetup-rruns. Azure stays as the last fallback. The step only runs on GitHub-hosted Ubuntu runners that have the mirror list file. It changes only the three standard mirror priorities and leaves custom entries alone.This is not a temporary workaround. actions/runner-images#14643 made apt move to the next mirror when a download stalls. It does not help downloads that are slow but still moving, which is the case here. That PR also keeps Azure first on purpose, so the mirror order will not change upstream.
Local tests passed for mirror order, repeat runs, custom entries, Debian, and a missing mirror file. YAML parsing, shell syntax, and whitespace checks also passed. Download speed on a GitHub-hosted runner remains untested.
Related: slow R test run, slow rstudio/shiny job, actions/runner-images#14594.