Commit 12c8709d authored by Thong Kuah's avatar Thong Kuah

Allow tick_for callsite

This callsite generates about ~500 calls in our CI. Adding this allow in
this callsite allows us to shrink the spec based allowlist
parent 11f7bc17
...@@ -99,6 +99,7 @@ module Ci ...@@ -99,6 +99,7 @@ module Ci
private private
def tick_for(build, runners) def tick_for(build, runners)
::Gitlab::Database.allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/339937') do
runners = runners.with_recent_runner_queue runners = runners.with_recent_runner_queue
runners = runners.with_tags if Feature.enabled?(:ci_preload_runner_tags, default_enabled: :yaml) runners = runners.with_tags if Feature.enabled?(:ci_preload_runner_tags, default_enabled: :yaml)
...@@ -110,6 +111,7 @@ module Ci ...@@ -110,6 +111,7 @@ module Ci
runner.pick_build!(build) runner.pick_build!(build)
end end
end end
end
def maintain_pending_builds_queue?(build) def maintain_pending_builds_queue?(build)
Feature.enabled?(:ci_pending_builds_queue_maintain, build.project, default_enabled: :yaml) Feature.enabled?(:ci_pending_builds_queue_maintain, build.project, default_enabled: :yaml)
......
...@@ -331,7 +331,6 @@ ...@@ -331,7 +331,6 @@
- "./spec/services/ci/play_build_service_spec.rb" - "./spec/services/ci/play_build_service_spec.rb"
- "./spec/services/ci/register_job_service_spec.rb" - "./spec/services/ci/register_job_service_spec.rb"
- "./spec/services/ci/retry_pipeline_service_spec.rb" - "./spec/services/ci/retry_pipeline_service_spec.rb"
- "./spec/services/ci/update_build_queue_service_spec.rb"
- "./spec/services/clusters/applications/prometheus_config_service_spec.rb" - "./spec/services/clusters/applications/prometheus_config_service_spec.rb"
- "./spec/services/deployments/older_deployments_drop_service_spec.rb" - "./spec/services/deployments/older_deployments_drop_service_spec.rb"
- "./spec/services/environments/auto_stop_service_spec.rb" - "./spec/services/environments/auto_stop_service_spec.rb"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment