You need to sign in or sign up before continuing.
Code Climate in Auto DevOps doesn't support Ruby 2.6
Summary
CodeClimate failed since the version run by Auto DevOps is too old and doesn't support Ruby 2.6
Steps to reproduce
Full job log of project using ruby 2.6
Running with gitlab-runner 11.8.0 (4745a6f3)
on docker-auto-scale 0277ea0f
Using Docker executor with image docker:stable ...
Starting service docker:stable-dind ...
Pulling docker image docker:stable-dind ...
Using docker image sha256:f63964f0d3ceb8b1a00c832b4d03120dbc36ba780d3d26c6b3cc2e895de3b012 for docker:stable-dind ...
Waiting for services to be up and running...
Pulling docker image docker:stable ...
Using docker image sha256:d8a057b92365258668aa6d0434f87bd367da4393abd0b271212697d45b247597 for docker:stable ...
Running on runner-0277ea0f-project-5370723-concurrent-0 via runner-0277ea0f-srm-1551801846-b4ac555b...
Cloning repository...
Cloning into '/builds/asli-tw/asli-store'...
Checking out 43e88efc as chore/update-gitlab-ci...
Skipping Git submodules setup
$ # Auto DevOps variables and functions # collapsed multi-line command
$ setup_docker
$ code_quality
Unable to find image 'registry.gitlab.com/gitlab-org/security-products/codequality:11-8-stable' locally
11-8-stable: Pulling from gitlab-org/security-products/codequality
911c6d0c7995: Pulling fs layer
aff9b9c51076: Pulling fs layer
9500841639b7: Pulling fs layer
ce7d9f10a155: Pulling fs layer
0348d20deefe: Pulling fs layer
1349cf012439: Pulling fs layer
80d35bc2fcb0: Pulling fs layer
32785dd38a36: Pulling fs layer
5b14ec8e4612: Pulling fs layer
ce7d9f10a155: Waiting
0348d20deefe: Waiting
1349cf012439: Waiting
80d35bc2fcb0: Waiting
32785dd38a36: Waiting
5b14ec8e4612: Waiting
911c6d0c7995: Verifying Checksum
911c6d0c7995: Download complete
9500841639b7: Verifying Checksum
9500841639b7: Download complete
aff9b9c51076: Verifying Checksum
aff9b9c51076: Download complete
1349cf012439: Verifying Checksum
1349cf012439: Download complete
0348d20deefe: Verifying Checksum
0348d20deefe: Download complete
80d35bc2fcb0: Verifying Checksum
80d35bc2fcb0: Download complete
32785dd38a36: Verifying Checksum
32785dd38a36: Download complete
5b14ec8e4612: Verifying Checksum
5b14ec8e4612: Download complete
911c6d0c7995: Pull complete
ce7d9f10a155: Verifying Checksum
ce7d9f10a155: Download complete
aff9b9c51076: Pull complete
9500841639b7: Pull complete
ce7d9f10a155: Pull complete
0348d20deefe: Pull complete
1349cf012439: Pull complete
80d35bc2fcb0: Pull complete
32785dd38a36: Pull complete
5b14ec8e4612: Pull complete
Digest: sha256:140e9a52a1700dae0aef504b3daf9854de98588ac6a9e733c0fe6938f65220ad
Status: Downloaded newer image for registry.gitlab.com/gitlab-org/security-products/codequality:11-8-stable
Unable to find image 'codeclimate/codeclimate:0.72.0' locally
0.72.0: Pulling from codeclimate/codeclimate
2f3f3e5e133b: Pulling fs layer
2654c654a6e7: Pulling fs layer
412e64056adf: Pulling fs layer
a3ed95caeb02: Pulling fs layer
b34d109380af: Pulling fs layer
ef84039c747a: Pulling fs layer
0b64161d56c4: Pulling fs layer
532d14be51e6: Pulling fs layer
8210184098e2: Pulling fs layer
bd15a272ee53: Pulling fs layer
d25d7915b947: Pulling fs layer
4e198ced2ee0: Pulling fs layer
5bcf14160dfc: Pulling fs layer
f47a75dcba39: Pulling fs layer
a3ed95caeb02: Waiting
b34d109380af: Waiting
ef84039c747a: Waiting
0b64161d56c4: Waiting
532d14be51e6: Waiting
8210184098e2: Waiting
bd15a272ee53: Waiting
d25d7915b947: Waiting
4e198ced2ee0: Waiting
5bcf14160dfc: Waiting
f47a75dcba39: Waiting
412e64056adf: Verifying Checksum
412e64056adf: Download complete
2f3f3e5e133b: Verifying Checksum
2f3f3e5e133b: Download complete
2654c654a6e7: Verifying Checksum
2654c654a6e7: Download complete
a3ed95caeb02: Verifying Checksum
a3ed95caeb02: Download complete
ef84039c747a: Verifying Checksum
ef84039c747a: Download complete
b34d109380af: Verifying Checksum
b34d109380af: Download complete
2f3f3e5e133b: Pull complete
0b64161d56c4: Verifying Checksum
0b64161d56c4: Download complete
8210184098e2: Verifying Checksum
8210184098e2: Download complete
532d14be51e6: Verifying Checksum
532d14be51e6: Download complete
bd15a272ee53: Verifying Checksum
bd15a272ee53: Download complete
4e198ced2ee0: Verifying Checksum
4e198ced2ee0: Download complete
d25d7915b947: Verifying Checksum
d25d7915b947: Download complete
f47a75dcba39: Verifying Checksum
f47a75dcba39: Download complete
5bcf14160dfc: Verifying Checksum
5bcf14160dfc: Download complete
2654c654a6e7: Pull complete
412e64056adf: Pull complete
a3ed95caeb02: Pull complete
b34d109380af: Pull complete
ef84039c747a: Pull complete
0b64161d56c4: Pull complete
532d14be51e6: Pull complete
8210184098e2: Pull complete
bd15a272ee53: Pull complete
d25d7915b947: Pull complete
4e198ced2ee0: Pull complete
5bcf14160dfc: Pull complete
f47a75dcba39: Pull complete
Digest: sha256:c8afb8c2037f7b9c5c9ae198aff00b1cf80db11d3591fbe89dfb3c69192663f1
Status: Downloaded newer image for codeclimate/codeclimate:0.72.0
WARNING: A new version (v0.83.0) is available. Upgrade instructions are available at: https://github.com/codeclimate/codeclimate#packages
error: (CC::CLI::Analyze::EngineFailure) engine rubocop failed with status 1 and stderr
Unable to find image 'codeclimate/codeclimate-rubocop:latest' locally
latest: Pulling from codeclimate/codeclimate-rubocop
4fe2ade4980c: Pulling fs layer
a3ed95caeb02: Pulling fs layer
dc5149ad8262: Pulling fs layer
242b8ec3ad70: Pulling fs layer
4fe38ce59828: Pulling fs layer
43c928a46eb5: Pulling fs layer
22dace056b71: Pulling fs layer
b4baeb313236: Pulling fs layer
7a48e498cc84: Pulling fs layer
21417c041ffc: Pulling fs layer
242b8ec3ad70: Waiting
4fe38ce59828: Waiting
43c928a46eb5: Waiting
22dace056b71: Waiting
b4baeb313236: Waiting
7a48e498cc84: Waiting
21417c041ffc: Waiting
dc5149ad8262: Verifying Checksum
dc5149ad8262: Download complete
a3ed95caeb02: Verifying Checksum
a3ed95caeb02: Download complete
4fe2ade4980c: Verifying Checksum
4fe2ade4980c: Download complete
4fe38ce59828: Verifying Checksum
4fe38ce59828: Download complete
43c928a46eb5: Verifying Checksum
43c928a46eb5: Download complete
242b8ec3ad70: Verifying Checksum
242b8ec3ad70: Download complete
4fe2ade4980c: Pull complete
22dace056b71: Verifying Checksum
22dace056b71: Download complete
a3ed95caeb02: Pull complete
dc5149ad8262: Pull complete
21417c041ffc: Verifying Checksum
21417c041ffc: Download complete
7a48e498cc84: Verifying Checksum
7a48e498cc84: Download complete
b4baeb313236: Download complete
242b8ec3ad70: Pull complete
4fe38ce59828: Pull complete
43c928a46eb5: Pull complete
22dace056b71: Pull complete
b4baeb313236: Pull complete
7a48e498cc84: Pull complete
21417c041ffc: Pull complete
Digest: sha256:553759190f2892d511ae06ae59c0d5a9cb6f652b4e661d0829ce5fb55a94e595
Status: Downloaded newer image for codeclimate/codeclimate-rubocop:latest
NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
Gem.gunzip called from /usr/local/bundle/gems/unicode-display_width-1.3.0/lib/unicode/display_width/index.rb:5.
.rubocop.yml: Layout/DefEndAlignment has the wrong namespace - should be Lint
.rubocop.yml: Layout/EndAlignment has the wrong namespace - should be Lint
/usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config.rb:510:in `check_target_ruby': Unknown Ruby version 2.6 found in `.ruby-version`. (RuboCop::ValidationError)
Supported versions: 2.1, 2.2, 2.3, 2.4, 2.5
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config.rb:313:in `validate'
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config.rb:201:in `check'
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config.rb:194:in `create'
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config_loader.rb:48:in `load_file'
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config_loader.rb:79:in `configuration_from_file'
from /usr/local/bundle/gems/rubocop-0.52.1/lib/rubocop/config_store.rb:44:in `for'
from /usr/src/app/lib/cc/engine/file_list_resolver.rb:38:in `rubocop_file_to_include?'
from /usr/src/app/lib/cc/engine/file_list_resolver.rb:16:in `block in expanded_list'
from /usr/src/app/lib/cc/engine/file_list_resolver.rb:13:in `each'
from /usr/src/app/lib/cc/engine/file_list_resolver.rb:13:in `flat_map'
from /usr/src/app/lib/cc/engine/file_list_resolver.rb:13:in `expanded_list'
from /usr/src/app/lib/cc/engine/rubocop.rb:49:in `files_to_inspect'
from /usr/src/app/lib/cc/engine/rubocop.rb:29:in `block in run'
from /usr/src/app/lib/cc/engine/rubocop.rb:28:in `chdir'
from /usr/src/app/lib/cc/engine/rubocop.rb:28:in `run'
from /usr/src/app/bin/codeclimate-rubocop:17:in `<main>'
Could not analyze code quality for the repository at /code
ERROR: Job failed: exit code 1
Proposal
Send a PR upstream on https://github.com/codeclimate/codeclimate to use a newer version of robocop by default. The minimum version that supports ruby 2.6 is 0.60.
Workaround
Create a new .codeclimate.yml
file in the root of the project
---
version: "2"
plugins:
rubocop:
enabled: true
channel: rubocop-0-60 # Minimum version to support ruby 2.6
Edited by Steve Xuereb