[v9.2.x] CI: Split release test pipelines (#56670)

* CI: Split release test pipelines (#56655)

* Split test release pipelines

* Add missing dependencies

* Add release branch case when naming pipeline

(cherry picked from commit 75c5845749)

* Add clone-enterprise and init-enterprise steps (#56662)

(cherry picked from commit eb077db2b0)

* Add dependencies (#56666)

(cherry picked from commit 811f6054c8)

* Fix release test pipelines dependencies (#56671)

(cherry picked from commit 668cb25b82)

* Remove build-frontend-packages step from docs pipelines (#56686)

(cherry picked from commit efc8f985cb)

* Remove grabpl dependency from yarn-install (#56692)

* Sign drone
This commit is contained in:
Dimitris Sotirakis
2022-10-12 09:44:12 +03:00
committed by GitHub
parent d02b7fc0ba
commit 0cf8f9fab6
6 changed files with 681 additions and 417 deletions
+21 -14
View File
@@ -36,16 +36,17 @@ def slack_step(channel, template, secret):
},
}
def yarn_install_step():
def yarn_install_step(edition="oss"):
deps = []
if edition == 'enterprise':
deps = ['init-enterprise']
return {
'name': 'yarn-install',
'image': build_image,
'commands': [
'yarn install --immutable',
],
'depends_on': [
'grabpl',
],
'depends_on': deps,
}
@@ -449,6 +450,7 @@ def build_frontend_package_step(edition, ver_mode):
'NODE_OPTIONS': '--max_old_space_size=8192',
},
'depends_on': [
'compile-build-cmd',
'yarn-install',
],
'commands': cmds,
@@ -467,6 +469,7 @@ def build_plugins_step(edition, ver_mode):
'image': build_image,
'environment': env,
'depends_on': [
'compile-build-cmd',
'yarn-install',
],
'commands': [
@@ -514,13 +517,15 @@ def test_backend_integration_step(edition):
],
}
def betterer_frontend_step():
def betterer_frontend_step(edition="oss"):
deps = []
if edition == "enterprise":
deps.extend(['init-enterprise'])
deps.extend(['yarn-install'])
return {
'name': 'betterer-frontend',
'image': build_image,
'depends_on': [
'yarn-install',
],
'depends_on': deps,
'commands': [
'yarn betterer ci',
],
@@ -529,16 +534,18 @@ def betterer_frontend_step():
def test_frontend_step():
def test_frontend_step(edition="oss"):
deps = []
if edition == "enterprise":
deps.extend(['init-enterprise'])
deps.extend(['yarn-install'])
return {
'name': 'test-frontend',
'image': build_image,
'environment': {
'TEST_MAX_WORKERS': '50%',
},
'depends_on': [
'yarn-install',
],
'depends_on': deps,
'commands': [
'yarn run ci:test-frontend',
],
@@ -1180,7 +1187,7 @@ def get_windows_steps(edition, ver_mode):
def verify_gen_cue_step(edition):
deps = []
if edition == "enterprise":
if edition in ('enterprise', 'enterprise2'):
deps.extend(['init-enterprise'])
return {
'name': 'verify-gen-cue',
@@ -1253,7 +1260,7 @@ def end_to_end_tests_deps(edition):
def compile_build_cmd(edition='oss'):
dependencies = []
if edition == 'enterprise':
if edition in ('enterprise', 'enterprise2'):
dependencies = ['init-enterprise',]
return {
'name': 'compile-build-cmd',