Skip to content

fix(ci): use pnpm exec for playwright install to match lockfile version#1

Open
fi3ework wants to merge 365 commits into
mainfrom
fix/ci-playwright-install
Open

fix(ci): use pnpm exec for playwright install to match lockfile version#1
fi3ework wants to merge 365 commits into
mainfrom
fix/ci-playwright-install

Conversation

@fi3ework

@fi3ework fi3ework commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Problem

pnpm dlx playwright install chromium pulls the latest playwright CLI to download browsers. When the latest playwright version diverges from the project's locked version (playwright@1.58.1), the downloaded chromium revision won't match what @rstest/browser expects at runtime.

  • pnpm dlx downloaded chromium v1217 (latest playwright)
  • @rstest/browser (via playwright@1.58.1) expected chromium v1208

This caused: https://github.com/rstackjs/rstack-examples/actions/runs/23829705206/job/69460295174

Fix

Use pnpm exec playwright install --with-deps chromium so the project's own locked playwright binary downloads the matching browser revision.

chenjiahan and others added 30 commits December 4, 2024 14:43
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#177)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…stackjs#174)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ackjs#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…kjs#189)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…kjs#195)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#204)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate Bot and others added 30 commits February 2, 2026 01:53
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fi3ework <fi3ework@gmail.com>
…js#406)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…cator example (rstackjs#410)

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
`pnpm dlx playwright install` pulls the latest playwright CLI, which
may download a different chromium revision than the one expected by the
project's locked playwright version. This caused browser-related rstest
examples to fail when the latest playwright (chromium v1217) diverged
from the locked playwright@1.58.1 (chromium v1208).

Switch to `pnpm exec playwright install --with-deps chromium` so the
project's own playwright binary is used to download the matching browser.

Amp-Thread-ID: https://ampcode.com/threads/T-019d4701-dfdb-73c6-a876-29ab299f63cf
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.