Skip to content

Commit ccdd846

Browse files
authored
Create stress test pipeline (dotnet#3867)
* Task 40503: Create stress test pipeline - Added initial placeholder pipeline entry point file. - Wired up the new top-level stress test pipeline to the existing stages/jobs. - Using human friendly triggering pipeline names. - Removed PR pipeline as upstream trigger. - When triggered manually, we must choose one of the upstream pipelines to use for artifact download. - Temporarily added PR-SqlClient-Package to help with PR-based testing. - Sorted template parameters alphabetically. - Added debugging for artifact details. * Changed the pipeline to expect project-references to SqlClient projects. * Moved stress test pipeline files into a stress/ directory. * Fixed expansion errors. * Addressed Copilot feedback. * Addressed my own comments.
1 parent 49db91a commit ccdd846

17 files changed

Lines changed: 449 additions & 611 deletions

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ parameters:
7878
type: string
7979
default: $(ci_var_defaultPoolName)
8080

81-
# True to add a Stress Test stage to the pipeline.
82-
- name: enableStressTests
83-
type: boolean
84-
default: false
85-
8681
# The timeout, in minutes, for each test job.
8782
- name: testJobTimeout
8883
type: number
@@ -218,19 +213,6 @@ stages:
218213
loggingArtifactsName: $(loggingArtifactsName)
219214
mdsArtifactsName: $(mdsArtifactsName)
220215

221-
# Run the stress tests, if desired.
222-
- ${{ if eq(parameters.enableStressTests, true) }}:
223-
- template: /eng/pipelines/stages/stress-tests-ci-stage.yml@self
224-
parameters:
225-
buildConfiguration: ${{ parameters.buildConfiguration }}
226-
additionalDependsOn:
227-
- build_sqlclient_package_stage
228-
- build_azure_package_stage
229-
mdsArtifactsName: $(mdsArtifactsName)
230-
mdsPackageVersion: $(mdsPackageVersion)
231-
azurePackageVersion: $(azurePackageVersion)
232-
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
233-
234216
# Run the MDS and AKV tests.
235217
- template: /eng/pipelines/common/templates/stages/ci-run-tests-stage.yml@self
236218
parameters:

eng/pipelines/dotnet-sqlclient-ci-package-reference-pipeline.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ parameters:
103103
type: boolean
104104
default: false
105105

106-
# True to run the stress tests stage.
107-
- name: enableStressTests
108-
displayName: Enable Stress Tests
109-
type: boolean
110-
default: false
111-
112106
# The target frameworks to build and run tests for on Windows.
113107
#
114108
# These are _not_ the target frameworks to build the driver packages for.
@@ -173,7 +167,6 @@ extends:
173167
referenceType: Package
174168
debug: ${{ parameters.debug }}
175169
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
176-
enableStressTests: ${{ parameters.enableStressTests }}
177170
targetFrameworks: ${{ parameters.targetFrameworks }}
178171
targetFrameworksUnix: ${{ parameters.targetFrameworksUnix }}
179172
testJobTimeout: ${{ parameters.testJobTimeout }}

eng/pipelines/dotnet-sqlclient-ci-project-reference-pipeline.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ parameters:
103103
type: boolean
104104
default: false
105105

106-
# True to run the stress tests stage.
107-
- name: enableStressTests
108-
displayName: Enable Stress Tests
109-
type: boolean
110-
default: false
111-
112106
# The target frameworks to build and run tests for on Windows.
113107
#
114108
# These are _not_ the target frameworks to build the driver packages for.
@@ -173,7 +167,6 @@ extends:
173167
referenceType: Project
174168
debug: ${{ parameters.debug }}
175169
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
176-
enableStressTests: ${{ parameters.enableStressTests }}
177170
targetFrameworks: ${{ parameters.targetFrameworks }}
178171
targetFrameworksUnix: ${{ parameters.targetFrameworksUnix }}
179172
testJobTimeout: ${{ parameters.testJobTimeout }}

eng/pipelines/jobs/pack-abstractions-package-ci-job.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ jobs:
7878
# Explicitly unset the $PLATFORM environment variable that is set by the
7979
# 'ADO Build properties' Library in the ADO SqlClientDrivers public project.
8080
# This is defined with a non-standard Platform of 'AnyCPU', and will fail
81-
# the builds if left defined. The stress tests solution does not require
82-
# any specific Platform, and so its solution file doesn't support any
83-
# non-standard platforms.
81+
# the builds if left defined.
8482
#
8583
# Note that Azure Pipelines will inject this variable as PLATFORM into the
8684
# environment of all tasks in this job.

eng/pipelines/jobs/pack-azure-package-ci-job.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ jobs:
107107
# Explicitly unset the $PLATFORM environment variable that is set by the
108108
# 'ADO Build properties' Library in the ADO SqlClientDrivers public
109109
# project. This is defined with a non-standard Platform of 'AnyCPU', and
110-
# will fail the builds if left defined. The stress tests solution does
111-
# not require any specific Platform, and so its solution file doesn't
112-
# support any non-standard platforms.
110+
# will fail the builds if left defined.
113111
#
114112
# Note that Azure Pipelines will inject this variable as PLATFORM into the
115113
# environment of all tasks in this job.

eng/pipelines/jobs/stress-tests-ci-job.yml

Lines changed: 0 additions & 194 deletions
This file was deleted.

eng/pipelines/jobs/test-abstractions-package-ci-job.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ parameters:
2727

2828
# The prefix to prepend to the job's display name:
2929
#
30-
# [<prefix>] Run Stress Tests
30+
# [<prefix>] Test Abstractions Package
3131
#
3232
- name: displayNamePrefix
3333
type: string
@@ -97,9 +97,7 @@ jobs:
9797
# Explicitly unset the $PLATFORM environment variable that is set by the
9898
# 'ADO Build properties' Library in the ADO SqlClientDrivers public project.
9999
# This is defined with a non-standard Platform of 'AnyCPU', and will fail
100-
# the builds if left defined. The stress tests solution does not require
101-
# any specific Platform, and so its solution file doesn't support any
102-
# non-standard platforms.
100+
# the builds if left defined.
103101
#
104102
# Note that Azure Pipelines will inject this variable as PLATFORM into the
105103
# environment of all tasks in this job.

eng/pipelines/jobs/test-azure-package-ci-job.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ parameters:
4646

4747
# The prefix to prepend to the job's display name:
4848
#
49-
# [<prefix>] Run Stress Tests
49+
# [<prefix>] Test Azure Package
5050
#
5151
- name: displayNamePrefix
5252
type: string
@@ -158,9 +158,7 @@ jobs:
158158
# Explicitly unset the $PLATFORM environment variable that is set by the
159159
# 'ADO Build properties' Library in the ADO SqlClientDrivers public
160160
# project. This is defined with a non-standard Platform of 'AnyCPU', and
161-
# will fail the builds if left defined. The stress tests solution does
162-
# not require any specific Platform, and so its solution file doesn't
163-
# support any non-standard platforms.
161+
# will fail the builds if left defined.
164162
#
165163
# Note that Azure Pipelines will inject this variable as PLATFORM into the
166164
# environment of all tasks in this job.

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pr:
5151
- NuGet.config
5252
exclude:
5353
- eng/pipelines/onebranch/*
54+
- eng/pipelines/stress/*
5455

5556
# Do not trigger commit or schedule runs for this pipeline.
5657
trigger: none
@@ -78,12 +79,6 @@ parameters:
7879
type: boolean
7980
default: false
8081

81-
# True to run the stress tests stage.
82-
- name: enableStressTests
83-
displayName: Enable Stress Tests
84-
type: boolean
85-
default: false
86-
8782
# The target frameworks to build and run tests for on Windows.
8883
#
8984
# These are _not_ the target frameworks to build the driver packages for.
@@ -133,7 +128,6 @@ extends:
133128
buildPlatforms: ${{ parameters.buildPlatforms }}
134129
referenceType: Package
135130
debug: ${{ parameters.debug }}
136-
enableStressTests: ${{ parameters.enableStressTests }}
137131
targetFrameworks: ${{ parameters.targetFrameworks }}
138132
targetFrameworksUnix: ${{ parameters.targetFrameworksUnix }}
139133
testJobTimeout: ${{ parameters.testJobTimeout }}

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pr:
5151
- NuGet.config
5252
exclude:
5353
- eng/pipelines/onebranch/*
54+
- eng/pipelines/stress/*
5455

5556
# Do not trigger commit or schedule runs for this pipeline.
5657
trigger: none
@@ -78,12 +79,6 @@ parameters:
7879
type: boolean
7980
default: false
8081

81-
# True to run the stress tests stage.
82-
- name: enableStressTests
83-
displayName: Enable Stress Tests
84-
type: boolean
85-
default: false
86-
8782
# The target frameworks to build and run tests for on Windows.
8883
#
8984
# These are _not_ the target frameworks to build the driver packages for.
@@ -133,7 +128,6 @@ extends:
133128
buildPlatforms: ${{ parameters.buildPlatforms }}
134129
referenceType: Project
135130
debug: ${{ parameters.debug }}
136-
enableStressTests: ${{ parameters.enableStressTests }}
137131
targetFrameworks: ${{ parameters.targetFrameworks }}
138132
targetFrameworksUnix: ${{ parameters.targetFrameworksUnix }}
139133
testJobTimeout: ${{ parameters.testJobTimeout }}

0 commit comments

Comments
 (0)