Skip to content

Create partial report file as pipelineArtifact so we can use it for the Code Quality MR diff view

Summary

TBD After #271077 (closed)

Once we have moved the diff logic for the Code Quality report files into the backend, we should persist those diffs as PipelineArtifacts. We should create a partial report file as a pipelineArtifact for this widget to use. This is the second step in displaying code quality notices in the MR Diff view along side test coverage notices.

Proposal

Improvements

This will enable the same artifact to be used for the MR widget and the MR Diff reducing the amount of load time for these artifacts. Hopefully this improves initial load times and also makes the data more flexible.

Documentation

The PipelineArtifact documentation page should be updated to contain this type of artifact.

Risks

This may introduce a delay between when the MR widget will be prepared to display as now it must wait on the background processing to finish before displaying. I'm not sure that this will be better or worse than it is right now though.

Involved components

Optional: Intended side effects

Optional: Missing test coverage

Edited by Ricky Wiens