Skip to content

Quality failure report handles non-rspec errors

Steve Abrams requested to merge quality-job-error into master

What does this MR do and why?

The QualityFailure report can parse job output with Rspec errors, but will fail if there is no Rspec errors present. This MR introduces a fallback to simply print out the last 30 lines of the job log.

Related to gitlab-com/gl-infra/delivery#2911 (closed)

Testing

I used VCR to make real requests this against a real job in the tests: https://ops.gitlab.net/gitlab-org/quality/staging-canary/-/jobs/11751578.

Author Check-list

  • [-] Has documentation been updated?
Edited by Steve Abrams

Merge request reports