Job timeout risk: spec/requests/api/graphql/project/merge_requests_spec.rb ran much longer than expected
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Why was this issue created?
spec/requests/api/graphql/project/merge_requests_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/requests/api/graphql/project/merge_requests_spec.rb and 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 4291233 created at 2025-06-21T01:16:19Z
Field
Value
Job URL
rspec-integration-pg16-single-db-17-20
Job total RSpec suite run time
expected: 26 minutes 29.34 seconds, actual: 74 minutes 18.5 seconds
Spec file run time
expected: 4 minutes 26.38 seconds, actual: 15 minutes 50.64 seconds
Spec file weight
21.32% of total suite run time
Reported from pipeline 4872743 created at 2025-11-18T17:27:40Z
Field
Value
Job URL
rspec-integration-pg16-10-20
Job total RSpec suite run time
expected: 34 minutes 53.63 seconds, actual: 70 minutes 20.98 seconds
Spec file run time
expected: 4 minutes 38.97 seconds, actual: 10 minutes 41.85 seconds
Spec file weight
15.21% of total suite run time
Reported from pipeline 4896578 created at 2025-11-24T13:33:02Z
Field
Value
Job URL
rspec-integration-pg16-16-20
Job total RSpec suite run time
expected: 29 minutes 54.83 seconds, actual: 72 minutes 16.78 seconds
Spec file run time
expected: 4 minutes 48.65 seconds, actual: 13 minutes 41.92 seconds
Spec file weight
18.95% of total suite run time
Reported from pipeline 5002788 created at 2025-12-18T00:06:13Z
Field
Value
Job URL
rspec-integration-pg16-no-gitaly-transactions-11-20
Job total RSpec suite run time
expected: 33 minutes 33.45 seconds, actual: 71 minutes 26.22 seconds
Spec file run time
expected: 4 minutes 28.11 seconds, actual: 11 minutes 16.6 seconds
Spec file weight
15.79% of total suite run time
Reported from pipeline 5002788 created at 2025-12-18T00:06:13Z
Field
Value
Job URL
rspec-integration-pg16-11-20
Job total RSpec suite run time
expected: 33 minutes 33.45 seconds, actual: 72 minutes 49.36 seconds
Spec file run time
expected: 4 minutes 28.11 seconds, actual: 11 minutes 21.76 seconds
Spec file weight
15.6% of total suite run time
Reported from pipeline 5003037 created at 2025-12-18T02:06:03Z
Field
Value
Job URL
rspec-integration-pg16-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 73 minutes 39.96 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 11 minutes 44.46 seconds
Spec file weight
15.94% of total suite run time
Reported from pipeline 5003037 created at 2025-12-18T02:06:03Z
Field
Value
Job URL
rspec-integration-pg16-no-gitaly-transactions-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 75 minutes 39.54 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 11 minutes 50.71 seconds
Spec file weight
15.66% of total suite run time
Reported from pipeline 5003747 created at 2025-12-18T06:05:43Z
Field
Value
Job URL
rspec-integration-pg16-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 71 minutes 31.22 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 10 minutes 59.66 seconds
Spec file weight
15.37% of total suite run time
Reported from pipeline 5004084 created at 2025-12-18T08:05:45Z
Field
Value
Job URL
rspec-integration-pg16-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 73 minutes 1.24 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 11 minutes 10.87 seconds
Spec file weight
15.31% of total suite run time
Reported from pipeline 5004084 created at 2025-12-18T08:05:45Z
Field
Value
Job URL
rspec-integration-pg16-no-gitaly-transactions-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 74 minutes 46.41 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 12 minutes 8.8 seconds
Spec file weight
16.24% of total suite run time
Reported from pipeline 5006195 created at 2025-12-18T14:06:11Z
Field
Value
Job URL
rspec-integration-pg16-11-20
Job total RSpec suite run time
expected: 32 minutes 36.2 seconds, actual: 74 minutes 48.13 seconds
Spec file run time
expected: 4 minutes 10.51 seconds, actual: 11 minutes 40.41 seconds
Spec file weight
15.61% of total suite run time
Edited
Dec 18, 2025 by
Ghost User