Code Quality test metrics results are being parsed: "TypeError: Cannot read properties of undefined (reading 'errored')"
Summary
The code quality widget in MR is spinning indefinitely, a workaround is needed to make the report diff appear.
Steps to reproduce
- Create or update MR with code quality json output (json is also available on the target branch)
- Once the pipeline succeed, the code quality widget displays "Code Quality test metrics results are being parsed" with the spinning wheel. And below the "Test summary results are loading" is replaced after a couple of seconds by the "Test summary: ..." message.
What is the current bug behavior?
The spinning wheel and the message "Code Quality test metrics results are being parsed" are shown indefinitely. The "Test summary results are loading" is quickly replaced by the expected and correct summary.
Once the page is reloaded, the "Code Quality test metrics results are being parsed" is replaced by the expected list of code quality differences. Leaving the page and coming back, everything works as expected for few minutes. Once this delay is passed (~2-3 minutes?), the initial behaviour shows again (with the wheel spinning indefinitely).
What is the expected correct behavior?
The "Code Quality test metrics results are being parsed" is replaced by the code quality diff without the need to reload the page.
Relevant logs and/or screenshots
The browser logs show the following error, which is not present anymore after reloading the page
TypeError: Cannot read properties of undefined (reading 'errored')
at a.summary (index.js:19:24)
at a.hydratedSummary (base.vue:112:1)
at dn.get (vue.runtime.esm.js:4495:25)
at dn.evaluate (vue.runtime.esm.js:4597:21)
at a.hydratedSummary (vue.runtime.esm.js:4851:17)
at a.<anonymous> (base.vue?8d23:1:892)
at t._render (vue.runtime.esm.js:3569:22)
at a.r (vue.runtime.esm.js:4081:21)
at dn.get (vue.runtime.esm.js:4495:25)
at dn.run (vue.runtime.esm.js:4570:22)
Results of GitLab environment info
Gitlab version 15.6.8-ee
Sorry no admin access on the machine to run the other commands.