Loading
Combine read-only examples in the pipeline details feature spec
What does this MR do and why?
spec/features/projects/pipelines/pipeline_spec.rb is one of the slowest spec files in the suite. Every example is :js, so each one starts a browser and loads a page. Many examples loaded the same page in the same state only to check one more thing.
Examples that load the same page in the same state now share one example with :aggregate_failures. The assertions are unchanged. Examples that click something or change state stay separate.
| Examples | Runtime in CI | |
|---|---|---|
| Before | 89 | 11.3 min (master knapsack report) |
| After | 56 | 4.7 min (pipeline 2894666037, rspec system predictive) |
References
- Closes #630807 (closed)
- Combining the examples exposed a header bug, #630823 (closed). It is fixed in !257888 (merged), which is merged.
How to validate
bin/rspec spec/features/projects/pipelines/pipeline_spec.rbEdited by Laura Montemayor