Skip to content

GHA/windows: disable taskkill in torture jobs - #21039

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:tortnokill
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:tortnokill

Conversation

@vszakats

@vszakats vszakats commented Mar 20, 2026 •

Copy link
Copy Markdown
Member

As an experiment.

Also:

  • processhelp.pm: log when taskkill is force-skipped.

Ref: #21035

Follow-up to f450f38 #19897
Follow-up to 2701ac6 #19421

@vszakats vszakats added tests Windows Windows-specific CI Continuous Integration labels Mar 20, 2026
@vszakats vszakats closed this in 208b877 Mar 20, 2026
@vszakats
vszakats deleted the tortnokill branch March 20, 2026 18:53
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
As an experiment.

Also:
- processhelp.pm: log when `taskkill` is force-skipped.

Ref: curl#21035

Follow-up to f450f38 curl#19897
Follow-up to 2701ac6 curl#19421

Closes curl#21039
vszakats added a commit that referenced this pull request Aug 5, 2026
Torture jobs are arguably the most flaky nowadays. Make a blind try to
see if re-enabling taskkill makes an observable improvement for torture.

Follow-up to 208b877 #21039
Follow-up to f450f38 #19897
Follow-up to 2701ac6 #19421

Closes #22495
vszakats added a commit that referenced this pull request Aug 11, 2026
curl already built like this in UWP mode; add a macro to allow building
regular Win32 targets too, meaning without the hidden GUI window, window
handler, and thus without support for shutting down `servers.exe`
gracefully. To test the server in CI as a plain console app and remove
one component/variable from the system, in an effort chasing flaky runs.

The graceful option was used by `taskkill` (without `-f`) in runtests,
and it has been disabled (in favor of always `-f` (forced) kill), in an
attempt to avoid taskkill hanging. Those resolved, but general CI
flakiness remained. We see `taskkill` invoked seldom per job, and in
most of these cases it doesn't find the PID requested. It means the
graceful option is not actually used since 2025-04, and rather rarely
before that. Also just today, the callback and main loop received a few
updates to avoid potentially unsafe calls and interaction with the ctrl
handler.

Not expecting anything breakthrough here. Also graceful shutdown
is a useful feature to cleanup properly and to be in sync with other
platforms.

Also: GHA/windows: enable in Windows CI jobs.

Ref: https://learn.microsoft.com/windows/console/registering-a-control-handler-function#listen-with-hidden-window-example

Follow-up to 7db9947 #22045
Follow-up to 9ea4881 #22487
Follow-up to b11e002 #22495
Follow-up to 208b877 #21039
Follow-up to f450f38 #19897
Follow-up to 2701ac6 #19421
Follow-up to 4e203f6 #17054

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

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

Labels

CI Continuous Integration tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant