Skip to content

Commit

Permalink
chore: fix bb test (#2340)
Browse files Browse the repository at this point in the history
## Description

Currently when trying to run the BB test outside of CI with
```bash
go test ./src/extensions/bigbang/test -failfast -v -timeout 30m
```
You get
```bash
Error: accepts at most 1 arg(s), received 2
```
We are also getting disk pressure errors in actions. Would like to come
to a conclusions as a team on how we handle. Remove default tools or get
bigger runners

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

---------

Co-authored-by: Wayne Starr <[email protected]>
  • Loading branch information
AustinAbro321 and Racer159 authored Mar 4, 2024
1 parent 5f89621 commit 6f96c3e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/extensions/bigbang/test/bigbang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ func TestMain(m *testing.M) {
}

func TestReleases(t *testing.T) {
tmpdir := ""
CIMount := "/mnt/zarf-tmp"
tmpdir := fmt.Sprintf("--tmpdir=%s", t.TempDir())
zarfCache := ""
// If we are in CI set the temporary directory to /mnt/zarf-tmp to reduce disk pressure
if os.Getenv("CI") == "true" {
tmpdir = "--tmpdir=/mnt/zarf-tmp"
tmpdir = fmt.Sprintf("--tmpdir=%s", CIMount)
zarfCache = fmt.Sprintf("--zarf-cache=%s", CIMount)
}

// Initialize the cluster with the Git server and AMD64 architecture
arch := "amd64"
stdOut, stdErr, err := zarfExec("init", "--components", "git-server", "--architecture", arch, tmpdir, "--confirm")
stdOut, stdErr, err := zarfExec("init", "--components", "git-server", "--architecture", arch, tmpdir, "--confirm", zarfCache)
require.NoError(t, err, stdOut, stdErr)

// Remove the init package to free up disk space on the test runner
Expand Down

0 comments on commit 6f96c3e

Please sign in to comment.