Fix: owner_manages_runners_spec taking 80 minutes
Summary
The Developer Experience (DevEx) team is working on improving pipeline stability EPIC and has identified a recurring failure due to owner_manages_runners_spec.rb That's causing significant job timeouts.
Problem Description
The spec file spec/features/groups/runners/owner_manages_runners_spec.rb is expected to take a few minutes to run, takes more than 80 + minutes before job timing out.
Error Details
Here is the error message
Click to view Error logs
Finished in 85 minutes 56 seconds (files took 1 minute 27.03 seconds to load)
179 examples, 3 failures
Failed examples:
rspec './spec/features/groups/runners/owner_manages_runners_spec.rb[1:2:1:1]' # Group manages runners in runner list with an online project runner behaves like pauses, resumes and deletes a runner pauses and resumes runner
rspec './spec/features/groups/runners/owner_manages_runners_spec.rb[1:2:1:2:1]' # Group manages runners in runner list with an online project runner behaves like pauses, resumes and deletes a runner deletes runner confirms runner deletion
rspec './spec/features/groups/runners/owner_manages_runners_spec.rb[1:2:1:2:2]' # Group manages runners in runner list with an online project runner behaves like pauses, resumes and deletes a runner deletes runner cancels runner deletion
Technical Notes
We've found that stray PreventCrossDatabaseModification seem to be the cause for the jobs timing out. We should a) prevent the time out b) prevent the PreventCrossDatabaseModification error from happening in the first place.
This issue will aim to address a), while b) has been reported at #499051 and can be addressed separately.
Impact
- Frequency: 19 occurrences in the last 28 days
- Duration: rspec tests taking more than 80 minutes
Related Issue
gitlab-org/quality/analytics/team#145
Related Links
Here is the list of failed jobs, due to the same error
Click to view Failed JOb URL's
####### 13 November 2025 ########https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11982636581
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11980056309
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11978917937
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11979313526
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11950065011
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11791473317
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/11763783651
############## OLDER ##########
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10876254661
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10875190578
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10875721564
https://gitlab.com/gitlab-org/gitlab/-/jobs/10875045759
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10875094895
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10876254661
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10806665767
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10683939492
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10643176657
https://gitlab.com/gitlab-org/gitlab/-/jobs/10642779106
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10629522206
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10629870906
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10629439252
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10629196454
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10629318396
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10630626226
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10627824860
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10616933888
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/10604788814