Skip to content

GHA: deprioritize Azure Ubuntu mirror - #21414

Closed
vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:azure___
Closed

vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:azure___

Conversation

@vszakats

@vszakats vszakats commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Due to year-long unreliability.

The default Ubuntu mirror works as fast as the Azure one when it's
working at its normal speed. And has HTTPS.

Also:

  • replace retry hack that turned out to not solve the issue.
  • add timeouts to each download step to catch slowness early.

Follow-up to a583884 #21181
Follow-up to 5172ba5 #21107


  • compare apt-get download times. → default Ubuntu mirror much faster in many cases. It's also HTTPS.
  • consider the same for apt-get installs without apt-get update.
  • compare step times in the above cases.
  • switch priority if the initial attempt fails. → drop retry hack altogether
  • add step timeouts.

@vszakats
vszakats marked this pull request as draft April 22, 2026 15:31
@github-actions github-actions Bot added the CI Continuous Integration label Apr 22, 2026
@vszakats vszakats changed the title GHA: debug GHA: deprioritize Azure Ubuntu mirror Apr 22, 2026
@vszakats

vszakats commented Apr 22, 2026 •

Copy link
Copy Markdown
Member Author

Aside: GH keeps adding 3rd-party apt sources... tackling this too.

Get:6 https://dl.google.com/linux/chrome-stable/deb stable InRelease [1825 B]
Get:7 https://dl.google.com/linux/chrome-stable/deb stable/main amd64 Packages [1218 B]

@testclutch

This comment was marked as outdated.

vszakats added a commit that referenced this pull request Apr 22, 2026
GitHub runners are getting new 3rd-party sources frequntly now, last
week `docker.list`, this week: `google-chrome.sources`. To avoid
playing catch up, allowlist the only one we use: `ubuntu.sources`. If
this is renamed, CI would break. Let's hope this happens much less
often than new sources.

Bug: #21414 (comment)

Follow-up to 3e0e2cc #21344

Closes #21416
@vszakats
vszakats marked this pull request as ready for review April 22, 2026 17:23
@vszakats

Copy link
Copy Markdown
Member Author

Hopefully this is improving reliability.

@vszakats vszakats closed this in 50ff4f2 Apr 22, 2026
@vszakats
vszakats deleted the azure___ branch April 22, 2026 17:40
vszakats added a commit to libssh2/libssh2 that referenced this pull request Apr 22, 2026
Also:
- add timeouts to each download step to catch slowness early.

Refs:
curl/curl@50ff4f2
curl/curl#21414

Follow-up to bd4ddc0

Closes #1868
@vszakats

vszakats commented Apr 23, 2026 •

Copy link
Copy Markdown
Member Author

outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
GitHub runners are getting new 3rd-party sources frequntly now, last
week `docker.list`, this week: `google-chrome.sources`. To avoid
playing catch up, allowlist the only one we use: `ubuntu.sources`. If
this is renamed, CI would break. Let's hope this happens much less
often than new sources.

Bug: curl#21414 (comment)

Follow-up to 3e0e2cc curl#21344

Closes curl#21416
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Due to year-long unreliability.

The default Ubuntu mirror works as fast as the Azure one when it's
working at its normal speed. And has HTTPS.

Also:
- replac the retry hack that turn out to not solve the problem.
- add timeouts to each download step to catch slowness early.

Follow-up to a583884 curl#21181
Follow-up to 5172ba5 curl#21107

Closes curl#21414
vszakats added a commit that referenced this pull request Jun 17, 2026
Whether the install is extreme slow and will fail anyway, or only slower
sometimes, and this fixes, we will see.

Example:
```
Need to get 1159 MB of archives.
After this operation, 4463 MB of additional disk space will be used.
Get:1 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-common-licensing-2023.2.0 all 2023.2.0-49462 [30.4 kB]
Get:2 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-common-licensing-2026.0 all 2026.0.0-235 [30.7 kB]
[...]
Get:21 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-dpcpp-debugger-2023.2.0 amd64 2023.2.0-49330 [201 MB]
Error: The action 'install Intel compilers' has timed out after 2 minutes.
```
Ref: https://github.com/curl/curl/actions/runs/27683923870/job/81877924590

Follow-up to 50ff4f2 #21414

Closes #22065
vszakats added a commit that referenced this pull request Oct 22, 2026
To make apt install work reliably again.

Also:
- make the switch easy by changing the local env
  `CURL_GHA_UBUNTU_MIRROR`.
- tried setting this env via repo setting, but there is no such GitHub
  feature, which also applies the env to PRs.

Follow-up to 73d15fc #22912
Follow-up to 50ff4f2 #21414

Closes #23574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration performance

Development

Successfully merging this pull request may close these issues.

2 participants