Skip to content
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

[main] Update dependencies from dotnet/runtime #34522

Merged
merged 18 commits into from
Aug 13, 2023

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Aug 8, 2023

This pull request updates the following dependencies

From https://github.com/dotnet/runtime

  • Subscription: aa69f164-2492-460a-3914-08d8e9750bf8
  • Build: 20230813.2
  • Date Produced: August 13, 2023 3:38:16 PM UTC
  • Commit: af651f48d07c87c94e1225859e63e919719b687b
  • Branch: refs/heads/main

Coherency Updates

The following updates ensure that dependencies with a CoherentParentDependency
attribute were produced in a build used as input to the parent dependency's build.
See Dependency Description Format

  • Coherency Updates:
    • Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport: from 8.0.0-rc.1.23402.3 to 8.0.0-rc.1.23411.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)

…0808.4

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23408.4
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CodeFlow untriaged Request triage from a team member labels Aug 8, 2023
…0808.8

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23408.8
@dotnet-maestro
Copy link
Contributor Author

dotnet-maestro bot commented Aug 8, 2023

Notification for subscribed users from https://github.com/dotnet/runtime:

@dotnet/dnr-codeflow

Action requested: Please take a look at this failing automated dependency-flow pull request's checks; failures may be related to changes which originated in your repo.

  • This pull request contains changes from your source repo (https://github.com/dotnet/runtime) and seems to have failed checks in this PR. Please take a peek at the failures and comment if they seem relevant to your changes.
  • If you're being tagged in this comment it is due to an entry in the related Maestro Subscription of the Build Asset Registry. If you feel this entry has added your GitHub login or your GitHub team in error, please update the subscription to reflect this.
  • For more details, please read the Arcade Darc documentation

…0808.14

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23408.14
@anatawa12
Copy link
Contributor

anatawa12 commented Aug 9, 2023

Tests.GivenThatWeWantToBuildAComServerLibrary.It_fails_to_embed_clsid_when_not_on_windows

It looks this test failure is expected failure with dotnet/runtime#89303. I'm going to fix the test in #34394.

Microsoft.DotNet.ShellShim.Tests.AppHostShellShimMakerTests.GivenNonWindowsMachineWhenCallWithWpfDllItCanCreateShimWithoutThrow

It looks this test failure is AppHostShellShimMaker's bug. AppHostShellShimMaker sets windowsGraphicalUserInterface true even if AppHost is not PE file. AppHostWriter throws exception in this case.
I'm going to create another pull request to fix AppHostShellShimMaker.: #34534

@elinor-fung
Copy link
Member

For the GivenThatWeWantToBuildAComServerLibrary.It_fails_when_typelib_is_invalid failure on the Windows leg, I think we should update ComHost in runtime to just check for the byte count being 0 and throw throw InvalidTypeLibraryException - it was relying on the Win32 UpdateResource function failing with E_INVALIDARG for that case (which will now never happen): https://github.com/dotnet/runtime/blob/main/src/installer/managed/Microsoft.NET.HostModel/ComHost/ComHost.cs#L70-L73

…0808.18

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23408.18
dotnet-maestro bot and others added 2 commits August 9, 2023 12:40
…0809.1

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23409.1
@elinor-fung
Copy link
Member

WasmBuildIntegrationTest failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=368839&view=ms.vss-test-web.build-test-results-tab&runId=7817070&resultId=103322&paneView=debug

Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmBuildIntegrationTest.Build_SatelliteAssembliesAreCopiedToBuildOutput [FAIL]
  Expected collection to be empty because the generated manifest should match the expected baseline.
  
  If the difference in baselines is expected, please re-generate the baselines.
  Start by ensuring you're dogfooding the SDK from the current branch (dotnet --version should be '*.0.0-dev').
      If you're not on the dogfood sdk, from the root of the repository run:
          1. dotnet clean
          2. .\restore.cmd or ./restore.sh
          3. .\build.cmd ./build.sh
          4. .\eng\dogfood.cmd or . ./eng/dogfood.sh
  
  Then, using the dogfood SDK run the .\src\RazorSdk\update-test-baselines.ps1 script.
  
  , but found {"
  ==================================================
  
  For ${ProjectPath}\blazorwasm\bin\Debug\${Tfm}\wwwroot\_framework\es-ES\classlibrarywithsatelliteassemblies.resources.wasm:
  
  Expected manifest OriginalItemSpec of ${ProjectPath}\blazorwasm\obj\Debug\${Tfm}\webcil\classlibrarywithsatelliteassemblies.resources.wasm but found ${ProjectPath}\blazorwasm\obj\Debug\${Tfm}\webcil\es-ES\classlibrarywithsatelliteassemblies.resources.wasm.
  
  =================================================="}.
  Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
       at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
       at FluentAssertions.Execution.GivenSelector`1.FailWith(String message, Object[] args)
       at FluentAssertions.Collections.GenericCollectionAssertions`3.BeEmpty(String because, Object[] becauseArgs)
    /_/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(104,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.CompareGroup(String group, StaticWebAsset[] manifestAssets, StaticWebAsset[] expectedAssets)
    /_/src/Tests/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(60,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.AssertManifest(StaticWebAssetsManifest expected, StaticWebAssetsManifest manifest)
    /_/src/Tests/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs(243,0): at Microsoft.NET.Sdk.Razor.Tests.AspNetSdkBaselineTest.AssertManifest(StaticWebAssetsManifest manifest, StaticWebAssetsManifest expected, String suffix, String runtimeIdentifier, String name)
    /_/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs(534,0): at Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmBuildIntegrationTest.Build_SatelliteAssembliesAreCopiedToBuildOutput()

I'm guessing this is from dotnet/runtime#89600 and it is expected / the baselines need to be updated?

@maraf / @radical could you take a look?

…0809.6

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23409.6
@elinor-fung
Copy link
Member

The failures related to cross-platform resource updater have been addressed (thanks, @anatawa12).

Aside from #34522 (comment), there a bunch of other BlazorWebAssembly test failures now - for example: https://dev.azure.com/dnceng-public/public/_build/results?buildId=368960&view=ms.vss-test-web.build-test-results-tab&runId=7821590&resultId=103263&paneView=debug

Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmBuildIntegrationTest.Publish_WithBlazorWebAssemblyLoadAllGlobalizationData_SetsGlobalizationMode [FAIL]
  Expected dictionary {["icudt.dat"] = "sha256-tO5O5YzMTVSaKBboxAqezOQL9ewmupzV2JrB5Rkc8a4="} to contain key "icudt_EFIGS.dat".
  Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
       at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
       at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
       at FluentAssertions.Collections.GenericDictionaryAssertions`4.ContainKeys(IEnumerable`1 expected, String because, Object[] becauseArgs)
       at FluentAssertions.Collections.GenericDictionaryAssertions`4.ContainKey(TKey expected, String because, Object[] becauseArgs)
    /_/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs(474,0): at Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmBuildIntegrationTest.Publish_WithBlazorWebAssemblyLoadAllGlobalizationData_SetsGlobalizationMode()

@ilonatommy would this be related to the hybrid/full icu changes in dotnet/runtime#89771? Could you take a look?

dotnet-maestro bot and others added 3 commits August 10, 2023 01:41
…0809.16

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23409.16
…0809.17

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23409.17
@ilonatommy ilonatommy requested a review from a team as a code owner August 10, 2023 10:55
@ilonatommy
Copy link
Member

@ilonatommy would this be related to the hybrid/full icu changes in dotnet/runtime#89771? Could you take a look?

You are right, it is related. After that PR the expected behavior changed (less ICU files is loaded for each globalization option). Build_SatelliteAssembliesAreCopiedToBuildOutput failure is connected with ICU as well:

The following expected assets weren't found in the manifest: 
${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\_framework\\icudt_hybrid.dat.gz
\t${ProjectPath}\\blazorwasm\\obj\\Debug\\${Tfm}\\compressed\\_framework\\icudt.dat.gz
If the difference in baselines is expected, please re-generate the baselines
Start by ensuring you're dogfooding the SDK from the current branch (dotnet --version should be '*.0.0-dev').
If you're not on the dogfood sdk, from the root of the repository run:
        1. dotnet clean
        2. .\\restore.cmd or ./restore.sh
        3. .\\build.cmd ./build.sh
        4. .\\eng\\dogfood.cmd or . ./eng/dogfood.sh
Then, using the dogfood SDK run the .\\src\\RazorSdk\\update-test-baselines.ps1 script.</pre><pre>   at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.&lt;CompareAssetCounts&gt;g__ThrowAssetCountMismatchError|6_0(StaticWebAsset[] manifestAssets, StaticWebAsset[] expectedAssets) in C:\Users\itomkowicz\source\repos\sdk-fork\src\Tests\Microsoft.NET.Sdk.Razor.Tests\StaticWebAssetsBaselineComparer.cs:line 156

ilonatommy and others added 3 commits August 10, 2023 13:22
…ards - no full nor hybrid file."

This reverts commit 1a7fbda.
…0810.9

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23410.9
dotnet-maestro bot and others added 2 commits August 11, 2023 02:38
…0810.11

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23410.11
…0810.15

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23410.15
@v-wuzhai
Copy link
Member

@ilonatommy @marcpopMSFT I tried to update the baselines d043962 but still had some other tests fail, could you take a look?

@ilonatommy
Copy link
Member

but still had some other tests fail, could you take a look?

Looks like this is the PR: dotnet/runtime#89754 @radical, do you know how we can add workload installation command to the tests?

Expected command to pass but it did not.
 File Name: /tmp/helix/working/B57109C4/p/d/dotnet
 Arguments: msbuild /t:Publish /private/tmp/helix/working/B57109C4/w/AFE809E0/e/testExecutionDirectory/Publish_WithI---129F25F8_2/blazorwasm-minimal.csproj /restore
 Exit Code: 1
  StdOut:
 MSBuild version 17.6.1+8ffc3fe3d for .NET
     Determining projects to restore...
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools 
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore 

@elinor-fung
Copy link
Member

elinor-fung commented Aug 11, 2023

There's also some native AOT publish test failures on macOS only. Looks like the test is not finding the symbol file.

@agocke I think this is from dotnet/runtime#89358 - should tests be looking for .dsym instead of .dwarf on macOS now?

https://dev.azure.com/dnceng-public/public/_build/results?buildId=370794&view=ms.vss-test-web.build-test-results-tab&runId=7869216&resultId=103204&paneView=debug

Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAnAotApp.NativeAot_app_runs_in_release_with_no_config_when_PublishAot_is_enabled(targetFramework: "net8.0") [FAIL]
   Expected boolean to be true, but found False.
     Stack Trace:
        at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
        at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
        at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
        at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
        at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
        at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
        at FluentAssertions.Primitives.BooleanAssertions`1.BeTrue(String because, Object[] becauseArgs)
     /_/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAnAotApp.cs(213,0): at Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAnAotApp.NativeAot_app_runs_in_release_with_no_config_when_PublishAot_is_enabled(String targetFramework)
        at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

// There should be a debug file
File.Exists(publishedDebugFile).Should().BeTrue();

else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return ".dwarf";

@agocke
Copy link
Member

agocke commented Aug 11, 2023

Yes, sorry, this was me. Fixing.

@radical
Copy link
Member

radical commented Aug 11, 2023

but still had some other tests fail, could you take a look?

Looks like this is the PR: dotnet/runtime#89754 @radical, do you know how we can add workload installation command to the tests?

Expected command to pass but it did not.
 File Name: /tmp/helix/working/B57109C4/p/d/dotnet
 Arguments: msbuild /t:Publish /private/tmp/helix/working/B57109C4/w/AFE809E0/e/testExecutionDirectory/Publish_WithI---129F25F8_2/blazorwasm-minimal.csproj /restore
 Exit Code: 1
  StdOut:
 MSBuild version 17.6.1+8ffc3fe3d for .NET
     Determining projects to restore...
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools 
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore 

These tests set InvariantGlobalization=true. Is that expected to work without the workload?
cc @javiercn

@radical
Copy link
Member

radical commented Aug 11, 2023

but still had some other tests fail, could you take a look?

Looks like this is the PR: dotnet/runtime#89754 @radical, do you know how we can add workload installation command to the tests?

Expected command to pass but it did not.
 File Name: /tmp/helix/working/B57109C4/p/d/dotnet
 Arguments: msbuild /t:Publish /private/tmp/helix/working/B57109C4/w/AFE809E0/e/testExecutionDirectory/Publish_WithI---129F25F8_2/blazorwasm-minimal.csproj /restore
 Exit Code: 1
  StdOut:
 MSBuild version 17.6.1+8ffc3fe3d for .NET
     Determining projects to restore...
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: wasm-tools 
     /tmp/helix/working/B57109C4/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore 

These tests set InvariantGlobalization=true. Is that expected to work without the workload? cc @javiercn

I will open a PR for runtime to fix this.

@marcpopMSFT
Copy link
Member

We already have workload installs in some of the legs using a automated rollback file. Does that just need to be expanded to more legs?

@radical
Copy link
Member

radical commented Aug 11, 2023

We already have workload installs in some of the legs using a automated rollback file. Does that just need to be expanded to more legs?

No, this was a regression fixed in dotnet/runtime#90432 .

@radical
Copy link
Member

radical commented Aug 11, 2023

Looking at the failures, there is one that is different, and should not be due to wasm changes (log):

�[31;1m    Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAnAotApp.NativeAotSharedLib_only_runs_when_switch_is_enabled(targetFramework: "net8.0") [FAIL]
�[m�[37m      Expected command to pass but it did not.
�[m�[37m      File Name: /tmp/helix/working/ACA70954/p/d/dotnet
�[m�[37m      Arguments: msbuild /t:Publish /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/AotSharedLibraryPublish.csproj /restore
�[m�[37m      Exit Code: 1
�[m�[37m      StdOut:
�[m�[37m      MSBuild version 17.6.1+8ffc3fe3d for .NET
�[m�[37m        Determining projects to restore...
�[m�[37m        Restored /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/AotSharedLibraryPublish.csproj (in 362 ms).
�[m�[37m      /tmp/helix/working/ACA70954/p/d/sdk/8.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/AotSharedLibraryPublish.csproj]
�[m�[37m        AotSharedLibraryPublish -> /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/bin/Debug/net8.0/osx-x64/AotSharedLibraryPublish.dll
�[m�[37m        Generating native code
�[m�[37m        AotSharedLibraryPublish -> /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/bin/Debug/net8.0/osx-x64/publish/
�[m�[37m      /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.0-rc.1.23410.15/build/Microsoft.NETCore.Native.Publish.targets(117,5): error MSB3025: The source file "bin/Debug/net8.0/osx-x64/native/AotSharedLibraryPublish.dylib.dsym" is actually a directory.  The "Copy" task does not support copying directories. [/private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/AotSharedLibraryPublish.csproj]
�[m�[37m      StdErr:

@elinor-fung
Copy link
Member

elinor-fung commented Aug 11, 2023

Actual error from publish is: /private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.0-rc.1.23410.15/build/Microsoft.NETCore.Native.Publish.targets(117,5): error MSB3025: The source file "bin/Debug/net8.0/osx-x64/native/AotSharedLibraryPublish.dylib.dsym" is actually a directory. The "Copy" task does not support copying directories. [/private/tmp/helix/working/ACA70954/w/929C0880/e/testExecutionDirectory/NativeAotShar---BB97B19D_2/AotSharedLibraryPublish/AotSharedLibraryPublish.csproj]

@agocke - looks like it is also from dotnet/runtime#89358. I think it needs a fix in runtime?

@radical
Copy link
Member

radical commented Aug 12, 2023

dotnet-runtime-official build is broken, OneLocBuild is failing:

[03:30:28 ERR] Localization build failed.
System.AggregateException: One or more errors occurred. ---> System.Exception: Running LSBuild failed with exit codes '8'.
   at Microsoft.Localization.XLoc.Build.Local.ResponseManager.ExecuteAll(IDictionary`2 lsBuildPaths, CancellationToken cancelToken) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\ResponseManager.cs:line 139
   at Microsoft.Localization.XLoc.Build.Local.LSBuild.RunBuild(Project project, Int64 index, CancellationToken cancellationToken) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\LSBuild.cs:line 191
   at Microsoft.Localization.XLoc.Build.Local.LSBuild.<>c__DisplayClass14_0.<Execute>b__0(Project project, ParallelLoopState state, Int64 index) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\LSBuild.cs:line 103
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`3 body)
   at Microsoft.Localization.XLoc.Build.Local.LSBuild.Execute(LocArtifact artifact, Settings settings, CancellationToken cancellationToken) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\LSBuild.cs:line 111
   at Microsoft.Localization.XLoc.Program.Execute(IEnumerable`1 artifactPaths, Boolean isLocalBuild) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Program.cs:line 160
   at Microsoft.Localization.XLoc.Program.Main(String[] args) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Program.cs:line 114
---> (Inner Exception #0) System.Exception: Running LSBuild failed with exit codes '8'.
   at Microsoft.Localization.XLoc.Build.Local.ResponseManager.ExecuteAll(IDictionary`2 lsBuildPaths, CancellationToken cancelToken) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\ResponseManager.cs:line 139
   at Microsoft.Localization.XLoc.Build.Local.LSBuild.RunBuild(Project project, Int64 index, CancellationToken cancellationToken) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\LSBuild.cs:line 191
   at Microsoft.Localization.XLoc.Build.Local.LSBuild.<>c__DisplayClass14_0.<Execute>b__0(Project project, ParallelLoopState state, Int64 index) in D:\Repos\ceapex\CEINTL\SWSys-Build-XLoc\src\XLoc\Build\Local\LSBuild.cs:line 103
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---

@lewing
Copy link
Member

lewing commented Aug 12, 2023

OneLoc started failing in this range dotnet/runtime@786b987...64a6771

@lewing
Copy link
Member

lewing commented Aug 12, 2023

OneLoc started failing in this range dotnet/runtime@786b987...64a6771

my guess is that it is one of the arcade bumps in dotnet/runtime#90014 either one of the xliff updates like dotnet/xliff-tasks@a61cdec...d3553ca
or dotnet/arcade#13938 but I'm not familiar with this tooling.

cc @mmitche @NikolaMilosavljevic

@lewing lewing added the Blocked Issue is blocked on an external dependency label Aug 12, 2023
…0813.2

Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging.Console , Microsoft.NET.HostModel , Microsoft.NET.ILLink.Tasks , Microsoft.NETCore.App.Host.win-x64 , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHostResolver , Microsoft.NETCore.Platforms , System.CodeDom , System.Reflection.MetadataLoadContext , System.Resources.Extensions , System.Security.Cryptography.ProtectedData , System.ServiceProcess.ServiceController , System.Text.Encoding.CodePages , VS.Redist.Common.NetCore.SharedFramework.x64.8.0 , VS.Redist.Common.NetCore.TargetingPack.x64.8.0
 From Version 8.0.0-rc.1.23408.3 -> To Version 8.0.0-rc.1.23413.2

Dependency coherency updates

Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
 From Version 8.0.0-rc.1.23402.3 -> To Version 8.0.0-rc.1.23411.2 (parent: Microsoft.NETCore.App.Runtime.win-x64
@dotnet-maestro dotnet-maestro bot merged commit fc2d7e0 into main Aug 13, 2023
19 checks passed
@dotnet-maestro dotnet-maestro bot deleted the darc-main-039f5186-d6b1-4109-985c-47a35e3f6316 branch August 13, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeFlow Blocked Issue is blocked on an external dependency release blocking untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants