-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix -race, drop -v, fix broken test (#82)
This change fixes our CI setup to actually enable data race detection. The `NO_RACE` logic we had in place was always disabling data race detection, so we didn't catch a data race in one of the tests. This fixes that. Example failure: https://github.com/bracesdev/errtrace/actions/runs/7302696877/job/19901817884 <img width="505" alt="image" src="https://github.com/bracesdev/errtrace/assets/41730/8d11b04f-b351-48da-a72e-1cee1cb1643e"> Data race detection is enabled only on amd64 because we run arm64 with qemu, and -race requires cgo. Example failure from ubuntu arm64: ``` go test -coverprofile cover.unsafe.out -coverpkg ./... -race ./... go: -race requires cgo ``` Lastly, this drops the `-v` from when we run tests. The verbose output makes it harder to find the actual test failure. Without `-v`, only failures will be printed.
- Loading branch information
Showing
4 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters