Enable the Go race detector for the test make target and CI workflow (#765)

- [x] Tests pass
- [ ] Appropriate changes to documentation are included in the PR
This commit is contained in:
Luiz Oliveira
2026-08-05 16:23:06 -07:00
committed by GitHub
parent 2fe26c162b
commit 2feda2ae44
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -36,12 +36,12 @@ jobs:
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: 'go.mod'
- run: go test -v ./...
- run: go test -race -v ./...
# Root-gated tests (overlay mounts, whiteout mknod, trusted.* xattrs, ...)
# skip for the unprivileged runner user above; rerun the packages that
# contain them (any test importing internal/roottest) under sudo.
- name: root-gated tests
run: hack/run-root-tests.sh -v
run: hack/run-root-tests.sh -race -v
- name: verify
run: hack/verify-all.sh
# One kind cluster exercises BOTH runtimes. Free x86-64 ubuntu-latest runners
+1 -1
View File
@@ -61,7 +61,7 @@ build-demos:
.PHONY: test
test:
$(GO) test ./...
$(GO) test -race ./...
.PHONY: e2e
e2e: build build-demos