-
Notifications
You must be signed in to change notification settings - Fork 1k
ci(js-sdk): install Playwright Chromium without --with-deps
#1699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,17 @@ jobs: | |
| path: ${{ matrix.os == 'windows-latest' && '~/AppData/Local/ms-playwright' || '~/.cache/ms-playwright' }} | ||
| key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} | ||
|
|
||
| # `--with-deps` is deliberately omitted. It shells out to apt on Linux and | ||
| # to a DISM Media Foundation enable on Windows on every run, cache hit or | ||
| # not, which cost ~21m and ~4m30s respectively. The runner images already | ||
| # ship every shared library Chromium needs; the only packages | ||
| # `--with-deps` pulled in were CJK/Cyrillic fonts that the headless | ||
| # `browser` project never renders. Without it this step is a no-op once | ||
| # the cache above hits. | ||
| - name: Install Playwright Chromium | ||
| if: matrix.runtime == 'node' | ||
| run: pnpm run playwright:install | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI is wired correctly — I checked every Nothing in the repo mentions Mirroring the description's local snippet into |
||
|
|
||
| # The unit bundle test and the Cloudflare deploy config fail in CI when | ||
| # the build output is missing. | ||
| - name: Test build | ||
|
|
||
| Original file line number | Diff line number | Diff line change | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,7 +35,7 @@ | ||||||||||||||||||
| "generate:volume-api": "openapi-typescript ../../spec/openapi-volumecontent.yml -x api_key --array-length --alphabetize --output src/volume/schema.gen.ts", | |||||||||||||||||||
| "generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi", | |||||||||||||||||||
| "check-deps": "knip", | |||||||||||||||||||
| "pretest": "npx playwright install --with-deps chromium", | |||||||||||||||||||
| "playwright:install": "playwright install chromium", | |||||||||||||||||||
|
mishushakov marked this conversation as resolved.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Measured on a clean cache here:
The The trade-off: headed local debugging (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The gap in the suite this script serves — and a real defect hiding in it. Follow-up material, not something to fix here. The
So I ran it in the browser to see what it would say: copied to The premise in that test ("the platform accepts any async iterable as a body") and in
I don't have a clean one-liner to offer. Gating the clause on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Removing Extended reasoning...What the bug is
The code path that triggers itPlaywrights browser-launch path ( Why nothing currently prevents itThe validation is skipped only when a Step-by-step proof of the failure condition
The PRs own timing table is suggestive here: it attributes 4m31s on Why this is worth flagging despite the uncertaintyThe PRs verification section only exercised the change on Linux/apt; the Windows Media-Foundation path was never tested end-to-end with a real cache miss, so the risk is unverified either way. The blast radius is limited to CI/dev-tooling (no effect on published SDK behavior), and the failure is conditional on a future cache miss rather than immediate — which is why this is a |
|||||||||||||||||||
| "test:bun": "bunx --bun vitest run --project unit --project connectionConfig --project template", | |||||||||||||||||||
| "test:cf": "vitest run --config tests/runtimes/cloudflare/vitest.config.mts", | |||||||||||||||||||
| "test:cf:deploy": "vitest run --config tests/runtimes/cloudflare-deploy/vitest.config.mts", | |||||||||||||||||||
|
|
|||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the comment