From c6a4809191bc5466a25f61b167b2ac07f1bb4ecc Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Thu, 13 Feb 2025 19:44:07 -0600 Subject: [PATCH] Update platform-frontend-ci.yml --- .github/workflows/platform-frontend-ci.yml | 31 +++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.yml index 7344b5df9e..80746ca3a2 100644 --- a/.github/workflows/platform-frontend-ci.yml +++ b/.github/workflows/platform-frontend-ci.yml @@ -62,16 +62,11 @@ jobs: fail-fast: false matrix: browser: [chromium, webkit] - env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - # We know these are here, don't report this as a security vulnerability - # This is used as the default credential for the entire system's RabbitMQ instance - # If you want to replace this, you can do so by making our entire system generate - # new credentials for each local user and update the environment variables in - # the backend service, docker composes, and examples - RABBITMQ_DEFAULT_USER: "rabbitmq_user_default" - RABBITMQ_DEFAULT_PASS: "k0VMxyIJF9S35f3x2uaw5IWAl6Y536O7" - + # env: + # OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + # RABBITMQ_DEFAULT_USER: "rabbitmq_user_default" + # RABBITMQ_DEFAULT_PASS: "k0VMxyIJF9S35f3x2uaw5IWAl6Y536O7" + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -101,9 +96,11 @@ jobs: run: | docker compose -f ../docker-compose.yml up -d - - name: Run docker compose logs + - name: Watch Docker Logs run: | - docker compose -f ../docker-compose.yml logs -n all + docker compose -f ../docker-compose.yml logs -f & + LOGS_PID=$! + echo "LOGS_PID=$LOGS_PID" >> $GITHUB_ENV - name: Install dependencies run: | @@ -117,10 +114,18 @@ jobs: run: yarn playwright install --with-deps ${{ matrix.browser }} - name: Run tests + timeout-minutes: 10 run: | yarn test --project=${{ matrix.browser }} - - name: Print Docker Compose logs in debug mode + - name: Stop Docker Logs + if: always() + run: | + if [ ! -z "$LOGS_PID" ]; then + kill $LOGS_PID || true + fi + + - name: Print Final Docker Compose logs if: always() run: | docker compose -f ../docker-compose.yml logs