Skip to content

GHA/windows: re-enable taskkill in torture jobs - #22495

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:taskkillmore
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:taskkillmore

Conversation

@vszakats

@vszakats vszakats commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

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

Torture jobs are arguably the most flaky nowadays. Make a blind try to
see if re-enabling taskkill makes an observable difference.

Follow-up to 208b877 curl#21039
Follow-up to f450f38 curl#19897
Follow-up to 2701ac6 curl#19421
@vszakats vszakats added Windows Windows-specific CI Continuous Integration tests labels Aug 5, 2026
@vszakats

vszakats commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

@vszakats vszakats closed this in b11e002 Aug 5, 2026
@vszakats
vszakats deleted the taskkillmore branch August 5, 2026 16:30
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
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