Flaky test: BinaryLoggerTests.BinaryLoggerShouldEmbedFilesViaTaskOutput
Assembly: Microsoft.Build.Engine.UnitTests
Evidence
Sample error
Shouldly.ShouldAssertException : zipArchive.Entries
should contain an element satisfying the condition
zE.Name.EndsWith("testtaskoutputfile.txt")
but does not
Additional Info:
Embedded files:
Notes
The test intermittently fails when verifying that a file produced via task output is embedded in the binary log. The embedded-files list is empty, suggesting the task output file was not created/flushed before the log was finalized (Linux/net10.0 only).
Fix guidance
Preferred fix: ensure the task output file is fully written and flushed before the binary logger finalizes, or add a synchronization point in the test.
Fallback: quarantine via [ActiveIssue("https://github.com/dotnet/msbuild/issues/NNNN")] from Microsoft.DotNet.XUnitV3Extensions (namespace Xunit) — not [Fact(Skip=...)].
Generated by Flaky Test Triage and Fix · sonnet46 4.5M · ◷
Flaky test:
BinaryLoggerTests.BinaryLoggerShouldEmbedFilesViaTaskOutputAssembly:
Microsoft.Build.Engine.UnitTestsEvidence
mainbuilds, 0 PRs)Sample error
Notes
The test intermittently fails when verifying that a file produced via task output is embedded in the binary log. The embedded-files list is empty, suggesting the task output file was not created/flushed before the log was finalized (Linux/net10.0 only).
Fix guidance
Preferred fix: ensure the task output file is fully written and flushed before the binary logger finalizes, or add a synchronization point in the test.
Fallback: quarantine via
[ActiveIssue("https://github.com/dotnet/msbuild/issues/NNNN")]fromMicrosoft.DotNet.XUnitV3Extensions(namespaceXunit) — not[Fact(Skip=...)].