-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Misc follow up improvements for workloads testing (#55647)
* [wasm] Move UseMonoRuntime=true to WasmApp.props * Move workloads installation for testing bits to .. `src/libraries/workloads-testing.targets`. * [wasm] EmccCompile: don't log `stderr` messages as warnings emcc emits some (debug?) messages on stderr too, which are not always errors. Emitting them as warning can be break the build too, when running with warningsAsErrors . * [wasm] Fix helix work item prefix * improve readability of messages from parallel EmccCompile * Improve emscripten version mismatch message, and convert to a warning * Fix typo, so WBT runs can be differentiated correctly
- Loading branch information
Showing
10 changed files
with
146 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<Project> | ||
<Target Name="ProvisionSdkForWorkloadTesting" Condition="!Exists($(SdkForWorkloadTestingStampPath)) and '$(InstallWorkloadForTesting)' == 'true'"> | ||
<Error Text="%24(SdkPathForWorkloadTesting) is not set" Condition="'$(SdkPathForWorkloadTesting)' == ''" /> | ||
<Error Text="%24(SdkVersionForWorkloadTesting) is not set" Condition="'$(SdkVersionForWorkloadTesting)' == ''" /> | ||
|
||
<Message Text="** Installing sdk $(SdkVersionForWorkloadTesting) for workload based tests" Importance="High" /> | ||
|
||
<RemoveDir Directories="$(SdkPathForWorkloadTesting)" /> | ||
<MakeDir Directories="$(SdkPathForWorkloadTesting)" /> | ||
|
||
<PropertyGroup> | ||
<_DotNetInstallScriptPath Condition="!$([MSBuild]::IsOSPlatform('windows'))">$(DOTNET_INSTALL_DIR)/dotnet-install.sh</_DotNetInstallScriptPath> | ||
<_DotNetInstallScriptPath Condition=" $([MSBuild]::IsOSPlatform('windows'))">$(RepoRoot).dotnet\dotnet-install.ps1</_DotNetInstallScriptPath> | ||
</PropertyGroup> | ||
|
||
<Exec Condition="!$([MSBuild]::IsOSPlatform('windows'))" | ||
Command="chmod +x $(_DotNetInstallScriptPath); $(_DotNetInstallScriptPath) -i $(SdkPathForWorkloadTesting) -v $(SdkVersionForWorkloadTesting)" /> | ||
|
||
<Exec Condition="$([MSBuild]::IsOSPlatform('windows'))" | ||
Command='powershell -ExecutionPolicy ByPass -NoProfile -command "& $(_DotNetInstallScriptPath) -InstallDir $(SdkPathForWorkloadTesting) -Version $(SdkVersionForWorkloadTesting)"' /> | ||
|
||
<WriteLinesToFile File="$(SdkForWorkloadTestingStampPath)" Lines="" Overwrite="true" /> | ||
</Target> | ||
|
||
<Target Name="GetWorkloadInputs"> | ||
<ItemGroup> | ||
<AvailableNuGetsInArtifacts Include="$(LibrariesShippingPackagesDir)\*.nupkg" /> | ||
</ItemGroup> | ||
|
||
<Error Text="Cannot find any nupkg files in $(LibrariesShippingPackagesDir), needed for workloads" Condition="@(AvailableNuGetsInArtifacts->Count()) == 0" /> | ||
</Target> | ||
|
||
<UsingTask Condition="'$(InstallWorkloadForTesting)' == 'true'" | ||
TaskName="Microsoft.Workload.Build.Tasks.InstallWorkloadFromArtifacts" | ||
AssemblyFile="$(WorkloadBuildTasksAssemblyPath)" /> | ||
|
||
<UsingTask Condition="'$(InstallWorkloadForTesting)' == 'true'" | ||
TaskName="GenerateFileFromTemplate" | ||
AssemblyFile="$(WorkloadBuildTasksAssemblyPath)" /> | ||
|
||
<Target Name="InstallWorkloadUsingArtifacts" | ||
AfterTargets="ArchiveTests" | ||
DependsOnTargets="ProvisionSdkForWorkloadTesting;GetWorkloadInputs" | ||
Inputs="@(AvailableNuGetsInArtifacts)" | ||
Outputs="$(WorkloadStampFile)" | ||
Condition="'$(InstallWorkloadForTesting)' == 'true'"> | ||
|
||
<ItemGroup> | ||
<_PropsForAOTCrossBuild Include="TestingWorkloads=true" /> | ||
<_PropsForAOTCrossBuild Include="Configuration=$(Configuration)" /> | ||
<_PropsForAOTCrossBuild Include="TargetOS=Browser" /> | ||
<_PropsForAOTCrossBuild Include="TargetArchitecture=wasm" /> | ||
<_PropsForAOTCrossBuild Include="ContinuousIntegrationBuild=$(ContinuousIntegrationBuild)" /> | ||
|
||
<_PropsForAOTCrossBuild Include="RuntimeIdentifier=$(NETCoreSdkRuntimeIdentifier)" /> | ||
<_PropsForAOTCrossBuild Include="TargetCrossRid=$(RuntimeIdentifier)" /> | ||
</ItemGroup> | ||
|
||
<Exec Command="dotnet build -bl -restore -t:Pack @(_PropsForAOTCrossBuild -> '-p:%(Identity)', ' ') Microsoft.NETCore.App.MonoCrossAOT.sfxproj" | ||
WorkingDirectory="$(InstallerProjectRoot)pkg/sfx/Microsoft.NETCore.App" /> | ||
|
||
<ItemGroup> | ||
<_NuGetSourceForWorkloads Include="dotnet6" Value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" /> | ||
<_BuiltNuGets Include="$(LibrariesShippingPackagesDir)\*.nupkg" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<!-- Eg. Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm.6.0.0-dev.nupkg --> | ||
<_AOTCrossNuGetPath>$(LibrariesShippingPackagesDir)Microsoft.NETCore.App.Runtime.AOT.$(NETCoreSdkRuntimeIdentifier).Cross.$(RuntimeIdentifier).$(PackageVersion).nupkg</_AOTCrossNuGetPath> | ||
</PropertyGroup> | ||
|
||
<Error Text="Could not find cross compiler nupkg at $(_AOTCrossNuGetPath). Found packages: @(_BuiltNuGets)" | ||
Condition="!Exists($(_AOTCrossNuGetPath))" /> | ||
|
||
<Message Text="Packages found in $(LibrariesShippingPackagesDir): @(_BuiltNuGets)" Importance="Low" /> | ||
|
||
<InstallWorkloadFromArtifacts | ||
WorkloadId="@(WorkloadIdForTesting)" | ||
VersionBand="$(SdkBandVersion)" | ||
LocalNuGetsPath="$(LibrariesShippingPackagesDir)" | ||
ExtraNuGetSources="@(_NuGetSourceForWorkloads)" | ||
SdkDir="$(SdkPathForWorkloadTesting)" /> | ||
|
||
<WriteLinesToFile File="$(WorkloadStampFile)" Lines="" Overwrite="true" /> | ||
</Target> | ||
</Project> |
4 changes: 0 additions & 4 deletions
4
src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/Sdk/Sdk.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<UseMonoRuntime Condition="'$(RuntimeIdentifier)' == 'Browser-wasm'">true</UseMonoRuntime> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)\RuntimeConfigParserTask.props" /> | ||
<Import Project="$(MSBuildThisFileDirectory)\RuntimeComponentManifest.props" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.