Skip to content

devops(driver): assemble driver from npm package and Node.js builds#3122

Open
dgozman wants to merge 2 commits into
microsoft:mainfrom
dgozman:assemble-driver-from-npm
Open

devops(driver): assemble driver from npm package and Node.js builds#3122
dgozman wants to merge 2 commits into
microsoft:mainfrom
dgozman:assemble-driver-from-npm

Conversation

@dgozman

@dgozman dgozman commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Assemble the driver by downloading the playwright-core npm package (pinned in DRIVER_VERSION) and the official Node.js binaries (NODE_VERSION), instead of cloning microsoft/playwright and building the driver from source. Mirrors playwright-dotnet.
  • api.json is no longer shipped in the bundle; scripts/update_api.sh generates it from a nearby microsoft/playwright checkout (PW_SRC_DIR) into a temp file and hands it to codegen via PW_API_JSON.
  • Drop the central build-driver CI job — each job assembles its own platform on demand, and the Lint job no longer checks out upstream.
  • Rolls the driver to 1.61.1-beta-1782139630000 (Node 24.17.0); no public API changes, regen only refreshes docstrings.

dgozman added 2 commits June 23, 2026 16:42
Download the playwright-core npm package (pinned in DRIVER_VERSION) and the
official Node.js binaries (NODE_VERSION) and assemble the per-platform driver
bundles, instead of cloning microsoft/playwright and building the driver from
source. Mirrors playwright-dotnet.

- scripts/build_driver.py replaces build_driver.sh (Python stdlib only; no
  Node/npm/git toolchain). setup.py invokes it per-platform on demand.
- NODE_VERSION is refreshed at roll time by scripts/update_node_version.py
  (latest LTS, mirroring upstream's update-playwright-node.mjs).
- api.json is no longer shipped in the bundle; scripts/update_api.sh generates it
  from a nearby microsoft/playwright checkout (PW_SRC_DIR) into a temp file and
  passes it to codegen via PW_API_JSON.
- Drop the central build-driver CI job; each job assembles its own platform on
  demand, and the Lint job no longer checks out upstream.
Bump DRIVER_VERSION to 1.61.1-beta-1782139630000 and refresh NODE_VERSION to
24.17.0 (latest LTS). No public API changes between 1.61.0 and 1.61.1; the
regenerated _generated.py only updates docstrings to match the current docs.
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.

2 participants