@@ -65,10 +65,22 @@ parameters:
6565 - Project
6666 - Package
6767
68+ - name : buildConfiguration
69+ displayName : ' Build Configuration'
70+ default : Release
71+ values :
72+ - Release
73+ - Debug
74+
6875- name : defaultPoolName
6976 type : string
7077 default : $(ci_var_defaultPoolName)
7178
79+ - name : enableStressTests
80+ displayName : Enable Stress Tests
81+ type : boolean
82+ default : false
83+
7284variables :
7385 - template : libraries/ci-build-variables.yml@self
7486
@@ -84,6 +96,7 @@ stages:
8496 jobs :
8597 - template : common/templates/jobs/ci-build-nugets-job.yml@self
8698 parameters :
99+ configuration : ${{ parameters.buildConfiguration }}
87100 artifactName : $(artifactName)
88101 ${{if ne(parameters.SNIVersion, '')}} :
89102 prebuildSteps :
@@ -92,6 +105,16 @@ stages:
92105 SNIVersion : ${{parameters.SNIVersion}}
93106 SNIValidationFeed : ${{parameters.SNIValidationFeed}}
94107
108+ - ${{ if eq(parameters.enableStressTests, true) }} :
109+ - template : stages/stress-tests-ci-stage.yml@self
110+ parameters :
111+ buildConfiguration : ${{ parameters.buildConfiguration }}
112+ dependsOn : [build_nugets]
113+ pipelineArtifactName : $(artifactName)
114+ mdsPackageVersion : $(NugetPackageVersion)
115+ ${{ if eq(parameters.debug, 'true') }} :
116+ verbosity : ' detailed'
117+
95118 - template : common/templates/stages/ci-run-tests-stage.yml@self
96119 parameters :
97120 debug : ${{ parameters.debug }}
@@ -139,7 +162,6 @@ stages:
139162 testConfigurations :
140163 windows_sql_19_x64 : # configuration name
141164 pool : ${{parameters.defaultPoolName }} # pool name
142- hostedPool : false # whether the pool is hosted or not
143165 images : # list of images to run tests on
144166 Win22_Sql19 : ADO-MMS22-SQL19 # stage display name: image name from the pool
145167 TargetFrameworks : ${{parameters.targetFrameworks }} # [net462, net8.0] # list of target frameworks to run
@@ -181,7 +203,6 @@ stages:
181203
182204 windows_sql_19_x86 : # configuration name
183205 pool : ${{parameters.defaultPoolName }} # pool name
184- hostedPool : false # whether the pool is hosted or not
185206 images : # list of images to run tests on
186207 Win22_Sql19_x86 : ADO-MMS22-SQL19 # stage display name: image name from the pool
187208 TargetFrameworks : [net8.0] # [net462, net8.0] # list of target frameworks to run
@@ -366,37 +387,36 @@ stages:
366387 LocalDbAppName : $(LocalDbAppName)
367388 LocalDbSharedInstanceName : $(LocalDbSharedInstanceName)
368389
369- # Enclave tests disabled as on 2025-08-05 due to azure capacity issues. Reenable once instances are available again.
370- # ${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
371- # windows_enclave_sql:
372- # pool: ADO-CI-AE-1ES-Pool
373- # images:
374- # Win22_Enclave_Sql19: ADO-MMS22-SQL19
375- # TargetFrameworks: ${{parameters.targetFrameworks }}
376- # netcoreVersionTestUtils: ${{parameters.netcoreVersionTestUtils }}
377- # buildPlatforms: ${{parameters.buildPlatforms }}
378- # testSets: [AE]
379- # useManagedSNI: ${{parameters.useManagedSNI }}
380- # codeCovTargetFrameworks: ${{parameters.codeCovTargetFrameworks }}
381- # configSqlFor: enclave
382- # operatingSystem: Windows
383- # configProperties:
384- # # config.json properties
385- # TCPConnectionStringHGSVBS: $(SQL_TCP_CONN_STRING_HGSVBS)
386- # TCPConnectionStringNoneVBS: $(SQL_TCP_CONN_STRING_NoneVBS)
387- # TCPConnectionStringAASSGX: $(SQL_TCP_CONN_STRING_AASSGX)
388- # EnclaveEnabled: true
389- # AADAuthorityURL: $(AADAuthorityURL)
390- # AADServicePrincipalId: $(AADServicePrincipalId)
391- # ${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
392- # AADServicePrincipalSecret: $(AADServicePrincipalSecret)
393- # AzureKeyVaultUrl: $(AzureKeyVaultUrl)
394- # AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
395- # SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
396- # UserManagedIdentityClientId: $(UserManagedIdentityClientId)
397- # AliasName: $(SQLAliasName)
398- # LocalDbAppName: $(LocalDbAppName)
399- # LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
390+ ${{ if eq(variables['system.pullRequest.isFork'], 'False') }} : # only run enclave jobs if the password is available
391+ windows_enclave_sql :
392+ pool : ADO-CI-AE-1ES-Pool
393+ images :
394+ Win22_Enclave_Sql19 : ADO-MMS22-SQL19
395+ TargetFrameworks : ${{parameters.targetFrameworks }}
396+ netcoreVersionTestUtils : ${{parameters.netcoreVersionTestUtils }}
397+ buildPlatforms : ${{parameters.buildPlatforms }}
398+ testSets : [AE]
399+ useManagedSNI : ${{parameters.useManagedSNI }}
400+ codeCovTargetFrameworks : ${{parameters.codeCovTargetFrameworks }}
401+ configSqlFor : enclave
402+ operatingSystem : Windows
403+ configProperties :
404+ # config.json properties
405+ TCPConnectionStringHGSVBS : $(SQL_TCP_CONN_STRING_HGSVBS)
406+ TCPConnectionStringNoneVBS : $(SQL_TCP_CONN_STRING_NoneVBS)
407+ TCPConnectionStringAASSGX : $(SQL_TCP_CONN_STRING_AASSGX)
408+ EnclaveEnabled : true
409+ AADAuthorityURL : $(AADAuthorityURL)
410+ AADServicePrincipalId : $(AADServicePrincipalId)
411+ ${{ if eq(variables['system.pullRequest.isFork'], 'False') }} :
412+ AADServicePrincipalSecret : $(AADServicePrincipalSecret)
413+ AzureKeyVaultUrl : $(AzureKeyVaultUrl)
414+ AzureKeyVaultTenantId : $(AzureKeyVaultTenantId)
415+ SupportsIntegratedSecurity : $(SupportsIntegratedSecurity)
416+ UserManagedIdentityClientId : $(UserManagedIdentityClientId)
417+ AliasName : $(SQLAliasName)
418+ LocalDbAppName : $(LocalDbAppName)
419+ LocalDbSharedInstanceName : $(LocalDbSharedInstanceName)
400420
401421 # self hosted SQL Server on Linux
402422 linux_sql_19_22 :
@@ -453,35 +473,34 @@ stages:
453473 LocalDbAppName : $(LocalDbAppName)
454474 LocalDbSharedInstanceName : $(LocalDbSharedInstanceName)
455475
456- # Enclave tests disabled as on 2025-08-05 due to azure capacity issues. Reenable once instances are available again.
457- # ${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
458- # linux_enclave_sql:
459- # pool: ADO-CI-AE-1ES-Pool
460- # images:
461- # Ubuntu20_Enclave_Sql19: ADO-UB20-Sql22
462- # TargetFrameworks: ${{parameters.targetFrameworksLinux }}
463- # netcoreVersionTestUtils: ${{parameters.netcoreVersionTestUtils }}
464- # buildPlatforms: [AnyCPU]
465- # testSets: [AE]
466- # useManagedSNI: [true]
467- # codeCovTargetFrameworks: ${{parameters.codeCovTargetFrameworks }}
468- # configSqlFor: enclave
469- # operatingSystem: Linux
470- # configProperties:
471- # # config.json properties
472- # TCPConnectionStringHGSVBS: $(SQL_TCP_CONN_STRING_HGSVBS)
473- # TCPConnectionStringNoneVBS: $(SQL_TCP_CONN_STRING_NoneVBS)
474- # TCPConnectionStringAASSGX: $(SQL_TCP_CONN_STRING_AASSGX)
475- # EnclaveEnabled: true
476- # AADServicePrincipalId: $(AADServicePrincipalId)
477- # ${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
478- # AADServicePrincipalSecret: $(AADServicePrincipalSecret)
479- # AzureKeyVaultUrl: $(AzureKeyVaultUrl)
480- # AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
481- # SupportsIntegratedSecurity: false
482- # UserManagedIdentityClientId: $(UserManagedIdentityClientId)
483- # LocalDbAppName: $(LocalDbAppName)
484- # LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
476+ ${{ if eq(variables['system.pullRequest.isFork'], 'False') }} : # only run enclave jobs if the password is available
477+ linux_enclave_sql :
478+ pool : ADO-CI-AE-1ES-Pool
479+ images :
480+ Ubuntu20_Enclave_Sql19 : ADO-UB20-Sql22
481+ TargetFrameworks : ${{parameters.targetFrameworksLinux }}
482+ netcoreVersionTestUtils : ${{parameters.netcoreVersionTestUtils }}
483+ buildPlatforms : [AnyCPU]
484+ testSets : [AE]
485+ useManagedSNI : [true]
486+ codeCovTargetFrameworks : ${{parameters.codeCovTargetFrameworks }}
487+ configSqlFor : enclave
488+ operatingSystem : Linux
489+ configProperties :
490+ # config.json properties
491+ TCPConnectionStringHGSVBS : $(SQL_TCP_CONN_STRING_HGSVBS)
492+ TCPConnectionStringNoneVBS : $(SQL_TCP_CONN_STRING_NoneVBS)
493+ TCPConnectionStringAASSGX : $(SQL_TCP_CONN_STRING_AASSGX)
494+ EnclaveEnabled : true
495+ AADServicePrincipalId : $(AADServicePrincipalId)
496+ ${{ if eq(variables['system.pullRequest.isFork'], 'False') }} :
497+ AADServicePrincipalSecret : $(AADServicePrincipalSecret)
498+ AzureKeyVaultUrl : $(AzureKeyVaultUrl)
499+ AzureKeyVaultTenantId : $(AzureKeyVaultTenantId)
500+ SupportsIntegratedSecurity : false
501+ UserManagedIdentityClientId : $(UserManagedIdentityClientId)
502+ LocalDbAppName : $(LocalDbAppName)
503+ LocalDbSharedInstanceName : $(LocalDbSharedInstanceName)
485504
486505 # Self hosted SQL Server on Mac
487506 mac_sql_22 :
0 commit comments