Preconditions
- Code Quality is merged to
master
and finished running on master already - on MR which targets
master
I can see Code Quality job is finished successfully and I can download its artifact. It has ~2MB.
Problem
Code Quality Widget on merge request view is not loading. I can see this for almost 1 hour after job has finished. That seems to long
after longer time (between 30min and 60min) I can finally see:
This is definitely too long, especially that there is no progress indicator. All other processes in our gitlab instance seems to work smoothly. Is it a matter of configuration? How this “parsing” works? It is not a local java script, right?
Details
Version:
- *GitLab Enterprise Edition 15.6.1-ee (self-managed) *
- Runner: gitlab-runner-15.6.1-1.x86_64
.codecliemate.yml
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 4
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 250
method-complexity:
enabled: true
config:
threshold: 5
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 25
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: true
config:
threshold: 4
plugins:
sonar-python:
enabled: true
config:
minimum_severity: major
tests_patterns:
- tests_classic/**
- tests_integration/**
bandit:
enabled: true
radon:
enabled: true
treshold: "D"
exclude_patterns:
- "tests_classic/"
- "tests/"
.gitlab-ci.yml
code_quality:
stage: tests
tags:
- dind
artifacts:
paths: [gl-code-quality-report.json]
What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
- basic docs: Code Quality | GitLab
- this issue: Code Quality MR widget struggles with big codelimate.json files (#2737) · Issues · GitLab.org / GitLab · GitLab
- I reduced size of artifact from 10MB to 2MB just in case, but it doesn’t help
- BTW the last comment on this issue is written by me, it is about different issues
Best regards
Mesco