From 2e99182564741b3403a384ccc6940623623a4daa Mon Sep 17 00:00:00 2001 From: Yoann Moinet Date: Thu, 4 Sep 2025 15:08:36 -0400 Subject: [PATCH 1/3] Try to cache more of playwright --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de97f394f..2b07e8d5c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,6 +79,7 @@ jobs: ~/.cache/ms-playwright ~/Library/Caches/ms-playwright %USERPROFILE%\AppData\Local\ms-playwright + **/node_modules/playwright key: cache-playwright-binaries-${{ hashFiles('yarn.lock') }} - name: Configure Datadog Test Optimization @@ -91,9 +92,14 @@ jobs: - run: yarn install - - name: Install playwright + - name: Install Playwright with dependencies + if: steps.cache-playwright-binaries.outputs.cache-hit != 'true' run: yarn workspace @dd/tests playwright install --with-deps + - name: Install Playwright's dependencies + if: steps.cache-playwright-binaries.outputs.cache-hit == 'true' + run: yarn workspace @dd/tests playwright install-deps + - name: Build all plugins if: steps.cache-build.outputs.cache-hit != 'true' run: yarn build:all-no-types From aeee95523869f968938b6599a6b9381ec95fc936 Mon Sep 17 00:00:00 2001 From: Yoann Moinet Date: Thu, 4 Sep 2025 15:47:39 -0400 Subject: [PATCH 2/3] Add node_modules to the cache save --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2b07e8d5c..9d6b999bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -117,6 +117,7 @@ jobs: ~/.cache/ms-playwright ~/Library/Caches/ms-playwright %USERPROFILE%\AppData\Local\ms-playwright + **/node_modules/playwright key: cache-playwright-binaries-${{ hashFiles('yarn.lock') }} - uses: actions/upload-artifact@v4 From 913caa6c5358202f76ae7866d84e9b152c1e1eaf Mon Sep 17 00:00:00 2001 From: Yoann Moinet Date: Thu, 4 Sep 2025 15:56:19 -0400 Subject: [PATCH 3/3] Empty commit to re-trigger CI