Skip to content

Commit

Permalink
Add sovereign cloud opt-in to tests weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp committed Feb 8, 2021
1 parent 99a9e73 commit 85e499a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion eng/pipelines/templates/stages/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ parameters:
- name: Clouds
type: string
default: 'Public'
- name: SupportedClouds
type: string
default: 'Public,Canary'
- name: UnsupportedClouds
type: string
default: ''
Expand Down Expand Up @@ -93,7 +96,7 @@ stages:
# TODO: re-enable tests-weekly allow filter once sovereign cloud live tests are stable: https://github.com/Azure/azure-sdk/issues/2074
# Run all clouds by default for weekly test pipeline, except for clouds specifically unsupported by the calling pipeline
# - ${{ if or(contains(parameters.Clouds, cloud.key), contains(variables['Build.DefinitionName'], 'tests-weekly')) }}:
- ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), eq(cloud.key, 'Canary'))) }}:
- ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}:
- ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}:
- stage: ${{ cloud.key }}
dependsOn: []
Expand Down
2 changes: 1 addition & 1 deletion sdk/extensions/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
ServiceDirectory: extensions
Clouds: 'Public,Preview,UsGov,China'
SupportedClouds: 'Public,Canary,UsGov,China'
4 changes: 2 additions & 2 deletions sdk/search/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends:
ServiceDirectory: search
TimeoutInMinutes: 240
MaxParallel: 2
UnsupportedClouds: Canary
Clouds: 'Public,Preview,UsGov,China'
UnsupportedClouds: 'Canary'
SupportedClouds: 'Public,UsGov,China'
EnvVars:
AZURE_SEARCH_TEST_MODE: Live

0 comments on commit 85e499a

Please sign in to comment.