Job timeout risk: spec/finders/merge_requests_finder_spec.rb ran much longer than expected
Why was this issue created?
spec/finders/merge_requests_finder_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/finders/merge_requests_finder_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 2994634 created at
2024-07-11T17:25:02Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg14-12-32 |
| Job total RSpec suite run time | expected: 40 minutes 48.77 seconds, actual: 79 minutes 52.05 seconds
|
| Spec file run time | expected: 7 minutes 12.21 seconds, actual: 14 minutes 55.66 seconds
|
| Spec file weight |
18.69% of total suite run time |
- Reported from pipeline 3160773 created at
2024-08-31T01:17:47Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg14-single-db-ci-connection-17-44 |
| Job total RSpec suite run time | expected: 45 minutes 7.25 seconds, actual: 72 minutes 59.0 seconds
|
| Spec file run time | expected: 7 minutes 52.03 seconds, actual: 13 minutes 4.82 seconds
|
| Spec file weight |
17.92% of total suite run time |
- Reported from pipeline 4124296 created at
2025-05-07T01:15:59Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-single-redis-6-44 |
| Job total RSpec suite run time | expected: 26 minutes 58.2 seconds, actual: 71 minutes 38.42 seconds
|
| Spec file run time | expected: 8 minutes 51.65 seconds, actual: 18 minutes 38.36 seconds
|
| Spec file weight |
26.02% of total suite run time |
- Reported from pipeline 4208942 created at
2025-05-29T01:16:04Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-single-db-7-44 |
| Job total RSpec suite run time | expected: 27 minutes 29.74 seconds, actual: 79 minutes 47.84 seconds
|
| Spec file run time | expected: 8 minutes 7.05 seconds, actual: 17 minutes 14.84 seconds
|
| Spec file weight |
21.61% of total suite run time |
- Reported from pipeline 4731001 created at
2025-10-14T19:46:10Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-7-44 |
| Job total RSpec suite run time | expected: 33 minutes 5.37 seconds, actual: 79 minutes 22.78 seconds
|
| Spec file run time | expected: 9 minutes 15.76 seconds, actual: 30 minutes 43.41 seconds
|
| Spec file weight |
38.7% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN