Skip to content

fix metric

fix metric #140

Triggered via pull request November 14, 2024 13:29
@kookseekooksee
synchronize #51
fix/fix_metric
Status Failure
Total duration 4m 4s
Artifacts

lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 5 warnings
github.com/pubgo/lava/core/responses ► TestMain: unit-tests.xml#L0
Failed test found in: unit-tests.xml Error: FAIL github.com/pubgo/lava/core/responses [build failed]
github.com/pubgo/lava/core/tracing ► TestMain: unit-tests.xml#L0
Failed test found in: unit-tests.xml Error: FAIL github.com/pubgo/lava/core/tracing [build failed]
test: core/responses/response_test.go#L13
undefined: testcodepb.ErrCodeDbConn
test
cannot use (*meter)(nil) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in variable declaration: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
test
cannot use mp.meters.Lookup(s, func() *meter {…}) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in return statement: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
test: core/responses/response_test.go#L13
undefined: testcodepb.ErrCodeDbConn
test
cannot use (*meter)(nil) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in variable declaration: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
test
cannot use mp.meters.Lookup(s, func() *meter {…}) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in return statement: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
test
Process completed with exit code 1.
lint: core/tracing/config.go#L9
could not import go.opentelemetry.io/otel/sdk/metric (-: # go.opentelemetry.io/otel/sdk/metric
lint
cannot use (*meter)(nil) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in variable declaration: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)
lint
cannot use mp.meters.Lookup(s, func() *meter {…}) (value of type *meter) as "go.opentelemetry.io/otel/metric".Meter value in return statement: *meter does not implement "go.opentelemetry.io/otel/metric".Meter (missing method Float64Gauge)) (typecheck)
lint: core/tracing/telemetry.go#L170
not enough arguments in call to assert.Must1
lint: core/responses/response.go#L1
: # github.com/pubgo/lava/core/responses [github.com/pubgo/lava/core/responses.test]
lint: core/responses/response_test.go#L13
undefined: testcodepb.ErrCodeDbConn (typecheck)
lint
issues found
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-go@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/