Skip to content
代码片段 群组 项目
未验证 提交 26c8ead3 编辑于 作者: Peter Leitzen's avatar Peter Leitzen
浏览文件

Add tooling specs to predictive pipelines

上级 a27e3e86
No related branches found
No related tags found
无相关合并请求
...@@ -87,3 +87,11 @@ rspec system foss-impact: ...@@ -87,3 +87,11 @@ rspec system foss-impact:
parallel: <%= rspec_files_per_test_level[:system][:parallelization] %> parallel: <%= rspec_files_per_test_level[:system][:parallelization] %>
<% end %> <% end %>
<% end %> <% end %>
<% if rspec_files_per_test_level[:tooling][:files].size > 0 %>
rspec tooling foss-impact:
extends: .base-rspec-foss-impact
<% if rspec_files_per_test_level[:tooling][:parallelization] > 1 %>
parallel: <%= rspec_files_per_test_level[:tooling][:parallelization] %>
<% end %>
<% end %>
...@@ -97,6 +97,15 @@ rspec system predictive: ...@@ -97,6 +97,15 @@ rspec system predictive:
<% end %> <% end %>
<% end %> <% end %>
<% if rspec_files_per_test_level.dig(:tooling, :files).size > 0 %>
rspec tooling predictive:
extends:
- .base-rspec-predictive
<% if rspec_files_per_test_level.dig(:tooling, :parallelization) > 1 %>
parallel: <%= rspec_files_per_test_level.dig(:tooling, :parallelization) %>
<% end %>
<% end %>
<% end %> <% end %>
<% if test_suite_prefix == 'ee/' %> <% if test_suite_prefix == 'ee/' %>
...@@ -154,4 +163,13 @@ rspec-ee system predictive: ...@@ -154,4 +163,13 @@ rspec-ee system predictive:
<% end %> <% end %>
<% end %> <% end %>
<% if rspec_files_per_test_level.dig(:tooling, :files).size > 0 %>
rspec-ee tooling predictive:
extends:
- .base-rspec-ee-predictive
<% if rspec_files_per_test_level.dig(:tooling, :parallelization) > 1 %>
parallel: <%= rspec_files_per_test_level.dig(:tooling, :parallelization) %>
<% end %>
<% end %>
<% end %> <% end %>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# Class to generate RSpec test child pipeline with dynamically parallelized jobs. # Class to generate RSpec test child pipeline with dynamically parallelized jobs.
class GenerateRspecPipeline class GenerateRspecPipeline
SKIP_PIPELINE_YML_FILE = ".gitlab/ci/_skip.yml" SKIP_PIPELINE_YML_FILE = ".gitlab/ci/_skip.yml"
TEST_LEVELS = %i[migration background_migration unit integration system].freeze TEST_LEVELS = %i[migration background_migration unit integration system tooling].freeze
MAX_NODES_COUNT = 50 # Maximum parallelization allowed by GitLab MAX_NODES_COUNT = 50 # Maximum parallelization allowed by GitLab
OPTIMAL_TEST_JOB_DURATION_IN_SECONDS = 600 # 10 MINUTES OPTIMAL_TEST_JOB_DURATION_IN_SECONDS = 600 # 10 MINUTES
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册