Skip to content

Add SKIP_TEST_SERVER macro and skip BuildImageStuckCallbackCancellation#40448

Merged
benhillis merged 1 commit intomasterfrom
fix/skip-buildimage-stuck-callback-server
May 7, 2026
Merged

Add SKIP_TEST_SERVER macro and skip BuildImageStuckCallbackCancellation#40448
benhillis merged 1 commit intomasterfrom
fix/skip-buildimage-stuck-callback-server

Conversation

@benhillis
Copy link
Copy Markdown
Member

@benhillis benhillis commented May 6, 2026

Several WSLC tests hang on Windows Server SKUs. Adds a SKIP_TEST_SERVER() macro alongside the existing SKIP_TEST_ARM64 / SKIP_TEST_UNSTABLE helpers in test/windows/Common.h, and uses it for:

  • LoadImage
  • ImportImage
  • BuildImageStuckCallbackCancellation (newly skipped — was timing out the wslc fe_release CI session at the 2-hour PhaseTimeout, te.exe exit 1818)

Investigation of a recent failed BuildImageStuckCallbackCancellation session confirms the hang point: the TAEF console log ends mid-test at the VERIFY_ARE_EQUAL(reachedStatus, std::future_status::ready) line with no log entry for the immediately following VERIFY_SUCCEEDED(m_defaultSession->Terminate()). Terminate() is blocking forever — it cannot abort the in-flight BuildImage call while the StuckBuildProgressCallback is blocked inside OnProgress. The underlying Terminate() cancellation issue is tracked separately.

The new macro replaces the ad-hoc IsWindowsServer() + TODO comment blocks that were starting to be sprinkled across the file.

Copilot AI review requested due to automatic review settings May 6, 2026 23:47
@benhillis benhillis requested a review from a team as a code owner May 6, 2026 23:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 addresses a CI hang on Windows Server SKUs by conditionally skipping the BuildImageStuckCallbackCancellation test in WSLCTests.cpp, aligning it with existing Server-SKU skip behavior already used for other image-related tests in the same file.

Changes:

  • Skip BuildImageStuckCallbackCancellation when IsWindowsServer() is true.
  • Add inline comments noting the Server-SKU hang and that the skip is temporary (TODO to remove once fixed).

Several WSLC tests hang on Windows Server SKUs. Introduce a
SKIP_TEST_SERVER() macro alongside the existing SKIP_TEST_ARM64 /
SKIP_TEST_UNSTABLE helpers, and use it for:

  - LoadImage
  - ImportImage
  - BuildImageStuckCallbackCancellation (newly skipped; was timing
    out the wslc fe_release CI session at the 2-hour PhaseTimeout)

This replaces the ad-hoc IsWindowsServer() / SKIP_TEST_UNSTABLE
blocks with TODO comments that were starting to be sprinkled across
the file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benhillis benhillis force-pushed the fix/skip-buildimage-stuck-callback-server branch from 08635ac to 93305a9 Compare May 6, 2026 23:50
@benhillis benhillis changed the title Skip BuildImageStuckCallbackCancellation on server SKUs Add SKIP_TEST_SERVER macro and skip BuildImageStuckCallbackCancellation May 6, 2026
@benhillis benhillis merged commit 17ba5f1 into master May 7, 2026
11 checks passed
@benhillis benhillis deleted the fix/skip-buildimage-stuck-callback-server branch May 7, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants