From 79362c7bb48ab999f587b51790696eff1c831a87 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 12 May 2024 17:49:13 +0200 Subject: [PATCH 1/3] Try running playwright in docker to avoid installation overhead --- .github/workflows/e2e-k3d.yml | 60 +++-------------------------------- 1 file changed, 4 insertions(+), 56 deletions(-) diff --git a/.github/workflows/e2e-k3d.yml b/.github/workflows/e2e-k3d.yml index 98537b8179..192a1f077a 100644 --- a/.github/workflows/e2e-k3d.yml +++ b/.github/workflows/e2e-k3d.yml @@ -30,6 +30,9 @@ jobs: runs-on: ubuntu-latest-m timeout-minutes: 30 + container: + image: mcr.microsoft.com/playwright:v1.44.0-jammy + env: ALL_BROWSERS: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }} @@ -75,62 +78,7 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('website/**/package-lock.json') }} - name: Install dependencies - run: cd website && npm i - - - name: Get Installed Playwright Version - id: playwright-version - run: cd website && echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['node_modules/@playwright/test'].version)")" >> $GITHUB_ENV - - - name: Cache Playwright Browsers - uses: actions/cache@v4 - id: playwright-cache - with: - path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - - - name: Install Playwright Browsers and System Dependencies - run: cd website && npx playwright install --with-deps - if: steps.playwright-cache.outputs.cache-hit != 'true' - - - name: Install only System Dependencies - run: cd website && npx playwright install-deps - if: steps.playwright-cache.outputs.cache-hit == 'true' - - # Action misbehaved - # # Waits are identical to the update-argocd-metadata.yml file - # # Mirror changes to that file - # - name: Wait for Config Processor Docker Image - # uses: lewagon/wait-on-check-action@v1.3.4 - # with: - # ref: ${{ github.sha }} - # check-name: Build config-processor Docker Image - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # wait-interval: 2 - - # - name: Wait for Backend Docker Image - # uses: lewagon/wait-on-check-action@v1.3.4 - # with: - # ref: ${{ github.sha }} - # check-name: Build Backend Docker Image - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # wait-interval: 2 - - # - name: Wait for Website Docker Image - # uses: lewagon/wait-on-check-action@v1.3.4 - # with: - # ref: ${{ github.sha }} - # check-name: Build Website Docker Image - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # wait-interval: 2 - - # - name: Wait for Keycloakify Docker Image - # uses: lewagon/wait-on-check-action@v1.3.4 - # with: - # ref: ${{ github.sha }} - # check-name: Build keycloakify Docker Image - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # wait-interval: 2 - # # End of wait block + run: cd website && npm ci - name: Wait for the pods to be ready (timeout 480s) run: ./.github/scripts/wait_for_pods_to_be_ready.py From 2e223691030bfc9f22ab2aa9f3cf4185df48ec39 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 12 May 2024 17:51:53 +0200 Subject: [PATCH 2/3] try without telemetry --- .github/workflows/e2e-k3d.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/e2e-k3d.yml b/.github/workflows/e2e-k3d.yml index 192a1f077a..455b05da35 100644 --- a/.github/workflows/e2e-k3d.yml +++ b/.github/workflows/e2e-k3d.yml @@ -37,9 +37,6 @@ jobs: ALL_BROWSERS: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }} steps: - - name: Collect Workflow Telemetry - uses: catchpoint/workflow-telemetry-action@v2 - - name: Checkout repository uses: actions/checkout@v4 From 78236dcf8506146008e26b2091beed4af1bf7e68 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 12 May 2024 17:53:14 +0200 Subject: [PATCH 3/3] install yaml requests --- .github/workflows/e2e-k3d.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-k3d.yml b/.github/workflows/e2e-k3d.yml index 455b05da35..11a06b2f2f 100644 --- a/.github/workflows/e2e-k3d.yml +++ b/.github/workflows/e2e-k3d.yml @@ -48,6 +48,7 @@ jobs: - name: Create k3d cluster run: | + pip install yaml requests ./deploy.py --verbose cluster - name: Template with helm