You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests create very large zip files on purpose,
which is very slow under the race detector due to compress/flate.
The tests and tested API have no concurrency at all,
so the data race detector doesn't add anything useful.
The slowness simply makes our CI's `go test -race ./...` too slow.
Skip the tests when the data race detector is enabled.
Since the upstream Go proposal for runtime/race.Enabled was rejected,
add a similar constant to our internal/cuetest package.
`go test -race ./internal/mod/zip` drops from ~40s to ~1s on my laptop.
Note that we already skip these tests in `go test -short` mode,
but we don't want CI to use `go test -race -short ./...`,
as the data race detector is still useful on other non-short tests.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I44f707c8220af8bb943f5c3e162ef948a78a34c0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170024
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments