-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Originally from CodSpeedHQ/action#192 (comment)
Running the benchmarks
cd ./bridge/opencensus && go test -run='^$' -bench=. -benchtime=500ms ./...
warning: flag '-run=^$' is not supported by CodSpeed Go runner, ignoring
go: downloading go.opencensus.io v0.24.0
go: downloading github.com/stretchr/testify v1.11.1
go: downloading github.com/go-logr/logr v1.4.3
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading go.opentelemetry.io/auto/sdk v1.2.1
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/google/uuid v1.6.0
go: downloading golang.org/x/sys v0.41.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8
WORK=/tmp/go-build367140737
testing
Error: /tmp/.tmpIEK36N/codspeed.go:17:20: undefined: InstrumentHooks
Error: /tmp/.tmpIEK36N/benchmark.go:142:22: undefined: CurrentTimestamp
Error: /tmp/.tmpIEK36N/benchmark.go:147:18: undefined: CurrentTimestamp
Error: /tmp/.tmpIEK36N/benchmark.go:174:22: undefined: CurrentTimestamp
Error: /tmp/.tmpIEK36N/benchmark.go:464:19: undefined: CurrentTimestamp
Error: /tmp/.tmpIEK36N/benchmark.go:747:22: undefined: NewInstrumentHooks
FAIL go.opentelemetry.io/otel/bridge/opencensus [build failed]
FAIL go.opentelemetry.io/otel/bridge/opencensus/internal [build failed]
FAIL go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel [build failed]
FAIL go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric [build failed]
FAIL go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc [build failed]
FAIL
[WARN codspeed_go_runner::runner] Command output:
[WARN codspeed_go_runner::runner] Command error output:
Error: Failed to run benchmarks: Failed to run benchmark. Exit status: exit status: 1
Stdout:
Stderr:
make: *** [Makefile:188: benchmark/./bridge/opencensus] Error 1
Error: Error: failed to execute the benchmark process: exit status: 2
Error: Process completed with exit code 1.
https://github.com/open-telemetry/opentelemetry-go/actions/runs/22695372512/job/65800569749?pr=7998
@XSAM FYI, moving this from CodSpeedHQ/action#192 as it's now more closely related to the codspeed-go runner requirements