CI: Make e2e tests depend on binary builds (#44647)
* Make e2e test depend on binary builds * Search for binary in the correct folders * Remove package file var * Add ARCH var
This commit is contained in:
@@ -650,7 +650,7 @@ def package_step(edition, ver_mode, include_enterprise2=False, variants=None, is
|
||||
}
|
||||
|
||||
|
||||
def e2e_tests_server_step(edition, port=3001):
|
||||
def grafana_server_step(edition, port=3001):
|
||||
package_file_pfx = ''
|
||||
if edition == 'enterprise2':
|
||||
package_file_pfx = 'grafana' + enterprise2_suffix(edition)
|
||||
@@ -659,9 +659,9 @@ def e2e_tests_server_step(edition, port=3001):
|
||||
|
||||
environment = {
|
||||
'PORT': port,
|
||||
'ARCH': 'linux-amd64'
|
||||
}
|
||||
if package_file_pfx:
|
||||
environment['PACKAGE_FILE'] = 'dist/{}-*linux-amd64.tar.gz'.format(package_file_pfx)
|
||||
environment['RUNDIR'] = 'scripts/grafana-server/tmp-{}'.format(package_file_pfx)
|
||||
|
||||
return {
|
||||
@@ -669,7 +669,9 @@ def e2e_tests_server_step(edition, port=3001):
|
||||
'image': build_image,
|
||||
'detach': True,
|
||||
'depends_on': [
|
||||
'package' + enterprise2_suffix(edition),
|
||||
'build-plugins',
|
||||
'build-backend',
|
||||
'build-frontend',
|
||||
],
|
||||
'environment': environment,
|
||||
'commands': [
|
||||
@@ -685,7 +687,7 @@ def e2e_tests_step(suite, edition, port=3001, tries=None):
|
||||
'name': 'end-to-end-tests-{}'.format(suite) + enterprise2_suffix(edition),
|
||||
'image': 'cypress/included:9.3.1',
|
||||
'depends_on': [
|
||||
'package',
|
||||
'grafana-server',
|
||||
],
|
||||
'environment': {
|
||||
'HOST': 'grafana-server' + enterprise2_suffix(edition),
|
||||
|
||||
Reference in New Issue
Block a user