[go: up one dir, main page]

Skip to content

Job timeout risk: spec/features/projects/files/user_creates_files_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/projects/files/user_creates_files_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/projects/files/user_creates_files_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 4014023 created at 2025-04-08T03:01:03Z
Field Value
Job URL rspec-system-pg16-28-32
Job total RSpec suite run time expected: 25 minutes 57.71 seconds, actual: 78 minutes 49.19 seconds
Spec file run time expected: 2 minutes 52.71 seconds, actual: 39 minutes 50.55 seconds
Spec file weight 50.55% of total suite run time
  • Reported from pipeline 4332715 created at 2025-07-03T11:29:10Z
Field Value
Job URL rspec-system-pg16-26-32
Job total RSpec suite run time expected: 24 minutes 17.77 seconds, actual: 81 minutes 52.87 seconds
Spec file run time expected: 2 minutes 40.83 seconds, actual: 38 minutes 49.38 seconds
Spec file weight 47.41% of total suite run time
  • Reported from pipeline 4585428 created at 2025-09-09T09:17:14Z
Field Value
Job URL rspec-system-pg16-32-32
Job total RSpec suite run time expected: 26 minutes 46.86 seconds, actual: 80 minutes 13.91 seconds
Spec file run time expected: 3 minutes 2.5 seconds, actual: 39 minutes 15.86 seconds
Spec file weight 48.94% of total suite run time
  • Reported from pipeline 4601291 created at 2025-09-12T10:19:39Z
Field Value
Job URL rspec-system-pg16-17-32
Job total RSpec suite run time expected: 28 minutes 12.08 seconds, actual: 78 minutes 48.5 seconds
Spec file run time expected: 2 minutes 50.38 seconds, actual: 39 minutes 33.66 seconds
Spec file weight 50.2% of total suite run time