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
runtime/race: Tests pass with amd64 but fail with arm64 and ppc64le gohugoio/hugo #35308
Comments
@laboger FYI |
It looks like you are hitting a timeout, and |
Thank you so much @FiloSottile. I think you are right, as some days later, I saw this apparent timeout when running the same test on my own amd64 laptop too when it was busy. I will try to increase the timeout once I manage to find where it is set, and report back once I got the results on arm64 and ppc64le. Thanks again! |
The default timeout of 15000 millisecond is too short for go test -race on arm64. See golang/go#35308
I finally found an easy way to increase the timeout. Indeed, doubling the timeout from the default of 15000ms to 30000ms (by setting HUGO_TIMEOUT=30000) for arm64 on Travis CI solves the issue! (45000ms needed for plummer.debian.org). See gohugoio/hugo#6485 for details. Thanks again for looking into this, and my apologies for the false alarm. I am glad that there is no cross-platform issue with Go’s race detector. :-) Closing this issue. |
The default timeout of 15000 millisecond is too short for go test -race on arm64. See golang/go#35308
While trying to add Travis CI’s new Multi-CPU feature—arm64 build—to Hugo (gohugoio/hugo#6467), I saw that
go test -race ./...
passes on AMD64, it fails Arm64: not that it detected a race condition, but certain tests are found to FAIL.Debian’s arm64 porterbox amdahl.debian.org is down, but I was able to see similar failures on Debian’s ppc64le porterbox plummer.debian.org.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, it fails with Go 1.14 tip too, see https://travis-ci.org/gohugoio/hugo/jobs/605965543?utm_medium=notification&utm_source=github_status
What operating system and processor architecture are you using (
go env
)?go env
Output on arm64 on Travis CIgo env
Output on ppc64le on Debian porterboxWhat did you do?
On arm64: Run
mage -v check
where gohugoio/hugo/magefile.go callsgo test -race ./...
in a Travis CI run.On ppc64le:
What did you expect to see?
All tests pass, just like on amd64.
What did you see instead?
On arm64, from https://travis-ci.org/gohugoio/hugo/jobs/605965543#L515-L524:
On ppc64le, tested on plummer.debian.org:
The text was updated successfully, but these errors were encountered: