aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow/boot-step
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-08-14 15:18:11 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-08-14 13:36:44 +0000
commitce6345d071a89be1e5ca2b2ea9a28b01eb3fa775 (patch)
treeccc71b8752cfa0d2d33fe55206978018f9840de0 /syz-cluster/workflow/boot-step
parenta3bef26e86cf0891b48c77aa1960618e176e9424 (diff)
syz-cluster: use fewer VMs in the boot step
Our base configs have 4 VMs, but we don't need that many for the boot test.
Diffstat (limited to 'syz-cluster/workflow/boot-step')
-rw-r--r--syz-cluster/workflow/boot-step/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/syz-cluster/workflow/boot-step/main.go b/syz-cluster/workflow/boot-step/main.go
index 2b180098b..648d7d5bb 100644
--- a/syz-cluster/workflow/boot-step/main.go
+++ b/syz-cluster/workflow/boot-step/main.go
@@ -76,11 +76,17 @@ func main() {
// the test must fail 3 times in a row.
const retryCount = 3
+// The base config may have more VMs, but we don't need that many.
+const vmCount = 3
+
func runTest(ctx context.Context, client *api.Client) (bool, error) {
cfg, err := mgrconfig.LoadFile(filepath.Join("/configs", *flagConfig, "base.cfg"))
if err != nil {
return false, err
}
+ if err := instance.OverrideVMCount(cfg, vmCount); err != nil {
+ return false, err
+ }
cfg.Workdir = "/tmp/test-workdir"
var rep *report.Report