mirror of
https://github.com/grafana/grafana.git
synced 2026-08-12 06:05:02 -05:00
chore(drone): switch to using cypress built image for e2e tests
This commit is contained in:
@@ -14,7 +14,6 @@ load(
|
||||
'build_frontend_step',
|
||||
'build_plugins_step',
|
||||
'package_step',
|
||||
'install_cypress_step',
|
||||
'e2e_tests_server_step',
|
||||
'e2e_tests_step',
|
||||
'e2e_tests_artifacts',
|
||||
@@ -99,8 +98,7 @@ def get_steps(edition, is_downstream=False):
|
||||
|
||||
# Insert remaining steps
|
||||
build_steps.extend([
|
||||
package_step(edition=edition, ver_mode=ver_mode, include_enterprise2=include_enterprise2, is_downstream=is_downstream),
|
||||
install_cypress_step(),
|
||||
package_step(edition=edition, ver_mode=ver_mode, include_enterprise2=include_enterprise2, is_downstream=is_downstream),
|
||||
e2e_tests_server_step(edition=edition),
|
||||
e2e_tests_step('dashboards-suite', edition=edition),
|
||||
e2e_tests_step('smoke-tests-suite', edition=edition),
|
||||
|
||||
@@ -14,7 +14,6 @@ load(
|
||||
'test_backend_integration_step',
|
||||
'test_frontend_step',
|
||||
'package_step',
|
||||
'install_cypress_step',
|
||||
'e2e_tests_server_step',
|
||||
'e2e_tests_step',
|
||||
'e2e_tests_artifacts',
|
||||
@@ -93,7 +92,6 @@ def pr_pipelines(edition):
|
||||
# Insert remaining build_steps
|
||||
build_steps.extend([
|
||||
package_step(edition=edition, ver_mode=ver_mode, include_enterprise2=include_enterprise2, variants=variants),
|
||||
install_cypress_step(),
|
||||
e2e_tests_server_step(edition=edition),
|
||||
e2e_tests_step('dashboards-suite', edition=edition),
|
||||
e2e_tests_step('smoke-tests-suite', edition=edition),
|
||||
|
||||
@@ -17,7 +17,6 @@ load(
|
||||
'build_frontend_step',
|
||||
'build_plugins_step',
|
||||
'package_step',
|
||||
'install_cypress_step',
|
||||
'e2e_tests_server_step',
|
||||
'e2e_tests_step',
|
||||
'e2e_tests_artifacts',
|
||||
@@ -159,7 +158,6 @@ def get_steps(edition, ver_mode):
|
||||
# Insert remaining steps
|
||||
build_steps.extend([
|
||||
package_step(edition=edition, ver_mode=ver_mode, include_enterprise2=include_enterprise2),
|
||||
install_cypress_step(),
|
||||
e2e_tests_server_step(edition=edition),
|
||||
e2e_tests_step('dashboards-suite', edition=edition, tries=3),
|
||||
e2e_tests_step('smoke-tests-suite', edition=edition, tries=3),
|
||||
|
||||
@@ -707,31 +707,15 @@ def e2e_tests_server_step(edition, port=3001):
|
||||
],
|
||||
}
|
||||
|
||||
def install_cypress_step():
|
||||
return {
|
||||
'name': 'cypress',
|
||||
'image': 'grafana/ci-e2e:12.19.0-1',
|
||||
'depends_on': [
|
||||
'package',
|
||||
],
|
||||
'commands': [
|
||||
'yarn run cypress install',
|
||||
],
|
||||
'volumes': [{
|
||||
'name': 'cypress_cache',
|
||||
'path': '/root/.cache/Cypress'
|
||||
}],
|
||||
}
|
||||
|
||||
def e2e_tests_step(suite, edition, port=3001, tries=None):
|
||||
cmd = './bin/grabpl e2e-tests --port {} --suite {}'.format(port, suite)
|
||||
if tries:
|
||||
cmd += ' --tries {}'.format(tries)
|
||||
return {
|
||||
'name': 'end-to-end-tests-{}'.format(suite) + enterprise2_suffix(edition),
|
||||
'image': 'grafana/ci-e2e:12.19.0-1',
|
||||
'image': 'cypress/included:9.2.0',
|
||||
'depends_on': [
|
||||
'cypress',
|
||||
'package',
|
||||
],
|
||||
'environment': {
|
||||
'HOST': 'end-to-end-tests-server' + enterprise2_suffix(edition),
|
||||
@@ -741,6 +725,7 @@ def e2e_tests_step(suite, edition, port=3001, tries=None):
|
||||
'path': '/root/.cache/Cypress'
|
||||
}],
|
||||
'commands': [
|
||||
'apt-get install -y netcat',
|
||||
cmd,
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user