From d05fdb040cb7b76d15c257e6479e952c8aadcc26 Mon Sep 17 00:00:00 2001 From: tristan-greffe Date: Tue, 2 Apr 2024 21:31:57 +0200 Subject: [PATCH] chore: add a compression step [skip app] [skip tests] --- e2e-tests.Dockerfile | 2 +- scripts/run_e2e_test.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/e2e-tests.Dockerfile b/e2e-tests.Dockerfile index aa6e6736..ddf10748 100644 --- a/e2e-tests.Dockerfile +++ b/e2e-tests.Dockerfile @@ -50,7 +50,7 @@ ENV SLACK_WEBHOOK_APPS=$SLACK_WEBHOOK_APPS # https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ - && apt-get install -y wget gnupg curl unzip \ + && apt-get install -y wget gnupg curl zip unzip \ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update \ diff --git a/scripts/run_e2e_test.sh b/scripts/run_e2e_test.sh index 093d5377..30fb2f9b 100644 --- a/scripts/run_e2e_test.sh +++ b/scripts/run_e2e_test.sh @@ -34,5 +34,8 @@ yarn test:client > "$ROOT_DIR/test/run/chrome/e2e_test_log.txt" 2>&1 ## Upload logs & screenshots to S3 ## -rclone copy "$ROOT_DIR/test/run" "ovh:/dev/$APP/e2e_tests/$CURRENT_DATE" -LINK=$(rclone link "ovh:/dev/$APP/e2e_tests/$CURRENT_DATE") \ No newline at end of file +cd "$ROOT_DIR/test" +zip -r "$ROOT_DIR/test/$CURRENT_DATE.zip" run + +rclone copy "$ROOT_DIR/test/$CURRENT_DATE.zip" "ovh:/dev/$APP/e2e_tests" +LINK=$(rclone link "ovh:/dev/$APP/e2e_tests/$CURRENT_DATE.zip") \ No newline at end of file