-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls/internal/telemetry: TestTelemetry failures #62161
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
Labels
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Comments
Found new dashboard test flakes for:
2023-08-18 14:18 linux-arm64-longtest tools@9425c2e7 go@a9859a7d x/tools/gopls/internal/telemetry.TestTelemetry (log)
|
Change https://go.dev/cl/523795 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Aug 29, 2023
We observed a couple of test failures. My current hypothesis is that the bug is in how countertest.ReadCounter and countertest.ReadStackCounter read the data. They try to access the counter values by reading the contents of the mapped file on disk and parsing them with counter.Parse. They call 'file.rotate' before reading the files to ensure the file is mapped. However, if file.rotate ends up actually rotating the underlying file (due to crossing the UTC day boundary), the counter data may be flushed out and reset. As we are moving to 'week' instead of 'day' for file rotation, I don't know how frequently we will encounter this issue though if this was the root cause. Log the timestamp when the test fails, to evaluate the hypothesis. For golang/go#62161 Change-Id: If00b0788b6927640a979d17f8fe888232d27ea09 Reviewed-on: https://go-review.googlesource.com/c/tools/+/523795 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: Gopher Robot <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
Looks like this is fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Tools
This label describes issues relating to any tools in the x/tools repository.
Issue created automatically to collect these failures.
Example (log):
— watchflakes
The text was updated successfully, but these errors were encountered: