From 30b879924a47d8660d5f4b14ff581ce40ae076f2 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 28 Feb 2023 11:23:40 -0500 Subject: [PATCH] [release/8.0-preview2] Versions.props: Increment package versions for 6.0, and 7.0 (#82735) * Add support for skipping workloads testing for previous versions This will skip installing manifests for 6, and 7, for example, and install only install the latest ones. This is because on release branches the newest versions might not have public packages available yet. * Set $(WorkloadsTestPreviousVersions) in the yml .. based on the branch. Set it to `true` only for `main`. * Versions.props: Increment package versions for 6.0, and 7.0 * Set WorkloadsTestPreviousVersions=true by default * Set default for WorkloadsTestPreviousVersions --- eng/Versions.props | 7 ++++++- eng/pipelines/common/templates/wasm-build-tests.yml | 8 +++++++- eng/testing/tests.browser.targets | 12 +++++++----- src/libraries/Directory.Build.props | 2 +- src/libraries/sendtohelixhelp.proj | 2 +- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/eng/Versions.props b/eng/Versions.props index 1cb835aaf53..8da4fae40db 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -7,12 +7,17 @@ 0 0 8.0.100 - 7.0.3 + + 7.0.4 6.0.$([MSBuild]::Add($([System.Version]::Parse('$(PackageVersionNet7)').Build),11)) preview 2 -$(PreReleaseVersionLabel).$(PreReleaseVersionIteration) $(SdkBandVersion)$(WorkloadVersionSuffix) + + false $(MajorVersion).$(MinorVersion).0.0 diff --git a/eng/pipelines/common/templates/wasm-build-tests.yml b/eng/pipelines/common/templates/wasm-build-tests.yml index ff35e117583..28f5838466d 100644 --- a/eng/pipelines/common/templates/wasm-build-tests.yml +++ b/eng/pipelines/common/templates/wasm-build-tests.yml @@ -22,6 +22,12 @@ jobs: # map dependencies variables to local variables - name: alwaysRunVar value: ${{ parameters.alwaysRun }} + - name: workloadsTestPreviousVersionsVar + value: $[ + or( + eq(variables['Build.SourceBranchName'], 'main'), + eq(variables['System.PullRequest.TargetBranch'], 'main')) + ] - name: shouldRunOnDefaultPipelines value: $[ or( @@ -32,7 +38,7 @@ jobs: isExtraPlatforms: ${{ parameters.isExtraPlatformsBuild }} testGroup: innerloop nameSuffix: WasmBuildTests - buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:TestWasmBuildTests=true /p:TestAssemblies=false /p:BrowserHost=$(_hostedOs) + buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:TestWasmBuildTests=true /p:TestAssemblies=false /p:BrowserHost=$(_hostedOs) /p:WorkloadsTestPreviousVersions=$(workloadsTestPreviousVersionsVar) timeoutInMinutes: 180 condition: >- or( diff --git a/eng/testing/tests.browser.targets b/eng/testing/tests.browser.targets index 849a12e96a8..6ebd558014a 100644 --- a/eng/testing/tests.browser.targets +++ b/eng/testing/tests.browser.targets @@ -227,17 +227,19 @@ + Version="$(PackageVersionForWorkloadManifests)" + Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> + IgnoreErrors="$(WasmIgnoreNet6WorkloadInstallErrors)" + Condition="'$(WorkloadsTestPreviousVersions)' == 'true'" /> - - - + + + diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 3086bd2d304..f5c03d347e4 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -94,7 +94,7 @@ $(SdkWithNoWorkloadForTestingPath)version-$(SdkVersionForWorkloadTesting).stamp $(SdkWithNoWorkloadForTestingPath)workload.stamp - $(ArtifactsBinDir)dotnet-net7+latest\ + $(ArtifactsBinDir)dotnet-latest\ $(ArtifactsBinDir)dotnet-latest\ $([MSBuild]::NormalizeDirectory($(SdkWithWorkloadForTestingPath))) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index e51814d7909..ee53ea89b53 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -61,7 +61,7 @@ $(WaitForWorkItemCompletion) - dotnet-net7+latest + dotnet-latest dotnet-none -- GitLab