dotnet / dotnet/msbuild

[Flaky Test] Microsoft.Build.UnitTests.CodeTaskFactoryTests.BuildTaskSimpleCodeFactory_RedirectFrom4

Open
#14,593 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.UnitTests.CodeTaskFactoryTests.BuildTaskSimpleCodeFactory_RedirectFrom4
```

## Evidence

This test has been observed failing intermittently across 3 distinct rolling builds on `main` (0 PRs), on the `FullOnWindows Release` leg in `net472`.

- **Assembly:** `Microsoft.Build.Tasks.UnitTests`
- **Fully-qualified name:** `Microsoft.Build.UnitTests.CodeTaskFactoryTests.BuildTaskSimpleCodeFactory_RedirectFrom4`
- **Failing variant:** `forceOutOfProc: True`
- **Legs:** FullOnWindows Release
- **TFMs:** net472
- **Distinct rolling builds:** 3 ([1517682](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1517682), [1527742](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1527742), [1532844](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1532844))
- **First seen:** 2026-07-20
- **Last seen:** 2026-07-30
- **Sample build:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1517682
- **Sample error:** `Assert.True() Failure\nExpected: True\nActual: False`

This is part of a cluster of `CodeTaskFactory` tests failing together in `net472`/Windows (see also #14571, #14575, #14576, #14577, #14578).

## Action

The test will be quarantined via `[ActiveIssue("")]` (from `Microsoft.DotNet.XUnitV3Extensions`, namespace `Xunit`) until the underlying nondeterminism is fixed.

> [!WARNING]
>
> Firewall blocked 2 domains
>
> The following domains were blocked by the firewall during workflow execution:
>
> - `awmgmcpg`
> - `southcentralus0.in.applicationinsights.azure.com`
>> To allow these domains, add them to the `network.allowed` list in your workflow frontmatter:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "awmgmcpg"
> - "southcentralus0.in.applicationinsights.azure.com"
> ```
>
> 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/30630622840) · sonnet46 · 155.4 AIC · ⌖ 4.91 AIC · ⊞ 14.7K · [◷](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

Start with Microsoft.Build.UnitTests.CodeTaskFactoryTests.BuildTaskSimpleCodeFactory_RedirectFrom4 and its forceOutOfProc: True variant. Reproduce or compare the three linked FullOnWindows Release net472 failures, then inspect the related CodeTaskFactory failures in issues #14571 and #14575–#14578. Done means the test is deterministic and passes without needing quarantine.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.