Skip to content

GHA/windows: trade speed for stability in MSYS2 installs - #23906

Closed
vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:msys-cache-all
Closed

vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:msys-cache-all

Conversation

@vszakats

@vszakats vszakats commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Caching packages is expensive with msys2/setup-msys2, because cached
packages all need to be installed after restore. Before this patch, to
make installs as fast as possible, only a common set of packages were
cached, and the rest installed from the MSYS2 repo servers (e.g.
autotools or cmake). But, repo servers are struggling, so to avoid using
them and possibly failing due to them, replace this with caching
everything. This makes installs 5-15 seconds slower per job, for 10
jobs.

In jobs running tests, msys openssh is still installed directly. If this
causes an issue, it can be included in the cached set in a future PR.

To avoid:

error: failed retrieving file 'mingw-w64-clang-aarch64-libarchive-3.8.9-6-any.pkg.tar.zst.sig'
from ftp2.osuosl.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds

Ref: https://github.com/curl/curl/actions/runs/43029014875/job/130550970045#step:5:47

Also:

  • optimize slow clang-aarch64 install by omitting unused autotools.
    To keep install times the same as before this patch.
  • stop installing openssh for torture job, it's unused.
    Follow-up to 2643f5e GHA/windows: reduce/tweak flaky/hung Windows jobs #23864
  • make msys openssh selection explicit (for tests).
  • cached entry size changes: 86/92/140/150 → 100/120/140/160 in MB.
    Number of cache entries is unchanged.

Bug: #23864 (comment)
Ref: msys2/msys2-main-server#79
Follow-up to 2643f5e #23864
Follow-up to 5e654e2 #23155


  • decide what to do with test prereq openssh. → Keep it for now.
  • document cache entry growths: 86/92/140/150 → 100/120/140/160

See (again) how slow it is to cache and install everything in every job, including
unused packages. To avoid hitting download servers, which are flaky and break
CI sometimes.

Reference: https://github.com/curl/curl/actions/runs/43075087802
Cache all: https://github.com/curl/curl/actions/runs/43119907441/job/130861296884?pr=23906

msys2, CM x86_64 !proxy                    23+ 8= 31 ->  35,  31             27/ 523 -> 56/ 619MB
msys2, AM x86_64 default R               T 26+10= 36 ->  36,  37
mingw, AM clang-x86_64 default             33+10= 43 ->  48,  53             38/1032 -> 81/1192MB
mingw, AM ucrt-x86_64 wolfssl U          T 39+12= 51 ->  51,  54             41/ 616 -> 84/ 784MB
mingw, CM clang-x86_64 schannel U        T 34+10= 44 ->  46,  50
mingw, CM ucrt-x86_64 schannel U torture t 35+11= 46 ->  54,  50
mingw, CM clang-x86_64 gnutls libssh     w 27+15= 42 ->  54,  47
mingw, CM clang-aarch64 schannel R         94+29=123 -> 144, 120 (cm-only)   38/ 946 -> 81/1098MB -> 50/1042MB
mingw, CM clang-x86_64 openssl             43+12= 55 ->  55,  57
mingw, CM ucrt-x86_64 openssl uwp          25+ 8= 33 ->  52,  44
mingw, CM ucrt-x86_64 schannel dev debug   44+12= 56 ->  62,  72

@github-actions github-actions Bot added Windows Windows-specific CI Continuous Integration labels Nov 11, 2026
@vszakats vszakats changed the title [TEST] GHA/windows: MSYS2: cache everything [TEST] GHA/windows: trade speed for stability in MSYS2 installs Nov 12, 2026
@vszakats vszakats changed the title [TEST] GHA/windows: trade speed for stability in MSYS2 installs GHA/windows: trade speed for stability in MSYS2 installs Nov 12, 2026
@vszakats vszakats closed this in ffdd927 Nov 12, 2026
@vszakats
vszakats deleted the msys-cache-all branch November 12, 2026 02:17
@vszakats

vszakats commented Nov 13, 2026 •

Copy link
Copy Markdown
Member Author

Absolutely futile. Whatever is done, more of the same is bubbling up in a new place:

Downloading MSYS2...
  Unexpected HTTP response: 500
  Waiting 15 seconds before trying again
  Unexpected HTTP response: 500
  Waiting 10 seconds before trying again
  Error: Error: Unexpected HTTP response: 500

https://github.com/curl/curl/actions/runs/43245418859/job/131276722870#step:3:29

Here in a native MSYS2 job, which used to be solid.

edit: Perhaps we should download packages once, do a few build combinations
and run tests on one of them. (as done for old-linux) Or perhaps isolate the build
combo jobs into single per-platform jobs, and run them in a loop. Keep those
separate which run tests.

vszakats added a commit that referenced this pull request Nov 13, 2026
To reduce the chance of CI failures due to failing distro servers.

On the assumption that from a build standpoint MSYS2/Cygwin are very close
and converging.

```
Downloading MSYS2...
  Unexpected HTTP response: 500
  Waiting 15 seconds before trying again
  Unexpected HTTP response: 500
  Waiting 10 seconds before trying again
  Error: Error: Unexpected HTTP response: 500
```
Ref: https://github.com/curl/curl/actions/runs/43245418859/job/131276722870#step:3:29

Slow Cygwin download:
https://github.com/curl/curl/actions/runs/43244056470/job/131271941287

Bug: #23906 (comment)

Follow-up to ffdd927 #23906

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

Labels

CI Continuous Integration Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant