Job timeout risk: spec/features/merge_request/user_resolves_diff_notes_and_discussions_resolve_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/features/merge_request/user_resolves_diff_notes_and_discussions_resolve_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_resolves_diff_notes_and_discussions_resolve_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 2413130 created at 2024-02-07T12:09:01Z
Field Value
Job URL rspec-system-pg14-single-db-ci-connection-6-32
Job total RSpec suite run time expected: 23 minutes 49.12 seconds, actual: 74 minutes 50.51 seconds
Spec file run time expected: 10 minutes 32.56 seconds, actual: 74 minutes 50.51 seconds
Spec file weight 100.0% of total suite run time
  • Reported from pipeline 2790234 created at 2024-05-19T01:15:57Z
Field Value
Job URL rspec-system-pg14-7-32
Job total RSpec suite run time expected: 18 minutes 36.28 seconds, actual: 76 minutes 13.01 seconds
Spec file run time expected: 7 minutes 25.28 seconds, actual: 12 minutes 11.77 seconds
Spec file weight 16.0% of total suite run time
  • Reported from pipeline 3040480 created at 2024-07-25T06:01:19Z
Field Value
Job URL rspec-system-pg14-5-32
Job total RSpec suite run time expected: 24 minutes 6.74 seconds, actual: 72 minutes 36.6 seconds
Spec file run time expected: 11 minutes 27.46 seconds, actual: 72 minutes 36.6 seconds
Spec file weight 100.0% of total suite run time
  • Reported from pipeline 4194658 created at 2025-05-25T20:22:46Z
Field Value
Job URL rspec-system-pg16-7-32
Job total RSpec suite run time expected: 24 minutes 26.33 seconds, actual: 70 minutes 15.52 seconds
Spec file run time expected: 10 minutes 32.9 seconds, actual: 35 minutes 30.53 seconds
Spec file weight 50.54% of total suite run time
  • Reported from pipeline 4695359 created at 2025-10-06T18:03:56Z
Field Value
Job URL rspec-system-pg16-6-32
Job total RSpec suite run time expected: 27 minutes 6.99 seconds, actual: 73 minutes 29.95 seconds
Spec file run time expected: 12 minutes 10.55 seconds, actual: 39 minutes 58.61 seconds
Spec file weight 54.39% of total suite run time
Edited by 🤖 GitLab Bot 🤖