Skip to content

[Crossgen2 CI] GenericContextTest and GenericContextTestDefaultImp fail in Composite R2R mode on all platforms #51

@github-actions

Description

@github-actions

Failure Details

  • Pipelines: runtime-coreclr crossgen2-composite, runtime-coreclr crossgen2 outerloop
  • Builds:
  • Failed Tests: GenericContextTest and GenericContextTestDefaultImp
  • Configuration: All platforms in Composite and R2R_Composite modes
  • Error Category: test-failure
  • First seen: 2026-04-22 (not present in previous builds on 2026-04-21)

Failing Tests

Test Name Platform Mode
Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTest/GenericContextTest/GenericContextTest.cmd osx-arm64, osx-x64, linux-arm64, windows-x64, windows-arm64 Composite / R2R_Composite
Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTestDefaultImp/GenericContextTestDefaultImp/GenericContextTestDefaultImp.cmd osx-arm64, osx-x64, linux-arm64, windows-x64, windows-arm64 Composite / R2R_Composite

Error Output

These tests pass in non-composite R2R mode and in the runtime pipeline — the failure is specific to composite compilation.

Error details (from CI analysis)
Build 1390604 (crossgen2-composite):

coreclr Pri0 Runtime Tests Run Composite osx arm64 checked:
  error: Test Loader/.../GenericContextTest/GenericContextTest.cmd has failed.
  Console log: https://helix.dot.net/api/2019-06-17/jobs/74c2effd-b3a1-4978-a8ee-9cb42bbdacc6/workitems/Loader/console
  error: Test GenericContextTestDefaultImp/GenericContextTestDefaultImp.cmd has failed.

coreclr Pri0 Runtime Tests Run Composite osx x64 checked:
  error: Test GenericContextTest/GenericContextTest.cmd has failed.
  Console log: https://helix.dot.net/api/2019-06-17/jobs/3d53d041-b11d-4da6-9289-d6f25a60d4a0/workitems/Loader/console

coreclr Pri0 Runtime Tests Run Composite linux arm64 checked:
  error: Test GenericContextTest/GenericContextTest.cmd has failed.
  Console log: https://helix.dot.net/api/2019-06-17/jobs/86bb37e8-ab0b-47e7-967f-b741d79ab7f5/workitems/Loader/console

Build 1390569 (crossgen2 outerloop):
  Failed in R2R_Composite mode on: osx-x64, osx-arm64, windows-x64, linux-arm64, windows-arm64
  (linux-x64 was canceled)

Context

  • The tests exercise Static Virtual Methods with generic context resolution in a classloader scenario
  • Test source: src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/
  • This is a regression — these tests passed in the previous builds on 2026-04-21 (builds 1388594, 1388564) and only started failing on 2026-04-22
  • Not related to GC stress timeout issue dotnet/runtime#104633 (that is about timeout under GCStress, not a functional test failure in composite mode)
  • Does NOT reproduce in the runtime pipeline (non-R2R)

Recommended Action

This failure requires deeper investigation into why composite R2R compilation breaks the generic context resolution for static virtual methods. Please disable the failing tests by adding appropriate exclusion attributes:

  • Test project: src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTest/GenericContextTest.ilproj
  • Test project: src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTestDefaultImp/GenericContextTestDefaultImp.ilproj
  • Since these are IL-based projects (not xUnit), the disable mechanism should use the project-level exclusion approach (e.g., CLRTestTargetUnsupported in the .ilproj for composite modes)
  • The tests should only be disabled for Composite R2R configurations

Generated by Crossgen2 CI Failure Triage ·

  • expires on May 22, 2026, 2:38 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions