From 24168eb471b790478e1c961085d5de32ac2a6085 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 18 Apr 2022 14:01:56 -0700 Subject: [PATCH] Only build the GC simulator tests in the GC simulator leg Only build the GC simluator tests instead of all Pri1 tests. When we build all Pri1 tests in this leg, nearly all tests are skipped as only the GCSimluator tests are actually run. These skipped tests leave a ton of files on disk, causing issues in Helix. By only building the actual tests we are going to run, we can avoid this additional infrastructure cost. --- .../common/templates/runtimes/build-test-job.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/common/templates/runtimes/build-test-job.yml b/eng/pipelines/common/templates/runtimes/build-test-job.yml index ca7cd7e68063e..4b70e7cf0a88d 100644 --- a/eng/pipelines/common/templates/runtimes/build-test-job.yml +++ b/eng/pipelines/common/templates/runtimes/build-test-job.yml @@ -95,6 +95,18 @@ jobs: - name: runtimeFlavorArgs value: '-mono' + - name: testTreeFilterArg + value: '' + + # Only build GCSimulator tests when the gc-simulator group is specified. + - ${{ if eq(parameters.testGroup, 'gc-simulator') }}: + - ${{ if eq(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree GC/Scenarios/GCSimulator' + - ${{ if ne(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree:GC/Scenarios/GCSimulator' + steps: # Install test build dependencies @@ -113,7 +125,7 @@ jobs: displayName: Disk Usage before Build # Build managed test components - - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) ci /p:TargetOS=AnyOS + - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) $(testTreeFilterArg) ci /p:TargetOS=AnyOS displayName: Build managed test components - ${{ if in(parameters.osGroup, 'OSX', 'iOS', 'tvOS') }}: