From 2341dacc639a4fa29809d978a755fac20cc588a4 Mon Sep 17 00:00:00 2001 From: George Blue Date: Wed, 9 Oct 2024 21:59:31 +0100 Subject: [PATCH] chore: don't compress brokerpaks in integration tests Compression is computationally expensive, and there's no value in doing it during the integration tests as the brokerpak will be immediately expanded after being compressed. So we now specify the --compress=false flag which will mean that the integration tests consume less compute, and might run faster. --- integrationtest/packer/brokerpak.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrationtest/packer/brokerpak.go b/integrationtest/packer/brokerpak.go index e727bafab..b8f8c04ba 100644 --- a/integrationtest/packer/brokerpak.go +++ b/integrationtest/packer/brokerpak.go @@ -40,7 +40,7 @@ func BuildBrokerpak(csbPath, sourcePath string, opts ...BuildBrokerpakOption) (s ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute) defer cancel() - cmd := exec.CommandContext(ctx, csbPath, "pak", "build", "--target", "current", sourcePath) + cmd := exec.CommandContext(ctx, csbPath, "pak", "build", "--target=current", "--compress=false", sourcePath) cmd.Dir = cfg.dir output, err := cmd.CombinedOutput()