Code quality report showing "Code Quality hasn't changed."

Summary

We implemented Code quality report to be generated in our pipelines, but on the MR UI we see Code Quality hasn't changed.

Steps to reproduce

Created branch A and enabled code quality. Created MR with source branch A and target Staging. When a pipeline is ran, in the pipeline UI we see Code Quality tab and it says "No code quality issues found" which is expected. After that from branch A we create branch B, delete a random file and create MR with source B target A. When we run the pipeline, it fails on our job which is generating the quality report and in the pipeline UI we see Code Quality tab with the respective errors which is correct. But then in the MR UI we only see "Code Quality hasn't changed" which obviously is not correct because Source branch B quality reports has issues while target branch A report does not have issues.

MR with source B > target A shows:

image.png

Latest pipeline in MR source A > staging shows:

image.png

Latest pipeline in MR source B > target A shows:

image.png

What is the current bug behavior?

MR UI showing Code Quality hasn't changed.

What is the expected correct behavior?

Expecting MR UI to show code quality difference between Target and Source branch

Possible fixes

Edited by Dimitar Tsonev