fix(burn-in): default BuildCommand creates artifact dir to exercise full pipeline

'exit 0' left C:\CI\build\dist non-existent -> packaging skipped -> Get-BuildArtifacts
could not find artifacts.zip -> all 4 jobs FAIL at artifact collection phase.

New default: 'if not exist dist mkdir dist & echo burnin_ok > dist\marker.txt'
This creates dist\marker.txt relative to C:\CI\build (GuestWorkDir), so the
packaging step finds it, creates artifacts.zip, and Get-BuildArtifacts succeeds.

Also updated docblock: clarify command runs via cmd /c; replace Start-Sleep example
(PS cmdlet, does not work via WinRM cmd) with ping delay equivalent.
This commit is contained in:
Simone
2026-05-12 21:21:56 +02:00
parent 8134a3e8d3
commit 8595fbaf45
+6 -4
View File
@@ -33,9 +33,11 @@
Job concorrenti per round. Default: 4. Job concorrenti per round. Default: 4.
.PARAMETER BuildCommand .PARAMETER BuildCommand
Comando da eseguire nel guest come passo build. Comando da eseguire nel guest come passo build (eseguito via cmd /c nel guest).
Default: 'exit 0' (smoke velocenessun build reale). Default: crea la directory dist con un file marker, poi esce 0 — esercita
Usare 'Start-Sleep 120' per mantenere 4 VM attive e osservare la concorrenza. l'intero pipeline inclusa la fase di packaging e artifact collection.
Usare 'ping 127.0.0.1 -n 121 > nul' per mantenere 4 VM attive ~120s
e osservare la concorrenza senza produrre artifact.
.PARAMETER RoundTimeoutMinutes .PARAMETER RoundTimeoutMinutes
Minuti massimi di attesa per ogni round prima di interrompere i job rimasti. Minuti massimi di attesa per ogni round prima di interrompere i job rimasti.
@@ -44,7 +46,7 @@
param( param(
[int] $Rounds = 3, [int] $Rounds = 3,
[int] $Parallelism = 4, [int] $Parallelism = 4,
[string] $BuildCommand = 'exit 0', [string] $BuildCommand = 'if not exist dist mkdir dist & echo burnin_ok > dist\marker.txt',
[int] $RoundTimeoutMinutes = 60 [int] $RoundTimeoutMinutes = 60
) )