Skip to content

[Flaky Test] Microsoft.Build.UnitTests.BinaryLoggerTests.BinaryLoggerShouldEmbedFilesViaTaskOutput #13951

Description

@github-actions

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 ·

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testTests that have failed but passed on rerun.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions