Skip to content

Conversation

@elinor-fung
Copy link
Member

Realized these still existed while doing #118418. Multi-level lookup was disabled in 7.0 with no option to enable for these APIs. These tests validating that it is actually disabled are no longer useful.

cc @dotnet/appmodel @AaronRobinsonMSFT

Copilot AI review requested due to automatic review settings August 15, 2025 20:29
@elinor-fung elinor-fung added test-enhancement Improvements of test source code area-Host labels Aug 15, 2025
Copy link
Contributor

Copilot AI left a comment

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 removes multi-level lookup tests for NativeHostApis that are no longer needed. Multi-level lookup was disabled in .NET 7.0 with no option to re-enable for these APIs, making the tests that validate this behavior obsolete.

Key Changes

  • Removes multi-level lookup test methods and related test infrastructure
  • Simplifies the test fixture by removing global SDK and framework directory setup
  • Streamlines the test host application by removing multi-level lookup environment variable handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/installer/tests/HostActivation.Tests/NativeHostApis.cs Removes multi-level lookup test methods, simplifies SdkAndFrameworkFixture by removing global directory setup, and refactors SDK directory creation
src/installer/tests/Assets/Projects/HostApiInvokerApp/Program.cs Removes multi-level lookup environment variable handling and test behavior path selection logic

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@elinor-fung elinor-fung merged commit a5a17a6 into dotnet:main Aug 18, 2025
81 checks passed
@elinor-fung elinor-fung deleted the native-host-apis-tests-mll branch August 18, 2025 15:54
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Host test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants