Use hosted pools to send libraries tests to helix to ease out our build pools (#49497)
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 11 Mar 2021 22:13:59 +0000 (14:13 -0800)
committerGitHub <noreply@github.com>
Thu, 11 Mar 2021 22:13:59 +0000 (14:13 -0800)
eng/pipelines/libraries/run-test-job.yml

index c233578..9e073dd 100644 (file)
@@ -43,7 +43,6 @@ jobs:
       timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
       container: '' # we just send to helix, no need to use a container.
       condition: ${{ parameters.condition }}
-      pool: ${{ parameters.pool }}
       testScope: ${{ parameters.testScope }}
       runTests: true
       ${{ if ne(parameters.liveRuntimeBuildConfig, '') }}:
@@ -55,6 +54,14 @@ jobs:
       ${{ if eq(parameters.interpreter, 'true') }}:
         testDisplayName: ${{ parameters.runtimeFlavor }}_interpreter_${{ parameters.liveRuntimeBuildConfig }}
 
+      # To run the tests we just send to helix and wait, use ubuntu hosted pools for faster providing and to not back up our build pools
+      ${{ if startsWith(parameters.pool.queue, 'BuildPool.Ubuntu') }}:
+        pool:
+          vmImage: 'ubuntu-latest'
+      
+      ${{ if not(startsWith(parameters.pool.queue, 'BuildPool.Ubuntu')) }}:
+        pool: ${{ parameters.pool }}
+
       dependOnEvaluatePaths: ${{ parameters.dependOnEvaluatePaths }}
       dependsOn:
       - ${{ if ne(parameters.dependsOn[0], '') }}: