Skip to content

[clr-ios] Disable Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests on Apple mobile#129514

Open
kotlarmilos wants to merge 2 commits into
dotnet:mainfrom
kotlarmilos:clr-ios-disable-externalcontainers-tests
Open

[clr-ios] Disable Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests on Apple mobile#129514
kotlarmilos wants to merge 2 commits into
dotnet:mainfrom
kotlarmilos:clr-ios-disable-externalcontainers-tests

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jun 17, 2026

Copy link
Copy Markdown
Member

On the aggressively-trimmed Apple-mobile/AOT Helix legs (e.g. iossimulator-arm64 CoreCLR), Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests discovers zero test cases because aggressive trimming strips the reflection-heavy third-party DI containers, so XHarness reports the run as a crash (Tests run: 0); this excludes the project from those configurations alongside its already-excluded sibling DI.Tests.

Fixes #129359

…ntainers.Tests on Apple mobile

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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 libraries test traversal exclusions to skip Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests under certain AOT/Helix configurations, aiming to avoid Apple-mobile/AOT test runs that end up executing zero tests.

Changes:

  • Add Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.csproj to the ProjectExclusions list under the existing AOT/Apple-mobile Helix exclusion ItemGroup.
Show a summary per file
File Description
src/libraries/tests.proj Adds an exclusion entry for the ExternalContainers DI test project in an AOT/Apple-mobile Helix-related exclusion group.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/libraries/tests.proj Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kotlarmilos

Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread src/libraries/tests.proj
<ItemGroup Condition="('$(TargetOS)' == 'iossimulator' or '$(TargetOS)' == 'tvossimulator' or '$(TargetOS)' == 'maccatalyst') and '$(RuntimeFlavor)' == 'CoreCLR' and '$(UseNativeAOTRuntime)' != 'true'">
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.Emit\tests\System.Reflection.Emit.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.Emit.ILGeneration\tests\System.Reflection.Emit.ILGeneration.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.DependencyInjection\tests\DI.External.Tests\Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.csproj" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it make sense to run legs without aggressive trimming to get coverage over the areas and have potentially more stable runs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good idea, I think we had aggressive trimming disabled on rolling builds. Let's create a tracking issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Infrastructure-coreclr Only use for closed issues os-ios Apple iOS

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[ci-scan] Test failure: DependencyInjection.ExternalContainers.Tests crash on iossimulator

3 participants