Skip to content

Commit

Permalink
Asynchronously trigger the E2E test job. (elastic#32080)
Browse files Browse the repository at this point in the history
Ignore the result while flaky and unstable tests are fixed.

Follow up from elastic#32079
  • Loading branch information
cmacknz authored Jun 23, 2022
1 parent ef6096f commit e69b982
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -433,25 +433,23 @@ def runE2ETests(){

def suites = '' // empty value represents all suites in the E2E tests

catchError(buildResult: 'UNSTABLE', message: 'Unable to run e2e tests', stageResult: 'FAILURE') {
def suitesSet = e2eTestSuites.toSet()
def suitesSet = e2eTestSuites.toSet()

if (!suitesSet.contains('ALL')) {
suitesSet.each { suite ->
suites += "${suite},"
};
}
echo 'runE2E will run now in a sync mode to validate packages can be published.'
runE2E(runTestsSuites: suites,
testMatrixFile: '.ci/.e2e-tests-beats.yaml',
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
gitHubCheckRepo: env.REPO,
gitHubCheckSha1: env.GIT_BASE_COMMIT,
propagate: true,
wait: true)
if (!suitesSet.contains('ALL')) {
suitesSet.each { suite ->
suites += "${suite},"
};
}
echo 'runE2E has asynchronously triggered the end to end test job.'
runE2E(runTestsSuites: suites,
testMatrixFile: '.ci/.e2e-tests-beats.yaml',
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
gitHubCheckRepo: env.REPO,
gitHubCheckSha1: env.GIT_BASE_COMMIT,
propagate: false, // Ignore the result of the downstream E2E job.
wait: false) // Do not synchronously wait for the downstream E2E job to complete.
}
}

/**
* There is a specific folder structure in https://staging.elastic.co/ and https://artifacts.elastic.co/downloads/
Expand Down

0 comments on commit e69b982

Please sign in to comment.