-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/internal/lsp: TryBot failure in upgradedep #39504
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
Comments
There are somewhat similar flakes on the builders across multiple tests: https://build.golang.org/log/e954e51ef512c8b2149f6233c26f33ca3fa31294 |
Thanks - I didn't realize these tests were already flaky. Converting to regtests sounds like the right path to me - I'll try to do that today. |
They're not -- those are completely unrelated tests failing with what looks like a similar root cause to me. |
Oh thanks for clarifying, should've checked the logs. Maybe it is because our testdata has a |
Me too: modest changes in unrelated code, and ran trybots 3 times, and each time 1/10 failed in TestCommandLine, each time a different trybot. |
here's references to the logs: |
Change https://golang.org/cl/237419 mentions this issue: |
We're fairly certain that this is caused by our reuse of the same temporary |
ModHandle races with the initial workspace load if the go.mod file does not yet exist. We should await for the initial workspace load to complete before proceeding with update codelenses, etc. Part of trying to figure out the flakes in golang/go#39504. Also a few staticcheck fixes, and fix the Windows line endings in fill_struct.go, because `git gofmt` complains. Change-Id: Ide21a47137390792d1afb924740cff0bb6f0b764 Reviewed-on: https://go-review.googlesource.com/c/tools/+/237419 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
Change https://golang.org/cl/237517 mentions this issue: |
When testing CL 237017, I saw TryBot failures on two tests:
I couldn't reproduce this locally (darwin, amd64) or in a VM (linux, amd64). I was able to reproduce it through gomote on linux-amd64. The failure doesn't happen every time; I had to use
-count=5
or so.The failing command is:
The
.mod
file is the same as the one intestdata
. There's no.sum
file intestdata
, so I'm not really sure how that gets populated when this test passes.I'd actually expect the command above to fail when
go.sum
is absent or incomplete. It should write sums for.mod
files loaded during MVS. It should fail because of-mod readonly
.Given that this happens irregularly, I suspect the
go list -u -m
command above is racing with whatever sets up the test workspace and populates thego.sum
file.cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: