Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime/pprof: flaky TestGenericsHashKeyInPprofBuilder #70208

Open
prattmic opened this issue Nov 5, 2024 · 2 comments
Open

runtime/pprof: flaky TestGenericsHashKeyInPprofBuilder #70208

prattmic opened this issue Nov 5, 2024 · 2 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@prattmic
Copy link
Member

prattmic commented Nov 5, 2024

#!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

@prattmic prattmic added NeedsFix The path to resolution is known, but the work has not been done. compiler/runtime Issues related to the Go compiler and/or runtime. labels Nov 5, 2024
@gopherbot
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done.
Projects
Status: No status
Development

No branches or pull requests

4 participants