"Error when loading results" showing in MR while scanning is in progress, but displays correctly when pipeline completes
Summary
Noticed when a pipeline is in progress and is expecting scan results, it defaults to "error when loading results". Although when the pipeline completes, vulnerabilities and scan results display fine in the MR.
Steps to reproduce
- Create MR
- Commit to kick off a pipeline
- While pipeline is in progress, errors return in the scanning widget section, but when the pipeline complete, the reports are parsed correctly.
Example Project
https://gitlab.com/jrandazzo-demo/nodesampleapp/-/merge_requests/1
What is the current bug behavior?
Scanning widgets in Merge Request say "Error when loading Results"
What is the expected correct behavior?
Display "Scanning in progress"
Relevant logs and/or screenshots
Output of checks
- Tested on GitLab.com, 13.2 (August 18)
- Using AutoDevOps
Possible fixes
Present information in the MR security widget that pipeline is currently running and we are not able to present the information about vulnerabilities yet.
Implementation plan
-
frontend Modify texts in
https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/assets/javascripts/vue_shared/security_reports/store/getters.js#L74
to refect designs from #12896[b5-use_cases_non-error-states.png]
Edited by Thiago Figueiró