From 6767537ab8019eb61031401584f6f1356af2a4ae Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 6 Jan 2025 14:45:08 -0800 Subject: [PATCH 1/2] integration_app_harness.yml: cache playwright install --- .github/workflows/integration_app_harness.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration_app_harness.yml b/.github/workflows/integration_app_harness.yml index e6ea793774b..e2de6bad32f 100644 --- a/.github/workflows/integration_app_harness.yml +++ b/.github/workflows/integration_app_harness.yml @@ -48,12 +48,22 @@ jobs: run-poetry-install: true create-venv-at-path: .venv - run: poetry run uv pip install pyvirtualdisplay pillow pytest-split + - uses: actions/cache@v3 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('**/poetry.lock') }} + - name: Install dependencies + run: npm ci + - name: Install playwright deps + run: poetry run playwright install chromium + if: steps.playwright-cache.outputs.cache-hit != 'true' - name: Run app harness tests env: SCREENSHOT_DIR: /tmp/screenshots/${{ matrix.state_manager }}/${{ matrix.python-version }}/${{ matrix.split_index }} REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }} run: | - poetry run playwright install --with-deps poetry run pytest tests/integration --splits 2 --group ${{matrix.split_index}} - uses: actions/upload-artifact@v4 name: Upload failed test screenshots From 1e52354d216fa891eced5e79b00cfe82ede4eb70 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 6 Jan 2025 14:47:03 -0800 Subject: [PATCH 2/2] remove bad command --- .github/workflows/integration_app_harness.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/integration_app_harness.yml b/.github/workflows/integration_app_harness.yml index e2de6bad32f..2924e5ed890 100644 --- a/.github/workflows/integration_app_harness.yml +++ b/.github/workflows/integration_app_harness.yml @@ -54,8 +54,6 @@ jobs: path: | ~/.cache/ms-playwright key: ${{ runner.os }}-playwright-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies - run: npm ci - name: Install playwright deps run: poetry run playwright install chromium if: steps.playwright-cache.outputs.cache-hit != 'true'