Repository navigation
Mirror from the published packages; make the PyPI upload safe to repeat - #138
Merged
Merged
Conversation
- mirror.mjs builds each drop-in repo's version branch from what was published: npm packages from the registry, Python from the release run's python-source artifact (the tree the wheels were built from). Existing branches are compared tree by tree and never rewritten, and a default branch that can't be moved is an error. --check verifies that a release is fully mirrored. - Python mirror branches leave out upstream's repository tooling (CI, publishing, dependency updates). - pypi-plan.mjs uploads only the wheels PyPI doesn't have: rebuilt wheels with the same RECORD are skipped, and changed contents under a published version stop the release. - build-python.mjs saves python-src.tar, python-orig.tar and the source commit; release.yml uploads them as the python-source artifact. - Banners say how to install the drop-ins and how to read a mirror branch; the Playwright homepage and the Python release-notes link point to rebrowser-patches (they ship with the next versions). - Unit tests for the release helpers, run in CI.
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.
Mirrors are now built from what was actually published, and a release can be re-run without tripping over PyPI.
Mirrors (
release/mirror.mjs)rebrowser-*package from the registry (integrity-checked); the "original" commit is the upstream package.release.ymlas thepython-sourceartifact. Mirroring checks that the run's PyPI publish succeeded and that PyPI lists every wheel.--checkchanges nothing and fails unless every current version is mirrored and every default branch is the newest version.PyPI (
release/pypi-plan.mjs)Banners and links (ship with the next versions)
homepageofrebrowser-playwright[-core]and the Python "Release notes" link now point to rebrowser-patches.Checked against the published v1.1.2
mirror.mjs --check: all 5 branches already mirrored and identical, all default branches the newest.pypi-plan.mjson wheels rebuilt from v1.1.2: 8/8 "same contents", nothing to upload. On wheels built before 57ba953 (driverpackage.jsondiffers): 8/8 conflicts, exit 1.node --test 'release/test/*.test.mjs'(also run in CI).