Skip to content

System.Collections.Immutable aren't runnable with trimming #108274

Open

Description

@MichalStrehovsky

#107872 added reflection to the test that cannot be statically analyzed. Native AOT outerloop testing has been on the floor ever since. I'm going to disable running all S.C.Immutable tests under native AOT on this issue to get outerloop green again.

Activity

  1. dotnet-policy-service commented on Sep 26, 2024

    @dotnet-policy-service
    Contributor

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

  2. eiriktsarpalis commented on Sep 26, 2024

    @eiriktsarpalis
    Member

    I think it should be fine to just disable the tests using reflection in Native AOT. They're there to validate certain non-functional invariants (e.g. whether the internal tree structures are always balanced) that we don't need to run on every platform (and ideally should be replaced with debug asserts at some point).

  3. lambdageek commented on Sep 26, 2024

    @lambdageek
    Member

    This might be a good place to use [UnsafeAccessor] instead of reflection

  4. MichalStrehovsky commented on Sep 26, 2024

    @MichalStrehovsky
    MemberAuthor

    I think it should be fine to just disable the tests using reflection in Native AOT

    The tests could also be annotated for trimming.

    This might be a good place to use [UnsafeAccessor] instead of reflection

    If we don't have to run these tests on Framework, it might. But I do see $(NetFrameworkMinimum) in the csproj.

  5. added this to the 10.0.0 milestone on Sep 30, 2024
  6. removed
    untriagedNew issue has not been triaged by the area owner
    on Sep 30, 2024
  7. modified the milestones: 10.0.0, Future on Jul 16, 2025
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

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions