Skip to content

Test failure: Interop/COM/ComWrappers/API/ComWrappersTests/ComWrappersTests.cmd #133331

Closed

Description

@VincentBu

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1584571
Build error leg or test failing: Interop/COM/ComWrappers/API/ComWrappersTests/ComWrappersTests.cmd

Error Details

Xunit.Sdk.TrueException: Assert.True() Failure
Expected: True
Actual:   False
   at ComWrappersTests.Program.<ValidateExternalWrapperCacheCleanUpWithoutFinalizer>g__AssertUsableAndDrop|31_0(WeakReference`1 reference)
   at ComWrappersTests.Program.ValidateExternalWrapperCacheCleanUpWithoutFinalizer()
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": [
    "Xunit.Sdk.TrueException: Assert.True() Failure",
    "Expected: True",
    "Actual:   False",
  ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. dotnet-policy-service commented on Sep 7, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/interop-contrib
    See info in area-owners.md if you want to be subscribed.

  2. jkotas commented on Sep 7, 2026

    @jkotas
    Member

    New test introduced by #133164 cc @Sergio0694

  3. Sergio0694 commented on Sep 7, 2026

    @Sergio0694
    Contributor

    Just so I understand, was this detected by running some different jobs than what a PR triggers? Because this was green in my PR 🤔

  4. jkotas commented on Sep 7, 2026

    @jkotas
    Member

    It suggests that the new test is flaky. This failure was hit by GC stress run that triggers the GC more aggressively. GC stress runs amplify flakiness of tests sensitive to GC timing.

    Does AssertUsableAndDrop method in the test make assumptions about the GC timing? ie if you add GC.Collect call after every line in the test, is it still going to pass?

    Note that the GC can be triggered anytime due to the background activity like tracing.

  5. added a commit that references this issue on Sep 7, 2026
    4529b7f
  6. locked and limited conversation to collaborators on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions