#!watchflakes
default <- pkg == "runtime/pprof" && test == "TestGenericsHashKeyInPprofBuilder"

This test failed in CI: https://ci.chromium.org/ui/p/golang/builders/try/gotip-linux-amd64-staticlockranking/b8732088109106960193/test-results?sortby=&groupby=

The problem is we got

testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 1 128]

but want

testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 0 0]

I think this is saying that the allocation is unexpectedly live. The 128 one at https://cs.opensource.google/go/go/+/master:src/runtime/pprof/protomem_test.go;l=132;drc=6f59c11155d75024985d4827a7fe155cd6561df9.

This test isn't intending to test liveness at all, so ignoring that field likely makes the most sense.

cc @golang/runtime

Comment From: gabyhelp

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime/pprof" && test == "TestGenericsHashKeyInPprofBuilder"
2024-11-21 10:40 gotip-linux-amd64-staticlockranking go@28f4e14e runtime/pprof.TestGenericsHashKeyInPprofBuilder (log) === RUN TestGenericsHashKeyInPprofBuilder protomem_test.go:158: profile = testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.WriteHeapProfile;runtime/pprof.writeHeap;runtime/pprof.writeHeapInternal [0 0 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;bytes.NewBuffer [0 0 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint64] [1 64 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint64] [1 32 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 256 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 1 128] testing.tRunner;runtime/pprof.TestConvertMemProfile.func1;runtime/pprof.writeHeapProto;runtime/pprof.(*profileBuilder).build;compress/gzip.(*Writer).Write;compress/flate.NewWriter [2 1327104 0 0] testing.tRunner;runtime/pprof.TestEmptyStack;runtime/pprof.translateCPUProfile;internal/profile.Parse;compress/gzip.NewReader;compress/gzip.(*Reader).Reset;compress/gzip.(*Reader).readHeader;compress/flate.NewReader [1 4864 0 0] testing.tRunner;runtime/pprof.TestEmptyStack;runtime/pprof.translateCPUProfile;runtime/pprof.(*profileBuilder).build;compress/gzip.(*Writer).Write;compress/flate.NewWriter;compress/flate.(*compressor).init [1 262144 0 0] ... runtime.systemstack;runtime.newproc.func1;runtime.newproc1;runtime.malg [17 7616 17 7616] testing.tRunner;runtime/pprof.TestMemoryProfiler;runtime/pprof.allocateTransient2M [16 256 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler;runtime/pprof.allocateTransient2M [1 128 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler;runtime/pprof.allocateTransient2M [1 2097152 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler;runtime/pprof.allocateTransient1M [1024 1048576 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler [1024 24576 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler [1024 1048576 0 0] runtime.mstart;runtime.mstart0;runtime.mstart1;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm [8 16384 8 16384] want = testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 0 0] --- FAIL: TestGenericsHashKeyInPprofBuilder (1.70s)

watchflakes

Comment From: gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime/pprof" && test == "TestGenericsHashKeyInPprofBuilder"
2025-09-04 16:24 gotip-linux-amd64_avx512-greenteagc go@4f7bbc62 runtime/pprof.TestGenericsHashKeyInPprofBuilder (log) === RUN TestGenericsHashKeyInPprofBuilder protomem_test.go:158: profile = testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.WriteHeapProfile;runtime/pprof.writeHeap;runtime/pprof.writeHeapInternal [0 0 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;bytes.NewBuffer [0 0 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint64] [1 128 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint64] [1 64 0 0] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 256 1 256] testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 0 0] testing.tRunner;runtime/pprof.TestConvertMemProfile.func1;runtime/pprof.writeHeapProto;runtime/pprof.(*profileBuilder).build;compress/gzip.(*Writer).Write;compress/flate.NewWriter;compress/flate.(*compressor).init [1 262144 0 0] testing.tRunner;runtime/pprof.TestConvertMemProfile.func1;runtime/pprof.writeHeapProto;runtime/pprof.(*profileBuilder).build;compress/gzip.(*Writer).Write;compress/flate.NewWriter [1 663552 0 0] testing.tRunner;runtime/pprof.TestConvertMemProfile.func1;runtime/pprof.writeHeapProto;runtime/pprof.(*profileBuilder).build;compress/gzip.(*Writer).Write;compress/flate.NewWriter;compress/flate.(*compressor).init;compress/flate.newDeflateFast [1 139264 0 0] ... runtime.mcall;runtime.park_m;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm;runtime.mcommoninit;runtime.mProfStackInit;runtime.makeProfStackFP [1 1152 1 1152] runtime.mcall;runtime.park_m;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm;runtime.mcommoninit;runtime.mProfStackInit;runtime.makeProfStackFP [1 1152 1 1152] runtime.mcall;runtime.park_m;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm;runtime.mcommoninit;runtime.mpreinit;runtime.malg [1 448 1 448] runtime.mcall;runtime.park_m;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm [2 4096 2 4096] testing.tRunner;runtime/pprof.TestMemoryProfiler [1024 24576 0 0] testing.tRunner;runtime/pprof.TestMemoryProfiler [1024 1048576 0 0] runtime.bgscavenge;runtime.(*scavengerState).init [1 96 1 96] runtime.mstart;runtime.mstart0;runtime.mstart1;runtime.schedule;runtime.resetspinning;runtime.wakep;runtime.startm;runtime.newm;runtime.allocm [2 4096 2 4096] want = testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 256 0 0] --- FAIL: TestGenericsHashKeyInPprofBuilder (0.77s)

watchflakes