Skip to content

GHA/windows: re-enable taskkill - #19897

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

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

Conversation

@vszakats

@vszakats vszakats commented Dec 9, 2025 •

Copy link
Copy Markdown
Member

Nothing conclusive for the last ~30 days when taskkill was made
a no-op. Jobs remained flaky with all known failure modes. Sometimes
they finish green on the first run, sometimes they fail. Hard to say
more without comparing detailed stats for this period and the
preceding (or upcoming) one.

In almost all runs, the PID to be killed did not exist at the time of
check.

Follow-up to 2701ac6 #19421

Nothing conclusive. Jobs remained flaky with all known failure modes.
Sometimes they run green on first run, sometimes they fail. Hard to
tell more without seeing failure stats for the last 30 days or so.

Follow-up to 2701ac6 curl#19421
@vszakats vszakats added Windows Windows-specific CI Continuous Integration labels Dec 9, 2025
@vszakats vszakats changed the title GHA/windows: enable taskkill again GHA/windows: re-enable taskkill Dec 9, 2025
@vszakats
vszakats requested a review from Copilot December 9, 2025 13:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-enables the taskkill command in Windows CI workflows after a ~30-day trial period where it was disabled. The trial showed that disabling taskkill did not resolve the flakiness issues in the CI jobs, so this change reverts to the original behavior.

  • Removes the CURL_TEST_NO_TASKKILL: '1' environment variable from the workflow-level configuration
  • Re-enables process termination via taskkill in the test helper code (tests/processhelp.pm)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in f450f38 Dec 9, 2025
@vszakats
vszakats deleted the taskkillagain branch December 9, 2025 13:46
@dfandrich

dfandrich commented Dec 9, 2025 via email

Copy link
Copy Markdown
Contributor

@vszakats

vszakats commented Dec 9, 2025

Copy link
Copy Markdown
Member Author

Hard to tell more without seeing failure stats for the last 30 days or so.
What data would be useful to you here? Failures are in the Test Clutch summary page, but I guess all that scrolling doesn't make it easy to see. Maybe a little graph of the summary data for each job over the last 3 months?

I think a graph would be helpful, yes. It may help seeing if
there was more / less / similar amount of failures without
taskkill. If there was a trend, it may then help seeing which
kinds of failures were different.

vszakats added a commit to vszakats/curl that referenced this pull request Mar 20, 2026
vszakats added a commit that referenced this pull request Mar 20, 2026
As an experiment.

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

Ref: #21035

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

Closes #21039
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
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.

3 participants