owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.4k stars 183 forks source link

`golangci-lint` pipelines fail intermittently #6042

Closed saw-jan closed 1 year ago

saw-jan commented 1 year ago
make -C <module> ci-golangci-lint

Errors:

/go/bin/golangci-lint-v1.51.2 run --path-prefix services/auth-bearer --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
level=warning msg="[runner] The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner. "
level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
level=warning msg="[runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"github.com/aws/aws-sdk-go/aws\""
level=warning msg="[linters_context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters_context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters_context] wastedassign is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"github.com/aws/aws-sdk-go/aws\"\n\n"
make: *** [../../.make/go.mk:77: ci-golangci-lint] Error 3
/go/bin/golangci-lint-v1.51.2 run --path-prefix services/policies --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
level=warning msg="[runner] The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner. "
level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
level=warning msg="[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref."
level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused."
level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"github.com/gabriel-vasile/mimetype\""
level=warning msg="[linters_context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters_context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters_context] wastedassign is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for \"github.com/gabriel-vasile/mimetype\"\n\n"
make: Leaving directory '/drone/src/services/policies'
make: *** [../../.make/go.mk:77: ci-golangci-lint] Error 3

In PR https://github.com/owncloud/ocis/pull/6041, tried different retreis:

  1. :x: Retrying make -C <module> ci-golangci-lint (https://drone.owncloud.com/owncloud/ocis/21285/4/6)
  2. :x: Retrying building the module golangci-lint-v1.51.2 (https://drone.owncloud.com/owncloud/ocis/21287/5/6)
  3. :x: Retrying after cleaning the /go/* (https://drone.owncloud.com/owncloud/ocis/21288/14/6)
saw-jan commented 1 year ago

https://chat.owncloud.com/channel/ocis-internal?msg=pA54ETePLKAzoAYSQ

There is an issue with the go proxies @ google atm, we can't resolve that for now

saw-jan commented 1 year ago

Fixed by https://github.com/owncloud/ocis/pull/6056