[go: up one dir, main page]

Job timeout risk: spec/requests/api/merge_requests_spec.rb ran much longer than expected

Why was this issue created?

spec/requests/api/merge_requests_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/requests/api/merge_requests_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 3185220 created at 2024-09-07T01:15:58Z
Field Value
Job URL rspec-integration-pg14-single-db-7-20
Job total RSpec suite run time expected: 36 minutes 9.46 seconds, actual: 73 minutes 22.2 seconds
Spec file run time expected: 12 minutes 57.85 seconds, actual: 22 minutes 44.54 seconds
Spec file weight 31.0% of total suite run time
  • Reported from pipeline 4041902 created at 2025-04-14T17:34:48Z
Field Value
Job URL rspec-integration-pg16-3-20
Job total RSpec suite run time expected: 23 minutes 56.47 seconds, actual: 79 minutes 47.01 seconds
Spec file run time expected: 11 minutes 6.25 seconds, actual: 34 minutes 22.78 seconds
Spec file weight 43.09% of total suite run time
  • Reported from pipeline 4885706 created at 2025-11-20T20:42:34Z
Field Value
Job URL rspec-integration-pg16-single-db-2-20
Job total RSpec suite run time expected: 33 minutes 24.34 seconds, actual: 72 minutes 35.89 seconds
Spec file run time expected: 15 minutes 21.52 seconds, actual: 37 minutes 14.09 seconds
Spec file weight 51.29% of total suite run time