Skip to content

time: TestAfterQueuing fails on windows builders: #10680

@alexbrainman

Description

@alexbrainman

The TestAfterQueuing fails on windows builders recently:

http://build.golang.org/log/b9cb3c3357a4a8d874bf0669d6ee52f39f0be277
http://build.golang.org/log/62b0ebbe08b4b4b099b301a426e793286c2ed155
http://build.golang.org/log/bb3bbce19d8e09e3377629c491ca584faecc8ed0

with

--- FAIL: TestAfterQueuing (2.46s)
    sleep_test.go:235: attempt 0 failed: After(160ms) arrived at 532.1925ms, expected [150ms,360ms]
    sleep_test.go:235: attempt 1 failed: after slot 3, expected 1
    sleep_test.go:235: attempt 2 failed: after slot 3, expected 1
    sleep_test.go:239: after slot 3, expected 1
FAIL
FAIL    time    5.842s

The test does not fail for me here. But I suspect builders are CPU busy building Go and running tests - we are running both windows-386 and windows-amd64 in parallel. I added code similar to runtime/pprof/cpuHogger to TestAfterQueuing and I can make TestAfterQueuing fail on VM here (not on real hardware). I suggest we increase delta to 200 * Millisecond (It is 100 * Millisecond at this moment). That fixes my failure. It might make builders more reliable. How does that sound?

Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions