-
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 all 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 | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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", | |||||||||||||||||||
|
Check warning on line 38 in packages/js-sdk/package.json
|
|||||||||||||||||||
|
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.
CI is wired correctly — I checked every
pnpm testcall site in.github/, and the reusable-workflow callers inherit this step. The loose end is local, and it's a documentation gap rather than a disagreement with the design: keeping the install off every contributor'spnpm testis the right call.Nothing in the repo mentions
playwright:installexcept thepackage.jsonline that defines it. MeanwhileAGENTS.md/CLAUDE.mdtell contributors and coding agents to run tests withpnpm run test, and the root script ispnpm test --recursive --if-present, which reaches js-sdk'stest→vitest run→ thebrowserproject. Withenable-pre-post-scripts=truein.npmrcthat path used to self-provision; now a fresh clone gets Playwright's own error, whose remediation hint is the genericnpx playwright install(all three browsers) rather than this repo'spnpm run playwright:install.Mirroring the description's local snippet into
CONTRIBUTING.mdorDEV.mdwould close it.