[go: up one dir, main page]

Job timeout risk: spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb ran much longer than expected

Why was this issue created?

spec/features/merge_request/user_merges_only_if_pipeline_succeeds_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/features/merge_request/user_merges_only_if_pipeline_succeeds_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 4152049 created at 2025-05-14T00:50:44Z
Field Value
Job URL rspec-system-pg16-32-32
Job total RSpec suite run time expected: 25 minutes 44.51 seconds, actual: 76 minutes 6.43 seconds
Spec file run time expected: 5 minutes 2.14 seconds, actual: 18 minutes 43.05 seconds
Spec file weight 24.59% of total suite run time
  • Reported from pipeline 4197292 created at 2025-05-26T13:15:57Z
Field Value
Job URL rspec-system-pg16-26-32
Job total RSpec suite run time expected: 23 minutes 55.12 seconds, actual: 71 minutes 17.28 seconds
Spec file run time expected: 3 minutes 49.95 seconds, actual: 14 minutes 2.91 seconds
Spec file weight 19.71% of total suite run time
  • Reported from pipeline 4927405 created at 2025-12-02T16:02:00Z
Field Value
Job URL rspec-system-pg16-21-32
Job total RSpec suite run time expected: 31 minutes 28.74 seconds, actual: 79 minutes 35.53 seconds
Spec file run time expected: 6 minutes 55.23 seconds, actual: 21 minutes 0.12 second
Spec file weight 26.39% of total suite run time