go: runtime: TestRuntimeLockMetricsAndProfile failures

#!watchflakes
post <- pkg == "runtime" && test == "TestRuntimeLockMetricsAndProfile"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestRuntimeLockMetricsAndProfile (0.03s)
    --- FAIL: TestRuntimeLockMetricsAndProfile/runtime.lock (0.02s)
        --- FAIL: TestRuntimeLockMetricsAndProfile/runtime.lock/sample-1 (0.01s)
            metrics_test.go:1048: lock contention growth in runtime/pprof's view  (0.006333s)
            metrics_test.go:1049: lock contention growth in runtime/metrics' view (0.006331s)
            metrics_test.go:1077: stack [runtime.unlock runtime_test.TestRuntimeLockMetricsAndProfile.func5.1 runtime_test.(*contentionWorker).run] has samples totaling n=99 value=6332772
            metrics_test.go:1156: mutex profile reported contention count different from the known true count (99 != 100)

watchflakes

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Comments: 43 (17 by maintainers)

Commits related to this issue

Most upvoted comments

More of an explanation: these tests are checking behavior that’s behind a GODEBUG anyway. It’s fine if we just disable the tests, because even if something breaks between now and the next dev period (unlikely) it won’t affect the vast majority of users.

We won’t delete the tests because that functionality is going to be revisited for Go 1.23 anyway (by @rhysh I believe).