-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update SDK to 6.0 Preview 5 #55283
Update SDK to 6.0 Preview 5 #55283
Conversation
Part of #55281
Tagging subscribers to this area: @dotnet/runtime-infrastructure Issue DetailsPart of #55281
|
@jkotas @LakshanF @agocke @vitek-karas - The trimming test failures on Windows appear to be a bad bug with trimmed coreclr apps. Error
Comparing working to non-workingIn the "working" version, CoreLib contains the DispatchWrapper class. In the "non-working" version, DispatchWrapper is gone. Change that caused itIn Preview5, we are setting more feature switches by default, specifically we are defaulting I'm opening an issue for this now. |
I've opened #55600 for the windows trimming failures. The tests caught a bug in our product. |
@eerhardt can we turn off this feature in order to unblock this pr ? |
One quick way to do that is to set runtime/eng/testing/linker/project.csproj.template Lines 14 to 18 in 14854e2
|
Yes, this seems like a good solution to unblock the infra change. |
hmm, now newtonsoft is missing? |
The dotnet-linker-tests wasm leg is failing due to:
@lewing @radical @SamMonoRT - any thoughts? Why would this error start happening by upgrading the SDK from preview4 to preview5? Looks like it isn't just the trimming tests, I see it on the other wasm legs: |
Yes. This is likely going to be tricky. |
cc @radekdoulik |
For in-tree builds, and tests we don't want to use workloads from dotnet being used to build these. For the projects being built on the build machine, we can disable them via `Directory.Build.props`, and wasm's InTree/LocalBuild props. But for projects that get built on helix, eg. the runtime tests, we are setting the property values as environment variables.
Hopefully, this will fix the breakage. |
@agocke @vitek-karas - the installer host model tests are now failing:
|
@@ -15,6 +15,8 @@ | |||
<TargetingPackDir>{TargetingPackDir}</TargetingPackDir> | |||
<NETCoreAppMaximumVersion>{NetCoreAppMaximumVersion}</NETCoreAppMaximumVersion> | |||
<MicrosoftNETCoreAppVersion>{MicrosoftNETCoreAppVersion}</MicrosoftNETCoreAppVersion> | |||
<!-- Workaround issue: https://github.com/dotnet/runtime/issues/55600 --> | |||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> |
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.
This can be reverted now that #55756 is merged.
In preview5, the workload manifest overrides `$(UsingBrowserRuntimeWorkload)` setting, so pass it on the command line. ``xml <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'"> <UsingBrowserRuntimeWorkload Condition="'$(RunAOTCompilation)' == 'true' or '$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'" >true</UsingBrowserRuntimeWorkload> <UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''" >$(WasmNativeWorkload)</UsingBrowserRuntimeWorkload> </PropertyGroup> ```
In P5 we don't generate .runtimeconfig.dev.json anymore. Some tests started to fail because they relied on the .runtime.dev.json to include local nuget cache in the probing paths. I changed one of those tests to force-generate .runtimeconfig.dev.json as for the tested scenario it seems to make sense. For the other test I modified it to copy the necessary dependency into the right location instead.
I have a fix for the host tests here: https://github.com/vitek-karas/runtime/tree/FixHostTests. |
Wasm/windows:
@radekdoulik any idea about why this might be timing out?
|
Known Failure #55999 |
* Update SDK to 6.0 Preview 6 Part of #55281 * Enable COM support to work around missing symbols in tests * Update eng/testing/linker/project.csproj.template * Disable the workload targets * Disable workloads for wasm builds For in-tree builds, and tests we don't want to use workloads from dotnet being used to build these. For the projects being built on the build machine, we can disable them via `Directory.Build.props`, and wasm's InTree/LocalBuild props. But for projects that get built on helix, eg. the runtime tests, we are setting the property values as environment variables. * Fix setting envvars for disabling workloads * Another attempt to fix wasm tests In preview5, the workload manifest overrides `$(UsingBrowserRuntimeWorkload)` setting, so pass it on the command line. ``xml <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'"> <UsingBrowserRuntimeWorkload Condition="'$(RunAOTCompilation)' == 'true' or '$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'" >true</UsingBrowserRuntimeWorkload> <UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''" >$(WasmNativeWorkload)</UsingBrowserRuntimeWorkload> </PropertyGroup> ``` * Fix host tests after upgrade to P5 In P5 we don't generate .runtimeconfig.dev.json anymore. Some tests started to fail because they relied on the .runtime.dev.json to include local nuget cache in the probing paths. I changed one of those tests to force-generate .runtimeconfig.dev.json as for the tested scenario it seems to make sense. For the other test I modified it to copy the necessary dependency into the right location instead. * Fix up reflection to private FileStatus field * Disable workload resolver for wasm.build.tests, EMSDK run * Disable workloads for wasm with MSBuildEnableWorkloadResolver=false everywhere * remove linker workaround * [wasm] Remove args unnecessary for disabling workloads * Pass MSBuildEnableWorkloadResolver property to individual trimming projects Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com> Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com> Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Ankit Jain <radical@gmail.com> Co-authored-by: vitek-karas <vitek.karas@microsoft.com> Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com> Co-authored-by: Anirudh Agnihotry <anirudhagnihotry098@gmail.com>
Part of #55281