Job timeout risk: spec/features/projects/files/user_browses_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_browses_files_spec.rb was reported to have:
- exceeded Knapsack's expected runtime by at least 50%, and
- been identified as a notable pipeline bottleneck and a job timeout risk
Suggested steps for investigation
- To reproduce in CI by running test files in the same order, you can follow the steps listed here.
- 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_browses_files_spec.rb
and view the elapsed time after each test case in the proceeding lines starting with[RSpecRunTime]
. - If the test file is large, consider refactoring it into multiple files to allow better test parallelization across runners.
- If the run time cannot be fixed in time, consider quarantine the spec(s) to restore performance.
Run time details
- Reported from pipeline 4091099 created at
2025-04-28T17:10:44Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-no-gitaly-transactions-25-32 |
Job total RSpec suite run time | expected: 25 minutes 8.08 seconds , actual: 70 minutes 39.51 seconds
|
Spec file run time | expected: 3 minutes 50.31 seconds , actual: 12 minutes 21.63 seconds
|
Spec file weight |
17.49% of total suite run time |
- Reported from pipeline 4135718 created at
2025-05-09T01:17:34Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-27-32 |
Job total RSpec suite run time | expected: 25 minutes 7.43 seconds , actual: 75 minutes 44.07 seconds
|
Spec file run time | expected: 4 minutes 10.96 seconds , actual: 12 minutes 18.32 seconds
|
Spec file weight |
16.25% of total suite run time |
- Reported from pipeline 4216146 created at
2025-05-30T20:29:01Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-single-db-26-32 |
Job total RSpec suite run time | expected: 25 minutes 3.03 seconds , actual: 73 minutes 31.97 seconds
|
Spec file run time | expected: 3 minutes 54.78 seconds , actual: 11 minutes 4.92 seconds
|
Spec file weight |
15.07% of total suite run time |
- Reported from pipeline 4389050 created at
2025-07-18T01:52:41Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-single-redis-26-32 |
Job total RSpec suite run time | expected: 25 minutes 44.02 seconds , actual: 73 minutes 22.68 seconds
|
Spec file run time | expected: 4 minutes 6.3 seconds , actual: 11 minutes 24.77 seconds
|
Spec file weight |
15.55% of total suite run time |
- Reported from pipeline 4586454 created at
2025-09-09T13:00:10Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-27-32 |
Job total RSpec suite run time | expected: 27 minutes 4.54 seconds , actual: 73 minutes 53.86 seconds
|
Spec file run time | expected: 4 minutes 5.9 seconds , actual: 11 minutes 26.88 seconds
|
Spec file weight |
15.49% of total suite run time |
- Reported from pipeline 4587289 created at
2025-09-09T15:49:51Z
Field | Value |
---|---|
Job URL | rspec-system-pg16-27-32 |
Job total RSpec suite run time | expected: 27 minutes 4.54 seconds , actual: 71 minutes 47.56 seconds
|
Spec file run time | expected: 4 minutes 5.9 seconds , actual: 10 minutes 56.18 seconds
|
Spec file weight |
15.23% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN