Skip to content

Commit 0123bf1

Browse files
committed
- Disabling the AE tests in Debug mode.
1 parent b17bb00 commit 0123bf1

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

eng/pipelines/dotnet-sqlclient-ci-core.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ parameters:
8484
- name: testJobTimeout
8585
type: number
8686

87+
# If true, the Always Encrypted (AE) test set will be run, which requires
88+
# Enclave-enabled SQL Server instances.
89+
- name: runAlwaysEncryptedTests
90+
type: boolean
91+
default: true
92+
8793
variables:
8894
- template: libraries/ci-build-variables.yml@self
8995

@@ -394,7 +400,9 @@ stages:
394400
LocalDbAppName: $(LocalDbAppName)
395401
LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
396402

397-
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
403+
# Only run the AE tests if enable and if we have access to the necessary
404+
# secrets.
405+
${{ if and(eq(parameters.runAlwaysEncryptedTests, true), eq(variables['system.pullRequest.isFork'], 'False')) }}:
398406
windows_enclave_sql:
399407
pool: ADO-CI-AE-1ES-Pool
400408
images:
@@ -481,7 +489,9 @@ stages:
481489
LocalDbAppName: $(LocalDbAppName)
482490
LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
483491

484-
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
492+
# Only run the AE tests if enable and if we have access to the necessary
493+
# secrets.
494+
${{ if and(eq(parameters.runAlwaysEncryptedTests, true), eq(variables['system.pullRequest.isFork'], 'False')) }}:
485495
linux_enclave_sql:
486496
pool: ADO-CI-AE-1ES-Pool
487497
images:

eng/pipelines/sqlclient-pr-package-ref-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ extends:
131131
${{ else }}:
132132
testJobTimeout: ${{ parameters.testJobTimeout }}
133133
useManagedSNI: ${{ parameters.useManagedSNI }}
134+
# Don't run the AE tests in Debug mode; they rarely succeed.
135+
${{ if eq(parameters.buildConfiguration, 'Debug') }}:
136+
runAlwaysEncryptedTests: false

eng/pipelines/sqlclient-pr-project-ref-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ extends:
131131
${{ else }}:
132132
testJobTimeout: ${{ parameters.testJobTimeout }}
133133
useManagedSNI: ${{ parameters.useManagedSNI }}
134+
# Don't run the AE tests in Debug mode; they rarely succeed.
135+
${{ if eq(parameters.buildConfiguration, 'Debug') }}:
136+
runAlwaysEncryptedTests: false

0 commit comments

Comments
 (0)