Skip to content

fix:修复resolver无法过滤不健康以及隔离的实例 (#71) #153

fix:修复resolver无法过滤不健康以及隔离的实例 (#71)

fix:修复resolver无法过滤不健康以及隔离的实例 (#71) #153

Triggered via push August 27, 2024 08:27
Status Failure
Total duration 3m 13s
Artifacts

testing.yml

on: push
Matrix: build
Matrix: golangci-lint
Matrix: Run Revive Action
Fit to window
Zoom out
Zoom in

Annotations

62 errors and 50 warnings
build (1.16): global.go#L67
exported function ClosePolarisContext should have comment or be unexported
build (1.16): logger.go#L31
exported type LogLevel should have comment or be unexported
build (1.16): logger.go#L35
exported const LogDebug should have comment (or a comment on this block) or be unexported
build (1.16): logger.go#L58
exported function SetLogger should have comment or be unexported
build (1.16): logger.go#L62
exported function GetLogger should have comment or be unexported
build (1.16): logger.go#L66
exported type Logger should have comment or be unexported
build (1.16): ratelimit.go#L67
exported method RateLimitInterceptor.StreamServerInterceptor should have comment or be unexported
build (1.16): resolver.go#L36
exported type ResolverContext should have comment or be unexported
build (1.16): resolver.go#L50
comment on exported function RegisterResolverInterceptor should be of the form "RegisterResolverInterceptor ..."
build (1.16): resolver.go#L58
exported function NewResolver should have comment or be unexported
build (1.18)
The job was canceled because "_1_16" failed.
build (1.18): global.go#L67
exported function ClosePolarisContext should have comment or be unexported
build (1.18): logger.go#L31
exported type LogLevel should have comment or be unexported
build (1.18): logger.go#L35
exported const LogDebug should have comment (or a comment on this block) or be unexported
build (1.18): logger.go#L58
exported function SetLogger should have comment or be unexported
build (1.18): logger.go#L62
exported function GetLogger should have comment or be unexported
build (1.18): logger.go#L66
exported type Logger should have comment or be unexported
build (1.18): ratelimit.go#L67
exported method RateLimitInterceptor.StreamServerInterceptor should have comment or be unexported
build (1.18): resolver.go#L36
exported type ResolverContext should have comment or be unexported
build (1.18): resolver.go#L50
comment on exported function RegisterResolverInterceptor should be of the form "RegisterResolverInterceptor ..."
build (1.18): resolver.go#L58
exported function NewResolver should have comment or be unexported
build (1.17)
The job was canceled because "_1_16" failed.
build (1.17): global.go#L67
exported function ClosePolarisContext should have comment or be unexported
build (1.17): logger.go#L31
exported type LogLevel should have comment or be unexported
build (1.17): logger.go#L35
exported const LogDebug should have comment (or a comment on this block) or be unexported
build (1.17): logger.go#L58
exported function SetLogger should have comment or be unexported
build (1.17): logger.go#L62
exported function GetLogger should have comment or be unexported
build (1.17): logger.go#L66
exported type Logger should have comment or be unexported
build (1.17): ratelimit.go#L67
exported method RateLimitInterceptor.StreamServerInterceptor should have comment or be unexported
build (1.17): resolver.go#L36
exported type ResolverContext should have comment or be unexported
build (1.17): resolver.go#L50
comment on exported function RegisterResolverInterceptor should be of the form "RegisterResolverInterceptor ..."
build (1.17): resolver.go#L58
exported function NewResolver should have comment or be unexported
golangci-lint (1.15.x): server.go#L76
Error return value of `srv.serverOptions.setDefault` is not checked (errcheck)
golangci-lint (1.15.x): ratelimit.go#L67
the line is 158 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.15.x): resolver.go#L87
the line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.15.x)
golangci-lint exit with code 2
golangci-lint (1.18.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.18.x): server.go#L76
Error return value of `srv.serverOptions.setDefault` is not checked (errcheck)
golangci-lint (1.18.x): ratelimit.go#L67
the line is 158 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.18.x): resolver.go#L87
the line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.18.x)
golangci-lint exit with code 2
golangci-lint (1.17.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.17.x): server.go#L76
Error return value of `srv.serverOptions.setDefault` is not checked (errcheck)
golangci-lint (1.17.x): ratelimit.go#L67
the line is 158 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.17.x): resolver.go#L87
the line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.17.x)
golangci-lint exit with code 2
build (1.15)
The job was canceled because "_1_16" failed.
build (1.15): global.go#L67
exported function ClosePolarisContext should have comment or be unexported
build (1.15): logger.go#L31
exported type LogLevel should have comment or be unexported
build (1.15): logger.go#L35
exported const LogDebug should have comment (or a comment on this block) or be unexported
build (1.15): logger.go#L58
exported function SetLogger should have comment or be unexported
build (1.15): logger.go#L62
exported function GetLogger should have comment or be unexported
build (1.15): logger.go#L66
exported type Logger should have comment or be unexported
build (1.15): ratelimit.go#L67
exported method RateLimitInterceptor.StreamServerInterceptor should have comment or be unexported
build (1.15): resolver.go#L36
exported type ResolverContext should have comment or be unexported
build (1.15): resolver.go#L50
comment on exported function RegisterResolverInterceptor should be of the form "RegisterResolverInterceptor ..."
build (1.15): resolver.go#L58
exported function NewResolver should have comment or be unexported
golangci-lint (1.16.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.16.x): server.go#L76
Error return value of `srv.serverOptions.setDefault` is not checked (errcheck)
golangci-lint (1.16.x): ratelimit.go#L67
the line is 158 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.16.x): resolver.go#L87
the line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
golangci-lint (1.16.x)
golangci-lint exit with code 2
build (1.16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Revive Action (1.18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Revive Action (1.18.x): test/tools/tools_vet.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/circuitbreak/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/ratelimit/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/circuitbreak/provider/main.go#L42
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/routing/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/ratelimit/provider/main.go#L39
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/routing/provider/main.go#L50
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): test/mock/naming.go#L18
should have a package comment
Run Revive Action (1.18.x): test/mock/naming.go#L90
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Revive Action (1.15.x): server_option.go#L267
comment on exported function WithPolarisRateLimit should be of the form "WithPolarisRateLimit ..."
Run Revive Action (1.15.x): test/tools/tools_vet.go#L18
should have a package comment
Run Revive Action (1.15.x): global.go#L67
exported function ClosePolarisContext should have comment or be unexported
Run Revive Action (1.15.x): ratelimit.go#L67
exported method RateLimitInterceptor.StreamServerInterceptor should have comment or be unexported
Run Revive Action (1.15.x): logger.go#L35
exported const LogDebug should have comment (or a comment on this block) or be unexported
Run Revive Action (1.15.x): logger.go#L31
exported type LogLevel should have comment or be unexported
Run Revive Action (1.15.x): logger.go#L62
exported function GetLogger should have comment or be unexported
Run Revive Action (1.15.x): logger.go#L58
exported function SetLogger should have comment or be unexported
Run Revive Action (1.15.x): resolver.go#L36
exported type ResolverContext should have comment or be unexported
Run Revive Action (1.15.x): logger.go#L66
exported type Logger should have comment or be unexported
Run Revive Action (1.16.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Revive Action (1.16.x): examples/circuitbreak/provider/main.go#L42
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): test/tools/tools_vet.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/quickstart/provider/main.go#L41
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): examples/circuitbreak/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/ratelimit/provider/main.go#L39
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/routing/provider/main.go#L50
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): examples/ratelimit/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): test/mock/naming.go#L74
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): examples/routing/provider/main.go#L18
should have a package comment
golangci-lint (1.15.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3, golangci/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
golangci-lint (1.15.x)
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/
Run Revive Action (1.17.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v3, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run Revive Action (1.17.x): examples/routing/provider/main.go#L18
should have a package comment
Run Revive Action (1.17.x): test/tools/tools_vet.go#L18
should have a package comment
Run Revive Action (1.17.x): test/mock/naming.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/routing/provider/main.go#L50
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): test/mock/naming.go#L90
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): test/mock/naming.go#L74
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): test/mock/naming.go#L200
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): test/mock/naming.go#L122
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): examples/ratelimit/provider/main.go#L39
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): examples/ratelimit/provider/main.go#L18
should have a package comment
golangci-lint (1.18.x)
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/
golangci-lint (1.17.x)
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/
golangci-lint (1.16.x)
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/