-
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
x/telemetry: TestCounter
fails if the current date does not match the UTC date
#62192
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Found new dashboard test flakes for:
2023-08-21 19:53 aix-ppc64 telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 aix-ppc64 telemetry@8cbe8f81 go@ba6fe517 x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 aix-ppc64 telemetry@8cbe8f81 go@47645420 x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-amd64-11_0 telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-10_15 telemetry@8cbe8f81 go@14f5eb7f x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-amd64-10_15 telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 linux-s390x-ibm telemetry@8cbe8f81 go@14f5eb7f x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 linux-s390x-ibm telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-longtest telemetry@8cbe8f81 go@14f5eb7f x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-amd64-longtest telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-13 telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-nocgo telemetry@8cbe8f81 go@fecf5171 x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-arm64-11 telemetry@8cbe8f81 go@e7e99a8e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-arm64-11 telemetry@8cbe8f81 go@c140105e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-arm64-11 telemetry@8cbe8f81 go@14f5eb7f x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-arm64-12 telemetry@8cbe8f81 go@e7e99a8e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-arm64-12 telemetry@8cbe8f81 go@c140105e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-arm64-12 telemetry@8cbe8f81 go@14f5eb7f x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-12_0 telemetry@8cbe8f81 go@e7e99a8e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-amd64-12_0 telemetry@8cbe8f81 go@c140105e x/telemetry/internal/counter.TestRotate (log)
|
Found new dashboard test flakes for:
2023-08-21 19:53 darwin-amd64-nocgo telemetry@8cbe8f81 go@e7e99a8e x/telemetry/internal/counter.TestRotate (log)
2023-08-21 19:53 darwin-amd64-nocgo telemetry@8cbe8f81 go@c140105e x/telemetry/internal/counter.TestRotate (log)
|
I believe @hyangah's in-flight refactoring of the tests is close to fixing this (we need to close over a fixed date). |
https://build.golang.org/log/f9adf22ae18f3c790952f2f3efe33e81cdaf4329:
The test was added in https://go.dev/cl/499920, with the comment:
I think there are two problems in the test:
time.Date(year, month, day, 0, 0, 0, 0, time.UTC)
with arguments derived fromtime.Now().Date()
(without an explicit time zone). It should either converttime.Now()
totime.UTC
before extracting the date, or constructnow
in the local time zone instead of UTC.time.Now()
.This test was added in https://go.dev/cl/499920 (attn @pjweinb, @hyangah, @jamalc).
The text was updated successfully, but these errors were encountered: