Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/config/external/context.rb')
-rw-r--r--lib/gitlab/ci/config/external/context.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/external/context.rb b/lib/gitlab/ci/config/external/context.rb
index 138e79db331..6eef279d3de 100644
--- a/lib/gitlab/ci/config/external/context.rb
+++ b/lib/gitlab/ci/config/external/context.rb
@@ -10,6 +10,7 @@ module Gitlab
TimeoutError = Class.new(StandardError)
MAX_INCLUDES = 100
+ NEW_MAX_INCLUDES = 150 # Update to MAX_INCLUDES when FF ci_includes_count_duplicates is removed
include ::Gitlab::Utils::StrongMemoize
@@ -27,10 +28,10 @@ module Gitlab
@user = user
@parent_pipeline = parent_pipeline
@variables = variables || Ci::Variables::Collection.new
- @expandset = Set.new
+ @expandset = Feature.enabled?(:ci_includes_count_duplicates, project) ? [] : Set.new
@execution_deadline = 0
@logger = logger || Gitlab::Ci::Pipeline::Logger.new(project: project)
- @max_includes = MAX_INCLUDES
+ @max_includes = Feature.enabled?(:ci_includes_count_duplicates, project) ? NEW_MAX_INCLUDES : MAX_INCLUDES
yield self if block_given?
end