Job timeout risk: spec/features/merge_request/user_sees_merge_request_pipelines_spec.rb ran much longer than expected
Why was this issue created?
spec/features/merge_request/user_sees_merge_request_pipelines_spec.rb was reported to have:
- exceeded Knapsack's expected runtime by at least 50%, and
- been identified as a notable pipeline bottleneck and a job timeout risk
Suggested steps for investigation
- To reproduce in CI by running test files in the same order, you can follow the steps listed here.
- Identify if a specific test case is stalling the run time. Hint: You can search the job's log for
Starting example group spec/features/merge_request/user_sees_merge_request_pipelines_spec.rband view the elapsed time after each test case in the proceeding lines starting with[RSpecRunTime]. - If the test file is large, consider refactoring it into multiple files to allow better test parallelization across runners.
- If the run time cannot be fixed in time, consider quarantine the spec(s) to restore performance.
Run time details
- Reported from pipeline 2649499 created at
2024-04-15T13:21:18Z
| Field | Value |
|---|---|
| Job URL | rspec-system-pg14-single-db-ci-connection-9-32 |
| Job total RSpec suite run time | expected: 20 minutes 43.91 seconds, actual: 81 minutes 51.41 seconds
|
| Spec file run time | expected: 7 minutes 2.16 seconds, actual: 14 minutes 17.2 seconds
|
| Spec file weight |
17.45% of total suite run time |
- Reported from pipeline 4897950 created at
2025-11-24T18:01:31Z
| Field | Value |
|---|---|
| Job URL | rspec-system-pg16-project-studio-enabled-11-32 |
| Job total RSpec suite run time | expected: 30 minutes 21.26 seconds, actual: 71 minutes 4.33 seconds
|
| Spec file run time | expected: 9 minutes 25.58 seconds, actual: 26 minutes 59.41 seconds
|
| Spec file weight |
37.98% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN