-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: mod_lazy_new_import and mod_multirepo flaky failed on linux-wsl and linux-s390x builders #53269
Comments
cc @bcmills |
Also fails on the S390X builder TestScript/mod_multirepo is also flaky on these two builders. Not sure if there is any connection.
2022-06-07T16:57:52-835a946/linux-s390x-ibm |
I'm able to reproduce this on a local s390x machine. I've been running one of the failing tests @matloob, it started failing soon after https://go-review.googlesource.com/c/go/+/403778. I changed The failure in the
I tried adding Not sure what to try next so happy to try any suggestions. I can also provide access to an s390x VM if it would help. |
@jonathan-albrecht-ibm thanks for looking into this! Tentatively mark as a release blocker, as this is new failure. @matloob and @bcmills can decide. Thanks. |
Hi, access to a s390x VM would be super helpful, thanks! |
@matloob no problem. Please send me an email at the address on my profile page https://github.com/jonathan-albrecht-ibm and I'll send you the VM access details. |
@matloob, I did a git bisect starting from before the first modindex changes were merged and got: ee87cd1 is the first bad commit. I tested with the I have tried debugging it a bit but haven't figured out exactly what's going on. I think its not building a new mod index in the failure case and some how using a default empty index. In the failure case, on Hope that helps |
It looks like the moduleHash isn't changing in |
Change https://go.dev/cl/412394 mentions this issue: |
… and the module cache Since CL 410821 we were indexing these modules with a cache key based on the mtimes of the files within the module. However, that seems to be causing test failures (#53269 and maybe #53371). In addition, indexing these modules caused a potentially-expensive operation (re-indexing a whole module) whenever any individual file within the module is changed, even if it isn't relevant to the package(s) being loaded from that module. In some cases, that could cause a significant performance regression for 'go' commands invoked on a small subset of the packages in the module (such as running 'go test' on a single changed package — a common case during development). Instead, we now index only those modules found within the module cache and within GOROOT. In addition, we now check mtimes when indexing GOROOT modules if the Go version begins with the string "devel ", which indicates a non-released Go version that may include local file edits within GOROOT. For #53371. For #53269. Change-Id: Id3aa81b55ecfc478e47dd420148d39d2cf476f2d Reviewed-on: https://go-review.googlesource.com/c/go/+/412394 Reviewed-by: Michael Matloob <matloob@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com>
I think this should be fixed by CL 412394, but I'd like to see more test runs on these builders to confirm. |
Does appear to be fixed by CL 412394, but that also had a typo that I missed and needs CL 412779 as a followup. |
FWIW, I've been running the |
CL 412779 is in, so we should be all clear on these failures now. |
Does this issue reproduce with the latest release?
maybe, it failed at 77d9252
What did you expect to see?
All test passed
What did you see instead?
https://build.golang.org/log/8f84b20723e5bdae8362924b3a103ced90a515c6
https://build.golang.org/log/87edf847a20c338f407a5183c1fd6c80e070555e
The text was updated successfully, but these errors were encountered: