Skip to content

enhance: simple head samplers for ratio and rate limit #14052

enhance: simple head samplers for ratio and rate limit

enhance: simple head samplers for ratio and rate limit #14052

Triggered via push August 21, 2024 14:28
Status Failure
Total duration 38s
Artifacts

validate.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

49 errors and 1 warning
validate
Process completed with exit code 1.
[golangci] database/service/create.go#L3: database/service/create.go#L3
3-41 lines are duplicate of `database/service/update.go:3-41` (dupl)
[golangci] database/service/update.go#L3: database/service/update.go#L3
3-41 lines are duplicate of `database/service/create.go:3-41` (dupl)
[golangci] database/step/create.go#L3: database/step/create.go#L3
3-41 lines are duplicate of `database/step/update.go:3-41` (dupl)
[golangci] database/step/update.go#L3: database/step/update.go#L3
3-41 lines are duplicate of `database/step/create.go:3-41` (dupl)
[golangci] database/hook/create.go#L3: database/hook/create.go#L3
3-41 lines are duplicate of `database/hook/update.go:3-41` (dupl)
[golangci] database/hook/update.go#L3: database/hook/update.go#L3
3-41 lines are duplicate of `database/hook/create.go:3-41` (dupl)
[golangci] database/pipeline/create.go#L3: database/pipeline/create.go#L3
3-57 lines are duplicate of `database/pipeline/update.go:3-58` (dupl)
[golangci] database/pipeline/update.go#L3: database/pipeline/update.go#L3
3-58 lines are duplicate of `database/pipeline/create.go:3-57` (dupl)
[golangci] database/deployment/list.go#L33: database/deployment/list.go#L33
33-63 lines are duplicate of `database/deployment/list_repo.go:46-76` (dupl)
[golangci] database/deployment/list_repo.go#L46: database/deployment/list_repo.go#L46
46-76 lines are duplicate of `database/deployment/list.go:33-63` (dupl)
[golangci] database/deployment/create.go#L3: database/deployment/create.go#L3
3-37 lines are duplicate of `database/deployment/update.go:3-37` (dupl)
[golangci] database/deployment/update.go#L3: database/deployment/update.go#L3
3-37 lines are duplicate of `database/deployment/create.go:3-37` (dupl)
[golangci] mock/server/schedule.go#L3: mock/server/schedule.go#L3
3-284 lines are duplicate of `mock/server/secret.go:4-181` (dupl)
[golangci] database/worker/create.go#L3: database/worker/create.go#L3
3-41 lines are duplicate of `database/worker/update.go:3-41` (dupl)
[golangci] database/worker/update.go#L3: database/worker/update.go#L3
3-41 lines are duplicate of `database/worker/create.go:3-41` (dupl)
[golangci] api/pipeline/validate.go#L78: api/pipeline/validate.go#L78
78-110 lines are duplicate of `api/pipeline/compile.go:80-112` (dupl)
[golangci] api/pipeline/validate.go#L3: api/pipeline/validate.go#L3
3-110 lines are duplicate of `api/pipeline/expand.go:4-112` (dupl)
[golangci] tracing/tracer.go#L8: tracing/tracer.go#L8
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(github.com/go-vela) --custom-order (gci)
[golangci] tracing/tracer.go#L17: tracing/tracer.go#L17
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(github.com/go-vela) --custom-order (gci)
[golangci] mock/server/authentication.go#L81: mock/server/authentication.go#L81
string `error` has 4 occurrences, make it a constant (goconst)
[golangci] tracing/sampler/sampler.go#L1: tracing/sampler/sampler.go#L1
Missed header for check (goheader)
[golangci] database/types/build.go#L375: database/types/build.go#L375
G115: integer overflow conversion int -> int32 (gosec)
[golangci] database/types/build.go#L376: database/types/build.go#L376
G115: integer overflow conversion int -> int32 (gosec)
[golangci] database/types/repo.go#L330: database/types/repo.go#L330
G115: integer overflow conversion int -> int32 (gosec)
[golangci] database/types/settings.go#L205: database/types/settings.go#L205
G115: integer overflow conversion uint64 -> int64 (gosec)
[golangci] scm/github/webhook.go#L87: scm/github/webhook.go#L87
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] scm/github/webhook.go#L130: scm/github/webhook.go#L130
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] scm/github/authentication.go#L36: scm/github/authentication.go#L36
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] tracing/sampler/sampler.go#L34: tracing/sampler/sampler.go#L34
unused-parameter: parameter 'parameters' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] tracing/sampler/sampler.go#L13: tracing/sampler/sampler.go#L13
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
[golangci] tracing/sampler/sampler.go#L14: tracing/sampler/sampler.go#L14
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
[golangci] tracing/sampler/sampler.go#L15: tracing/sampler/sampler.go#L15
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
[golangci] tracing/sampler/sampler.go#L27: tracing/sampler/sampler.go#L27
unexported-return: exported func NewRateLimitSampler returns unexported type *sampler.rateLimitSampler, which can be annoying to use (revive)
[golangci] tracing/sampler/sampler.go#L43: tracing/sampler/sampler.go#L43
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
[golangci] secret/vault/refresh_test.go#L45: secret/vault/refresh_test.go#L45
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L71: secret/vault/refresh_test.go#L71
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L108: secret/vault/refresh_test.go#L108
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L128: secret/vault/refresh_test.go#L128
unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] secret/vault/refresh_test.go#L201: secret/vault/refresh_test.go#L201
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] router/middleware/logger.go#L48: router/middleware/logger.go#L48
unused-parameter: parameter 'timeFormat' seems to be unused, consider removing or renaming it as _ (revive)
[golangci] tracing/sampler/sampler.go#L53: tracing/sampler/sampler.go#L53
unnecessary trailing newline (whitespace)
[golangci] api/webhook/post.go#L193: api/webhook/post.go#L193
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] api/webhook/post.go#L598: api/webhook/post.go#L598
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] api/webhook/post.go#L609: api/webhook/post.go#L609
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
[golangci] compiler/native/compile.go#L328: compiler/native/compile.go#L328
Function `modifyConfig` should pass the context parameter (contextcheck)
[golangci] compiler/native/compile.go#L423: compiler/native/compile.go#L423
Function `modifyConfig` should pass the context parameter (contextcheck)
[golangci] compiler/template/starlark/starlark.go#L131: compiler/template/starlark/starlark.go#L131
only one cuddle assignment allowed before if statement (wsl)
[golangci] secret/vault/get.go#L40: secret/vault/get.go#L40
directive `//nolint:ineffassign,staticcheck // ignore false positive` is unused for linter "staticcheck" (nolintlint)
validate
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2