Failed to load codeclimate report

Hi,

Don’t understand why my codeclimate report is not processed by GitLab.
I always get the message “Failed to load codeclimate report” on my MR.

On my CI job I have this :

$ docker run --env CODECLIMATE_CODE="$PWD" --volume /home/bcohen/test/codeclimate/pool-service3/application/classes/Batch:/code --volume /tmp/cc:/tmp/cc codeclimate/codeclimate-phpcodesniffer > codeclimate.json

$ cat codeclimate.json
{"type":"issue","check_name":"PSR2 Classes PropertyDeclaration Underscore","description":"Property...}

Uploading artifacts...codeclimate.json: found 1 matching files           Uploading artifacts to coordinator... ok            id=118 responseStatus=201 Created token=x_vDRosUJob succeeded

My .gitlabci :

quality:
image: docker:stable

variables:
DOCKER_DRIVER: overlay2

allow_failure: true

services:
- docker:dind

script:
- docker run
–env CODECLIMATE_CODE=“$PWD”
–volume :/code
–volume /tmp/cc:/tmp/cc
codeclimate/codeclimate-phpcodesniffer > codeclimate.json

- cat codeclimate.json

artifacts:
reports:
codequality: codeclimate.json

My runner :

concurrent = 1
check_interval = 0

[session_server]
session_timeout = 1800

[[runners]]
name = “ben”
url = “http://pc-dev-docker1.int.rtblw.com:1025/
token = “XKQyk56xVVaLusyYes2y”
executor = “docker”

[runners.docker]
tls_verify = false
image = “docker:latest”
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [“/var/run/docker.sock:/var/run/docker.sock”, “/cache”]
cache_dir = “cache”
extra_hosts = [“mygitlab.com:172.17.0.2”]
shm_size = 0
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]

GitLab Enterprise Edition [11.6.0-ee]

I have the same problem, I am using the trial gold version and I have the 12.9.0 version of gitlab

Hi. Have you solved it? If yes, how?

Thank you

@HugoLemos - Thanks for posting!

We’ve made some updates to how the reports are parsed and better messaging about why the diff view may not be showing up in the MR. The most common case for this is that no CodeQuality report is present for the target branch because it has not ran or is expired. The troubleshooting section of the docs may be helpful for you to solve this.

If a code quality report was uploaded for the pipeline you will see the full report on the pipeline tab until it expires/is removed.

I hope this helps!

-James H, GitLab Product Manager, Verify:Testing