diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index d3815a75cd..19b9ef580a 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -26,6 +26,12 @@ jobs: - k8s-executor-build-push integration-test-k8s steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: go-version: '1.20' diff --git a/integration/integration_test.go b/integration/integration_test.go index 8e4b163e81..6846b7ab40 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -605,20 +605,15 @@ func buildImage(t *testing.T, dockerfile string, imageBuilder *DockerFileBuilder // Define the command and arguments cmd := exec.Command("kubectl", "--kubeconfig=/etc/rancher/k3s/k3s.yaml", "get", "po", "-n", "kube-system") - // Create a buffer to capture the output - var out bytes.Buffer - cmd.Stdout = &out + var podInfo bytes.Buffer + cmd.Stdout = &podInfo - // Run the command - err := cmd.Run() - if err != nil { - log.Fatal(err) + cmdErr := cmd.Run() + if cmdErr != nil { + log.Fatal(cmdErr) } - // Store the output in a string - cmdOutput := out.String() - - t.Errorf("cmdOutput: %s\n", cmdOutput) + t.Errorf("cmdOutput: %s\n", podInfo.String()) t.Errorf("Error building image: %s", err) t.FailNow() }