Commit bc72a37
committed
fix(ci): azure-test: unique per-leg VM name and dedicated VNet
The standalone Azure test workflow named the VM
azure-test-<version>-<datestamp>-<arch>-<run_id> and let `az vm create`
auto-create/reuse a resource-group VNet. Two problems surface when more
than one test runs against the same resource group at once (concurrent
dispatches, or the unified azure-build-release-test-publish pipeline's
parallel test matrix):
- aarch64 and aarch64-64k images share version, datestamp and arch, so
their VM names collided -> ARM DeploymentFailed / "concurrent request"
Conflict, and "Subnet ... failed to create ... address prefix
conflict".
- Without --vnet-name, az vm create reuses any existing VNet in the
resource group, so parallel launches raced on the same VNet/subnet
writes.
Mirror the fixes already applied to the azure-test-steps composite
action:
- Build VM_NAME from VM_IMAGE_DEFINITION (unique per leg); longest case
stays within the 64-char Linux VM name limit.
- Create an explicit per-VM VNet/subnet (${VM_NAME}VNet / Subnet) and
delete the VNet during teardown so nothing is stranded.1 parent aa8dcec commit bc72a37
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
208 | 215 | | |
209 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
| |||
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
| 232 | + | |
| 233 | + | |
221 | 234 | | |
222 | 235 | | |
223 | 236 | | |
| |||
359 | 372 | | |
360 | 373 | | |
361 | 374 | | |
362 | | - | |
363 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
364 | 379 | | |
365 | 380 | | |
366 | 381 | | |
| |||
371 | 386 | | |
372 | 387 | | |
373 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
374 | 393 | | |
375 | 394 | | |
376 | 395 | | |
| |||
0 commit comments