moby / buildkit-bench

Set of benchmarks for BuildKit
https://moby.github.io/buildkit-bench/
Apache License 2.0
0 stars 2 forks source link

test daemon debug handler #46

Closed crazy-max closed 1 month ago

crazy-max commented 2 months ago

fails with v0.12.0: https://github.com/moby/buildkit-bench/actions/runs/10723332114/job/29736542119?pr=46#step:7:96

=== RUN   TestDaemon/TestDaemonDebugHeap/ref=v0.12.0/run=1
    daemon_test.go:51: 
            Error Trace:    /src/test/daemon_test.go:51
                                        /src/util/testutil/run.go:83
                                        /src/util/testutil/run.go:211
                                        /src/util/testutil/run.go:225
            Error:          Received unexpected error:
                            Get "http://127.0.0.1:40247/debug/pprof/heap?debug=1": dial tcp 127.0.0.1:40247: connect: connection refused
            Test:           TestDaemon/TestDaemonDebugHeap/ref=v0.12.0/run=1
    sandbox.go:92: stdout: /buildkit-binaries/v0.12.0/buildkitd --oci-worker=true --oci-worker-binary=/buildkit-binaries/v0.12.0/buildkit-runc --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bkbench_config321478311/buildkitd.toml --root /tmp/bkbench_buildkitd2482549302 --addr unix:///tmp/bkbench_buildkitd2482549302/buildkitd.sock --debug --debugaddr 127.0.0.1:40247
    sandbox.go:92: stderr: /buildkit-binaries/v0.12.0/buildkitd --oci-worker=true --oci-worker-binary=/buildkit-binaries/v0.12.0/buildkit-runc --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bkbench_config321478311/buildkitd.toml --root /tmp/bkbench_buildkitd2482549302 --addr unix:///tmp/bkbench_buildkitd2482549302/buildkitd.sock --debug --debugaddr 127.0.0.1:40247
    sandbox.go:95: > StartCmd 2024-09-05 15:26:09.135407165 +0000 UTC m=+1.974518748 /buildkit-binaries/v0.12.0/buildkitd --oci-worker=true --oci-worker-binary=/buildkit-binaries/v0.12.0/buildkit-runc --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bkbench_config321478311/buildkitd.toml --root /tmp/bkbench_buildkitd2482549302 --addr unix:///tmp/bkbench_buildkitd2482549302/buildkitd.sock --debug --debugaddr 127.0.0.1:40247
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=debug msg="debug handlers listening at 127.0.0.1:40247"
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=info msg="auto snapshotter: using overlayfs"
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=warning msg="using host network as the default"
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=info msg="found worker \"11xxy25nj5kferdlzrz9shg3l\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:112d16729e3c org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/386]"
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=info msg="found 1 workers, default=\"11xxy25nj5kferdlzrz9shg3l\""
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=warning msg="currently, only the default worker can be used."
    sandbox.go:95: time="2024-09-05T15:26:09Z" level=info msg="running server on /tmp/bkbench_buildkitd2482549302/buildkitd.sock"
    run.go:213: 
            Error Trace:    /src/util/testutil/run.go:213
                                        /src/util/testutil/run.go:214
                                        /src/test/daemon_test.go:20
            Error:          Should be true
            Test:           TestDaemon

Relates to https://github.com/moby/buildkit/pull/3650/files#diff-6e528092fd700dc985cf83b9fe8ae2bed31a01bb8abfabf9c3d3a9007407a5bdR46 and fixed in 0.12.4: https://github.com/moby/buildkit/pull/4361