From 6e3403f7177ef0f0b2e81c08d4eb5d4ed46f8d69 Mon Sep 17 00:00:00 2001 From: ashmrtn Date: Fri, 28 Apr 2023 12:11:44 -0700 Subject: [PATCH] Always attempt to upload test log (#3259) #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup --- .github/workflows/sanity-test.yaml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/sanity-test.yaml b/.github/workflows/sanity-test.yaml index 11a680d47..4f34ebd46 100644 --- a/.github/workflows/sanity-test.yaml +++ b/.github/workflows/sanity-test.yaml @@ -74,7 +74,7 @@ jobs: run: | set -euo pipefail prefix=`date +"%Y-%m-%d-%T"` - echo "Repo init test\n" >> ${CORSO_LOG_FILE} + echo -e "\nRepo init test\n" >> ${CORSO_LOG_FILE} ./corso repo init s3 \ --no-stats \ --hide-progress \ @@ -93,7 +93,7 @@ jobs: - name: Repo connect test run: | set -euo pipefail - echo "\nRepo connect test\n" >> ${CORSO_LOG_FILE} + echo -e "\nRepo connect test\n" >> ${CORSO_LOG_FILE} ./corso repo connect s3 \ --no-stats \ --hide-progress \ @@ -125,7 +125,7 @@ jobs: - name: Backup exchange test id: exchange-test run: | - echo "\nBackup Exchange test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange test\n" >> ${CORSO_LOG_FILE} ./corso backup create exchange \ --no-stats \ --mailbox "${CORSO_M365_TEST_USER_ID}" \ @@ -148,7 +148,7 @@ jobs: - name: Backup exchange list test run: | set -euo pipefail - echo "\nBackup Exchange list test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange list test\n" >> ${CORSO_LOG_FILE} ./corso backup list exchange \ --no-stats \ --hide-progress \ @@ -164,7 +164,7 @@ jobs: - name: Backup exchange list single backup test run: | set -euo pipefail - echo "\nBackup Exchange list single backup test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange list single backup test\n" >> ${CORSO_LOG_FILE} ./corso backup list exchange \ --no-stats \ --hide-progress \ @@ -182,7 +182,7 @@ jobs: id: exchange-restore-test run: | set -euo pipefail - echo "\nBackup Exchange restore test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange restore test\n" >> ${CORSO_LOG_FILE} ./corso restore exchange \ --no-stats \ --email-folder Corso_Restore_st_${{ steps.repo-init.outputs.result }} \ @@ -205,7 +205,7 @@ jobs: id: exchange-incremental-test run: | set -euo pipefail - echo "\nBackup Exchange incremental test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange incremental test\n" >> ${CORSO_LOG_FILE} ./corso backup create exchange \ --no-stats \ --hide-progress \ @@ -227,7 +227,7 @@ jobs: id: exchange-incremantal-restore-test run: | set -euo pipefail - echo "\nBackup Exchange incremental restore test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup Exchange incremental restore test\n" >> ${CORSO_LOG_FILE} ./corso restore exchange \ --no-stats \ --hide-progress \ @@ -253,7 +253,7 @@ jobs: id: onedrive-test run: | set -euo pipefail - echo "\nBackup OneDrive test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup OneDrive test\n" >> ${CORSO_LOG_FILE} ./corso backup create onedrive \ --no-stats \ --hide-progress \ @@ -275,7 +275,7 @@ jobs: - name: Backup onedrive list test run: | set -euo pipefail - echo "\nBackup OneDrive list test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup OneDrive list test\n" >> ${CORSO_LOG_FILE} ./corso backup list onedrive \ --no-stats \ --hide-progress \ @@ -291,7 +291,7 @@ jobs: - name: Backup onedrive list one backup test run: | set -euo pipefail - echo "\nBackup OneDrive list one backup test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup OneDrive list one backup test\n" >> ${CORSO_LOG_FILE} ./corso backup list onedrive \ --no-stats \ --hide-progress \ @@ -309,7 +309,7 @@ jobs: id: onedrive-restore-test run: | set -euo pipefail - echo "\nBackup OneDrive restore test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup OneDrive restore test\n" >> ${CORSO_LOG_FILE} ./corso restore onedrive \ --no-stats \ --restore-permissions \ @@ -332,7 +332,7 @@ jobs: id: onedrive-incremental-test run: | set -euo pipefail - echo "\nBackup OneDrive incremental test\n" >> ${CORSO_LOG_FILE} + echo -e "\nBackup OneDrive incremental test\n" >> ${CORSO_LOG_FILE} ./corso backup create onedrive \ --no-stats \ --hide-progress \ @@ -355,7 +355,7 @@ jobs: id: onedrive-incremental-restore-test run: | set -euo pipefail - echo "\nBackup OneDrive incremental restore test\n" >> $CORSO_LOG_FILE + echo -e "\nBackup OneDrive incremental restore test\n" >> $CORSO_LOG_FILE ./corso restore onedrive \ --no-stats \ --restore-permissions \ @@ -375,6 +375,7 @@ jobs: # Upload the original go test output as an artifact for later review. - name: Upload test log + if: always() uses: actions/upload-artifact@v3 with: name: test-logs