Skip to content

Commit

Permalink
[workload-testing] Add properties for nuget.config path, and target t… (
Browse files Browse the repository at this point in the history
dotnet#99277)

* [workload-testing] Add properties for nuget.config path, and target to run the main target after

* [workload-testing] build the dependencies before installing the sdk

* CI: fix paths to trigger wbt

* Update src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets

Co-authored-by: Marek Fišera <mara@neptuo.com>

* Update src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets

* Update src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets

* fix build

---------

Co-authored-by: Marek Fišera <mara@neptuo.com>
  • Loading branch information
radical and maraf committed Mar 6, 2024
1 parent 9d59bf6 commit 4c39348
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions eng/pipelines/common/evaluate-default-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parameters:
src/mono/nuget/Microsoft.NET.Runtime.wasm.Sample.Mono/*
src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/*
src/mono/nuget/Microsoft.NETCore.BrowserDebugHost.Transport/*
src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/*
src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/**/*
src/mono/nuget/Microsoft.NET.Workload*
src/mono/sample/wasm/*
src/mono/browser/*
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
- eng/testing/scenarios/BuildWasmAppsJobsList.txt
- eng/testing/tests.browser.targets
- eng/testing/tests.was*.targets
- src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/WorkloadTesting.Core.targets
- src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets
- eng/testing/workloads-browser.targets
- eng/testing/workloads-testing.targets
- eng/testing/workloads-wasi.targets
Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
exclude:
- eng/testing/scenarios/BuildWasiAppsJobsList.txt
- eng/testing/scenarios/BuildWasmAppsJobsList.txt
src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/WorkloadTesting.Core.targets
src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets
- eng/testing/workloads-browser.targets
- eng/testing/workloads-testing.targets
- eng/testing/workloads-wasi.targets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

<SdkWithWorkloadStampPath>$(SdkWithWorkloadForTestingPath)version-$(SdkVersionForWorkloadTesting).stamp</SdkWithWorkloadStampPath>
<SdkWithWorkload_WorkloadStampPath>$(SdkWithWorkloadForTestingPath)workload.stamp</SdkWithWorkload_WorkloadStampPath>

<TemplateNuGetConfigPathForWorkloadTesting Condition="'$(TemplateNuGetConfigPathForWorkloadTesting)' == '' and '$(RepoRoot)' != ''">$(RepoRoot)NuGet.config</TemplateNuGetConfigPathForWorkloadTesting>
<InstallWorkloadUsingArtifactsAfterThisTarget Condition="'$(InstallWorkloadUsingArtifactsAfterThisTarget)' == ''">ArchiveTests</InstallWorkloadUsingArtifactsAfterThisTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(InstallWorkloadForTesting)' == 'true'">
Expand All @@ -25,12 +28,12 @@
<PreparePackagesForWorkloadInstall Condition="'$(PreparePackagesForWorkloadInstall)' == ''">true</PreparePackagesForWorkloadInstall>
<InstallWorkloadUsingArtifactsDependsOn>
$(InstallWorkloadUsingArtifactsDependsOn);
GetNuGetsToBuildForWorkloadTesting;
_PreparePackagesForWorkloadInstall;
ProvisionDotNetForWorkloadTesting;
_GetDotNetVersion;
_FirstDotNetRun;
_SetPackageVersionForWorkloadsTesting;
GetNuGetsToBuildForWorkloadTesting;
_PreparePackagesForWorkloadInstall;
GetWorkloadInputs;
_InstallWorkloads
</InstallWorkloadUsingArtifactsDependsOn>
Expand Down Expand Up @@ -160,7 +163,7 @@
AssemblyFile="$(WorkloadBuildTasksAssemblyPath)" />

<Target Name="InstallWorkloadUsingArtifacts"
AfterTargets="ArchiveTests"
AfterTargets="$(InstallWorkloadUsingArtifactsAfterThisTarget)"
DependsOnTargets="$(InstallWorkloadUsingArtifactsDependsOn)"
Condition="'$(InstallWorkloadForTesting)' == 'true'" />

Expand Down Expand Up @@ -198,7 +201,7 @@
VersionBandForManifestPackages="$(VersionBandForManifestPackages)"
LocalNuGetsPath="$(BuiltNugetsDir)"
ExtraWorkloadInstallCommandArguments="$(ExtraWorkloadInstallCommandArguments)"
TemplateNuGetConfigPath="$(RepoRoot)NuGet.config"
TemplateNuGetConfigPath="$(TemplateNuGetConfigPathForWorkloadTesting)"
SdkWithNoWorkloadInstalledPath="$(_SdkWithNoWorkloadPath)"
IntermediateOutputPath="$(ArtifactsObjDir)"
SkipTempDirectoryCleanup="$(SkipTempDirectoryCleanup)"
Expand Down

0 comments on commit 4c39348

Please sign in to comment.