Skip to content

log: TestDiscard failures due to too many allocs #58797

Closed
@gopherbot

Description

@gopherbot
#!watchflakes
post <- log ~ `--- FAIL: TestDiscard` && log ~ `got \d+ allocs, want at most 1`

Issue created automatically to collect these failures.

Example (log):

vcs-test.golang.org rerouted to http://127.0.0.1:39277
https://vcs-test.golang.org rerouted to https://127.0.0.1:34125
go test proxy running at GOPROXY=http://127.0.0.1:46305/mod
--- FAIL: TestFilepathUnderCwdFormat (1.42s)
    go_test.go:2821: running testgo [test -x -cover log]
    go_test.go:2821: standard output:
    go_test.go:2821: --- FAIL: TestDiscard (0.03s)
            log_test.go:207: got 2 allocs, want at most 1
        FAIL
        	log	coverage: 71.1% of statements
...
        packagefile crypto/subtle=/workdir/gocache/93/936c2e22f4fcbd0b7273f97e835d5d6372de93d45fdb25c586e01b67ed05aa1d-d
        modinfo "0w\xaf\f\x92t\b\x02A\xe1\xc1\a\xe6\xd6\x18\xe6\xf92C1\x86\x18 r\x00\x82B\x10A\x16\xd8\xf2"
        EOF
        cd .
        /workdir/go/pkg/tool/linux_amd64/link -o $WORK/b001/log.test -importcfg $WORK/b001/importcfg.link -s -w -X=runtime.godebugDefault=panicnil=1 -buildmode=exe -buildid=Uffi6O2soViLSt0_OPlD/ELOjj7ShqfLNCy4nSPrW/23DB8BLVe9RvRZykr_Rq/Uffi6O2soViLSt0_OPlD -extld=gcc $WORK/b001/_pkg_.a
        mkdir -p $WORK/b001/gocoverdir
        $WORK/b001/log.test -test.testlogfile=$WORK/b001/testlog.txt -test.paniconexit0 -test.gocoverdir=$WORK/b001/gocoverdir -test.timeout=10m0s
        rm -r $WORK/b001/

    go_test.go:2821: go [test -x -cover log] failed unexpectedly in /workdir/go/src/cmd/go: exit status 1

watchflakes

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions