Skip to content

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

Description

@github-actions

Flaky test detected by automated CI scan (14-day window, 3+ independent evidence sources).

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:

Fix guidance

The test writes a file via WriteLinesToFile and expects it to be embedded in the .ProjectImports.zip binary log. The intermittent empty Embedded files: suggests a race: the file may not be flushed/closed before EmbedInBinlog is processed. A minimal fix may ensure the file is written before embedding. If no concrete root cause can be identified, quarantine with:

[ActiveIssue("https://github.com/dotnet/msbuild/issues/<THIS_ISSUE>")]
[Fact]
public void BinaryLoggerShouldEmbedFilesViaTaskOutput() { ... }

(ActiveIssue is from Microsoft.DotNet.XUnitV3Extensions, namespace Xunitnot [Fact(Skip=...)])

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • dnceng.pkgs.visualstudio.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "dnceng.pkgs.visualstudio.com"

See Network Configuration for more information.

Generated by Flaky Test Triage and Fix · sonnet46 4.9M ·

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