Job timeout risk: spec/services/merge_requests/update_service_spec.rb ran much longer than expected
Why was this issue created?
spec/services/merge_requests/update_service_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/services/merge_requests/update_service_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 2504195 created at
2024-03-01T01:15:57Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg13-9-32 |
| Job total RSpec suite run time | expected: 43 minutes 43.76 seconds, actual: 77 minutes 10.54 seconds
|
| Spec file run time | expected: 8 minutes 7.06 seconds, actual: 13 minutes 7.91 seconds
|
| Spec file weight |
17.02% of total suite run time |
- Reported from pipeline 2859600 created at
2024-06-06T01:16:05Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg15-5-32 |
| Job total RSpec suite run time | expected: 36 minutes 51.24 seconds, actual: 74 minutes 27.56 seconds
|
| Spec file run time | expected: 10 minutes 12.75 seconds, actual: 16 minutes 30.57 seconds
|
| Spec file weight |
22.17% of total suite run time |
- Reported from pipeline 3095981 created at
2024-08-10T01:16:04Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg14-7-44 |
| Job total RSpec suite run time | expected: 43 minutes 14.34 seconds, actual: 74 minutes 0.6 second
|
| Spec file run time | expected: 11 minutes 19.77 seconds, actual: 17 minutes 47.91 seconds
|
| Spec file weight |
24.05% of total suite run time |
- Reported from pipeline 3291884 created at
2024-10-09T01:16:00Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg14-single-db-6-44 |
| Job total RSpec suite run time | expected: 39 minutes 19.68 seconds, actual: 74 minutes 29.9 seconds
|
| Spec file run time | expected: 12 minutes 24.34 seconds, actual: 22 minutes 36.86 seconds
|
| Spec file weight |
30.36% of total suite run time |
- Reported from pipeline 4140730 created at
2025-05-10T00:05:42Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-no-gitaly-transactions-39-44 |
| Job total RSpec suite run time | expected: 26 minutes 30.89 seconds, actual: 73 minutes 54.92 seconds
|
| Spec file run time | expected: 3 minutes 55.02 seconds, actual: 12 minutes 49.52 seconds
|
| Spec file weight |
17.35% of total suite run time |
- Reported from pipeline 5002642 created at
2025-12-17T23:32:39Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-no-gitaly-transactions-41-44 |
| Job total RSpec suite run time | expected: 33 minutes 11.59 seconds, actual: 76 minutes 12.87 seconds
|
| Spec file run time | expected: 4 minutes 28.99 seconds, actual: 11 minutes 46.17 seconds
|
| Spec file weight |
15.44% of total suite run time |
- Reported from pipeline 5002788 created at
2025-12-18T00:06:13Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-34-44 |
| Job total RSpec suite run time | expected: 32 minutes 46.9 seconds, actual: 75 minutes 31.14 seconds
|
| Spec file run time | expected: 4 minutes 54.06 seconds, actual: 11 minutes 25.41 seconds
|
| Spec file weight |
15.13% of total suite run time |
- Reported from pipeline 5006195 created at
2025-12-18T14:06:11Z
| Field | Value |
|---|---|
| Job URL | rspec-unit-pg16-42-44 |
| Job total RSpec suite run time | expected: 32 minutes 58.4 seconds, actual: 71 minutes 9.98 seconds
|
| Spec file run time | expected: 4 minutes 13.86 seconds, actual: 11 minutes 51.73 seconds
|
| Spec file weight |
16.67% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN