Skip to content

[ci-scan] Test failure: GeneratorRun_WithNewCompilation_DoesNotKeepOldCompilationAlive in runtime-libraries-interpreter #128931

@github-actions

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1440781
Build error leg or test failing: osx-arm64 Release - LibraryImportGenerator.Unit.Tests

Error Details

LibraryImportGenerator.UnitTests.IncrementalGenerationTests.GeneratorRun_WithNewCompilation_DoesNotKeepOldCompilationAlive(source: "using System.Runtime.InteropServices;\n\npartial c"...) [FAIL]
      Assert.False() Failure
      Expected: False
      Actual:   True
      Stack Trace:
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/IncrementalGenerationTests.cs(233,0): at LibraryImportGenerator.UnitTests.IncrementalGenerationTests.GeneratorRun_WithNewCompilation_DoesNotKeepOldCompilationAlive(String source)
        /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(37,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)

Error Message

true only for clear infra flakes. ExcludeConsoleLog skips helix log scanning. -->

{
  "ErrorMessage": ["DoesNotKeepOldCompilationAlive", "Assert.False() Failure"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Additional context

  • Pipeline: runtime-libraries-interpreter (definition 330)
  • Platforms: osx-arm64, linux-x64 (observed on both)
  • Test: LibraryImportGenerator.UnitTests.IncrementalGenerationTests.GeneratorRun_WithNewCompilation_DoesNotKeepOldCompilationAlive
  • The test checks that old Roslyn compilations are not kept alive (weak reference becomes null). Under the interpreter, GC collection timing differs, causing the weak reference to remain alive.
  • Previously filed as GeneratorRun_WithNewCompilation_DoesNotKeepOldCompilationAlive failed in CI #76826 (closed 2022-10-10). This is a recurrence under the newer runtime-libraries-interpreter pipeline.

First build it occurred


Filed by ci-failure-scan, which scans dnceng-public outer-loop pipelines on main and converts stable failures into KBEs and test-disable PRs. Comment here or on the workflow file to suggest changes; ci-failure-scan-feedback reads in-scope feedback daily and opens (or updates) a PR with prompt edits.

Generated by CI Outer-Loop Failure Scanner · ● 85.3M ·

Report

Summary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-Interop-coreclrblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions