From 9f36949b26d43c6ccbb08181c9d4452458d2c673 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 26 Sep 2025 13:17:29 +0200 Subject: vm: add context to Pool.Create() Enable external abortion of the instance creation process. This is especially useful for the qemu case where we retry the creation/boot up to 1000 times, which can take significant time (e.g. it timeouts syz-cluster pods on unstable kernels). The context can be further propagated to WaitForSSH, but that requires another quite significant vm/ refactoring. --- pkg/build/netbsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/build') diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index 199ebc424..e9eebe75b 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -130,7 +130,7 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string) return fmt.Errorf("failed to create a Reporter: %w", err) } // Create a VM instance (we need only one). - inst, err := pool.Create(0) + inst, err := pool.Create(context.Background(), 0) if err != nil { return fmt.Errorf("failed to create the VM Instance: %w", err) } -- cgit mrf-deployment