Skip to content

Disable CustomReflectionContextExamples.AddCustomAttribute on NativeAOT via existing tracking issue - #129550

Merged
MichalStrehovsky merged 2 commits into
mainfrom
copilot/update-nativeaot-tests
Jun 18, 2026
Merged

MichalStrehovsky merged 2 commits into
mainfrom
copilot/update-nativeaot-tests

Conversation

Copilot AI commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

This updates System.Reflection.Context tests to suppress a newly failing NativeAOT case under the existing tracking issue pattern already used in this test area. The change is scoped to a single test and keeps behavior unchanged on non-NativeAOT runtimes.

  • Scope

    • Added a NativeAOT-only ActiveIssue annotation to CustomReflectionContextExamples.AddCustomAttribute in:
      • /home/runner/work/runtime/runtime/src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs
  • Pattern alignment

    • Reused the same issue and gating expression already used by related tests in CustomReflectionContextTests.cs (#73356 + PlatformDetection.IsNativeAot).
  • Code change

    [Fact]
    [ActiveIssue("https://github.com/dotnet/runtime/issues/73356", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot))]
    public static void AddCustomAttribute()

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Copilot AI requested review from Copilot and removed request for Copilot June 18, 2026 00:24
Copilot AI changed the title [WIP] Update System.Reflection.Context tests to disable failing NativeAOT test Disable CustomReflectionContextExamples.AddCustomAttribute on NativeAOT via existing tracking issue Jun 18, 2026
Copilot AI requested a review from MichalStrehovsky June 18, 2026 00:25
@MichalStrehovsky
MichalStrehovsky marked this pull request as ready for review June 18, 2026 01:32
Copilot AI review requested due to automatic review settings June 18, 2026 01:32
@MichalStrehovsky

Copy link
Copy Markdown
Member

@dotnet/ilc-contrib could someone have a look please? the new test is failing all the native AOT libs legs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the System.Reflection.Context test suite to skip the CustomReflectionContextExamples.AddCustomAttribute example test when running under NativeAOT, using the existing [ActiveIssue] + PlatformDetection.IsNativeAot pattern already present in this test area.

Changes:

  • Added a NativeAOT-only [ActiveIssue] annotation to CustomReflectionContextExamples.AddCustomAttribute() to suppress a newly failing NativeAOT case while leaving non-NativeAOT behavior unchanged.

@MichalStrehovsky

Copy link
Copy Markdown
Member

/ba-g arm64 Windows helix testing is known to be dead

@MichalStrehovsky
MichalStrehovsky merged commit 7cd0426 into main Jun 18, 2026
86 of 88 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the copilot/update-nativeaot-tests branch June 18, 2026 05:35
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 19, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
…eAOT via existing tracking issue (#129550)

This updates `System.Reflection.Context` tests to suppress a newly
failing NativeAOT case under the existing tracking issue pattern already
used in this test area. The change is scoped to a single test and keeps
behavior unchanged on non-NativeAOT runtimes.

- **Scope**
- Added a NativeAOT-only `ActiveIssue` annotation to
`CustomReflectionContextExamples.AddCustomAttribute` in:
-
`/home/runner/work/runtime/runtime/src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs`

- **Pattern alignment**
- Reused the same issue and gating expression already used by related
tests in `CustomReflectionContextTests.cs` (`#73356` +
`PlatformDetection.IsNativeAot`).

- **Code change**
  ```csharp
  [Fact]
[ActiveIssue("#73356",
typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot))]
  public static void AddCustomAttribute()
  ```

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: MichalStrehovsky <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants