static-analysis fails at bin/rake lint:all stage
I'm unable to have
static-analysis run successfully on !19052 (merged) or a Community contribution MR !18507 (merged). An example of a failed job is https://gitlab.com/gitlab-org/gitlab/-/jobs/332486370.
The last lines of the output are:
Skipping Git submodules setup Checking cache for debian-stretch-ruby-2.6.3-and-rubocop-2... Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/debian-stretch-ruby-2.6.3-and-rubocop-2 Successfully extracted cache Downloading artifacts for compile-assets pull-cache (332486193)... Downloading artifacts from coordinator... ok id=332486193 responseStatus=200 OK token=P1sf8u3K Downloading artifacts for setup-test-env (332486195)... Downloading artifacts from coordinator... ok id=332486195 responseStatus=200 OK token=VEuxRA3e WARNING: tmp/tests/gitlab-shell/.gitlab_shell_secret: chmod tmp/tests/gitlab-shell/.gitlab_shell_secret: no such file or directory (suppressing repeats) Authenticating with credentials from job payload (GitLab Registry) $ date Thu Oct 24 23:01:03 UTC 2019 $ export GOPATH=$CI_PROJECT_DIR/.go $ mkdir -p $GOPATH $ source scripts/utils.sh $ source scripts/prepare_build.sh Bundler version 1.17.2 Warning: the running version of Bundler (1.17.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. The Gemfile's dependencies are satisfied Successfully installed knapsack-1.18.0 1 gem installed $ date Thu Oct 24 23:01:06 UTC 2019 $ scripts/static-analysis $ bin/rake lint:all Running after script... $ date Thu Oct 24 23:17:53 UTC 2019 ERROR: Job failed: exit code 1
scripts/static-analysis is run locally, we can see the linting error. See #34951 (comment 236182142) for full output.