Skip to content

Commit fc7b570

Browse files
committed
fixup! Rename test env controlling and project test capabilities variables
1 parent 75c18df commit fc7b570

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

.github/actions/enumerate-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949
"/t:Build;ExtractTestClassNames"
5050
/bl:${{ github.workspace }}/artifacts/log/Debug/BuildTemplatesTests.binlog
5151
-p:ExtractTestClassNamesForHelix=true
52-
-p:RunHelixTests=true
52+
-p:PrepareForHelix=true
5353
-p:ExtractTestClassNamesPrefix=Aspire.Templates.Tests
5454
-p:InstallBrowsersForPlaywright=false
5555

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ jobs:
160160
CI: false
161161
run: >
162162
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }}
163-
/p:RunHelixTests=true
164-
/bl:${{ github.workspace }}/artifacts/log/Debug/RunHelixTests.binlog
163+
/p:PrepareForHelix=true
164+
/bl:${{ github.workspace }}/artifacts/log/Debug/PrepareForHelix.binlog
165165
166166
# Workaround for bug in Azure Functions Worker SDK. See https://github.com/Azure/azure-functions-dotnet-worker/issues/2969.
167167
- name: Rebuild for Azure Functions project

eng/Testing.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- See https://learn.microsoft.com/azure/devops/pipelines/build/variables#system-variables -->
2828
<IsAzdoCIRunner Condition=" '$(IsAzdoCIRunner)' == '' and '$(SYSTEM_TEAMPROJECT)' != '' ">true</IsAzdoCIRunner>
2929

30-
<IsAzdoHelixRunner Condition=" '$(IsAzdoHelixRunner)' == '' and '$(RunHelixTests)' == 'true' ">true</IsAzdoHelixRunner>
30+
<IsAzdoHelixRunner Condition=" '$(IsAzdoHelixRunner)' == '' and '$(PrepareForHelix)' == 'true' ">true</IsAzdoHelixRunner>
3131
</PropertyGroup>
3232

3333
<PropertyGroup>

eng/pipelines/templates/BuildAndTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
-restore -build
4747
-configuration ${{ parameters.buildConfig }}
4848
-pack
49-
/p:RunHelixTests=${{ lower(eq(parameters.runHelixTests, 'true')) }}
49+
/p:PrepareForHelix=${{ lower(eq(parameters.runHelixTests, 'true')) }}
5050
/bl:${{ parameters.repoLogPath }}/build.binlog
5151
$(_OfficialBuildIdArgs)
5252
displayName: Build

tests/Aspire.Playground.Tests/Aspire.Playground.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<ProjectReference Include="$(PlaygroundSourceDir)withdockerfile/WithDockerfile.AppHost/WithDockerfile.AppHost.csproj" />
9090
</ItemGroup>
9191

92-
<ItemGroup Condition="'$(RunHelixTests)' == 'true'" Label="Prepare archive dir for helix">
92+
<ItemGroup Condition="'$(PrepareForHelix)' == 'true'" Label="Prepare archive dir for helix">
9393
<None Include="$(MSBuildProjectDirectory)\**\*" Link="$(DeployOutsideOfRepoSupportFilesRelativeDir)tests\$(MSBuildProjectName)\%(RecursiveDir)%(FileName)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
9494
<None Include="$(RepoRoot)playground\**\*" Link="$(DeployOutsideOfRepoSupportFilesRelativeDir)playground\%(RecursiveDir)%(FileName)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
9595
<None Include="$(RepoRoot)src\Aspire.Hosting\Utils\PasswordGenerator.cs" Link="$(DeployOutsideOfRepoSupportFilesRelativeDir)tests\$(MSBuildProjectName)\PasswordGenerator.cs" CopyToOutputDirectory="PreserveNewest" />

tests/Aspire.Templates.Tests/Aspire.Templates.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<TestArchiveTestsDir>$(TestArchiveTestsDirForTemplateTests)</TestArchiveTestsDir>
1212

1313
<InstallBrowsersForPlaywright Condition="'$(InstallBrowsersForPlaywright)' == '' and '$(CODESPACES)' == 'true'">true</InstallBrowsersForPlaywright>
14-
<InstallBrowsersForPlaywright Condition="'$(InstallBrowsersForPlaywright)' == '' and '$(RunHelixTests)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">true</InstallBrowsersForPlaywright>
14+
<InstallBrowsersForPlaywright Condition="'$(InstallBrowsersForPlaywright)' == '' and '$(PrepareForHelix)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">true</InstallBrowsersForPlaywright>
1515
<InstallBrowsersForPlaywright Condition="'$(InstallBrowsersForPlaywright)' == '' and '$(OS)' == 'Windows_NT' and '$(ContinuousIntegrationBuild)' != 'true'">true</InstallBrowsersForPlaywright>
1616

17-
<ExtractTestClassNamesForHelix Condition="'$(ContinuousIntegrationBuild)' == 'true' or '$(RunHelixTests)' == 'true'">true</ExtractTestClassNamesForHelix>
17+
<ExtractTestClassNamesForHelix Condition="'$(ContinuousIntegrationBuild)' == 'true' or '$(PrepareForHelix)' == 'true'">true</ExtractTestClassNamesForHelix>
1818
<ExtractTestClassNamesPrefix>Aspire.Templates.Tests</ExtractTestClassNamesPrefix>
1919

2020
<!--

tests/Directory.Build.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<DeployRunSettingsFile Condition="'$(DeployRunSettingsFile)' == ''">true</DeployRunSettingsFile>
1111
<!-- Use a separate xunit.runner.json for helix that disables parallel test runs -->
12-
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == '' and '$(RunHelixTests)' == 'true'">$(RepoRoot)tests\helix\xunit.runner.json</XunitRunnerJson>
12+
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == '' and '$(PrepareForHelix)' == 'true'">$(RepoRoot)tests\helix\xunit.runner.json</XunitRunnerJson>
1313
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == ''">$(RepositoryEngineeringDir)testing\xunit.runner.json</XunitRunnerJson>
1414
</PropertyGroup>
1515

@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<Target Name="ZipTestArchive" AfterTargets="Build"
22-
Condition=" '$(IsTestProject)' == 'true' and '$(RunHelixTests)' == 'true' and '$(RunOnAzdoHelix)' == 'true' and '$(IsTestUtilityProject)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'">
22+
Condition=" '$(IsTestProject)' == 'true' and '$(PrepareForHelix)' == 'true' and '$(RunOnAzdoHelix)' == 'true' and '$(IsTestUtilityProject)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'">
2323
<Error Condition="'$(TestArchiveTestsDir)' == ''" Text="TestArchiveTestsDir property to archive the test folder must be set." />
2424
<PropertyGroup>
2525
<TestsArchiveSourceDir Condition="'$(TestsArchiveSourceDir)' == ''">$(OutDir)</TestsArchiveSourceDir>
@@ -35,7 +35,7 @@
3535

3636
<!-- Used for running one helix job per test class -->
3737
<Target Name="ExtractTestClassNames"
38-
Condition=" '$(IsTestProject)' == 'true' and '$(ExtractTestClassNamesForHelix)' == 'true' and '$(RunHelixTests)' == 'true' and '$(IsTestUtilityProject)' != 'true'"
38+
Condition=" '$(IsTestProject)' == 'true' and '$(ExtractTestClassNamesForHelix)' == 'true' and '$(PrepareForHelix)' == 'true' and '$(IsTestUtilityProject)' != 'true'"
3939
BeforeTargets="ZipTestArchive">
4040

4141
<Error Condition="'$(ExtractTestClassNamesPrefix)' == ''"

tests/Shared/RepoTesting/Aspire.RepoTesting.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<PropertyGroup>
3939
<!-- copy by default only when archiving tests, and for test projects that support running out of repo -->
40-
<DeployOutsideOfRepoSupportFiles Condition="'$(DeployOutsideOfRepoSupportFiles)' == '' and '$(RunHelixTests)' == 'true' and '$(IsTestProject)' == 'true'">true</DeployOutsideOfRepoSupportFiles>
40+
<DeployOutsideOfRepoSupportFiles Condition="'$(DeployOutsideOfRepoSupportFiles)' == '' and '$(PrepareForHelix)' == 'true' and '$(IsTestProject)' == 'true'">true</DeployOutsideOfRepoSupportFiles>
4141

4242
<IncludeTestPackages Condition="'$(IncludeTestPackages)' == '' and ('$(IsTestProject)' == 'true' or '$(IsTestUtilityProject)' == 'true')">true</IncludeTestPackages>
4343
<GeneratedPackagesVersionsPropsPath Condition="'$(GeneratedPackagesVersionsPropsPath)' == ''">$(IntermediateOutputPath)Directory.Packages.Versions.props</GeneratedPackagesVersionsPropsPath>
@@ -95,7 +95,7 @@
9595

9696
<Target Name="_UpdateArchiveSourcePath"
9797
BeforeTargets="ZipTestArchive"
98-
Condition=" '$(IsTestProject)' == 'true' and '$(RunHelixTests)' == 'true' and '$(DeployOutsideOfRepoSupportFilesRelativeDir)' != ''">
98+
Condition=" '$(IsTestProject)' == 'true' and '$(PrepareForHelix)' == 'true' and '$(DeployOutsideOfRepoSupportFilesRelativeDir)' != ''">
9999
<PropertyGroup>
100100
<TestsArchiveSourceDir>$(OutDir)$(DeployOutsideOfRepoSupportFilesRelativeDir)</TestsArchiveSourceDir>
101101
</PropertyGroup>

0 commit comments

Comments
 (0)