Skip to content

Commit 69272c7

Browse files
authored
[E2E] - Diagnostic Bucket (#984)
Using the Github run number instead of the run id as it's easier to match the fail to the logs
1 parent 3622fbf commit 69272c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/check-suite.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ EOF
4343

4444
# run_diagnosis is called to retrieve details on the failure
4545
run_diagnosis() {
46-
[[ $? -ne 1 ]] && exit $?
47-
[[ "${CI}" != "true" ]] && exit $?
46+
[[ $? -ne 1 ]] && exit 1
47+
[[ "${CI}" != "true" ]] && exit 1
4848

4949
echo "Running Diagnosis on failure"
5050

5151
mkdir -p /tmp/diagnostics
5252
if kubectl cluster-info dump --namespaces terraform-system,apps --output-directory=/tmp/diagnostics >/dev/null; then
5353
# @step: upload the files to the bucket
54-
BUCKET="${DIAGNOSTICS}/${GITHUB_RUN_ID}"
54+
BUCKET="${DIAGNOSTICS}/${GITHUB_RUN_NUMBER}"
5555
if ! aws s3 cp /tmp/diagnostics "${BUCKET}" --acl private --recursive >/dev/null; then
5656
echo "Failed to copy all the diagnostics"
5757
exit 1

0 commit comments

Comments
 (0)