Skip to content

Update DictionaryExpansion test to use ConditionalFact(EmitSupported) - #133574

Merged
MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-2
Sep 10, 2026
Merged

MichalStrehovsky merged 1 commit into
mainfrom
MichalStrehovsky-patch-2

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Resolves dotnet/runtimelab#154. Nothing else left.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟡 Changes recommended

Skipping the entire test when Reflection.Emit is unavailable likely drops non-Emit coverage that could still run, and the test should ideally be split to preserve that coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the DictionaryExpansion loader/classloader test to be gated by Reflection.Emit availability, replacing the previous NativeAOT-specific skip with ConditionalFact(Utilities.IsReflectionEmitSupported) so the test is skipped on any runtime/configuration where dynamic code isn’t supported.

Changes:

  • Removed the NativeAOT ActiveIssue gate for runtimelab#154.
  • Replaced [Fact] with [ConditionalFact(typeof(Utilities), nameof(Utilities.IsReflectionEmitSupported))] for the test entrypoint while keeping the Mono Mini/FullAOT ActiveIssue.
File summaries
File Description
src/tests/Loader/classloader/DictionaryExpansion/DictionaryExpansion.cs Gates the test entrypoint on Reflection.Emit support via ConditionalFact.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

@MichalStrehovsky
MichalStrehovsky merged commit 4fe074f into main Sep 10, 2026
86 of 90 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the MichalStrehovsky-patch-2 branch September 10, 2026 21:53
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 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.

Tests that need to be triaged for their Ref.Emit use

3 participants