Repository navigation
Automate porting, testing and releasing; puppeteer-core 25.14.0 and playwright-core 1.64.1 - #131
Merged
Merged
Conversation
…5.14.0 and playwright-core 1.64.1 - patches/<package>/<version>/: per-version patches for puppeteer-core 24.8.1 and 25.14.0, playwright-core 1.52.0 and 1.64.1, plus the 1.64.0 beta that the Python package embeds. The CLI picks the patch for the installed version and refuses to half-apply. - Hide navigator.webdriver by adding --disable-blink-features=AutomationControlled to the default launch args (merged with user flags; REBROWSER_PATCHES_WEBDRIVER_FIX=0 turns it off). - Playwright: fix setContent and the alwaysIsolated $eval/locator hangs, drop contexts per frame on navigation, dedupe concurrent context creation, skip the patch on non-Chromium pages. - CLI: detect already-patched packages with newer GNU patch wording. - release/: port, build, Python wheel, publish (npm and PyPI trusted publishing) and mirror scripts. - tests/: detection, scenarios, webdriver, smoke and Python suites with unpatched controls. - .github/workflows: ci.yml and release.yml. - The npm package ships only the patcher and the patches of supported versions. - Mark enableDisable mode as not recommended, add LICENSE, bump version to 1.1.0.
build-python wrote the wheels to dist/ while the workflows looked in dist-py/, so the Python suite was silently skipped (CI still passed) and a release would have failed to stage the PyPI wheels. Build the wheels into dist-py/, list all five suites explicitly so a missing input fails the run, read the target versions from release/versions.json (release/ci-env.mjs) instead of hard-coding them, and stage only publishable npm tarballs for the release.
npm trusted publishing adds provenance automatically, and npm rejects a publish whose package.json repository doesn't match the repo the workflow runs in. The four drop-in packages pointed at their mirror repos, so the first publish would have failed. Point them at rebrowser-patches (their real source) and fail the build if any npm package doesn't.
…ding Python Each drop-in repo gets a branch per version with the unmodified upstream as the first commit and the published package as the second, so GitHub's diff of the second commit is exactly our change (the layout the mirror repos already used). Also mirrors rebrowser-playwright-python from the source tree build-python.mjs built the wheels from. Without --yes it only builds the branches locally; existing remote branches are never touched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the patches up to date and automates the port → test → release cycle.
Patches
patches/<package>/<version>/. The old 24.8.1 / 1.52.0 patches are kept.navigator.webdriveris hidden via--disable-blink-features=AutomationControlled(REBROWSER_PATCHES_WEBDRIVER_FIX=0turns it off).setContent, thealwaysIsolated$eval/locator hangs, per-frame context reset on navigation, concurrent evaluates, non-Chromium pages.CLI
release/versions.json.Automation
release/: port, build, Python wheels, publish (npm/PyPI trusted publishing), mirror.tests/: detection (with unpatched controls), 22 functional scenarios, webdriver, smoke, Python..github/workflows/ci.yml(this PR) andrelease.yml(runs onv*tags only).release/README.mdlists the release tooling.Nothing is published by this PR; publishing happens only when a
v*tag is pushed.