Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 43,821
    • Issues 43,821
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,412
    • Merge requests 1,412
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #34951
Closed
Open
Created Oct 25, 2019 by Luke Duncalfe@.luke🔴Maintainer

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

When scripts/static-analysis is run locally, we can see the linting error. See #34951 (comment 236182142) for full output.

Edited Oct 28, 2019 by Luke Duncalfe
Assignee
Assign to
Time tracking