Skip to content

Job timeout risk: spec/models/merge_request_spec.rb ran much longer than expected

Why was this issue created?

spec/models/merge_request_spec.rb was reported to have:

  1. exceeded Knapsack's expected runtime by at least 50%, and
  2. been identified as a notable pipeline bottleneck and a job timeout risk

Suggested steps for investigation

  1. To reproduce in CI by running test files in the same order, you can follow the steps listed here.
  2. Identify if a specific test case is stalling the run time. Hint: You can search the job's log for Starting example group spec/models/merge_request_spec.rb and view the elapsed time after each test case in the proceeding lines starting with [RSpecRunTime].
  3. If the test file is large, consider refactoring it into multiple files to allow better test parallelization across runners.
  4. If the run time cannot be fixed in time, consider quarantine the spec(s) to restore performance.

Run time details

  • Reported from pipeline 2464164 created at 2024-02-21T01:16:20Z
Field Value
Job URL rspec-unit-pg14-single-redis-6-32
Job total RSpec suite run time expected: 43 minutes 41.57 seconds, actual: 79 minutes 51.74 seconds
Spec file run time expected: 9 minutes 17.79 seconds, actual: 17 minutes 2.29 seconds
Spec file weight 21.33% of total suite run time
  • Reported from pipeline 2481454 created at 2024-02-26T01:16:06Z
Field Value
Job URL rspec-unit-pg16-7-32
Job total RSpec suite run time expected: 41 minutes 35.31 seconds, actual: 76 minutes 43.89 seconds
Spec file run time expected: 9 minutes 16.8 seconds, actual: 15 minutes 37.78 seconds
Spec file weight 20.37% of total suite run time
  • Reported from pipeline 2528989 created at 2024-03-07T01:16:11Z
Field Value
Job URL rspec-unit-pg15-7-32
Job total RSpec suite run time expected: 44 minutes 12.29 seconds, actual: 70 minutes 19.87 seconds
Spec file run time expected: 9 minutes 21.28 seconds, actual: 16 minutes 47.73 seconds
Spec file weight 23.88% of total suite run time
  • Reported from pipeline 2538240 created at 2024-03-10T01:15:57Z
Field Value
Job URL rspec-unit-pg14-single-db-6-32
Job total RSpec suite run time expected: 42 minutes 21.44 seconds, actual: 71 minutes 8.71 seconds
Spec file run time expected: 9 minutes 56.23 seconds, actual: 16 minutes 2.17 seconds
Spec file weight 22.54% of total suite run time
  • Reported from pipeline 2541309 created at 2024-03-12T01:16:08Z
Field Value
Job URL rspec-unit-pg14-6-32
Job total RSpec suite run time expected: 43 minutes 54.04 seconds, actual: 72 minutes 16.83 seconds
Spec file run time expected: 10 minutes 12.01 seconds, actual: 15 minutes 58.65 seconds
Spec file weight 22.1% of total suite run time
  • Reported from pipeline 2692862 created at 2024-04-25T01:16:01Z
Field Value
Job URL rspec-unit-pg16-5-32
Job total RSpec suite run time expected: 30 minutes 37.91 seconds, actual: 70 minutes 0.3 second
Spec file run time expected: 7 minutes 41.47 seconds, actual: 13 minutes 54.6 seconds
Spec file weight 19.87% of total suite run time
  • Reported from pipeline 2692862 created at 2024-04-25T01:16:01Z
Field Value
Job URL rspec-unit-pg14-5-32
Job total RSpec suite run time expected: 30 minutes 37.91 seconds, actual: 73 minutes 19.83 seconds
Spec file run time expected: 7 minutes 41.47 seconds, actual: 14 minutes 27.61 seconds
Spec file weight 19.72% of total suite run time
  • Reported from pipeline 2692862 created at 2024-04-25T01:16:01Z
Field Value
Job URL rspec-unit-pg14-single-redis-5-32
Job total RSpec suite run time expected: 30 minutes 37.91 seconds, actual: 75 minutes 51.48 seconds
Spec file run time expected: 7 minutes 41.47 seconds, actual: 16 minutes 4.54 seconds
Spec file weight 21.19% of total suite run time
  • Reported from pipeline 2790234 created at 2024-05-19T01:15:57Z
Field Value
Job URL rspec-unit-pg14-single-db-ci-connection-6-32
Job total RSpec suite run time expected: 30 minutes 33.68 seconds, actual: 72 minutes 5.21 seconds
Spec file run time expected: 7 minutes 26.31 seconds, actual: 15 minutes 29.95 seconds
Spec file weight 21.5% of total suite run time
  • Reported from pipeline 2818570 created at 2024-05-27T01:16:07Z
Field Value
Job URL rspec-unit-pg16-8-32
Job total RSpec suite run time expected: 31 minutes 30.97 seconds, actual: 71 minutes 17.27 seconds
Spec file run time expected: 7 minutes 9.14 seconds, actual: 13 minutes 33.95 seconds
Spec file weight 19.03% of total suite run time
  • Reported from pipeline 2898305 created at 2024-06-18T14:34:48Z
Field Value
Job URL rspec-unit-pg14-4-32
Job total RSpec suite run time expected: 35 minutes 13.19 seconds, actual: 74 minutes 48.99 seconds
Spec file run time expected: 9 minutes 46.97 seconds, actual: 19 minutes 49.19 seconds
Spec file weight 26.49% of total suite run time
  • Reported from pipeline 3016236 created at 2024-07-18T14:41:52Z
Field Value
Job URL rspec-unit-pg14-single-db-3-44
Job total RSpec suite run time expected: 27 minutes 50.84 seconds, actual: 71 minutes 9.58 seconds
Spec file run time expected: 11 minutes 43.65 seconds, actual: 19 minutes 56.97 seconds
Spec file weight 28.03% of total suite run time
  • Reported from pipeline 3016236 created at 2024-07-18T14:41:52Z
Field Value
Job URL rspec-unit-pg16-3-44
Job total RSpec suite run time expected: 27 minutes 50.84 seconds, actual: 72 minutes 29.85 seconds
Spec file run time expected: 11 minutes 43.65 seconds, actual: 19 minutes 43.55 seconds
Spec file weight 27.21% of total suite run time
  • Reported from pipeline 3060639 created at 2024-07-31T01:16:44Z
Field Value
Job URL rspec-unit-pg14-single-db-ci-connection-5-44
Job total RSpec suite run time expected: 41 minutes 24.01 seconds, actual: 78 minutes 28.91 seconds
Spec file run time expected: 15 minutes 27.07 seconds, actual: 23 minutes 11.57 seconds
Spec file weight 29.55% of total suite run time
  • Reported from pipeline 3192737 created at 2024-09-10T01:15:50Z
Field Value
Job URL rspec-unit-pg14-single-db-6-44
Job total RSpec suite run time expected: 44 minutes 56.15 seconds, actual: 79 minutes 56.43 seconds
Spec file run time expected: 15 minutes 30.76 seconds, actual: 31 minutes 36.68 seconds
Spec file weight 39.54% of total suite run time
  • Reported from pipeline 3210257 created at 2024-09-13T22:05:44Z
Field Value
Job URL rspec-unit-pg14-no-gitaly-transactions-6-44
Job total RSpec suite run time expected: 44 minutes 45.29 seconds, actual: 75 minutes 51.71 seconds
Spec file run time expected: 15 minutes 53.79 seconds, actual: 24 minutes 55.54 seconds
Spec file weight 32.86% of total suite run time
  • Reported from pipeline 3211511 created at 2024-09-15T01:15:58Z
Field Value
Job URL rspec-unit-pg14-single-db-ci-connection-6-44
Job total RSpec suite run time expected: 43 minutes 46.23 seconds, actual: 70 minutes 54.37 seconds
Spec file run time expected: 14 minutes 55.25 seconds, actual: 23 minutes 45.24 seconds
Spec file weight 33.5% of total suite run time
  • Reported from pipeline 4024914 created at 2025-04-09T18:36:04Z
Field Value
Job URL rspec-unit-pg16-7-44
Job total RSpec suite run time expected: 27 minutes 16.57 seconds, actual: 79 minutes 29.0 seconds
Spec file run time expected: 8 minutes 12.25 seconds, actual: 28 minutes 55.96 seconds
Spec file weight 36.4% of total suite run time
  • Reported from pipeline 4085257 created at 2025-04-26T01:15:55Z
Field Value
Job URL rspec-unit-pg16-single-redis-5-44
Job total RSpec suite run time expected: 27 minutes 46.89 seconds, actual: 70 minutes 20.24 seconds
Spec file run time expected: 9 minutes 52.91 seconds, actual: 18 minutes 46.16 seconds
Spec file weight 26.68% of total suite run time
  • Reported from pipeline 4670141 created at 2025-09-30T12:42:10Z
Field Value
Job URL rspec-unit-pg16-5-44
Job total RSpec suite run time expected: 31 minutes 20.58 seconds, actual: 70 minutes 40.07 seconds
Spec file run time expected: 11 minutes 16.23 seconds, actual: 23 minutes 12.83 seconds
Spec file weight 32.85% of total suite run time