Skip to content

Commit 2871008

Browse files
Copilotericstj
andauthored
Skip tests by default in internal rolling builds (#7151)
* Initial plan * Skip tests by default in internal rolling builds with optional parameter to enable Co-authored-by: ericstj <[email protected]> * Add condition to skip codecoverage stage when tests are not run Co-authored-by: ericstj <[email protected]> * Make codecoverage dependency conditional in post-build validation Co-authored-by: ericstj <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: ericstj <[email protected]>
1 parent 20db541 commit 2871008

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ pr:
4848
- PATENTS.TXT
4949
- THIRD-PARTY-NOTICES.TXT
5050

51+
parameters:
52+
- name: runTests
53+
displayName: Run Tests
54+
type: boolean
55+
default: false
56+
5157
variables:
5258
- name: _TeamName
5359
value: dotnet-extensions
@@ -223,6 +229,7 @@ extends:
223229
buildConfig: $(_BuildConfig)
224230
repoLogPath: $(Build.Arcade.LogsPath)
225231
repoTestResultsPath: $(Build.Arcade.TestResultsPath)
232+
skipTests: ${{ not(parameters.runTests) }}
226233
skipQualityGates: ${{ eq(variables['SkipQualityGates'], 'true') }}
227234
isWindows: true
228235

@@ -253,6 +260,7 @@ extends:
253260
buildConfig: $(_BuildConfig)
254261
repoLogPath: $(Build.Arcade.LogsPath)
255262
repoTestResultsPath: $(Build.Arcade.TestResultsPath)
263+
skipTests: ${{ not(parameters.runTests) }}
256264
skipQualityGates: ${{ eq(variables['SkipQualityGates'], 'true') }}
257265
isWindows: false
258266

@@ -263,7 +271,7 @@ extends:
263271
displayName: CodeCoverage
264272
dependsOn:
265273
- build
266-
condition: and(succeeded('build'), ne(variables['SkipQualityGates'], 'true'))
274+
condition: and(succeeded('build'), ne(variables['SkipQualityGates'], 'true'), eq(parameters.runTests, true))
267275
variables:
268276
- template: /eng/common/templates-official/variables/pool-providers.yml@self
269277
jobs:
@@ -356,7 +364,8 @@ extends:
356364
parameters:
357365
validateDependsOn:
358366
- build
359-
- codecoverage
367+
- ${{ if eq(parameters.runTests, true) }}:
368+
- codecoverage
360369
- correctness
361370
publishingInfraVersion: 3
362371
enableSymbolValidation: false

0 commit comments

Comments
 (0)