Skip to content

chore(deps): update golang version to 1.21 #408

chore(deps): update golang version to 1.21

chore(deps): update golang version to 1.21 #408

Triggered via push August 8, 2023 23:37
Status Failure
Total duration 1m 17s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

push_pr.yml

on: push
Run all static analysis checks
55s
Run all static analysis checks
Run security checks via snyk
33s
Run security checks via snyk
Run unit tests on *Nix
6s
Run unit tests on *Nix
Run unit tests on Windows
1m 4s
Run unit tests on Windows
Run integration tests on *Nix
14s
Run integration tests on *Nix
Test binary compilation for all platforms:arch
4s
Test binary compilation for all platforms:arch
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 4 warnings
Test binary compilation for all platforms:arch
Process completed with exit code 2.
Run unit tests on *Nix
Process completed with exit code 2.
Run integration tests on *Nix
Process completed with exit code 2.
Run all static analysis checks: tests/integration/helpers/helpers.go#L16
mnd: Magic number: 3, in <argument> detected (gomnd)
Run all static analysis checks: tests/integration/jsonschema/jsonschema.go#L27
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Run all static analysis checks: tests/integration/jsonschema/jsonschema.go#L38
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"The output of the integration doesn't have expected JSON format\")" (goerr113)
Run all static analysis checks: src/redis.go#L54
Function 'main' has too many statements (58 > 50) (funlen)
Run all static analysis checks: src/inventory.go#L38
regexpMust: for const patterns like "(?i)(requirepass|masterauth)", use regexp.MustCompile (gocritic)
Run all static analysis checks: src/metrics.go#L179
regexpMust: for const patterns like `keys=(\d+),expires=(\d+),avg_ttl=(\d+\.*\d*)`, use regexp.MustCompile (gocritic)
Run all static analysis checks: src/metrics.go#L226
typeSwitchVar: 2 cases can benefit from type switch with assignment (gocritic)
Run all static analysis checks: src/connection.go#L135
cyclomatic complexity 17 of func `(redisConn).setKeysLength` is high (> 10) (gocyclo)
Run all static analysis checks: src/redis.go#L22
struct of size 168 bytes could be of size 160 bytes:
Run all static analysis checks: src/redis.go#L121
`if args.HasMetrics()` has complex nested blocks (complexity: 8) (nestif)
Run integration tests on *Nix
Restore cache failed: Dependencies file is not found in /home/runner/work/nri-redis/nri-redis. Supported file pattern: go.sum
Run all static analysis checks
Unexpected input(s) 'auditOn', valid inputs are ['entryPoint', 'args', 'config', 'publishToken']
Run all static analysis checks
The `set-output` 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 unit tests on Windows
Restore cache failed: Dependencies file is not found in D:\a\nri-redis\nri-redis. Supported file pattern: go.sum