Skip to content

Improve example group timing information

David Dieulivol requested to merge ddieulivol-expected_and_actual_times into master

Context

Follow-up of gitlab-org/quality/engineering-productivity/team#323 (comment 1681695489)

What does this MR do and why?

  • Add spec file to example group duration message (so that we can search for it in the expected list quickly from the job output)
  • Display expected duration at the start of the RSpec job (we cannot download the artifacts when the job timed out)

Proof of work

See https://gitlab.com/gitlab-org/gitlab/-/jobs/5694899496 as an example:

Screenshot_2023-12-06_at_17.00.47

# Example group Ci::Pipeline (./spec/models/ci/pipeline_spec.rb) took 4 minutes 1.25 seconds.
# RSpec elapsed time: 4 minutes 4.68 seconds.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by David Dieulivol

Merge request reports