Skip to content

Commit 5eb0035

Browse files
authored
[keyvault] Make Managed HSM tests only weekly (Azure#26943)
Fixes Azure#25734. Running tests which use Managed HSM only weekly to reduce cost.
1 parent 1954dbf commit 5eb0035

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

sdk/keyvault/keyvault-admin/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ stages:
1515
Path: sdk/keyvault/keyvault-admin/platform-matrix.json
1616
Selection: sparse
1717
GenerateVMJobs: true
18+
19+
${{ if not(contains(variables['Build.DefinitionName'], 'tests-weekly')) }}:
20+
# Due to the high cost of Managed HSMs, which keyvault-admin requires, we only want to run
21+
# the live tests weekly.
22+
MatrixFilters:
23+
- ArmTemplateParameters=^(?!.*enableHsm.*true)
1824
EnvVars:
1925
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
2026
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)

sdk/keyvault/keyvault-keys/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ stages:
2828
Path: sdk/keyvault/keyvault-keys/platform-matrix.json
2929
Selection: sparse
3030
GenerateVMJobs: true
31+
32+
# Due to the high cost of Managed HSMs, we only want to test using them weekly.
33+
${{ if not(contains(variables['Build.DefinitionName'], 'tests-weekly')) }}:
34+
MatrixFilters:
35+
- ArmTemplateParameters=^(?!.*enableHsm.*true)
3136
EnvVars:
3237
AZURE_CLIENT_ID: $(KEYVAULT_CLIENT_ID)
3338
AZURE_TENANT_ID: $(KEYVAULT_TENANT_ID)

0 commit comments

Comments
 (0)