dotnet / dotnet/msbuild

[Flaky Test] Microsoft.Build.Tasks.UnitTests.WriteLinesToFile_Tests.NonTransactionalModeCausesDataLoss

Open
#14,426 3 comments 0 reactions 0 assignees View on GitHub
flaky-test
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

**Flaky-test key** (automated de-duplication — do not edit):
```text
flaky-test-id: Microsoft.Build.Tasks.UnitTests.WriteLinesToFile_Tests.NonTransactionalModeCausesDataLoss
```

## Evidence

- **Distinct sources:** 3 (0 PRs + 3 rolling main builds)
- **Rolling builds:** [1496519](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1496519), [1506834](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1506834), [1514373](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1514373)
- **Legs:** FullOnWindows, FullOnWindows Release
- **TFM:** net472
- **Assembly:** Microsoft.Build.Tasks.UnitTests
- **First seen:** 2026-07-07 | **Last seen:** 2026-07-17
- **Error hashes:** 2 distinct (24ca1695, 321cf66e) — multiple distinct failure signatures confirm non-determinism
- **Sample build:** [1496519](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1496519)

**Sample error:**
```
Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. Failed to successfully launch or connect to a child MSBuild.exe process.
```

## Notes

This test will be quarantined via `[ActiveIssue("https://github.com/dotnet/msbuild/issues/")]` (from `Microsoft.DotNet.XUnitV3Extensions`, namespace `Xunit`) until the underlying nondeterminism is fixed.

> [!WARNING]
>
> Firewall blocked 1 domain
>
> The following domain was blocked by the firewall during workflow execution:
>
> - `awmgmcpg`
>> To allow these domains, add them to the `network.allowed` list in your workflow frontmatter:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "awmgmcpg"
> ```
>
> See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information.
>
>

> Generated by [Flaky Test Triage](https://github.com/dotnet/msbuild/actions/runs/29643670790) · 114.5 AIC · ⌖ 4.91 AIC · ⊞ 13.5K · [◷](https://github.com/search?q=repo%3Adotnet%2Fmsbuild+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Fmsbuild%2Fflaky-test-detector.agent%22&type=issues)

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate Microsoft.Build.Tasks.UnitTests.WriteLinesToFile_Tests.NonTransactionalModeCausesDataLoss in the Microsoft.Build.Tasks.UnitTests assembly and run it on the affected Windows net472 configuration. Inspect the non-transactional test behavior and the BuildAbortedException failures; done means the test is deterministic and no longer needs the ActiveIssue quarantine.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.