@@ -12,6 +12,7 @@ schedules:
1212 branches :
1313 include :
1414 - main
15+ - release/*.0
1516 - release/*-staging
1617
1718variables :
@@ -35,6 +36,7 @@ extends:
3536 timeoutInMinutes : 240
3637 variables :
3738 DUMPS_SHARE_MOUNT_ROOT : " /dumps-share"
39+ DUMPS_SHARE : " $(Build.ArtifactStagingDirectory)/dumps/"
3840 pool :
3941 name : $(DncEngPublicBuildPool)
4042 demands : ImageOverride -equals Build.Ubuntu.2204.Amd64.Open
@@ -58,32 +60,29 @@ extends:
5860
5961 - bash : |
6062 cd '$(httpStressProject)'
61- export CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/3.0"
62- export SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/3.0"
63- export HTTPSTRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 3.0"
64- export HTTPSTRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 3.0"
63+ export STRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 3.0"
64+ export STRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 3.0"
65+ mkdir -p $DUMPS_SHARE
6566 docker-compose up --abort-on-container-exit --no-color
6667 timeoutInMinutes: 35 # In case the HTTP/3.0 run hangs, we timeout shortly after the expected 30 minute run
6768 displayName: Run HttpStress - HTTP 3.0
6869 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true'))
6970
7071 - bash : |
7172 cd '$(httpStressProject)'
72- export CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/2.0"
73- export SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/2.0"
74- export HTTPSTRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 2.0"
75- export HTTPSTRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 2.0"
73+ export STRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 2.0"
74+ export STRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 2.0"
75+ mkdir -p $DUMPS_SHARE
7676 docker-compose down
7777 docker-compose up --abort-on-container-exit --no-color
7878 displayName: Run HttpStress - HTTP 2.0
7979 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true'))
8080
8181 - bash : |
8282 cd '$(httpStressProject)'
83- export CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/1.1"
84- export SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/1.1"
85- export HTTPSTRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 1.1"
86- export HTTPSTRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 1.1"
83+ export STRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 1.1"
84+ export STRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 1.1"
85+ mkdir -p $DUMPS_SHARE
8786 docker-compose down
8887 docker-compose up --abort-on-container-exit --no-color
8988 displayName: Run HttpStress - HTTP 1.1
@@ -103,12 +102,7 @@ extends:
103102 timeoutInMinutes : 150
104103 variables :
105104 DUMPS_SHARE_MOUNT_ROOT : " C:/dumps-share"
106-
107- # The 1es-windows-2022-open image has an issue where the Chocolatey-installed V1 docker-compose takes precendence over the
108- # V2 docker-compose required by the stress tests, see: https://github.com/actions/runner-images/issues/7080
109- # This is worked around by handpicking the V2 executable.
110- # The workaround should be removed when the official fix is propagated into 1es-windows-2022-open, or when we switch to another image.
111- DOCKER_COMPOSE_CMD : " C:/ProgramData/docker/cli-plugins/docker-compose.exe"
105+ DUMPS_SHARE : " $(Build.ArtifactStagingDirectory)/dumps/"
112106 pool :
113107 name : $(DncEngPublicBuildPool)
114108 demands : ImageOverride -equals 1es-windows-2022-open
@@ -120,19 +114,12 @@ extends:
120114 lfs : false
121115
122116 - powershell : |
123- # Workaround for https://github.com/microsoft/azure-pipelines-agent/issues/4554. Undo when the image bug is fixed.
124- Remove-Item -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\Microsoft.VCToolsVersion.v143.default.txt"
125-
126117 $(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION)
127118 echo "##vso[task.setvariable variable=succeeded;isOutput=true]true"
128119 name: buildRuntime
129120 displayName: Build CLR and Libraries
130121
131122 - powershell : |
132- $env:CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/"
133- $env:SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/"
134- New-Item -Force $env:CLIENT_DUMPS_SHARE -ItemType Directory
135- New-Item -Force $env:SERVER_DUMPS_SHARE -ItemType Directory
136123 $(httpStressProject)/run-docker-compose.ps1 -w -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage)
137124 echo "##vso[task.setvariable variable=succeeded;isOutput=true]true"
138125 name: buildStress
@@ -147,37 +134,28 @@ extends:
147134
148135 - powershell : |
149136 cd '$(httpStressProject)'
150- $env:CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/3.0"
151- $env:SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/3.0"
152- New-Item -Force $env:CLIENT_DUMPS_SHARE -ItemType Directory
153- New-Item -Force $env:SERVER_DUMPS_SHARE -ItemType Directory
154- $env:HTTPSTRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 3.0"
155- $env:HTTPSTRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 3.0"
156- & $env:DOCKER_COMPOSE_CMD up --abort-on-container-exit --no-color
137+ $env:STRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 3.0"
138+ $env:STRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 3.0"
139+ New-Item -Force $env:DUMPS_SHARE -ItemType Directory
140+ docker compose up --abort-on-container-exit --no-color
157141 displayName: Run HttpStress - HTTP 3.0
158142 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true'))
159143
160144 - powershell : |
161145 cd '$(httpStressProject)'
162- $env:CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/2.0"
163- $env:SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/2.0"
164- New-Item -Force $env:CLIENT_DUMPS_SHARE -ItemType Directory
165- New-Item -Force $env:SERVER_DUMPS_SHARE -ItemType Directory
166- $env:HTTPSTRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 2.0"
167- $env:HTTPSTRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 2.0"
168- & $env:DOCKER_COMPOSE_CMD up --abort-on-container-exit --no-color
146+ $env:STRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 2.0"
147+ $env:STRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 2.0"
148+ New-Item -Force $env:DUMPS_SHARE -ItemType Directory
149+ docker compose up --abort-on-container-exit --no-color
169150 displayName: Run HttpStress - HTTP 2.0
170151 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true'))
171152
172153 - powershell : |
173154 cd '$(httpStressProject)'
174- $env:CLIENT_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/client/1.1"
175- $env:SERVER_DUMPS_SHARE="$(Build.ArtifactStagingDirectory)/dumps/server/1.1"
176- New-Item -Force $env:CLIENT_DUMPS_SHARE -ItemType Directory
177- New-Item -Force $env:SERVER_DUMPS_SHARE -ItemType Directory
178- $env:HTTPSTRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 1.1"
179- $env:HTTPSTRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 1.1"
180- & $env:DOCKER_COMPOSE_CMD up --abort-on-container-exit --no-color
155+ $env:STRESS_CLIENT_ARGS = "$env:HTTPSTRESS_CLIENT_ARGS -http 1.1"
156+ $env:STRESS_SERVER_ARGS = "$env:HTTPSTRESS_SERVER_ARGS -http 1.1"
157+ New-Item -Force $env:DUMPS_SHARE -ItemType Directory
158+ docker compose up --abort-on-container-exit --no-color
181159 displayName: Run HttpStress - HTTP 1.1
182160 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true'))
183161
0 commit comments