-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run all Go tests with flag -race #7783
Run all Go tests with flag -race #7783
Conversation
hmm. apparently not supported on 386 architectures. |
@ssoroka I'm modifying makefile to not run them with the flag |
Let's make this a new phony target |
looks like there's a race affecting windows only.
It's redundant as it's checked on init, and causing the race condition. |
Another option instead of the phony target is to do nothing in the Makefile, but set GOFLAGS="$GOFLAGS -race" in the CI configuration. I'm not 100% sure if this flag is honored though, would need tested. |
I didn't have time and Win setup to check it in detail. On other systems, it works fine 🙂 |
Required for all PRs:
Running
on current master finishes without any errors, so it's a great opportunity to add
-race
flag to all invocation of tests and closes #7729 🎉In the
Makefile
for all invocation of tests if run not withGOARCH=386
flag (Go race detector works only on 64 bit architectures) flag-race
is added.