Skip to content

[Flaky Test] Quarantine 4 flaky node-lifecycle tests - #15110

Merged
JanProvaznik merged 1 commit into
mainfrom
janprovaznik-ci-flakiness-strategy
Sep 23, 2026
Merged

JanProvaznik merged 1 commit into
mainfrom
janprovaznik-ci-flakiness-strategy

Conversation

@JanProvaznik

Copy link
Copy Markdown
Member

Quarantine 4 flaky node-lifecycle tests

Four TaskHost, sidecar and server process-lifetime tests cause most of the recent red msbuild-pr builds on rolling main, vs18.12 and unrelated PRs: 34 of the last 60 builds failed, and 6 of the last 7 main builds. This PR adds [ActiveIssue] to each of them. They keep running in the quarantine pipeline (definition 344), so we keep collecting signal and know when they can be un-quarantined.

Test Tracking Scope Failing builds (≈) Error signatures
TaskHostBuildCleanup_Tests.EndBuildWaitsForDisposalOnlyWhenReusing #15109 all platforms 13 (Win Full FF, macOS) 90 s exec timeout; Expected 1 Actual 2 workers; worker did not exit
TaskHostConsoleTelemetry_Tests.ResetsBetweenBuildsWithReusedTaskHost #15107 all platforms 9 (all OS) WaitForExit(10_000) false; pid not running; firstUseOfProcess false
MSBuildServer_Tests.ProcessPriorityDoesNotLeakAcrossServerBuilds #15093 (already Windows-only) 3 (Win net472) fell back to running in-proc instead of on the server, so the PID doesn't match
MSBuildServer_Tests.ServerOwnsReusableSidecarsUntilShutdown #15108 Windows 1–2 server or sidecar leaked / did not exit

Example builds: 1606103, 1608574, 1607919, 1605496, 1607237.

Validation

  • Full build.cmd succeeds.
  • --list-tests --filter-trait Category=failing lists all quarantined variants: 6 + 6 theory rows in Engine, and 2 tests in CommandLine.
  • --filter-not-trait Category=failing (the normal CI filter) lists none of them.

Follow-up

These tests are still wanted; they pin real behaviour. The follow-up is a deterministic node-lifecycle test harness (journal-based ordering, fault injection, seeded chaos, and a stress gate before merge). The tests will be rewritten on it and then un-quarantined.

Note: the flaky-test detector workflow found these tests but has not acted since at least 20 Sep. GitHub returns HTTP 403 when it pages through the issue list to check for duplicates, so it exits with a noop while the run still reports success. That will be fixed separately.

Quarantine four process-lifetime tests that account for most recent
msbuild-pr failures on main, vs18.12 and unrelated PRs:

- TaskHostBuildCleanup_Tests.EndBuildWaitsForDisposalOnlyWhenReusing (#15109)
- TaskHostConsoleTelemetry_Tests.ResetsBetweenBuildsWithReusedTaskHost (#15107)
- MSBuildServer_Tests.ProcessPriorityDoesNotLeakAcrossServerBuilds (#15093)
- MSBuildServer_Tests.ServerOwnsReusableSidecarsUntilShutdown (#15108, Windows)

They keep running in the quarantine pipeline so we retain signal.

Co-authored-by: Copilot App <[email protected]>
Copilot AI lite review requested due to automatic review settings September 23, 2026 12:44
@JanProvaznik
JanProvaznik requested a review from a team September 23, 2026 12:47
@JanProvaznik
JanProvaznik enabled auto-merge (squash) September 23, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The flaky tests are appropriately quarantined with tracking and validation reported successful.

Review effort: Lite
Findings: None

What changed in this PR

Quarantines four flaky node-lifecycle tests while retaining them in the dedicated quarantine pipeline.

Changes:

  • Adds quarantine annotations and tracking issues to two TaskHost tests.
  • Adds scoped quarantine annotations to two server lifecycle tests.
  • Preserves test variants and platform-specific behavior.
File Change
src/​MSBuild.UnitTests/​MSBuildServer_Tests.cs Quarantines two server lifecycle tests.
src/​Build.UnitTests/​BackEnd/​TaskHostConsoleTelemetry_Tests.cs Quarantines telemetry test variants.
src/​Build.UnitTests/​BackEnd/​TaskHostBuildCleanup_Tests.cs Quarantines cleanup lifecycle variants.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 24/24 dimensions clean — no findings.

Warning

Firewall blocked 4 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • cafe.github.com
  • github.com
  • patchdiff.githubusercontent.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "cafe.github.com"
    - "github.com"
    - "patchdiff.githubusercontent.com"

See Network Configuration for more information.

Generated by Expert Code Review (on open) for #15110 · copilot · gpt56 · 392.6 AIC · ⌖ 4.42 AIC · ⊞ 17.8K

@JanProvaznik
JanProvaznik merged commit 5a483ed into main Sep 23, 2026
22 checks passed
@JanProvaznik
JanProvaznik deleted the janprovaznik-ci-flakiness-strategy branch September 23, 2026 14:01
@JanProvaznik

Copy link
Copy Markdown
Member Author

/backport to vs18.12

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to vs18.12 (link to workflow run)

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — a04d1dfc Deployed Sep 23, 2026 by JanProvaznik via conclusion #915
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