Repository navigation
[Flaky Test] Quarantine 4 flaky node-lifecycle tests - #15110
Conversation
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]>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
✅ 24/24 dimensions clean — no findings.
Warning
Firewall blocked 4 domains
The following domains were blocked by the firewall during workflow execution:
api.github.comcafe.github.comgithub.compatchdiff.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-proxySee 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
|
/backport to vs18.12 |
|
Started backporting to |
Backport of #15110 to vs18.12 /cc @JanProvaznik Co-authored-by: Jan Provazník <[email protected]> Co-authored-by: Copilot App <[email protected]>
Quarantine 4 flaky node-lifecycle tests
Four TaskHost, sidecar and server process-lifetime tests cause most of the recent red
msbuild-prbuilds on rollingmain,vs18.12and unrelated PRs: 34 of the last 60 builds failed, and 6 of the last 7mainbuilds. 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.TaskHostBuildCleanup_Tests.EndBuildWaitsForDisposalOnlyWhenReusingExpected 1 Actual 2workers; worker did not exitTaskHostConsoleTelemetry_Tests.ResetsBetweenBuildsWithReusedTaskHostWaitForExit(10_000)false; pid not running;firstUseOfProcessfalseMSBuildServer_Tests.ProcessPriorityDoesNotLeakAcrossServerBuildsMSBuildServer_Tests.ServerOwnsReusableSidecarsUntilShutdownExample builds: 1606103, 1608574, 1607919, 1605496, 1607237.
Validation
build.cmdsucceeds.--list-tests --filter-trait Category=failinglists 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
noopwhile the run still reports success. That will be fixed separately.