[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 commit75c5845749) * Add clone-enterprise and init-enterprise steps (#56662) (cherry picked from commiteb077db2b0) * Add dependencies (#56666) (cherry picked from commit811f6054c8) * Fix release test pipelines dependencies (#56671) (cherry picked from commit668cb25b82) * Remove build-frontend-packages step from docs pipelines (#56686) (cherry picked from commitefc8f985cb) * Remove grabpl dependency from yarn-install (#56692) * Sign drone
This commit is contained in:
@@ -8,9 +8,7 @@ load(
|
||||
'codespell_step',
|
||||
'test_frontend_step',
|
||||
'build_storybook_step',
|
||||
'build_frontend_package_step',
|
||||
'build_docs_website_step',
|
||||
'compile_build_cmd',
|
||||
)
|
||||
|
||||
load(
|
||||
@@ -40,9 +38,7 @@ def docs_pipelines(edition, ver_mode, trigger):
|
||||
yarn_install_step(),
|
||||
codespell_step(),
|
||||
lint_docs(),
|
||||
build_frontend_package_step(edition=edition, ver_mode=ver_mode),
|
||||
build_docs_website_step(),
|
||||
compile_build_cmd(),
|
||||
]
|
||||
|
||||
return pipeline(
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
load(
|
||||
'scripts/drone/steps/lib.star',
|
||||
'identify_runner_step',
|
||||
'download_grabpl_step',
|
||||
'wire_install_step',
|
||||
'test_backend_step',
|
||||
'test_backend_integration_step',
|
||||
'verify_gen_cue_step',
|
||||
'compile_build_cmd',
|
||||
'clone_enterprise_step',
|
||||
'init_enterprise_step',
|
||||
)
|
||||
|
||||
load(
|
||||
@@ -13,18 +16,25 @@ load(
|
||||
'pipeline',
|
||||
)
|
||||
|
||||
def test_backend(trigger, ver_mode):
|
||||
init_steps = [
|
||||
def test_backend(trigger, ver_mode, edition="oss"):
|
||||
environment = {'EDITION': edition}
|
||||
init_steps = []
|
||||
if edition != 'oss':
|
||||
init_steps.extend([clone_enterprise_step(ver_mode), download_grabpl_step(), init_enterprise_step(ver_mode),])
|
||||
init_steps.extend([
|
||||
identify_runner_step(),
|
||||
compile_build_cmd(),
|
||||
verify_gen_cue_step(edition="oss"),
|
||||
compile_build_cmd(edition),
|
||||
verify_gen_cue_step(edition),
|
||||
wire_install_step(),
|
||||
]
|
||||
])
|
||||
test_steps = [
|
||||
test_backend_step(edition="oss"),
|
||||
test_backend_integration_step(edition="oss"),
|
||||
test_backend_step(edition),
|
||||
test_backend_integration_step(edition),
|
||||
]
|
||||
|
||||
pipeline_name = '{}-test-backend'.format(ver_mode)
|
||||
if ver_mode in ("release-branch", "release"):
|
||||
pipeline_name = '{}-{}-test-backend'.format(ver_mode, edition)
|
||||
return pipeline(
|
||||
name='{}-test-backend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps,
|
||||
name=pipeline_name, edition=edition, trigger=trigger, services=[], steps=init_steps + test_steps, environment=environment
|
||||
)
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
load(
|
||||
'scripts/drone/steps/lib.star',
|
||||
'identify_runner_step',
|
||||
'clone_enterprise_step',
|
||||
'init_enterprise_step',
|
||||
'download_grabpl_step',
|
||||
'yarn_install_step',
|
||||
'betterer_frontend_step',
|
||||
'test_frontend_step',
|
||||
'compile_build_cmd',
|
||||
)
|
||||
|
||||
load(
|
||||
@@ -13,17 +14,23 @@ load(
|
||||
'pipeline',
|
||||
)
|
||||
|
||||
def test_frontend(trigger, ver_mode):
|
||||
init_steps = [
|
||||
def test_frontend(trigger, ver_mode, edition="oss"):
|
||||
environment = {'EDITION': edition}
|
||||
init_steps = []
|
||||
if edition != 'oss':
|
||||
init_steps.extend([clone_enterprise_step(ver_mode), init_enterprise_step(ver_mode),])
|
||||
init_steps.extend([
|
||||
identify_runner_step(),
|
||||
download_grabpl_step(),
|
||||
yarn_install_step(),
|
||||
compile_build_cmd(),
|
||||
]
|
||||
yarn_install_step(edition),
|
||||
])
|
||||
test_steps = [
|
||||
betterer_frontend_step(),
|
||||
test_frontend_step(),
|
||||
betterer_frontend_step(edition),
|
||||
test_frontend_step(edition),
|
||||
]
|
||||
pipeline_name = '{}-test-frontend'.format(ver_mode)
|
||||
if ver_mode in ("release-branch", "release"):
|
||||
pipeline_name = '{}-{}-test-frontend'.format(ver_mode, edition)
|
||||
return pipeline(
|
||||
name='{}-test-frontend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps,
|
||||
name=pipeline_name, edition=edition, trigger=trigger, services=[], steps=init_steps + test_steps,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user