#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"

Issue created automatically to collect these failures.

Example (log):

2024/03/26 15:37:41 Info: caching response of length 25 for /A
2024/03/26 15:37:42 Info: cache get("/A"): context timed out
2024/03/26 15:37:42 Info: caching response of length 25 for /A
2024/03/26 15:37:42 Debug: serving "/A" from cache
--- FAIL: TestCache (0.21s)
    caching_test.go:156: [A is cached] GET returned status 403, want 200
    caching_test.go:164: [A is cached] GET returned body 3, want 2
    caching_test.go:182: [A is cached] CacheResultCount diff (-want +got):
          map[bool]int{
        -   false: 2,
...
        +   true:  1,
          }
    caching_test.go:182: [bypassing the cache] CacheResultCount diff (-want +got):
          map[bool]int{
        -   false: 3,
        +   false: 4,
        -   true:  2,
        +   true:  1,
          }
2024/03/26 15:37:42 Error: middleware.Panic: panic!

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"
2024-03-05 19:44 darwin-amd64-12_0 pkgsite@ea431292 go@b47f2feb x/pkgsite/internal/middleware.TestCache (log) 2024/03/26 15:37:41 Info: caching response of length 25 for /A 2024/03/26 15:37:42 Info: cache get("/A"): context timed out 2024/03/26 15:37:42 Info: caching response of length 25 for /A 2024/03/26 15:37:42 Debug: serving "/A" from cache --- FAIL: TestCache (0.21s) caching_test.go:156: [A is cached] GET returned status 403, want 200 caching_test.go:164: [A is cached] GET returned body 3, want 2 caching_test.go:182: [A is cached] CacheResultCount diff (-want +got):   map[bool]int{ -  false: 2, ... +  true: 1,   } caching_test.go:182: [bypassing the cache] CacheResultCount diff (-want +got):   map[bool]int{ -  false: 3, +  false: 4, -  true: 2, +  true: 1,   } 2024/03/26 15:37:42 Error: middleware.Panic: panic!

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"
2024-04-16 22:18 darwin-amd64-nocgo pkgsite@6631f544 go@a0205e65 x/pkgsite/internal/middleware.TestCache (log) 2024/04/18 22:26:52 Info: caching response of length 25 for /A 2024/04/18 22:26:52 Debug: serving "/A" from cache 2024/04/18 22:26:52 Info: caching response of length 25 for /A 2024/04/18 22:26:52 Info: cache get("/A"): context timed out 2024/04/18 22:26:52 Info: caching response of length 25 for /A --- FAIL: TestCache (0.22s) caching_test.go:164: [A is cached again] GET returned body 5, want 4 caching_test.go:182: [A is cached again] CacheResultCount diff (-want +got):   map[bool]int{ -  false: 3, +  false: 4, -  true: 2, +  true: 1,   } caching_test.go:182: [bypassing the cache] CacheResultCount diff (-want +got):   map[bool]int{ -  false: 3, +  false: 4, -  true: 2, +  true: 1,   } 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context deadline exceeded 2024/04/18 22:26:52 Error: context canceled 2024/04/18 22:26:53 Error: middleware.Panic: panic!

watchflakes