golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.32k stars 17.58k forks source link

x/crypto/acme: test failures due to hard-coded timeouts #57107

Closed gopherbot closed 1 year ago

gopherbot commented 1 year ago
#!watchflakes
post <- pkg == "golang.org/x/crypto/acme" && `took too long|context deadline exceeded`

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestRFC_CreateOrderCert (3.79s)
    rfc8555_test.go:981: CreateOrderCert: context deadline exceeded

watchflakes

gopherbot commented 1 year ago

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/crypto/acme" && test == "TestRFC_CreateOrderCert"
2022-11-17 19:18 darwin-amd64-11_0 crypto@2c476679 go@e727f419 x/crypto/acme.TestRFC_CreateOrderCert (log) --- FAIL: TestRFC_CreateOrderCert (3.79s) rfc8555_test.go:981: CreateOrderCert: context deadline exceeded

watchflakes

bcmills commented 1 year ago

This appears to be caused by a hard-coded timeout in the test. In general, tests should avoid making assumptions about the speed or load factor of the machine on which they are running.

bcmills commented 1 year ago

(attn @rolandshoemaker @golang/security; CC @FiloSottile)

gopherbot commented 1 year ago

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/crypto/acme" && `took too long|context deadline exceeded`
2022-12-06 15:29 darwin-amd64-11_0 crypto@eb2c4062 go@dc04f3ba x/crypto/acme.TestRFC_WaitOrderError (log) --- FAIL: TestRFC_WaitOrderError (3.00s) rfc8555_test.go:921: WaitOrder took too long to return

watchflakes

gopherbot commented 1 year ago

Change https://go.dev/cl/456123 mentions this issue: acme: eliminate arbitrary timeouts in tests