Hi,
This issue seems to be related with:
- Quality Gate on MAIN BRANCH failed because of 3 new lines of code without coverage
- PR's passed the quality gate that had a 90% min coverage required, but now New Code for the main branch reports a failing 75% - #6 by StingyJack
But they are a bit old and I couldn’t understand if there’s a way to avoid this entirely by now.
Info:
- ALM used: GitHub
- CI system used: Github Actions
- Scanner command used:
Run SonarSource/sonarqube-scan-action@v4.2.1 with: projectBaseDir: ./ args: -Dsonar.organization=mov-ai -Dsonar.projectKey=MOV-AI_movai-core-shared -Dsonar.sources=. -Dsonar.scm.provider=git -Dsonar.qualitygate.wait=true -Dsonar.qualitygate.timeout=300 -Dsonar.coverage.exclusions=tests/**,docs/** -Dsonar.cpd.exclusions=tests/**,docs/** -Dsonar.python.version=3 -Dsonar.python.flake8.reportPaths=flake8-report.txt -Dsonar.python.pylint.reportPaths=pylint-report.txt -Dsonar.python.coverage.reportPaths=coverage.xml
- On branch after merge - same as above
- Languages of the repository: Python
- URLs provided above
- Error observed: coverage ok on PR but fails after merge
- Workaround: Lower temporarily the QualityGate
- Quality gate:
- PR result:
- Branch result:
As mentioned we’ve been working around this issue by temporarily lowering the Quality Gate.
What can we do as a permanent solution?
Thanks