diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 7f5a3ae19f..4d5dc84318 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -77,14 +77,6 @@ jobs: cache-dependency-path: front_end/package-lock.json - name: "Install node_modules and build the frontend" run: cd front_end && npm ci && npm run build - # Uncomment this to stop the job at this spot, and get a remote shell into the VM - # - name: Get tty-share - # if: always() - # run: | - # curl -L https://github.com/elisescu/tty-share/releases/download/v2.4.0/tty-share_linux-amd64 -o tty-share - # chmod u+x ./tty-share - # export TERM=xterm-256color - # ./tty-share -A --public --headless --headless-cols 255 --headless-rows 50 --no-wait --listen :8001 - name: Run the integration tests if: always() env: @@ -95,7 +87,18 @@ jobs: SECRET_KEY: ${{ secrets.SECRET_KEY }} run: | PLAYWRIGHT_BROWSERS_PATH=.venv scripts/run_integration_tests.sh + - name: Create trace.zip + if: always() + run: | mkdir -p trace && cd trace && unzip ../trace.zip && rm ../trace.zip + # Uncomment this to stop the job at this spot, and get a remote shell into the VM + # - name: Get tty-share + # if: always() + # run: | + # curl -L https://github.com/elisescu/tty-share/releases/download/v2.4.0/tty-share_linux-amd64 -o tty-share + # chmod u+x ./tty-share + # export TERM=xterm-256color + # ./tty-share -A --public --headless --headless-cols 255 --headless-rows 50 --no-wait --listen :8001 - name: "Upload trace.zip" uses: actions/upload-artifact@v4 if: always() diff --git a/front_end/.husky/pre-commit b/front_end/.husky/pre-push similarity index 100% rename from front_end/.husky/pre-commit rename to front_end/.husky/pre-push diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index f430c6c017..5c3a302c5f 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -1,6 +1,7 @@ #!/bin/bash set -x set -e +set -o pipefail cleanup() { for process in "next-server" "gunicorn" "dramatiq"; do