Skip to content

Commit ef6096f

Browse files
authored
Revert "ci: e2e-testing should fail the build (#31135)" (#32079)
This reverts commit 2241413. Allow the E2E tests to keep running but not fail the build when they fail while we work to stabilize them: #32076
1 parent c690009 commit ef6096f

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.ci/packaging.groovy

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -433,22 +433,24 @@ def runE2ETests(){
433433

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

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

438-
if (!suitesSet.contains('ALL')) {
439-
suitesSet.each { suite ->
440-
suites += "${suite},"
441-
};
439+
if (!suitesSet.contains('ALL')) {
440+
suitesSet.each { suite ->
441+
suites += "${suite},"
442+
};
443+
}
444+
echo 'runE2E will run now in a sync mode to validate packages can be published.'
445+
runE2E(runTestsSuites: suites,
446+
testMatrixFile: '.ci/.e2e-tests-beats.yaml',
447+
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
448+
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
449+
gitHubCheckRepo: env.REPO,
450+
gitHubCheckSha1: env.GIT_BASE_COMMIT,
451+
propagate: true,
452+
wait: true)
442453
}
443-
echo 'runE2E will run now in a sync mode to validate packages can be published.'
444-
runE2E(runTestsSuites: suites,
445-
testMatrixFile: '.ci/.e2e-tests-beats.yaml',
446-
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
447-
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
448-
gitHubCheckRepo: env.REPO,
449-
gitHubCheckSha1: env.GIT_BASE_COMMIT,
450-
propagate: true,
451-
wait: true)
452454
}
453455

454456
/**

0 commit comments

Comments
 (0)