Skip to content

GHA/windows: reduce/tweak flaky/hung Windows jobs - #23864

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:g-less-w
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:g-less-w

Conversation

@vszakats

@vszakats vszakats commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

To avoid having to do as much manual restarts at the expense of less
test coverage.

  • move c-ares to builds that do not run jobs.
    To test if it helps reducing flakiness.
  • reduce torture job to self-contained unit tests (ones that do not need
    a test server).
  • exclude test 1085 from torture due to hanging.
  • reduce dl-mingw job to self-contained unit tests.

The need for restart remains in remaining msys/mingw and msvc jobs. Also
in other jobs mainly due struggling/unreliable package distro servers,
seen with Ubuntu, Cygwin, and one MSYS2 mirror.

Ref: https://testclutch.curl.se/static/reports/summary.html
Ref: #21073
Reported-by: Stefan Eissing
Fixes #21035
Follow-up to 208b877 #21039
Follow-up to 7dd5bb7 #19865

@vszakats vszakats added tests CI Continuous Integration labels Nov 9, 2026
@vszakats

vszakats commented Nov 9, 2026 •

Copy link
Copy Markdown
Member Author

Windows torture without c-ares:

FAIL 3300: 'thrdpool unit tests' unittest, threads
FAIL 3301: 'thrdqueue unit tests' unittest, threads
FAIL 3306: 'thrdqueue retries failed thread starts on receive' unittest, threads

https://github.com/curl/curl/actions/runs/42663843471/job/129322193325?pr=23864#step:17:797

These were passing before this patch with "found no functions to make fail".
https://github.com/curl/curl/actions/runs/42636415980/job/129225776588#step:17:2785

@vszakats vszakats changed the title GHA/windows: reduce/tweak flaky Windows jobs GHA/windows: reduce/tweak flaky/hung Windows jobs Nov 9, 2026
@testclutch

Copy link
Copy Markdown

Analysis of PR #23864 at d33329c0:

Test ../../tests/http/test_02_download.py::TestDownload::test_02_33_max_host_conns[False-0-h2] failed, but it has been 0.4% flaky lately, so it's probably NOT a fault of the PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them). Note that this CI job has had a number of other flaky tests recently (3, to be specific) so it may be that this failure is rather a systemic issue with this job and not with this specific PR.

Test 3301 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Test 3300 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Test 3306 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them).

Generated by Testclutch

vszakats added a commit that referenced this pull request Nov 10, 2026
test 3300, 3301, 3306 are not compatible with torture. In CI these tests
were disabled in torture tests by coincidence due to explicitly enabling
c-ares (on linux, windows) and disabling the threaded resolver (on
macos).

Fix by excluding these tests from torture, as already done for test
3307.

They may or may not be fixed to be torture-compatible, I haven't looked
into it.

Bug: #23864 (comment)

Closes #23869
- move c-ares to builds that do not run jobs.
  To test if it helps reducing flakiness.
- reduce torture job to self-contained unit tests (ones that do not need
  a test server).
- reduce dl-mingw job to self-contained unit tests.
@github-actions github-actions Bot added the Windows Windows-specific label Nov 10, 2026
@vszakats

vszakats commented Nov 10, 2026 •

Copy link
Copy Markdown
Member Author

Additional reasons for the need to restart a failed CI job:

@vszakats

vszakats commented Nov 10, 2026 •

Copy link
Copy Markdown
Member Author

There seems to be a genuine hang in a (some?) test(s) with c-ares not enabled:

Runner 8 (id 1030) running test 1085 in state 4
Hmmm, the tests are taking a while to finish. Here is the status:
runtests.pl internal state:

Ref: https://github.com/curl/curl/actions/runs/42818527935/job/129837956312?pr=23864

It's also not stopped by runtests due to #23488.

@vszakats vszakats closed this in 2643f5e Nov 10, 2026
@vszakats
vszakats deleted the g-less-w branch November 10, 2026 13:23
vszakats added a commit that referenced this pull request Nov 11, 2026
```
Runner 7 (id 737) running test 1084 in state 4
Hmmm, the tests are taking a while to finish. Here is the status:
runtests.pl internal state:
1 busy test runner(s) of 8
```
Ref: https://github.com/curl/curl/actions/runs/43028810177/job/130550271127?pr=23897#step:17:1027

Ref: #23488
Follow-up to 2643f5e #23864

Closes #23899
vszakats added a commit that referenced this pull request Nov 12, 2026
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 #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

Closes #23906
@vszakats

vszakats commented Nov 13, 2026 •

Copy link
Copy Markdown
Member Author

This improved absolutely nothing in the Windows workflow. Every second
run has a hang, a bad download, anything. This is basically not working, unfixable.

https://github.com/curl/curl/actions/workflows/windows.yml?query=branch%3Amaster

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

Labels

CI Continuous Integration cmdline tool tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

test 2050 torture fail on windows/schannel

2 participants