-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Revert "Revert "Move hosting tests to XUnit 3"" #121072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 8e20ce4.
|
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov |
|
@jkoritzinsky Looks like the tests are trying to pull the host from NuGet, but I would expect the host to be part of our bootstrap. Is that correct? Or do we not yet build the host in the bootstrap? |
|
It looks like we do build the host, but we don't hook up the right logic in targetingpacks.targets for the bootstrapped apphost to be found. This target needs to be updated: runtime/eng/targetingpacks.targets Line 136 in 5efa15f
It should do something like the target for the ref/targeting packs (use runtime/eng/targetingpacks.targets Lines 97 to 104 in 5efa15f
|
eng/targetingpacks.targets
Outdated
| <PropertyGroup Condition="'$(UseBootstrapLayout)' != 'true'"> | ||
| <LocalRefPackDir>$(MicrosoftNetCoreAppRefPackDir)</LocalRefPackDir> | ||
| <LocalRuntimePackDir>$(MicrosoftNetCoreAppRuntimePackDir)</LocalRuntimePackDir> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(UseBootstrapLayout)' == 'true'"> | ||
| <LocalRefPackDir>$(BootstrapRefPackDir)</LocalRefPackDir> | ||
| <LocalRuntimePackDir>$(BootstrapRuntimePackDir)</LocalRuntimePackDir> | ||
| </PropertyGroup> | ||
| <PropertyGroup> | ||
| <AppHostSourcePath>$(LocalAppHostPath)</AppHostSourcePath> | ||
| <SingleFileHostSourcePath>$(LocalSingleFileHostPath)</SingleFileHostSourcePath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that we need to make sure that LocalAppHostPath is set to the bootstrapped one.
For the Host xunit tests, we should also set those projects to have UseBoootstrapLayout=true when UseBootstrap=true.
| @@ -1,5 +1,7 @@ | |||
| <Project> | |||
|
|
|||
| <Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" /> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we always want the apphost tests using the live apphost, or only on bootstrap (where we don't have an LKG host)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh is importing this target alone enough to override? I only intended to use the bootstrap apphost for platforms with no lkg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to explicitly opt out by setting UseLocalTargetingRuntimePack to false for the cases where we want to use the LKG.
Reverts #120997