Compare commits

..
141 Commits
Author SHA1 Message Date
feder-cr 681776e163 counters: 2026-12-05, browser launches at 8510415 2026-12-05 07:37:17 +00:00
feder-cr 61e5cf77a5 counters: 2026-12-04, browser launches at 8336564 2026-12-04 01:02:24 +00:00
feder-cr 49198e564b counters: 2026-12-02, browser launches at 8177972 2026-12-02 21:29:37 +00:00
feder-cr 2f4cb2b849 counters: 2026-12-01, browser launches at 8008454 2026-12-01 15:58:45 +00:00
feder-cr 386c5b2a43 counters: 2026-11-30, browser launches at 7827502 2026-11-30 08:06:53 +00:00
feder-cr 88b1e368ee counters: 2026-11-29, browser launches at 7681637 2026-11-29 07:17:25 +00:00
feder-cr b66b48c1b3 counters: 2026-11-27, browser launches at 7493097 2026-11-27 08:14:31 +00:00
feder-cr 7df642ef80 counters: 2026-11-26, browser launches at 7346381 2026-11-26 08:05:37 +00:00
feder-cr 11a55e6bdd counters: 2026-11-25, browser launches at 7203749 2026-11-25 08:20:22 +00:00
feder-cr 43c700f844 counters: 2026-11-24, browser launches at 7066091 2026-11-24 09:45:02 +00:00
feder-cr 9a3934b71e counters: 2026-11-23, browser launches at 6907410 2026-11-23 07:25:11 +00:00
feder-cr 0e9fc1c4c9 counters: 2026-11-22, browser launches at 6767847 2026-11-22 06:36:35 +00:00
feder-cr 95be78e9af counters: 2026-11-21, browser launches at 6635258 2026-11-21 06:56:50 +00:00
feder-cr 1fc5e27e2b counters: 2026-11-20, browser launches at 6502061 2026-11-20 07:02:16 +00:00
feder-cr 96ac32a38e counters: 2026-11-19, browser launches at 6369762 2026-11-19 07:14:39 +00:00
feder-cr 8a7cf03b63 counters: 2026-11-18, browser launches at 6237372 2026-11-18 07:15:00 +00:00
feder-cr fa22d481af counters: 2026-11-17, browser launches at 6108715 2026-11-17 07:47:13 +00:00
feder-cr a77c3f4e9a counters: 2026-11-16, browser launches at 5971842 2026-11-16 06:15:45 +00:00
feder-cr 16c1190755 counters: 2026-11-15, browser launches at 5844148 2026-11-15 06:16:47 +00:00
feder-cr eb9a62b5cc counters: 2026-11-14, browser launches at 5717979 2026-11-14 06:09:45 +00:00
feder-cr c27dbe4600 counters: 2026-11-13, browser launches at 5585186 2026-11-13 06:31:12 +00:00
feder-cr 707515a3f1 counters: 2026-11-12, browser launches at 5454808 2026-11-12 07:02:19 +00:00
feder-cr 1c827f3da7 counters: 2026-11-11, browser launches at 5319939 2026-11-11 14:15:28 +00:00
feder-cr a9320111dc counters: 2026-11-11, browser launches at 5319939 2026-11-11 06:00:19 +00:00
feder-cr b32e8167ed counters: 2026-11-10, browser launches at 5196828 2026-11-10 07:08:31 +00:00
feder-cr a23b972e7f counters: 2026-11-09, browser launches at 5067495 2026-11-09 06:10:55 +00:00
feder-cr 9fe8ce3b66 counters: 2026-11-08, browser launches at 4962048 2026-11-08 09:17:30 +00:00
feder-cr 6232574f3d counters: the launch history, so the daily snapshot can run on GitHub Actions 2026-11-08 07:00:24 +01:00
feder-cr 835e93f4f9 badge: Stars at 2.55k 2026-11-04 23:10:06 +01:00
feder-cr c3e48b6e6e badge: browser launches at 4.61M 2026-11-04 23:10:05 +01:00
feder-cr 6e87c964f1 badge: browser launches at 4.49M 2026-11-03 05:10:06 +07:00
feder-cr 32f2af8808 badge: browser launches at 4.42M 2026-11-02 05:10:06 +07:00
feder-cr 8178a2a330 badge: Stars at 2.54k 2026-11-01 05:10:07 +07:00
feder-cr 068db0f9bf badge: browser launches at 4.36M 2026-11-01 05:10:06 +07:00
feder-cr 37bc5abdc7 badge: browser launches at 4.3M 2026-10-31 05:10:05 +07:00
feder-cr eba6ced288 badge: Stars at 2.53k 2026-10-30 05:10:07 +07:00
feder-cr e3c2b9871c badge: browser launches at 4.24M 2026-10-30 05:10:05 +07:00
feder-cr c6aee91109 badge: browser launches at 4.17M 2026-10-29 05:10:05 +07:00
feder-cr 6763c03418 badge: browser launches at 4.11M 2026-10-28 05:10:05 +07:00
feder-cr 563b9ba53f badge: Stars at 2.52k 2026-10-27 05:10:06 +07:00
feder-cr eef4916c97 badge: browser launches at 4.05M 2026-10-27 05:10:05 +07:00
feder-cr e9a2a1e13f badge: Stars at 2.51k 2026-10-25 05:10:08 +07:00
feder-cr fa37048123 badge: browser launches at 3.92M 2026-10-25 05:10:06 +07:00
feder-cr 795e1f60c1 badge: browser launches at 3.86M 2026-10-24 05:10:05 +07:00
feder-cr 79e6ea98e5 badge: browser launches at 3.8M 2026-10-23 05:10:05 +07:00
feder-cr 40e9540ed9 badge: Stars at 2.5k 2026-10-21 15:10:14 -07:00
feder-cr 2e8e8d9d7e badge: browser launches at 3.74M 2026-10-21 15:10:11 -07:00
feder-cr dae2dfd6df badge: Stars at 2.64k 2026-10-20 15:10:10 -07:00
feder-cr 25c8fd2c79 badge: browser launches at 3.68M 2026-10-20 15:10:08 -07:00
feder-cr 680bb9dd28 badge: Stars at 3.18k 2026-10-19 15:10:07 -07:00
feder-cr 736aa2c7b1 badge: browser launches at 3.62M 2026-10-19 15:10:05 -07:00
feder-cr f213884d25 badge: Stars at 3.17k 2026-10-18 15:10:07 -07:00
feder-cr d8a7e90cfe badge: browser launches at 3.56M 2026-10-18 15:10:06 -07:00
feder-cr f02bacfbe1 badge: Stars at 3.16k 2026-10-17 15:10:09 -07:00
feder-cr fa4ffee15e badge: browser launches at 3.5M 2026-10-17 15:10:07 -07:00
feder-cr b86e18a719 badge: browser launches at 3.45M 2026-10-16 15:10:05 -07:00
feder-cr 50e283486a badge: Stars at 3.15k 2026-10-15 15:10:09 -07:00
feder-cr ea9c8368c2 badge: browser launches at 3.39M 2026-10-15 15:10:07 -07:00
feder-cr 8dd44bd779 badge: browser launches at 3.34M 2026-10-14 15:10:08 -07:00
feder-cr e3f36fd57f badge: Stars at 3.14k 2026-10-13 15:10:11 -07:00
feder-cr d7b1c2aa5c badge: browser launches at 3.29M 2026-10-13 15:10:08 -07:00
feder-cr f948ef6dcd badge: Stars at 3.12k 2026-10-12 15:10:09 -07:00
feder-cr 7cfbd7e37a badge: browser launches at 3.24M 2026-10-12 15:10:07 -07:00
feder-cr f35bed21a2 badge: Stars at 3.09k 2026-10-12 00:10:06 +02:00
feder-cr d53800aca7 badge: browser launches at 3.19M 2026-10-12 00:10:05 +02:00
feder-cr 9a7b26b643 badge: Stars at 3.05k 2026-10-11 00:10:11 +02:00
feder-cr d259c26510 badge: browser launches at 3.15M 2026-10-11 00:10:09 +02:00
feder-cr 7c70d68be4 badge: Stars at 3.04k 2026-10-10 00:10:10 +02:00
feder-cr 41a91068b0 badge: browser launches at 3.11M 2026-10-10 00:10:07 +02:00
feder-cr d63f68557f badge: browser launches at 3.08M 2026-10-09 00:10:04 +02:00
feder-cr a6cd40696b badge: Stars at 3.03k 2026-10-08 00:10:09 +02:00
feder-cr f799d015b1 badge: browser launches at 3.04M 2026-10-08 00:10:07 +02:00
feder-cr ab4065dd69 badge: Stars at 3.02k 2026-10-07 00:10:08 +02:00
feder-cr c2d4839865 badge: browser launches at 3.01M 2026-10-07 00:10:06 +02:00
feder-cr d2f7111267 badge: Stars at 3.01k 2026-10-06 00:25:59 +02:00
feder-cr db991ff770 badge: browser launches at 2.98M 2026-10-06 00:25:58 +02:00
feder-cr 3f524c834c badge: browser launches at 2.95M 2026-10-05 00:10:07 +02:00
feder-cr 25d5d2d2d5 badge: Stars at 3k 2026-10-04 00:10:11 +02:00
feder-cr 73d1f013c3 badge: browser launches at 2.93M 2026-10-04 00:10:09 +02:00
feder-cr b453c6b274 badge: Stars at 2.99k 2026-10-03 00:10:09 +02:00
feder-cr ad2ec1943b badge: browser launches at 2.9M 2026-10-03 00:10:07 +02:00
feder-cr 4a565b7ef9 badge: browser launches at 2.87M 2026-10-02 00:10:09 +02:00
feder-cr ae28582691 badge: browser launches at 2.84M 2026-10-01 00:10:07 +02:00
feder-cr 177e85952a badge: browser launches at 2.81M 2026-09-30 00:10:12 +02:00
feder-cr 6a9f7e83f4 badge: Stars at 2.98k 2026-09-29 00:10:09 +02:00
feder-cr f3a45c0dc8 badge: browser launches at 2.79M 2026-09-29 00:10:07 +02:00
feder-cr e9a457aace badge: Stars at 2.97k 2026-09-27 02:26:01 +02:00
feder-cr b5eb96f7ee badge: browser launches at 2.74M 2026-09-27 02:26:00 +02:00
feder-cr 8cb8699b3a badge: browser launches at 2.72M 2026-09-26 05:25:57 +02:00
feder-cr 036ac35034 badge: browser launches at 2.69M 2026-09-25 00:10:03 +02:00
feder-cr f4600827af badge: Stars at 2.96k 2026-09-24 00:10:06 +02:00
feder-cr cd5866f4f6 badge: browser launches at 2.67M 2026-09-24 00:10:04 +02:00
feder-cr b38998014b badge: browser launches at 2.64M 2026-09-23 00:10:04 +02:00
feder-cr 14e746585f badge: Stars at 2.95k 2026-09-22 00:10:09 +02:00
feder-cr 0d57abbfb2 badge: browser launches at 2.62M 2026-09-22 00:10:07 +02:00
feder-cr 9832f4e3d3 badge: Stars at 2.94k 2026-09-21 00:10:05 +02:00
feder-cr e1f954a59f badge: browser launches at 2.59M 2026-09-21 00:10:04 +02:00
feder-cr 7d0fbebe88 badge: Stars at 2.79k 2026-09-20 00:10:06 +02:00
feder-cr 72547a1930 badge: browser launches at 2.57M 2026-09-20 00:10:05 +02:00
feder-cr fd5137e38a badge: Stars at 2.05k 2026-09-19 00:10:06 +02:00
feder-cr 20f7e7f488 badge: browser launches at 2.55M 2026-09-19 00:10:05 +02:00
feder-cr f601e6a8d8 badge: Stars at 2.04k 2026-09-18 01:06:11 +02:00
feder-cr 60a1a10e50 badge: browser launches at 2.53M 2026-09-18 01:06:10 +02:00
feder-cr 58e93cfcbf badge: Stars at 2.03k 2026-09-17 00:10:10 +02:00
feder-cr fd2eb6d7d6 badge: browser launches at 2.51M 2026-09-17 00:10:08 +02:00
feder-cr e4995a2432 badge: browser launches at 2.48M 2026-09-16 00:10:06 +02:00
feder-cr 65d49c1754 badge: Stars at 2.02k 2026-09-15 00:10:10 +02:00
feder-cr c5b6377fb3 badge: browser launches at 2.46M 2026-09-15 00:10:08 +02:00
feder-cr d30cad79e9 badge: browser launches at 2.44M 2026-09-14 00:10:08 +02:00
feder-cr 7c0ad0115e badge: browser launches at 2.42M 2026-09-13 00:10:08 +02:00
feder-cr 6554774bf7 badge: Stars at 2.01k 2026-09-12 00:10:10 +02:00
feder-cr 1643d2fa0e badge: browser launches at 2.4M 2026-09-12 00:10:08 +02:00
feder-cr fa838b95c4 badge: browser launches at 2.36M 2026-09-11 00:10:04 +02:00
feder-cr d97b8ee595 badge: Stars at 2k 2026-09-10 00:10:09 +02:00
feder-cr 9b38311d0b badge: browser launches at 2.33M 2026-09-10 00:10:06 +02:00
feder-cr 25168cbe05 badge: browser launches at 2.29M 2026-09-09 00:10:07 +02:00
feder-cr 4051e4aa02 badge: browser launches at 2.26M 2026-09-08 00:10:07 +02:00
feder-cr 28dafca0b8 badge: Stars at 1.99k 2026-09-07 00:10:06 +02:00
feder-cr af3ed66d9d badge: browser launches at 2.23M 2026-09-07 00:10:05 +02:00
feder-cr 2d65a40048 badge: Stars at 1.98k 2026-09-06 00:10:05 +02:00
feder-cr d9bb4d978d badge: browser launches at 2.2M 2026-09-06 00:10:04 +02:00
feder-cr 374966e634 badge: Stars at 1.97k 2026-09-05 09:00:06 +02:00
feder-cr 3037dce9f0 badge: browser launches at 2.19M 2026-09-05 09:00:05 +02:00
feder-cr 020c3ad603 badge: browser launches at 2.16M 2026-09-04 09:00:10 +02:00
feder-cr c7211e4749 badge: browser launches at 2.14M 2026-09-03 09:00:09 +02:00
feder-cr 58470ca190 badge: Stars at 1.96k 2026-09-02 09:00:10 +02:00
feder-cr c2e888475d badge: browser launches at 2.12M 2026-09-02 09:00:08 +02:00
feder-cr f6a077d269 badge: browser launches at 2.1M 2026-09-01 09:00:07 +02:00
feder-cr 0c4b876412 badge: Stars at 1.95k 2026-08-30 09:00:10 +02:00
feder-cr bcb33508fc badge: browser launches at 2.09M 2026-08-30 09:00:08 +02:00
feder-cr 70e315bf8d badge: Stars at 1.94k 2026-08-27 09:00:07 +02:00
feder-cr d10bc9727b badge: Stars at 1.93k 2026-08-26 09:00:07 +02:00
feder-cr 657d681dfc badge: Stars at 1.92k 2026-08-22 09:00:07 +02:00
feder-cr a620db46c1 badge: Stars at 1.91k 2026-08-20 00:14:13 +02:00
feder-cr 0d6bb4e061 badge: browser launches at 2.08M 2026-08-17 09:00:07 +02:00
feder-cr d0133127db badge: browser launches at 1.99M 2026-08-16 09:00:07 +02:00
feder-cr e237925246 badge: Stars at 1.89k 2026-08-15 09:00:09 +02:00
feder-cr b9bae06477 badge: browser launches at 1.9M 2026-08-15 09:00:07 +02:00
feder-cr 1086814414 badge: Stars at 1.88k 2026-08-14 03:00:52 +02:00
feder-cr 4f5f709ce6 badge: Stars at 38 2026-08-14 02:59:34 +02:00
feder-cr 1ad0264c87 badge: browser launches at 1.78M 2026-08-14 02:27:31 +02:00
35 changed files with 4166 additions and 1179 deletions

No files matched your search

+1 -2
View File
@@ -13,8 +13,7 @@
# this repo now has to RESOLVE that dependency from the index.
#
# The publish order is fixed and non-negotiable: invisible-core is uploaded
# FIRST, its consumers after it - two until invisible_firefox was deleted on
# 2026-08-18, this package since. So there is a window - from the first push
# FIRST, the two consumers after it. So there is a window - from the first push
# of this repo to GitHub until the core's first upload - in which every install
# step here cannot possibly succeed, for a reason nobody can fix from inside
# this repository.
+10 -94
View File
@@ -183,49 +183,25 @@ jobs:
fi
# The direct push CANNOT succeed while the branch requires status
# checks: a required check cannot have passed on a commit that does
# not exist yet, and since 2026-08-13 `enforce_admins` is TRUE, so
# not even a maintainer push has a bypass. Measured 2026-08-05 -
# every publish run on all three repos ended in failure with GH006,
# on releases that had shipped. So the push is tried, and when
# declined the entry goes to a branch and a pull request rather than
# nowhere. Green when it is preserved, red only when it is LOST.
#
# THE FALLBACK HAD NEVER RUN ONCE - repaired 2026-08-14, the same fix
# in all three repos. Two defects, and the first hid the second:
#
# 1. `HEAD:$LEDGER_BRANCH` cannot work from the detached HEAD a tag
# build checks out: the destination branch does not exist yet and
# the source is a commit object, so git cannot tell a branch from
# a tag and refuses with "The destination you provided is not a
# full refname". Under `bash -e` that aborts the step, so the
# pull request below was never even attempted and neither
# `::error::` was ever printed - which is why no `ledger/*`
# branch and no pull request has ever existed on any of the three
# repos, across four red runs on releases that had shipped.
# 2. Creating the pull request also needs "Allow GitHub Actions to
# create and approve pull requests" ON THE REPOSITORY, which is
# off on all three. The job's own `pull-requests: write` is
# necessary and not sufficient. So the pull request is BEST
# EFFORT: once the branch push lands the entry is safe, and the
# run does not go red over a convenience that a repository
# setting can withdraw.
# not exist yet, and this token has no bypass where a maintainer
# push does. Measured 2026-08-05 - every publish run on all three
# repos ended in failure with GH006, on releases that had shipped.
# So the push is tried, and when declined the entry goes to a branch
# and a pull request rather than nowhere. Green when it is
# preserved, red only when it is lost.
VERSION=$(python -c "import json;print(json.load(open('PUBLISHED.json'))['released'][-1]['version'])")
git config user.name "feder-cr"
git config user.email "85809106+feder-cr@users.noreply.github.com"
git add PUBLISHED.json
git commit -m "record $VERSION as published"
BRANCH="${{ github.event.repository.default_branch }}"
if git push origin "HEAD:refs/heads/$BRANCH"; then
if git push origin "HEAD:$BRANCH"; then
echo "::notice::ledger entry for $VERSION committed to $BRANCH"
exit 0
fi
echo "the direct push was declined; falling back to a branch and a pull request"
echo "the direct push was declined; falling back to a pull request"
LEDGER_BRANCH="ledger/$VERSION"
if ! git push -f origin "HEAD:refs/heads/$LEDGER_BRANCH"; then
echo "::error::the ledger entry for $VERSION reached NEITHER $BRANCH NOR a branch of its own. It exists only in this run. Back-fill it by hand from the artifacts the index serves, or the next release is refused over a missing entry."
exit 1
fi
echo "::notice::the ledger entry for $VERSION is preserved on branch $LEDGER_BRANCH"
git push -f origin "HEAD:$LEDGER_BRANCH"
CODE=$(curl -s -o /tmp/pr.json -w '%{http_code}' -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
@@ -233,67 +209,7 @@ jobs:
-d "{\"title\":\"record $VERSION as published\",\"head\":\"$LEDGER_BRANCH\",\"base\":\"$BRANCH\",\"body\":\"The upload succeeded and the ledger could not be pushed to $BRANCH directly: branch protection declines this token, which has no bypass. Merging this keeps the next release from being refused over a missing entry.\"}")
if [ "$CODE" = "201" ] || [ "$CODE" = "422" ]; then
echo "::error::the ledger for $VERSION is NOT on $BRANCH. Branch $LEDGER_BRANCH carries it and a pull request is open (HTTP $CODE; 422 means one already exists). Merge it before the next release."
else
echo "::error::the ledger for $VERSION is NOT on $BRANCH. Branch $LEDGER_BRANCH carries it and the pull request could NOT be created (HTTP $CODE - 403 means the repository forbids Actions from creating pull requests). Open and merge it by hand before the next release."
fi
exit 0
- name: create the release page for this tag
# Measured 2026-08-11: after pushing three tags, FOUR versions out of four
# had no release page, and it was this repo's own gate
# (`test_the_published_version_has_a_github_release`, in
# `test_release_e2e.py`) that found them AFTER publication. A tag with no
# release page is not cosmetic: that gate walks EVERY version on the
# index, so one omission refuses a later run for a version nobody is
# releasing that day.
#
# Runs only on the tag path - `workflow_dispatch` has no tag to describe.
# Idempotent on purpose: a re-pushed tag, a re-run, or a page created by
# hand must all be a no-op rather than a failure, which is the same rule
# `already-published` follows one job up.
#
# The body comes from CHANGELOG.md when the repo keeps one (only this one
# does) and is generated otherwise. One step, both cases, so the three
# repos carry the same text instead of three variants that drift.
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
if gh release view "$TAG" > /dev/null 2>&1; then
echo "::notice::the release page for $TAG already exists - nothing to do"
exit 0
fi
if [ -f CHANGELOG.md ]; then
awk -v v="$VERSION" '
$0 ~ ("^## \\[" v "\\]") { p = 1; next }
p && /^## \[/ { exit }
p { print }
' CHANGELOG.md > /tmp/notes.md
else
: > /tmp/notes.md
fi
# A body that is only whitespace reads as a page nobody wrote. Say what
# is true instead: the version, and where the artifacts actually are.
#
# The PyPI name is the repository name with hyphens: the repo is
# `invisible_playwright` and the project is `invisible-playwright`.
# PyPI redirects the underscore form, so getting this wrong would have
# produced a link that works and is still wrong to read. And no
# backticks in the body - they would be command substitution inside a
# double-quoted shell string, which is how fourteen quoted terms once
# became empty strings.
PKG=$(printf '%s' "${{ github.event.repository.name }}" | tr '_' '-')
if [ -z "$(tr -d '[:space:]' < /tmp/notes.md)" ]; then
printf '%s\n' \
"$PKG $VERSION is on PyPI." \
"" \
"Artifacts and checksums: https://pypi.org/project/$PKG/$VERSION/" \
> /tmp/notes.md
fi
if gh release create "$TAG" --title "$TAG" --notes-file /tmp/notes.md; then
echo "::notice::release page created for $TAG"
exit 0
fi
echo "::error::the release page for $TAG could not be created. The package IS published; create the page by hand or a later run of the release gate will refuse over it."
echo "::error::the ledger entry for $VERSION could not be pushed OR turned into a pull request (HTTP $CODE). It exists only in this run. Back-fill it by hand from the artifacts the index serves."
exit 1
+4 -6
View File
@@ -72,12 +72,10 @@ jobs:
- name: arm the pre-push gates
# A fresh clone has no core.hooksPath, and the suite says so - the
# reminder moved into `invisible_core.testing` on 2026-07-28 and all
# three repos that existed then made the assertion (two now, since
# invisible_firefox was deleted on 2026-08-18), but only the core's CI
# had this step, so both consumers went red on it. Do here what a
# developer does once. It also means install_hooks.py is exercised on
# every runner instead of only on the one machine that ever ran it by
# hand.
# three repos make the assertion now, but only the core's CI had this
# step, so both consumers went red on it. Do here what a developer does
# once. It also means install_hooks.py is exercised on every runner
# instead of only on the one machine that ever ran it by hand.
run: python scripts/install_hooks.py
- name: undefined names and duplicate definitions
+2 -58
View File
@@ -4,55 +4,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.7.2] - 2026-08-18
### Fixed
- Pins `invisible-core` 20.15.0, which carries a fix for a defect that lived in
17 published core versions. An `http://` or `https://` proxy handed to
`build_launch_plan` produced NO proxy preference at all: `configure_proxy`
returns a non-SOCKS endpoint to its caller, because only Playwright can answer
a proxy's 407, and that path launches the binary with `subprocess` and had
nowhere to put it. The browser then went out on the machine's own address
while the geo layer had already resolved timezone, locale and egress THROUGH
the proxy, so the session announced one country and connected from another.
**This wrapper was never affected and needs no change on your side.** It hands
the endpoint to Playwright, and that was measured: the same exit IP as curl
through the same proxy, in http and in socks5. The fix matters if you also use
`invisible_core.launch.build_launch_plan` directly.
### Removed
- The `browser launches` badge. The counter behind it was a release asset hosted
on a repository that was deleted on 2026-08-18, so the series is frozen on its
last real value and the renderer would have redrawn that number every morning.
A frozen figure presented as current is worse than no figure. The history is
untouched and the SVG on the `badges` branch stays, because already-published
PyPI pages are serving it.
## [0.7.1] - 2026-08-17
### Changed
- Pins `invisible-core` 20.14.0, which seals firefox-20. The engine release is
the memory one: the same fingerprint at the same seed, the same detector
verdicts, less RAM and less CPU. The font faces stopped being copied twice on
their way into the shadow list, the bundle is opened by path instead of being
held in the heap, and the `.ttc` accounting now counts the faces we DECLARE
rather than every face the file happens to carry.
### Fixed
- This entry itself was missing until 2026-08-18. 0.7.1 shipped to the index on
2026-08-17 and the changelog stopped at 0.7.0, so for a day the released
version was undocumented. It was not caught by the release: the guard that
compares the index against this file, `test_the_changelog_documents_every_
version_it_claims_to_cover` in `tests/test_release_e2e.py`, is marked `e2e`
and the default selection deselects it. It fired on the first full e2e run
after the release, which is the run that happens for a reason unrelated to
releasing.
## [0.7.0] - 2026-08-11
### Changed
@@ -401,15 +352,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
- Linux x86_64 and Windows x86_64 binary support.
[0.4.3]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.3
> Le due voci piu' vecchie puntano a COMMIT e non a tag: 0.1.0 e 0.1.1
> precedono l'arrivo su PyPI (l'indice parte da 0.3.5) e non hanno mai
> avuto un tag. Crearne uno oggi non e' innocuo: `publish.yml` si innesca
> su `v*`, e per una versione che l'indice non serve `already-published`
> non corto-circuita, quindi un tag nuovo puo' far partire un tentativo di
> pubblicazione. Il commit e' la stessa informazione senza quel rischio.
[0.1.1]: https://github.com/feder-cr/invisible_playwright/compare/7a983e99c53fa1ec1a443651a4dd9de42258dc61...589c848e07a67c459969a2ddfb79851f48b10eff
[0.1.0]: https://github.com/feder-cr/invisible_playwright/commit/7a983e99c53fa1ec1a443651a4dd9de42258dc61
[0.1.1]: https://github.com/feder-cr/invisible_playwright/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.1.0
[0.4.4]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.4
[0.4.5]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.5
[0.4.6]: https://github.com/feder-cr/invisible_playwright/releases/tag/v0.4.6
-280
View File
@@ -2177,286 +2177,6 @@
}
},
"wheel_filename": "invisible_playwright-0.7.0-py3-none-any.whl"
},
{
"published_at": "2026-08-17T20:05:00Z",
"requires_dist": [
"invisible-core==20.14.0",
"playwright<=1.61.0,>=1.55",
"psutil>=5.9",
"build>=1; extra == 'dev'",
"playwright<=1.61.0,>=1.55; extra == 'dev'",
"pytest-rerunfailures>=14; extra == 'dev'",
"pytest-timeout>=2; extra == 'dev'",
"pytest>=7; extra == 'dev'",
"ruff>=0.6; extra == 'dev'"
],
"sdist": {
"digest": "51400ccfbac8e6186604949a567f847a022faf047a7794075204cca7a1df43b1",
"files": {
"LICENSE": "2abb03e63a96918967f383cbc36e3faefe10a47ae20b2cab43212ef965e02f96",
"PKG-INFO": "3ff35c64a902f873d5ffb94cd7151db66e74f275ce6d65ebbe629831ea1b0f5b",
"README.md": "f2b371d8b38c49bfc4c07aff8e68ee5268f07093edea58a517681659915fb908",
"docs/README.md": "615a5bb1bef8a7b04e522d10bf8ef94beb410727c6dd81284520f5864ee6d4e2",
"docs/integrations/README.md": "d9d4a01c5ce0b3a94123653bf8e78283113cae0a6ec22ba0bc2a2a77baf8ea19",
"pyproject.toml": "c8b74b387c27d1bb0758871f6bbbd2ca6013f6746d0c310c0955e4c4af19e516",
"src/invisible_playwright/__init__.py": "387be8785becddc85aa4bc75363dce58dda608fefe63033f5e3889744043455a",
"src/invisible_playwright/__main__.py": "c6cd277050ead2d11c98b7cbab91ada7d19e495c95e4c86de1f9aaf2b2051d38",
"src/invisible_playwright/_behaviour.py": "bf00751fa077f5389f46571e56c90de21e5c874308d371959e73136b720a62a7",
"src/invisible_playwright/_cursor.py": "fc0115ff8f3aa1ddd9af88768c4761e43003fc8ced83e9fd097d73ca4116f432",
"src/invisible_playwright/_engine.py": "47b52c6d13f75993ff0785b9d48cec150e86a61e59eaa4ed34040d30c331b560",
"src/invisible_playwright/_fpforge/__init__.py": "f80aaf6cbd7c69878c72929f0e38f724d1d51b32477485f3266e5e364778efed",
"src/invisible_playwright/_geo.py": "6cb7a453ae392bd4724f2d508a7f697d1189d9e05b833cc4b36d70069d18225f",
"src/invisible_playwright/_headless.py": "ceaf85c0a32f92c8c8489fa11756b538feddecc021d4ae22782927171429c2b9",
"src/invisible_playwright/_motion.py": "9a87bc7d687bbfdd8659bb52459bf9b84634d53df21fbc3694007245e57f7fdb",
"src/invisible_playwright/_pin.py": "b8df78cf6e92503ee122f7ebdcd2afe98036ea25000c8dc8efa87b46fdd50c55",
"src/invisible_playwright/_proxy.py": "dadfd7ad17246521c78c2e67bc60e31e3fc854dcb0924c4067f5d49a9662722e",
"src/invisible_playwright/_reaper.py": "a2dbe665cf25ae71ea83f4f6c63f739bac42d4b6eb5859c66938d498086a647c",
"src/invisible_playwright/_recaptcha_seed.py": "b3bd833b8ea5b6b2e2f4b78cb5cc4ef4ceb70597dd30135bcb7bee512c9e8a13",
"src/invisible_playwright/_session.py": "3b6bfc370de6418a0b33244a02e927b0aeeae41e63b3bef568bb7f8ab4fb1ed1",
"src/invisible_playwright/_webgl_personas.py": "bdb1c0d79297f9dc3177f8f530a655bd77b473a1838c4829dc48283e30c380a8",
"src/invisible_playwright/async_api.py": "252f100d70c93d679e8feca3c4215e2d4032eabbbdcf00d59362dcab962e2142",
"src/invisible_playwright/cli.py": "bb9e494dd03fb8980a917e6c41df2b073bc109238bdb7a2c70dbf121c9e25de2",
"src/invisible_playwright/config.py": "5f48dfcd4cb757787af5c8ff37f2c7a6683ee3f2b4500182dd4c2dd0722a38f3",
"src/invisible_playwright/constants.py": "6be639754df221f5c41fdbe343ae35e9ea4c83297e98f6566250549f19d6c121",
"src/invisible_playwright/download.py": "416db5d579525d7f0802064d8a6929126c6b085dbe0f1c298f02a7a349f000d9",
"src/invisible_playwright/launcher.py": "3d7e07a4bb8f780ac7766765718afe7c5c24230cbe39cf37e86f98db1e17ec62",
"src/invisible_playwright/prefs.py": "3fabf6f07d9f85cd5ea5bb901dfeedc2c3a41b8e199acd0dc25a11c473004298",
"src/invisible_playwright/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"src/invisible_playwright/sync_api.py": "5518a317416b855387b6834078858a1285d535b611f3af7e238d4433dc24d730",
"tests/conftest.py": "a20eb31d993ffdd74a4bad5521ac5c5f194792240e3eed64fca7eea071002ff4",
"tests/test_async_api.py": "3220c11def2cdc2c4baebf4bc51b466839bb7e2940ddfed07fef2a87cda5780b",
"tests/test_backcompat.py": "ed8a7509bc2dc6a41948320e725c8c24cba90b0c78dc4b44b0ffb3afc4ff9844",
"tests/test_behaviour.py": "6f13fbfca18dfa6cb82bafe09d6fa2dcdbacb0aeae2b669134465c595a7f31f0",
"tests/test_build.py": "bfc15d1437a271229f8282535e550ad5d42220327f346e8e7b539b4f74bc6e46",
"tests/test_canvas_render_stealth.py": "c1b3b47ba066f29710b4bc805825f2c0e4b861a4b6b27fb2d64dc307c2577c13",
"tests/test_ci_font_gate_declaration.py": "32a5265695b7e76acb3a7b3af0d8087f7cc033d3acfc8fa86268eef20ef0be8f",
"tests/test_cli.py": "0923350d5d1ad0c5a382c325552cc3261131ff6106ab7797f4ae0fab84508e81",
"tests/test_cloak.py": "f14c6f12b0ce19ca99d822e8117c29717a4a876a063838fee3f01c6364e3ec91",
"tests/test_core_pin.py": "e7c5c48af5d06265179dc304d00324cef51dd18a6791b89d8187e17618029321",
"tests/test_cross_origin_iframe.py": "f6d4e676f0cf4a1a337918153a31a3a8291fb16b6108578490653b077462db38",
"tests/test_cursor_dispatch.py": "187574c84f45893b342dfafa8b3acbbacad048ec4531ab7cad88dfa0c84f62e1",
"tests/test_cursor_wiring.py": "8be58fdffd9046c3f3266736bde98bf242642809ef8be4e855b4c0f030b354db",
"tests/test_detectors_e2e.py": "226a9f4cc842a25bacefe50b406ff5386ae66e44982f3a336ccccc9308f9af3f",
"tests/test_e2e.py": "6f17da3476d815977f1c1775b3b025666302ad8797d6b9c8db1c4f9fef535e3c",
"tests/test_e2e_hermetic.py": "fc44cda0179fe4ca65914ef0f3aab797ac11b31548c5b3d4e7c39997216ad84c",
"tests/test_fingerprint_consistency.py": "17e5831cfad6e0a32b70d71f66a231ca1d92584abc68da865adbdcf2d44f377d",
"tests/test_fingerprint_surface.py": "580e7db5075bd58edbdb3f1405887c838288ed8535d59aa37743e74623514335",
"tests/test_hook_wiring.py": "b06a8d0c747c695987086128cc4946e6baf2afbdd953f340cb1d0270c8bd88cd",
"tests/test_imports.py": "75a5c1f77d26fe675e4ef3f75df3aa6b2fbce516d32cd9f5764ea5370b3f6d7c",
"tests/test_integration.py": "c291e222be41684da5464113493f158c1c51ae136404dc814b0d0b15d6507d5d",
"tests/test_launcher_config.py": "8c5373917d396f69a33032e98fc7a5a72b3d6ffd06478353b1232e96d4e05c86",
"tests/test_launcher_helpers.py": "512423f4af86eb61e560b0546540d0924f121c04be94c61df5412d831e56362d",
"tests/test_long_session_e2e.py": "4e72f92fd0b00c354c56d062e3ef35be0085e6e1298cf18823d319e111c6c60c",
"tests/test_motion.py": "bc23d80ac0d6e1898398b311b0c3646bbd74abbb20a4c4a1a89818de755df71a",
"tests/test_motion_fingerprint.py": "d725b39c26c02e7cfe60920f72e7d27f2c666392232d75b20a57c59ca5208b98",
"tests/test_mouse.py": "3e9a9e98210a07d3f84a01ff3680f80725d5854f306817b71c95af8380cc77a6",
"tests/test_new_page_defaults.py": "2a5e6fa4e2c94da282b9679c82faf42dac9550f534274b606d515d3f3941f9da",
"tests/test_old_core_says_which_version.py": "46cb0162b3d45384b590c055c6501fec380044c68d83fbdce3950d4b22f3eedd",
"tests/test_pin.py": "8d03bea53d29fffa67d66e002b00998775091dae6390af46a058487260999ca8",
"tests/test_pinning_doc.py": "8d395dd95b8bf1a80e69298d4eb4edf691831316ce04ac40a445b676c5daf663",
"tests/test_prefs_composition_arm.py": "46bfb50b2ec17da30f5bb83b488ccfe4c8f9d2b80db2c1c769e731d5d26f8402",
"tests/test_proxy_socks_auth_e2e.py": "85beb27feb1f79e476fc3c84a18141902fb064fba5329513f9a07772eb98a005",
"tests/test_publish_gate_wiring.py": "48507a52a114ce57c1755c07115c2b2f3c65399f98dcc779a7c0a546df5ebf09",
"tests/test_readme_claims.py": "354cfaf8b0cb7af0e98a8d8383ea4f7b14f0178eb91244a36b909cfd6f45db37",
"tests/test_reaper.py": "000e4639d86868f05a7f6be4abc38d2eb59d74045a73aceb5c0aca2a6d29dd93",
"tests/test_recaptcha_seed.py": "bf60885b5a397e3a58871dd1b72bc191f9ec361aff4279c243697addccf71d69",
"tests/test_release_e2e.py": "5b1b414210b2045d2d125f0b36e62db0d39a0a1f512fb2eb07ec5063c270604f",
"tests/test_seal_binary_path.py": "7ff9cc302b007694d8bd5a3f66bca5458015ff5e53a75ea4e6352c45357893ac",
"tests/test_seal_floor.py": "c65a0ecde6a1ff18510fe435451d18fa6b7bb26d01a2894a573d320687fa7e37",
"tests/test_seal_playwright_range.py": "b4d112a025a4dbe04f4fc3e76ac1dd5c8ab8c1d7295803d54fd3bffd1f9f49cc",
"tests/test_seal_wire_version.py": "6687ce0262da097ebef155af9729804b759c4ecc76ca20920d670801631fe62f",
"tests/test_service_worker.py": "86e4620b0ee8faee2f0481b8c094f9c270ca65b1fa25bd868c4668054dcef449",
"tests/test_suite_boundaries.py": "9e554a4fe13c1475bd879b342e6f92780819614faf02dc884e4cc04bb734bae6",
"tests/test_upgrade_e2e.py": "cdb3471b9e687b54c68af14a874bba7a130f3cbbd3322648cd34daf0365a2538",
"tests/test_version.py": "836a3126985883ceefce81fac26692de65580b72d68d801cbe68b2e5d9041c46",
"tests/test_webgl_noise_active.py": "7b0057fcc92bb26eb290183af3e17fa998dd2c61d738e8d48eeeb46dbfcfbc39",
"tests/test_webrtc_realness.py": "b988dcbbfa35fd2645121c393b56d3384e74f00662d9c0d8fe255e62a8f45dbb",
"tests/unit/test_config_public.py": "83e065e991a542c7937df190c9467ac4fc177e50e15a3a75d06701f4aa1f1254",
"tests/vendor/README.md": "551b2c2337690f908914ef1a7a1ed2385bdde5ddf444ae1410d9cee464403681",
"tests/vendor/botd-2.0.0.esm.js": "f438ed251dc7414ece9d4a2b6941441ad9ffae1a1905817f5f0c7366e701dd86",
"tests/vendor/creepjs-10aa672.js": "80f43f364bd973bc03cb5b82de033ce28b2bbb145cb04237632a46ef040a92be",
"tests/vendor/fingerprintjs-5.2.0.umd.min.js": "a8de5ead580c42d2e2b01a5752aa08da510852230971aa18554d67cd5de5775b",
"tests/vendor/fpscanner-1.0.6.es.js": "5680b88e6075fceab5343d31b43dcb1892a98cff072d37084efdd244fd2cb809"
}
},
"sdist_filename": "invisible_playwright-0.7.1.tar.gz",
"seal_tag": "",
"version": "0.7.1",
"wheel": {
"digest": "4132214690d6624832229018088c93df14160bdfad392f1e464eb65f5194812c",
"files": {
"<dist-info>/METADATA": "3ff35c64a902f873d5ffb94cd7151db66e74f275ce6d65ebbe629831ea1b0f5b",
"<dist-info>/WHEEL": "ccec20e2307acd7da453dd7437e70c6b08e2bc3ead3bc3445af135da37b56d59",
"<dist-info>/entry_points.txt": "f07941bc791c2c31375755627886bfe11ba2d83df7b2522064f84be8299ee3a3",
"<dist-info>/licenses/LICENSE": "2abb03e63a96918967f383cbc36e3faefe10a47ae20b2cab43212ef965e02f96",
"invisible_playwright/__init__.py": "387be8785becddc85aa4bc75363dce58dda608fefe63033f5e3889744043455a",
"invisible_playwright/__main__.py": "c6cd277050ead2d11c98b7cbab91ada7d19e495c95e4c86de1f9aaf2b2051d38",
"invisible_playwright/_behaviour.py": "bf00751fa077f5389f46571e56c90de21e5c874308d371959e73136b720a62a7",
"invisible_playwright/_cursor.py": "fc0115ff8f3aa1ddd9af88768c4761e43003fc8ced83e9fd097d73ca4116f432",
"invisible_playwright/_engine.py": "47b52c6d13f75993ff0785b9d48cec150e86a61e59eaa4ed34040d30c331b560",
"invisible_playwright/_fpforge/__init__.py": "f80aaf6cbd7c69878c72929f0e38f724d1d51b32477485f3266e5e364778efed",
"invisible_playwright/_geo.py": "6cb7a453ae392bd4724f2d508a7f697d1189d9e05b833cc4b36d70069d18225f",
"invisible_playwright/_headless.py": "ceaf85c0a32f92c8c8489fa11756b538feddecc021d4ae22782927171429c2b9",
"invisible_playwright/_motion.py": "9a87bc7d687bbfdd8659bb52459bf9b84634d53df21fbc3694007245e57f7fdb",
"invisible_playwright/_pin.py": "b8df78cf6e92503ee122f7ebdcd2afe98036ea25000c8dc8efa87b46fdd50c55",
"invisible_playwright/_proxy.py": "dadfd7ad17246521c78c2e67bc60e31e3fc854dcb0924c4067f5d49a9662722e",
"invisible_playwright/_reaper.py": "a2dbe665cf25ae71ea83f4f6c63f739bac42d4b6eb5859c66938d498086a647c",
"invisible_playwright/_recaptcha_seed.py": "b3bd833b8ea5b6b2e2f4b78cb5cc4ef4ceb70597dd30135bcb7bee512c9e8a13",
"invisible_playwright/_session.py": "3b6bfc370de6418a0b33244a02e927b0aeeae41e63b3bef568bb7f8ab4fb1ed1",
"invisible_playwright/_webgl_personas.py": "bdb1c0d79297f9dc3177f8f530a655bd77b473a1838c4829dc48283e30c380a8",
"invisible_playwright/async_api.py": "252f100d70c93d679e8feca3c4215e2d4032eabbbdcf00d59362dcab962e2142",
"invisible_playwright/cli.py": "bb9e494dd03fb8980a917e6c41df2b073bc109238bdb7a2c70dbf121c9e25de2",
"invisible_playwright/config.py": "5f48dfcd4cb757787af5c8ff37f2c7a6683ee3f2b4500182dd4c2dd0722a38f3",
"invisible_playwright/constants.py": "6be639754df221f5c41fdbe343ae35e9ea4c83297e98f6566250549f19d6c121",
"invisible_playwright/download.py": "416db5d579525d7f0802064d8a6929126c6b085dbe0f1c298f02a7a349f000d9",
"invisible_playwright/launcher.py": "3d7e07a4bb8f780ac7766765718afe7c5c24230cbe39cf37e86f98db1e17ec62",
"invisible_playwright/prefs.py": "3fabf6f07d9f85cd5ea5bb901dfeedc2c3a41b8e199acd0dc25a11c473004298",
"invisible_playwright/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"invisible_playwright/sync_api.py": "5518a317416b855387b6834078858a1285d535b611f3af7e238d4433dc24d730"
}
},
"wheel_filename": "invisible_playwright-0.7.1-py3-none-any.whl"
},
{
"published_at": "2026-08-18T08:48:57Z",
"requires_dist": [
"invisible-core==20.15.0",
"playwright<=1.61.0,>=1.55",
"psutil>=5.9",
"build>=1; extra == 'dev'",
"playwright<=1.61.0,>=1.55; extra == 'dev'",
"pytest-rerunfailures>=14; extra == 'dev'",
"pytest-timeout>=2; extra == 'dev'",
"pytest>=7; extra == 'dev'",
"ruff>=0.6; extra == 'dev'"
],
"sdist": {
"digest": "7f807a1a8511c5caa2f8c6872cf2e9c6c46b57e1f9bad721a64240cf795ab239",
"files": {
"LICENSE": "2abb03e63a96918967f383cbc36e3faefe10a47ae20b2cab43212ef965e02f96",
"PKG-INFO": "404a5186c8cd77fef0860e729ef0e84b59f8af5fa8a244b4ceccc57254443829",
"README.md": "5b01c1997ce2aed15d5f43f436f2dc3a0d198acb3298996f2f31a8cfb7449911",
"docs/README.md": "615a5bb1bef8a7b04e522d10bf8ef94beb410727c6dd81284520f5864ee6d4e2",
"docs/integrations/README.md": "d9d4a01c5ce0b3a94123653bf8e78283113cae0a6ec22ba0bc2a2a77baf8ea19",
"pyproject.toml": "580658cedfd8edfcee7a5aa5867c632af249256feac176124760fa1bdbcf80f1",
"src/invisible_playwright/__init__.py": "c235b30ed7c9310ed89b08750381dc8170ac61fa924306f92f164679456abc50",
"src/invisible_playwright/__main__.py": "c6cd277050ead2d11c98b7cbab91ada7d19e495c95e4c86de1f9aaf2b2051d38",
"src/invisible_playwright/_behaviour.py": "bf00751fa077f5389f46571e56c90de21e5c874308d371959e73136b720a62a7",
"src/invisible_playwright/_cursor.py": "fc0115ff8f3aa1ddd9af88768c4761e43003fc8ced83e9fd097d73ca4116f432",
"src/invisible_playwright/_engine.py": "47b52c6d13f75993ff0785b9d48cec150e86a61e59eaa4ed34040d30c331b560",
"src/invisible_playwright/_fpforge/__init__.py": "f80aaf6cbd7c69878c72929f0e38f724d1d51b32477485f3266e5e364778efed",
"src/invisible_playwright/_geo.py": "6cb7a453ae392bd4724f2d508a7f697d1189d9e05b833cc4b36d70069d18225f",
"src/invisible_playwright/_headless.py": "ceaf85c0a32f92c8c8489fa11756b538feddecc021d4ae22782927171429c2b9",
"src/invisible_playwright/_motion.py": "9a87bc7d687bbfdd8659bb52459bf9b84634d53df21fbc3694007245e57f7fdb",
"src/invisible_playwright/_pin.py": "1ed92333f25de3c1f9240dddf816dd38acbcb39d36ac29ec3c039ca3edea90a3",
"src/invisible_playwright/_proxy.py": "dadfd7ad17246521c78c2e67bc60e31e3fc854dcb0924c4067f5d49a9662722e",
"src/invisible_playwright/_reaper.py": "4e87bd00b81805fa3e242ae8c1162c32fa78da4dbc515a9de0647209fab7533c",
"src/invisible_playwright/_recaptcha_seed.py": "b3bd833b8ea5b6b2e2f4b78cb5cc4ef4ceb70597dd30135bcb7bee512c9e8a13",
"src/invisible_playwright/_session.py": "3b6bfc370de6418a0b33244a02e927b0aeeae41e63b3bef568bb7f8ab4fb1ed1",
"src/invisible_playwright/_webgl_personas.py": "bdb1c0d79297f9dc3177f8f530a655bd77b473a1838c4829dc48283e30c380a8",
"src/invisible_playwright/async_api.py": "252f100d70c93d679e8feca3c4215e2d4032eabbbdcf00d59362dcab962e2142",
"src/invisible_playwright/cli.py": "3cbd1275a4737b36e0557db9b0df08b0c71dc99cd42527201c69dfe22b398497",
"src/invisible_playwright/config.py": "5f48dfcd4cb757787af5c8ff37f2c7a6683ee3f2b4500182dd4c2dd0722a38f3",
"src/invisible_playwright/constants.py": "6be639754df221f5c41fdbe343ae35e9ea4c83297e98f6566250549f19d6c121",
"src/invisible_playwright/download.py": "416db5d579525d7f0802064d8a6929126c6b085dbe0f1c298f02a7a349f000d9",
"src/invisible_playwright/launcher.py": "3d7e07a4bb8f780ac7766765718afe7c5c24230cbe39cf37e86f98db1e17ec62",
"src/invisible_playwright/prefs.py": "3fabf6f07d9f85cd5ea5bb901dfeedc2c3a41b8e199acd0dc25a11c473004298",
"src/invisible_playwright/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"src/invisible_playwright/sync_api.py": "5518a317416b855387b6834078858a1285d535b611f3af7e238d4433dc24d730",
"tests/conftest.py": "a20eb31d993ffdd74a4bad5521ac5c5f194792240e3eed64fca7eea071002ff4",
"tests/test_async_api.py": "3220c11def2cdc2c4baebf4bc51b466839bb7e2940ddfed07fef2a87cda5780b",
"tests/test_backcompat.py": "ed8a7509bc2dc6a41948320e725c8c24cba90b0c78dc4b44b0ffb3afc4ff9844",
"tests/test_behaviour.py": "6f13fbfca18dfa6cb82bafe09d6fa2dcdbacb0aeae2b669134465c595a7f31f0",
"tests/test_build.py": "ad2ef19324098785145b6477902145aeec6300525be31b2f9232272509102d98",
"tests/test_canvas_render_stealth.py": "c1b3b47ba066f29710b4bc805825f2c0e4b861a4b6b27fb2d64dc307c2577c13",
"tests/test_ci_font_gate_declaration.py": "32a5265695b7e76acb3a7b3af0d8087f7cc033d3acfc8fa86268eef20ef0be8f",
"tests/test_cli.py": "ee31c969596c603519b4e63cdcce72ad44bc3ca1b213fb4615ffcff113f60094",
"tests/test_cloak.py": "f14c6f12b0ce19ca99d822e8117c29717a4a876a063838fee3f01c6364e3ec91",
"tests/test_core_pin.py": "86716635b092b2d662f3fe582b25aa198966d19ac705146486635436bb2361b2",
"tests/test_cross_origin_iframe.py": "f6d4e676f0cf4a1a337918153a31a3a8291fb16b6108578490653b077462db38",
"tests/test_cursor_dispatch.py": "187574c84f45893b342dfafa8b3acbbacad048ec4531ab7cad88dfa0c84f62e1",
"tests/test_cursor_wiring.py": "8be58fdffd9046c3f3266736bde98bf242642809ef8be4e855b4c0f030b354db",
"tests/test_detectors_e2e.py": "226a9f4cc842a25bacefe50b406ff5386ae66e44982f3a336ccccc9308f9af3f",
"tests/test_e2e.py": "6f17da3476d815977f1c1775b3b025666302ad8797d6b9c8db1c4f9fef535e3c",
"tests/test_e2e_hermetic.py": "fc44cda0179fe4ca65914ef0f3aab797ac11b31548c5b3d4e7c39997216ad84c",
"tests/test_fingerprint_consistency.py": "17e5831cfad6e0a32b70d71f66a231ca1d92584abc68da865adbdcf2d44f377d",
"tests/test_fingerprint_surface.py": "580e7db5075bd58edbdb3f1405887c838288ed8535d59aa37743e74623514335",
"tests/test_hook_wiring.py": "b06a8d0c747c695987086128cc4946e6baf2afbdd953f340cb1d0270c8bd88cd",
"tests/test_imports.py": "75a5c1f77d26fe675e4ef3f75df3aa6b2fbce516d32cd9f5764ea5370b3f6d7c",
"tests/test_integration.py": "c291e222be41684da5464113493f158c1c51ae136404dc814b0d0b15d6507d5d",
"tests/test_launcher_config.py": "8c5373917d396f69a33032e98fc7a5a72b3d6ffd06478353b1232e96d4e05c86",
"tests/test_launcher_helpers.py": "512423f4af86eb61e560b0546540d0924f121c04be94c61df5412d831e56362d",
"tests/test_long_session_e2e.py": "4e72f92fd0b00c354c56d062e3ef35be0085e6e1298cf18823d319e111c6c60c",
"tests/test_motion.py": "bc23d80ac0d6e1898398b311b0c3646bbd74abbb20a4c4a1a89818de755df71a",
"tests/test_motion_fingerprint.py": "d725b39c26c02e7cfe60920f72e7d27f2c666392232d75b20a57c59ca5208b98",
"tests/test_mouse.py": "3e9a9e98210a07d3f84a01ff3680f80725d5854f306817b71c95af8380cc77a6",
"tests/test_new_page_defaults.py": "2a5e6fa4e2c94da282b9679c82faf42dac9550f534274b606d515d3f3941f9da",
"tests/test_old_core_says_which_version.py": "46cb0162b3d45384b590c055c6501fec380044c68d83fbdce3950d4b22f3eedd",
"tests/test_pin.py": "8d03bea53d29fffa67d66e002b00998775091dae6390af46a058487260999ca8",
"tests/test_pinning_doc.py": "8d395dd95b8bf1a80e69298d4eb4edf691831316ce04ac40a445b676c5daf663",
"tests/test_prefs_composition_arm.py": "46bfb50b2ec17da30f5bb83b488ccfe4c8f9d2b80db2c1c769e731d5d26f8402",
"tests/test_proxy_socks_auth_e2e.py": "85beb27feb1f79e476fc3c84a18141902fb064fba5329513f9a07772eb98a005",
"tests/test_publish_gate_wiring.py": "fa53659cf27c6a29bd3a8922c922942ece0cc782e9a8aa717b5cc781da976613",
"tests/test_readme_claims.py": "354cfaf8b0cb7af0e98a8d8383ea4f7b14f0178eb91244a36b909cfd6f45db37",
"tests/test_reaper.py": "000e4639d86868f05a7f6be4abc38d2eb59d74045a73aceb5c0aca2a6d29dd93",
"tests/test_recaptcha_seed.py": "bf60885b5a397e3a58871dd1b72bc191f9ec361aff4279c243697addccf71d69",
"tests/test_release_e2e.py": "02285e5b4dd89397ef5e4965d1add1e5f5241a567e89bd9ec28072061fa1ab6f",
"tests/test_seal_binary_path.py": "364e418085eee9568e7fd0381a579296c151495932c1101f3b41c8c728188656",
"tests/test_seal_floor.py": "c65a0ecde6a1ff18510fe435451d18fa6b7bb26d01a2894a573d320687fa7e37",
"tests/test_seal_playwright_range.py": "b4d112a025a4dbe04f4fc3e76ac1dd5c8ab8c1d7295803d54fd3bffd1f9f49cc",
"tests/test_seal_wire_version.py": "ce208cb450ba067a07e0eb7eceb3c0677a6037b499b5e8abde67c438a1c62fb2",
"tests/test_service_worker.py": "86e4620b0ee8faee2f0481b8c094f9c270ca65b1fa25bd868c4668054dcef449",
"tests/test_suite_boundaries.py": "9e554a4fe13c1475bd879b342e6f92780819614faf02dc884e4cc04bb734bae6",
"tests/test_upgrade_e2e.py": "703e9c173570103441da94c745268021102517a3773e7528afc82cec3ffd37c3",
"tests/test_version.py": "836a3126985883ceefce81fac26692de65580b72d68d801cbe68b2e5d9041c46",
"tests/test_webgl_noise_active.py": "7b0057fcc92bb26eb290183af3e17fa998dd2c61d738e8d48eeeb46dbfcfbc39",
"tests/test_webrtc_realness.py": "b988dcbbfa35fd2645121c393b56d3384e74f00662d9c0d8fe255e62a8f45dbb",
"tests/unit/test_config_public.py": "83e065e991a542c7937df190c9467ac4fc177e50e15a3a75d06701f4aa1f1254",
"tests/vendor/README.md": "551b2c2337690f908914ef1a7a1ed2385bdde5ddf444ae1410d9cee464403681",
"tests/vendor/botd-2.0.0.esm.js": "f438ed251dc7414ece9d4a2b6941441ad9ffae1a1905817f5f0c7366e701dd86",
"tests/vendor/creepjs-10aa672.js": "80f43f364bd973bc03cb5b82de033ce28b2bbb145cb04237632a46ef040a92be",
"tests/vendor/fingerprintjs-5.2.0.umd.min.js": "a8de5ead580c42d2e2b01a5752aa08da510852230971aa18554d67cd5de5775b",
"tests/vendor/fpscanner-1.0.6.es.js": "5680b88e6075fceab5343d31b43dcb1892a98cff072d37084efdd244fd2cb809"
}
},
"sdist_filename": "invisible_playwright-0.7.2.tar.gz",
"seal_tag": "",
"version": "0.7.2",
"wheel": {
"digest": "d74e6e67e23ec347f4bd814b34d2db549a827c56dea86433e0ce8c9d6974b256",
"files": {
"<dist-info>/METADATA": "404a5186c8cd77fef0860e729ef0e84b59f8af5fa8a244b4ceccc57254443829",
"<dist-info>/WHEEL": "ccec20e2307acd7da453dd7437e70c6b08e2bc3ead3bc3445af135da37b56d59",
"<dist-info>/entry_points.txt": "f07941bc791c2c31375755627886bfe11ba2d83df7b2522064f84be8299ee3a3",
"<dist-info>/licenses/LICENSE": "2abb03e63a96918967f383cbc36e3faefe10a47ae20b2cab43212ef965e02f96",
"invisible_playwright/__init__.py": "c235b30ed7c9310ed89b08750381dc8170ac61fa924306f92f164679456abc50",
"invisible_playwright/__main__.py": "c6cd277050ead2d11c98b7cbab91ada7d19e495c95e4c86de1f9aaf2b2051d38",
"invisible_playwright/_behaviour.py": "bf00751fa077f5389f46571e56c90de21e5c874308d371959e73136b720a62a7",
"invisible_playwright/_cursor.py": "fc0115ff8f3aa1ddd9af88768c4761e43003fc8ced83e9fd097d73ca4116f432",
"invisible_playwright/_engine.py": "47b52c6d13f75993ff0785b9d48cec150e86a61e59eaa4ed34040d30c331b560",
"invisible_playwright/_fpforge/__init__.py": "f80aaf6cbd7c69878c72929f0e38f724d1d51b32477485f3266e5e364778efed",
"invisible_playwright/_geo.py": "6cb7a453ae392bd4724f2d508a7f697d1189d9e05b833cc4b36d70069d18225f",
"invisible_playwright/_headless.py": "ceaf85c0a32f92c8c8489fa11756b538feddecc021d4ae22782927171429c2b9",
"invisible_playwright/_motion.py": "9a87bc7d687bbfdd8659bb52459bf9b84634d53df21fbc3694007245e57f7fdb",
"invisible_playwright/_pin.py": "1ed92333f25de3c1f9240dddf816dd38acbcb39d36ac29ec3c039ca3edea90a3",
"invisible_playwright/_proxy.py": "dadfd7ad17246521c78c2e67bc60e31e3fc854dcb0924c4067f5d49a9662722e",
"invisible_playwright/_reaper.py": "4e87bd00b81805fa3e242ae8c1162c32fa78da4dbc515a9de0647209fab7533c",
"invisible_playwright/_recaptcha_seed.py": "b3bd833b8ea5b6b2e2f4b78cb5cc4ef4ceb70597dd30135bcb7bee512c9e8a13",
"invisible_playwright/_session.py": "3b6bfc370de6418a0b33244a02e927b0aeeae41e63b3bef568bb7f8ab4fb1ed1",
"invisible_playwright/_webgl_personas.py": "bdb1c0d79297f9dc3177f8f530a655bd77b473a1838c4829dc48283e30c380a8",
"invisible_playwright/async_api.py": "252f100d70c93d679e8feca3c4215e2d4032eabbbdcf00d59362dcab962e2142",
"invisible_playwright/cli.py": "3cbd1275a4737b36e0557db9b0df08b0c71dc99cd42527201c69dfe22b398497",
"invisible_playwright/config.py": "5f48dfcd4cb757787af5c8ff37f2c7a6683ee3f2b4500182dd4c2dd0722a38f3",
"invisible_playwright/constants.py": "6be639754df221f5c41fdbe343ae35e9ea4c83297e98f6566250549f19d6c121",
"invisible_playwright/download.py": "416db5d579525d7f0802064d8a6929126c6b085dbe0f1c298f02a7a349f000d9",
"invisible_playwright/launcher.py": "3d7e07a4bb8f780ac7766765718afe7c5c24230cbe39cf37e86f98db1e17ec62",
"invisible_playwright/prefs.py": "3fabf6f07d9f85cd5ea5bb901dfeedc2c3a41b8e199acd0dc25a11c473004298",
"invisible_playwright/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"invisible_playwright/sync_api.py": "5518a317416b855387b6834078858a1285d535b611f3af7e238d4433dc24d730"
}
},
"wheel_filename": "invisible_playwright-0.7.2-py3-none-any.whl"
}
],
"schema": 1
+12 -1
View File
@@ -1,3 +1,13 @@
<p align="center">
<b>Trouble with captchas - reCAPTCHA, hCaptcha, Turnstile? With proxies? Is your headless browser detected every time?</b><br>
<sub>Join the group and ask. Someone in there has already solved it.</sub>
</p>
<p align="center">
<a href="https://t.me/scrapingtheweb"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/telegram.svg" alt="Join on Telegram" height="38"></a>
</p>
<h2></h2>
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/banner-dark.png">
@@ -245,5 +255,6 @@ This project is for educational purposes only. It is provided as-is, with no war
<a href="https://github.com/feder-cr/invisible_playwright/blob/main/LICENSE"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/license.svg" alt="License: MIT"></a>
<a href="https://www.python.org/downloads/"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/python.svg" alt="Python 3.11+"></a>
<a href="https://github.com/feder-cr/firefox_antidetect_patch/releases"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/firefox.svg" alt="Firefox 151.0"></a>
<a href="https://github.com/feder-cr/invisible_playwright/stargazers"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/badges/docs/badges/stars.svg" alt="GitHub stars"></a>
<a href="https://github.com/feder-cr/invisible_playwright/stargazers"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/stars.svg" alt="GitHub stars"></a>
<a href="https://github.com/feder-cr/invisible_firefox/releases/tag/usage-counter"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/main/docs/badges/launches.svg" alt="browser launches"></a>
</p>
+3875
View File
File diff suppressed because it is too large. Load diff
+107
View File
@@ -0,0 +1,107 @@
day_utc,launches
2026-08-06,43902
2026-08-07,47483
2026-08-08,68985
2026-08-09,75299
2026-08-10,79120
2026-08-11,82291
2026-08-12,80847
2026-08-13,57613
2026-08-14,117227
2026-08-15,90144
2026-08-16,89517
2026-08-20,48
2026-08-21,72
2026-08-22,95
2026-08-23,144
2026-08-24,243
2026-08-25,118
2026-08-26,16
2026-08-27,754
2026-08-28,2617
2026-08-29,3373
2026-08-30,4837
2026-08-31,7659
2026-09-01,20643
2026-09-02,20388
2026-09-03,20897
2026-09-04,24253
2026-09-05,17769
2026-09-06,30024
2026-09-07,30598
2026-09-08,30627
2026-09-09,33608
2026-09-10,32708
2026-09-11,36429
2026-09-12,20820
2026-09-13,21215
2026-09-14,22865
2026-09-15,20973
2026-09-16,23391
2026-09-17,22358
2026-09-18,21594
2026-09-19,21910
2026-09-20,21781
2026-09-21,22973
2026-09-22,26919
2026-09-23,25595
2026-09-24,23369
2026-09-25,28670
2026-09-26,19867
2026-09-29,27963
2026-09-30,27972
2026-10-01,27639
2026-10-02,28570
2026-10-03,26792
2026-10-04,28722
2026-10-05,30100
2026-10-06,29412
2026-10-07,28235
2026-10-08,33668
2026-10-09,37187
2026-10-10,39522
2026-10-11,40271
2026-10-12,43620
2026-10-13,53059
2026-10-14,51631
2026-10-15,53094
2026-10-16,53945
2026-10-17,53686
2026-10-18,55090
2026-10-19,59207
2026-10-20,61199
2026-10-21,60832
2026-10-22,63064
2026-10-23,61741
2026-10-24,61546
2026-10-25,123954
2026-10-26,63404
2026-10-27,61405
2026-10-28,63297
2026-10-29,62917
2026-10-30,62435
2026-10-31,61738
2026-11-01,64895
2026-11-08,105447
2026-11-09,129333
2026-11-10,123111
2026-11-11,134869
2026-11-12,130378
2026-11-13,132793
2026-11-14,126169
2026-11-15,127694
2026-11-16,136873
2026-11-17,128657
2026-11-18,132390
2026-11-19,132299
2026-11-20,133197
2026-11-21,132589
2026-11-22,139563
2026-11-23,158681
2026-11-24,137658
2026-11-25,142632
2026-11-26,146716
2026-11-29,145865
2026-11-30,180952
2026-12-01,169518
2026-12-04,173851
1 day_utc launches
2 2026-08-06 43902
3 2026-08-07 47483
4 2026-08-08 68985
5 2026-08-09 75299
6 2026-08-10 79120
7 2026-08-11 82291
8 2026-08-12 80847
9 2026-08-13 57613
10 2026-08-14 117227
11 2026-08-15 90144
12 2026-08-16 89517
13 2026-08-20 48
14 2026-08-21 72
15 2026-08-22 95
16 2026-08-23 144
17 2026-08-24 243
18 2026-08-25 118
19 2026-08-26 16
20 2026-08-27 754
21 2026-08-28 2617
22 2026-08-29 3373
23 2026-08-30 4837
24 2026-08-31 7659
25 2026-09-01 20643
26 2026-09-02 20388
27 2026-09-03 20897
28 2026-09-04 24253
29 2026-09-05 17769
30 2026-09-06 30024
31 2026-09-07 30598
32 2026-09-08 30627
33 2026-09-09 33608
34 2026-09-10 32708
35 2026-09-11 36429
36 2026-09-12 20820
37 2026-09-13 21215
38 2026-09-14 22865
39 2026-09-15 20973
40 2026-09-16 23391
41 2026-09-17 22358
42 2026-09-18 21594
43 2026-09-19 21910
44 2026-09-20 21781
45 2026-09-21 22973
46 2026-09-22 26919
47 2026-09-23 25595
48 2026-09-24 23369
49 2026-09-25 28670
50 2026-09-26 19867
51 2026-09-29 27963
52 2026-09-30 27972
53 2026-10-01 27639
54 2026-10-02 28570
55 2026-10-03 26792
56 2026-10-04 28722
57 2026-10-05 30100
58 2026-10-06 29412
59 2026-10-07 28235
60 2026-10-08 33668
61 2026-10-09 37187
62 2026-10-10 39522
63 2026-10-11 40271
64 2026-10-12 43620
65 2026-10-13 53059
66 2026-10-14 51631
67 2026-10-15 53094
68 2026-10-16 53945
69 2026-10-17 53686
70 2026-10-18 55090
71 2026-10-19 59207
72 2026-10-20 61199
73 2026-10-21 60832
74 2026-10-22 63064
75 2026-10-23 61741
76 2026-10-24 61546
77 2026-10-25 123954
78 2026-10-26 63404
79 2026-10-27 61405
80 2026-10-28 63297
81 2026-10-29 62917
82 2026-10-30 62435
83 2026-10-31 61738
84 2026-11-01 64895
85 2026-11-08 105447
86 2026-11-09 129333
87 2026-11-10 123111
88 2026-11-11 134869
89 2026-11-12 130378
90 2026-11-13 132793
91 2026-11-14 126169
92 2026-11-15 127694
93 2026-11-16 136873
94 2026-11-17 128657
95 2026-11-18 132390
96 2026-11-19 132299
97 2026-11-20 133197
98 2026-11-21 132589
99 2026-11-22 139563
100 2026-11-23 158681
101 2026-11-24 137658
102 2026-11-25 142632
103 2026-11-26 146716
104 2026-11-29 145865
105 2026-11-30 180952
106 2026-12-01 169518
107 2026-12-04 173851
+9
View File
@@ -0,0 +1,9 @@
{
"schemaVersion": 1,
"label": "engine downloads",
"message": "394.76k",
"color": "2EA44F",
"namedLogo": "github",
"logoColor": "white",
"cacheSeconds": 3600
}
+9
View File
@@ -0,0 +1,9 @@
{
"schemaVersion": 1,
"label": "browser launches",
"message": "8.51M",
"color": "FF7139",
"namedLogo": "firefoxbrowser",
"logoColor": "white",
"cacheSeconds": 3600
}
+4 -4
View File
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="157" height="20" role="img" aria-label="browser launches: 1.64M">
<title>browser launches: 1.64M</title>
<svg xmlns="http://www.w3.org/2000/svg" width="157" height="20" role="img" aria-label="browser launches: 8.51M">
<title>browser launches: 8.51M</title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
<clipPath id="r"><rect width="157" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
@@ -10,7 +10,7 @@
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="58.0" y="15" fill="#010101" fill-opacity=".3">browser launches</text>
<text x="58.0" y="14">browser launches</text>
<text x="136.5" y="15" fill="#010101" fill-opacity=".3">1.64M</text>
<text x="136.5" y="14">1.64M</text>
<text x="136.5" y="15" fill="#010101" fill-opacity=".3">8.51M</text>
<text x="136.5" y="14">8.51M</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 898 B

After

Width:  |  Height:  |  Size: 898 B

+7 -7
View File
@@ -1,16 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20" role="img" aria-label="Stars: 1.88k">
<title>Stars: 1.88k</title>
<svg xmlns="http://www.w3.org/2000/svg" width="73" height="20" role="img" aria-label="Stars: 2.6k">
<title>Stars: 2.6k</title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
<clipPath id="r"><rect width="80" height="20" rx="3" fill="#fff"/></clipPath>
<clipPath id="r"><rect width="73" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
<rect width="43" height="20" fill="#555"/>
<rect x="43" width="37" height="20" fill="#e8a317"/>
<rect width="80" height="20" fill="url(#s)"/>
<rect x="43" width="30" height="20" fill="#e8a317"/>
<rect width="73" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="21.5" y="15" fill="#010101" fill-opacity=".3">Stars</text>
<text x="21.5" y="14">Stars</text>
<text x="61.5" y="15" fill="#010101" fill-opacity=".3">1.88k</text>
<text x="61.5" y="14">1.88k</text>
<text x="58.0" y="15" fill="#010101" fill-opacity=".3">2.6k</text>
<text x="58.0" y="14">2.6k</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 843 B

+1 -1
View File
@@ -71,7 +71,7 @@ behaviour was lost:
| `doctor` | `fetch` does it on every run. It was the thing most worth doing and the thing least likely to be typed, which is the worst combination a subcommand can have. |
| `fetch --force` | unnecessary once every run verifies. A tree is replaced because it does not match the seal, not because a flag was passed. |
| `path` | `fetch` prints it as its last line, and unlike `path` it guarantees the tree is there and correct. |
| `clear-cache` | deliberately not folded in. The cache root belongs to `invisible_core`, not to this package, so pruning "trees no seal points at" would delete an engine this package did not put there. `version` prints the location. |
| `clear-cache` | deliberately not folded in. The cache root is shared with `invisible_firefox`, so pruning "trees no seal points at" would delete the other product's engine on a machine running both. `version` prints the location. |
The `tag` argument went with them. The seal decides which engine a given build
runs, and the engine check refuses anything else, so a tag on the command line
+5 -9
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "invisible_playwright"
version = "0.7.2"
version = "0.7.0"
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
readme = "README.md"
requires-python = ">=3.11"
@@ -40,8 +40,7 @@ dependencies = [
# ground truth lies exactly when it matters.
#
# Cost, accepted knowingly: the pin literal now moves on every engine release,
# so a firefox-N bump is a two-repo release instead of a core-only push (it
# was three until invisible_firefox was deleted on 2026-08-18).
# so a firefox-N bump is a three-repo release instead of a core-only push.
# invisible-core must be live on the index BEFORE this package is published,
# or a cold install fails to resolve.
#
@@ -50,7 +49,7 @@ dependencies = [
# metadata; nothing in src/ hardcodes a second copy (tests/test_core_pin.py
# fails if one appears). What stays invisible to install-time machinery is the
# --no-deps / lockfile residue, and _pin.py is the only layer that sees it.
"invisible_core==20.15.0",
"invisible_core==19.14.0",
# Install-time approximation of the Juggler client range we test against.
# 1.61 added an isMobile field to Browser.setDefaultViewport that an older
# Juggler rejects, which kills the session (issue #48). The authoritative
@@ -76,11 +75,8 @@ dev = ["pytest>=7", "build>=1", "ruff>=0.6", "pytest-rerunfailures>=14", "pytest
[tool.pytest.ini_options]
markers = [
# ONE VOCABULARY FOR EVERY REPOSITORY THAT SHARES THE CORE. Aligned
# 2026-07-27 across the three that existed then; invisible_firefox was
# deleted on 2026-08-18, so today that is this repo and invisible_core.
# Before the alignment the same word meant different things and selected
# different sets.
# ONE VOCABULARY FOR ALL THREE REPOSITORIES. Aligned 2026-07-27; before
# that the same word meant different things and selected different sets.
#
# `integration` was "multi-module tests, no browser" in invisible_core and
# invisible_playwright, and "launches the real patched Firefox binary" in
+26 -44
View File
@@ -32,53 +32,35 @@ import sys
# The canonical Windows-11 family set the bundle exposes. Verified byte-for-byte
# identical on Windows/DWrite and Linux/fontconfig; macOS/CoreText must match it
# too. Questi sono i record `F|` che `invisible_core` dichiara.
#
# ⛔ E' UN LETTERALE, e il motivo NON e' pigrizia: verificato il 2026-08-17
# leggendo il workflow che lo esegue. Il font gate gira dentro `release.yml`
# del repo SORGENTE, in un job che fa il checkout di QUESTO repo ma installa
# soltanto `playwright==...` e niente altro. Farlo derivare da `invisible_core`
# e' la forma che la regola 16 chiede, e' stata scritta e provata, funziona in
# locale, e fa morire di ImportError OGNI rilascio.
#
# E c'e' una seconda ragione, che sopravvive anche se un giorno quel job
# installasse il core: quando la pipeline gira, il core PUBBLICATO e' ancora
# quello del rilascio precedente, perche' il core si pubblica DOPO che il
# binario esiste (17-release-seal-spec.md §9). Derivare da li' misurerebbe il
# binario nuovo contro la dichiarazione vecchia.
#
# Cio' che rende sicuro il letterale non e' l'attenzione di chi lo edita: e'
# `test_the_family_list_in_the_gate_matches_the_core_manifest`, in
# `tests/test_ci_font_gate_declaration.py` di questo repo, dove il core C'E'.
# Quel test non esisteva: era DOCUMENTATO come esistente e basta, ed e'
# esattamente per questo che la lista ha potuto restare a 68 mentre il manifest
# passava a 71 (le due Segoe di icone piu' Twemoji Mozilla).
#
# ⛔ E LA DERIVA NON DA' UN ROSSO, DA' UN VERDE: misurato il 2026-08-17 sul
# binario vero. La sonda interroga `EXPECTED + HOST_MUST_BE_ABSENT` e nient'
# altro, quindi una famiglia tolta di qui smette anche di essere CERCATA: con
# le tre mancanti il gate ha stampato `detected 68 families (expected 68)` e
# `FONT GATE OK`, uscita 0, su un binario che ne espone 71. Un gate d'accordo
# con se' stesso non vede la propria deriva.
# too. Keep this sorted and in sync with the bundle (browser/fonts/moz.build).
EXPECTED = [
"Arial", "Bahnschrift", "Calibri", "Cambria", "Cambria Math", "Candara",
"Comic Sans MS", "Consolas", "Constantia", "Corbel", "Courier New",
"Ebrima", "Franklin Gothic", "Gabriola", "Gadugi", "Georgia", "Impact",
"Ink Free", "Javanese Text", "Leelawadee", "Leelawadee UI",
"Lucida Console", "Lucida Sans Unicode", "MS Gothic", "MS PGothic",
"MS UI Gothic", "MV Boli", "Malgun Gothic", "Marlett",
"Microsoft Himalaya", "Microsoft JhengHei", "Microsoft JhengHei UI",
"Microsoft New Tai Lue", "Microsoft PhagsPa", "Microsoft Sans Serif",
"Microsoft Tai Le", "Microsoft Uighur", "Microsoft YaHei",
"Microsoft YaHei UI", "Microsoft Yi Baiti", "MingLiU-ExtB",
"Mongolian Baiti", "Myanmar Text", "NSimSun", "Nirmala UI",
"PMingLiU-ExtB", "Palatino Linotype", "Segoe Fluent Icons",
"Segoe MDL2 Assets", "Segoe Print", "Segoe Script", "Segoe UI",
# 68, not 72, since 2026-08-07. Arial Black, Franklin Gothic Medium, Segoe
# Fluent Icons and Segoe MDL2 Assets were removed from the bundle because a
# REAL Windows Firefox does not expose them as family names to a page -
# measured by driving the retail 152.0.6 installed on the machine, with a
# throwaway profile and no build of ours in the loop. We were answering
# "present" where a real browser answers "absent", on four names a
# font-probing detector asks about.
#
# This list is a hand-kept copy of the manifest's F| records and the docs
# already flag that as a drift risk. It went stale the moment the four were
# dropped and would have failed this gate on the next run - found by an
# audit, not by the gate itself.
"Arial", "Bahnschrift", "Calibri", "Cambria", "Cambria Math",
"Candara", "Comic Sans MS", "Consolas", "Constantia", "Corbel",
"Courier New", "Ebrima", "Franklin Gothic", "Gabriola", "Gadugi", "Georgia", "Impact", "Ink Free", "Javanese Text",
"Leelawadee", "Leelawadee UI", "Lucida Console", "Lucida Sans Unicode",
"MS Gothic", "MS PGothic", "MS UI Gothic", "MV Boli", "Malgun Gothic",
"Marlett", "Microsoft Himalaya", "Microsoft JhengHei",
"Microsoft JhengHei UI", "Microsoft New Tai Lue", "Microsoft PhagsPa",
"Microsoft Sans Serif", "Microsoft Tai Le", "Microsoft Uighur",
"Microsoft YaHei", "Microsoft YaHei UI", "Microsoft Yi Baiti",
"MingLiU-ExtB", "Mongolian Baiti", "Myanmar Text", "NSimSun", "Nirmala UI",
"PMingLiU-ExtB", "Palatino Linotype", "Segoe Print", "Segoe Script", "Segoe UI",
"Segoe UI Emoji", "Segoe UI Historic", "Segoe UI Symbol", "SimSun",
"SimSun-ExtB", "Sitka Small", "Sylfaen", "Symbol", "Tahoma",
"Times New Roman", "Trebuchet MS", "Twemoji Mozilla", "Verdana",
"Webdings", "Wingdings", "Wingdings 2", "Wingdings 3", "Yu Gothic",
"Yu Gothic UI",
"Times New Roman", "Trebuchet MS", "Verdana", "Webdings", "Wingdings",
"Wingdings 2", "Wingdings 3", "Yu Gothic", "Yu Gothic UI",
]
# Host families that must NEVER be visible - one per backend. Their presence is a
+1 -27
View File
@@ -42,33 +42,7 @@ def main() -> int:
print(f"ERROR: binary not found: {binary}", file=sys.stderr)
return 2
# An escape hatch in the environment is not neutral here: one e2e ASSERTS
# the behaviour it disables.
#
# `INVISIBLE_CORE_PIN=allow` tells the core to run a mismatched pair instead
# of repairing it. It is the normal way to drive a locally built engine, so
# it is often already exported in the shell that starts this run - and it is
# INHERITED by the venv subprocess that
# `test_the_mismatch_repairs_itself_at_import_without_a_restart` spawns.
# That test deliberately breaks an environment and requires importing the
# wrapper to fix it. With the variable set, the repair correctly declines,
# the version does not move, and the test fails for a reason that has
# nothing to do with the binary under test.
#
# Measured 2026-08-16: 1 failed / 143 passed in 14 minutes, and the same
# file re-run with the variable unset gave 4 passed in 2 minutes. Refusing
# up front costs a second; discovering it costs the whole run plus the time
# spent believing the product was broken.
#
# It is stripped, not merely warned about: a warning at the top of a
# 14-minute run scrolls away long before the failure appears.
env = {k: v for k, v in os.environ.items() if k != "INVISIBLE_CORE_PIN"}
if "INVISIBLE_CORE_PIN" in os.environ:
print("[run_e2e] INVISIBLE_CORE_PIN is set in this shell and has been "
"STRIPPED for the run: one e2e asserts the pin repair that the "
"variable disables, and it would fail for that reason alone.",
file=sys.stderr)
env = dict(os.environ)
# One setting drives the whole suite: conftest's firefox_binary fixture and
# the webrtc e2e both resolve from these.
env["INVPW_BINARY_PATH"] = binary
+2 -4
View File
@@ -34,10 +34,8 @@ previous behaviour, where the browser drew the path instead.
# the core, and the repair refuses itself if the snapshot says otherwise. Every
# failure of the repair falls back to the message it replaced.
#
# The comparison and the repair both live in invisible_core.pin. They were put
# there to be shared with the profile manager, so both products would diagnose
# and fix an environment the same way; that repository was deleted 2026-08-18
# and they stay in the core, which is the package that owns the pin.
# The comparison and the repair both live in invisible_core.pin, shared with the
# profile manager so both products diagnose and fix an environment the same way.
# Our _pin.py is the floor: it owns the three states a module inside the core
# cannot report on (core absent, core present but unimportable, core present but
# too damaged to derive its own version) and delegates everything else.
+2 -15
View File
@@ -18,21 +18,8 @@ from invisible_core.seal import EngineMismatch, active_seal, verify_engine
def resolve_executable(binary_path: Optional[Union[str, Path]]) -> Path:
"""``binary_path=`` skips the download path entirely, so the guard sits on the
resolved executable rather than inside the fetcher.
⛔ This used to say "binary_path= and INVPW_BINARY_PATH", and the second half
was false: nothing here reads that variable. It is translated into
``binary_path=`` by the test scripts and by ``run_e2e.py``, so it is a
convention of this repo's harness and not a feature of the library. Corrected
2026-08-14 - a docstring that promises an env var the code never reads sends
the reader looking for a bug in the wrong function.
Driving an engine the packaged seal does not describe is done with
``binary_path=`` plus ``INVISIBLE_SEAL_FILE`` pointing at a seal generated for
it; without that, ``verify_engine`` refuses, and refusing is correct - the
prefs and the spoofed User-Agent describe the sealed build.
"""
"""binary_path= and INVPW_BINARY_PATH skip the download path entirely, so
the guard sits on the resolved executable, not inside the fetcher."""
seal = active_seal()
if binary_path:
return verify_engine(Path(binary_path), seal, source=f"binary_path={binary_path}")
+6 -8
View File
@@ -1,14 +1,12 @@
"""Prelude for the core-pin assertion, then delegation to the core.
THE COMPARISON IS NOT HERE. It lives in invisible_core.pin, because the other
consumer of the core (the profile manager) asked the same question and two
copies of the answer drift: the day the two products disagree about why an
environment is broken, the check has stopped being a diagnosis. That repository
was deleted on 2026-08-18 and the comparison stays where it is - the core is
what owns the pin, and it is installed on its own by anybody who wants it.
This module is the small part that genuinely cannot be delegated, plus
name-bound wrappers so the rest of this package can keep calling the functions
without repeating our own distribution name.
consumer of the core (the profile manager) asks the same question and two copies
of the answer drift: the day the two products disagree about why an environment
is broken, the check has stopped being a diagnosis. This module is the small
part that genuinely cannot be delegated, plus name-bound wrappers so the rest of
this package can keep calling the functions without repeating our own
distribution name.
WHAT CANNOT BE DELEGATED. A module inside invisible_core cannot report that
invisible_core is absent, unimportable, or so damaged that it cannot derive its
+3 -5
View File
@@ -1,11 +1,9 @@
"""Make the browser tree die when this process does.
THIS MODULE IS NOW A RE-EXPORT. The implementation lives in
``invisible_core.process``. It went there to be shared with the profile manager,
which launched the same browser and had exactly the same bug - and had it a day
longer, because the fix was in this repository. That repository was deleted on
2026-08-18; the implementation stays in the core, where this package imports it
from.
``invisible_core.process``, shared with the profile manager, which launches the
same browser and had exactly the same bug - and had it a day longer, because the
fix was in this repository.
Keeping the module rather than deleting it is deliberate: the names below are
imported by `launcher`, by `async_api` and by `tests/test_reaper.py`, and the
+5 -24
View File
@@ -36,30 +36,11 @@ from ._cursor import (
__all__ = ["build_prefs", "true_headless_requested", "TRUE_HEADLESS_ENV"]
#: Opt-in to real headless. Read HERE rather than in one of the two classes,
#: because reading it in one of them is exactly how it came to work on the async
#: API only.
#:
#: ⛔ THE REASON THIS USED TO BE A WORKAROUND IS NOW KNOWN, AND FIXED. This
#: comment said: "the default headful+cloak path intermittently hangs
#: launch_persistent_context on Windows (~40%, a window/compositor race with a
#: persistent profile); true headless ... is reliable". It had the right
#: neighbourhood - window and compositor - and no mechanism, so it stood as an
#: escape hatch for months.
#:
#: The mechanism, measured 2026-08-14: Windows declared the chrome window FULLY
#: OCCLUDED and in the hanging runs the verdict was never revoked
#: (`nsWindow::NotifyOcclusionState() mIsFullyOccluded 1` with no later 0). An
#: inactive BrowsingContext never paints, so delayed startup never finishes,
#: `browser-delayed-startup-finished` never fires, no target is created and the
#: launch times out at 180 s. True headless was reliable for a reason nobody had
#: named: there is no window to occlude.
#:
#: Fixed by `widget.windows.window_occlusion_tracking.enabled=false`, applied to
#: EVERY session by invisible_core - 24 relaunches out of 24 against 6 hangs in 9.
#: So this variable is no longer a workaround for that hang; it remains as a
#: deliberate choice of a different rendering path. Full account:
#: `71-bug-archive.md` [B150].
#: Opt-in to real headless. The default headful+cloak path intermittently hangs
#: `launch_persistent_context` on Windows (~40%, a window/compositor race with a
#: persistent profile); true headless applies the IDENTICAL fingerprint prefs and
#: is reliable. Read HERE rather than in one of the two classes, because reading
#: it in one of them is exactly how it came to work on the async API only.
TRUE_HEADLESS_ENV = "INVPW_TRUE_HEADLESS"
+3 -7
View File
@@ -18,13 +18,9 @@ their behaviour, they lost their command:
`$(invisible-playwright fetch)` is the scripting form and it also
guarantees the thing it names actually exists. `path` promised a
path and could hand back one to a tree that was wrong.
clear-cache deliberately NOT folded in. The cache root belongs to
invisible_core and not to this package, so pruning "trees no
seal points at" would delete an engine this package did not put
there. It was written for invisible_firefox, whose repository
was deleted on 2026-08-18 while the package stayed on the index,
so an installed copy still shares that root - and the reason
holds for anything else built on the core.
clear-cache deliberately NOT folded in. The cache root is shared with
invisible_firefox, so pruning "trees no seal points at" would
delete the other product's engine on a machine running both.
`version` prints the cache location; removing a directory is a
thing a person can do without a subcommand for it.
+5 -29
View File
@@ -1,7 +1,6 @@
"""Sync Playwright launcher for invisible_playwright."""
from __future__ import annotations
import json
import secrets
from pathlib import Path
import time as _time
@@ -30,6 +29,7 @@ from ._reaper import SessionToken, guard_for
#: value: the two drifted apart for as long as one of them did not exist.
_NEWTAB_SETTLE = 0.4
def _patch_sync_new_page_sleep(ctx: Any) -> None:
"""Wrap ctx.new_page() to add a brief settle after tab creation.
@@ -247,34 +247,10 @@ class InvisiblePlaywright:
self._pw = sync_playwright().start()
if self._profile_dir is not None:
# Persistent context - cookies / localStorage / extensions /
# prefs all live on disk between runs.
#
# ⛔ The line that used to be here said the stealth prefs are
# "re-injected via firefox_user_prefs on every launch (Playwright
# writes them to user.js, which overrides anything in prefs.js)".
# That is FALSE on the Juggler path, and the false belief is what
# made the first-launch/second-launch asymmetry look impossible.
# Verified 2026-08-14 in the bundled driver: writePreferences(),
# the function that creates user.js, lives in
# server/bidi/third_party/firefoxPrefs.ts and is called only by
# BidiFirefox.prepareUserDataDir; the BASE prepareUserDataDir is
# empty and the Juggler Firefox type does not override it. The
# prefs travel over the protocol instead: Browser.enable applies
# them with Services.prefs.setBoolPref / setStringPref /
# setIntPref - USER-branch setters - after
# `await this._startCompletePromise`, so Firefox persists them
# into prefs.js. Measured: 39 zoom.stealth prefs in prefs.js after
# the first launch, and no user.js on disk at all.
#
# Consequence: launch 1 initialises gfx/fonts with the
# DEFAULTS, launch 2+ with the stealth prefs already active. Two
# different code paths, and every gate in this project starts from
# a fresh profile - which is how the relaunch hang lived unseen.
# Cause and fix: `70-known-bugs.md` [B150]. The fix is a pref
# applied by invisible_core to every session, not code here: a
# geometry-scrubbing remedy lived in this file for a few hours and
# was REMOVED once the origin was found, so that only one place
# knows the fact.
# prefs all live on disk between runs. Stealth prefs are
# re-injected via firefox_user_prefs on every launch (Playwright
# writes them to user.js, which overrides anything in
# prefs.js inside the persistent dir).
self._profile_dir.mkdir(parents=True, exist_ok=True)
self._persistent_context = self._pw.firefox.launch_persistent_context(
user_data_dir=str(self._profile_dir),
+3 -18
View File
@@ -37,21 +37,6 @@ def test_built_wheel_has_no_duplicate_entries(tmp_path):
dupes = {n: c for n, c in Counter(names).items() if c > 1}
assert not dupes, f"wheel has duplicate entries (PyPI will reject): {dupes}"
# ⛔ Il controllo di sanita' chiedeva `.json` nel wheel, con il commento
# "the Bayesian data files must still be packaged". E' FALSO dal 2026-07-03:
# il commit 76e41e2 che ha creato invisible_core ha spostato quei dati nel
# core, e questo pacchetto non ne ha piu' nessuno. L'asserzione ha
# continuato a chiedere una cosa che non esiste per sei settimane senza che
# niente lo segnalasse, perche' il caso e' marcato `slow` e la selezione di
# default lo DESELEZIONA: in CI non ha mai girato, e un gate che non gira e'
# indistinguibile da uno che passa.
#
# Il controllo giusto per QUESTO pacchetto e' che il modulo ci sia davvero:
# e' cio' che si rompe se `packages` smette di puntare al posto giusto, che
# e' la stessa classe di guasto per cui il caso e' stato scritto.
moduli = [n for n in names if n.startswith("invisible_playwright/")
and n.endswith(".py")]
assert moduli, f"nessun modulo del pacchetto nel wheel: {sorted(names)[:10]}"
assert "invisible_playwright/__init__.py" in names, (
"il wheel non contiene __init__.py: `packages` non punta al sorgente")
# Sanity: the Bayesian data files must still be packaged.
json_files = [n for n in names if n.endswith(".json")]
assert json_files, "no .json data files in wheel - packaging broken"
-62
View File
@@ -79,65 +79,3 @@ def test_the_generics_declaration_does_not_depend_on_the_seed():
"zoom.stealth.fonts.generics cambia con il seme (%d valori distinti su "
"5 semi): la copia dentro il gate non puo' piu' essere un letterale "
"fisso e va letta dal core." % len(valori))
def _expected_dal_gate() -> list:
"""La lista EXPECTED dentro il gate, letta senza importare Playwright."""
src = _GATE.read_text(encoding="utf-8")
testa = src.split("def main")[0]
ns: dict = {}
exec(compile(testa, str(_GATE), "exec"), ns) # noqa: S102 - e' il nostro file
return ns["EXPECTED"]
@pytest.mark.unit
def test_the_family_list_in_the_gate_matches_the_core_manifest():
"""Il letterale del gate contro i record `F|` che il core dichiara.
⛔ Questo test e' l'UNICA cosa che tiene onesto quel letterale, e per un
giorno e' esistito solo nei documenti: `18-gate-inventory.md` lo nominava
come attivo mentre nell'albero non c'era nessuna funzione con questo nome.
In quella finestra il manifest e' passato a 71 famiglie e la lista del gate
e' rimasta a 68.
⛔ E cio' che la deriva produce e' un VERDE, non un rosso, il che spiega
perche' nessuno se ne fosse accorto: il gate sonda `EXPECTED +
HOST_MUST_BE_ABSENT` e nient'altro, quindi una famiglia tolta dalla lista
smette anche di essere CERCATA, il conto torna da solo e il gate stampa
`detected 68 families (expected 68)` e OK. Misurato sul binario vero il
2026-08-17, uscita 0, su una build che ne espone 71.
Il letterale non si puo' togliere: il job di `release.yml` che esegue il
gate installa soltanto Playwright, quindi li' `invisible_core` non e'
importabile. La ragione per esteso sta nel commento sopra EXPECTED.
"""
from invisible_core._fpforge.profile import FONT_MANIFEST
dal_core = [r.split("|")[1] for r in FONT_MANIFEST.splitlines()
if r.startswith("F|")]
dal_gate = _expected_dal_gate()
# ⛔ NESSUN `%` in questo messaggio, e non e' uno stile: la prima stesura lo
# usava dopo una concatenazione con `+`, cosi' il `%` finale si legava SOLO
# all'ultimo gruppo di letterali adiacenti - quello senza segnaposti - e
# alzava `TypeError: not all arguments converted`. Un messaggio di asserzione
# viene valutato solo QUANDO l'asserzione fallisce, quindi il difetto si
# manifesta esattamente nell'istante in cui serve la spiegazione: in CI si e'
# visto un TypeError al posto della differenza fra le due liste. Concatenare
# valori gia' resi con `repr` non ha questo modo di sbagliare.
if dal_gate != dal_core:
nel_core = sorted(set(dal_core) - set(dal_gate))
nel_gate = sorted(set(dal_gate) - set(dal_core))
raise AssertionError(
"la lista delle famiglie dentro scripts/ci_font_gate.py non e' "
"quella che invisible_core dichiara." + chr(10)
+ " nel core e non nel gate: " + repr(nel_core) + chr(10)
+ " nel gate e non nel core: " + repr(nel_gate) + chr(10)
+ " famiglie: gate " + str(len(dal_gate))
+ ", core " + str(len(dal_core)) + chr(10)
+ "Il gate NON diventerebbe rosso da solo: le famiglie che mancano "
"da EXPECTED smettono di essere sondate, quindi stamperebbe OK "
"restando cieco su di loro." + chr(10)
+ "Se questo scatta in CI durante un rilascio, guarda l'ORDINE: la "
"CI installa il core PUBBLICATO, non quello dell'albero, quindi un "
"gate aggiornato prima che il core sia sull'indice vede il manifest "
"vecchio. Si pubblica il core, poi si sposta il pin, poi si usa la "
"lista nuova.")
+3 -6
View File
@@ -40,12 +40,9 @@ def test_the_cli_offers_exactly_two_commands():
line, which is what `path` did with the added guarantee that the thing it
names exists.
`clear-cache` is the one deliberately NOT folded in: the cache root belongs
to invisible_core, so pruning trees no seal points at would delete an engine
this package did not put there. It was written for invisible_firefox, whose
repository was deleted on 2026-08-18 while the package stayed on the index;
the reason holds for anything else built on the core. `version` prints the
location instead.
`clear-cache` is the one deliberately NOT folded in: the cache root is shared
with invisible_firefox, so pruning trees no seal points at would delete the
other product's engine. `version` prints the location instead.
Asserted as an exact set, not a subset. A subset check passes while the
surface grows back one convenience at a time, which is how it got to six.
+1 -4
View File
@@ -17,12 +17,9 @@ import pytest
from invisible_playwright import InvisiblePlaywright
# Occlusion tracking is no longer part of the cloak: it is applied to EVERY
# session by invisible_core (see prefs.compose_session_prefs), because a window treated as
# backgrounded is readable by a page - rAF at 1 Hz, timers clamped to 1000 ms,
# visibilityState hidden, enumerateDevices that never resolves.
CLOAK_PREFS = {
"zoom.stealth.cloak_windows": True,
"widget.windows.window_occlusion_tracking.enabled": False,
}
_WEBGL_RENDERER = """() => {
+5 -9
View File
@@ -3,17 +3,15 @@
THE COMPARISON IS NOT TESTED HERE ANY MORE. It moved into invisible_core.pin,
where it is exercised against real site-packages layouts built under tmp_path
(invisible_core/tests/test_pin.py). That move is the point: the profile manager
consumed the same core and asked the same question, and two copies of the answer
drift until the two products disagree about why an environment is broken. That
repository was deleted on 2026-08-18; the comparison stays in the core, which is
the package that owns the pin and is installable on its own.
consumes the same core and asks the same question, and two copies of the answer
drift until the two products disagree about why an environment is broken.
What is left in this package, and what this file tests:
* the prelude - the few lines that can still run when invisible_core cannot be
imported at all, which is the one state a module inside the core can never
report on. Tested in a subprocess against a stub core;
* the name binding - every call from this package asks about
invisible-playwright by name, never about whatever else consumes the core;
invisible-playwright and never about the other consumer;
* that no second copy of the comparison grew back here;
* that the expected core version is written in pyproject and nowhere else.
@@ -154,10 +152,8 @@ def test_this_package_declares_no_requirement_regex_of_its_own():
def test_the_wrapper_asks_about_its_own_distribution(monkeypatch):
"""Not the manager's. Written when two consumers shared the core and each
had its own Requires-Dist; asking with the wrong name reads the wrong pin.
The manager's repository is gone since 2026-08-18 and the assertion stays:
the core takes a distribution name and answers about whatever it is given."""
"""Not the manager's. The two consumers share a core and each has its own
Requires-Dist; asking with the wrong name reads the wrong pin."""
asked = []
monkeypatch.setattr(_pin, "_assert_core_pin", lambda name: asked.append(name))
_pin.assert_core_pin()
+26 -99
View File
@@ -330,113 +330,40 @@ def test_enumerate_devices_resolves_promptly(firefox_binary, detector_site):
d'ambiente, le opzioni di contesto e il motore del cursore. Cosa resti nel
wrapper e' aperto - vedi 70-known-bugs.md.
⛔ DUE LIMITI E NON UNO, dal 2026-08-17, perche' con uno solo questo test
riportava "MAI RISOLTA" per una risoluzione soltanto LENTA - cioe' scriveva
il verdetto del difetto sopra il verdetto della macchina carica. La prima
versione aveva 5 secondi e falliva 7 volte su 8 sotto carico con tempi fra
2.7 e 5 secondi; alzarli a 30 ha spostato la soglia senza togliere la
confusione, e il 2026-08-17 dieci e2e completi hanno dato 1 rosso su 10 con
quel rosso interamente dentro il giro che durava 35 minuti contro una
mediana di 11.8, cioe' l'unico anomalo su ogni colonna. Sui nove giri
rimanenti: 0 su 9.
**Il difetto e' il BLOCCO, e un blocco e' infinito.** `LIMITE_BLOCCO_MS` sta
a 120 secondi: 83 volte la mediana di ~1440 ms e 24 volte il peggior tempo
mai osservato quando la chiamata funziona (5 s). Oltre quel muro non e'
lentezza, e nessun carico su questa macchina ha mai prodotto niente di
simile. Questo e' l'unico limite assoluto, ed e' quello che protegge il
prodotto.
**La LENTEZZA invece si misura contro la macchina, non contro l'orologio.**
La pagina cronometra 20000 MICROTASK, e il limite di lentezza e' un multiplo
di quel tempo, con un pavimento a 30 secondi e un tetto sotto il muro del
blocco.
⛔ I microtask, e non `setTimeout(...,0)`, per una ragione misurata: la prima
versione di questo riferimento contava 50 giri di `setTimeout` e su una
macchina SCARICA riportava 2624 ms, cioe' ~52 ms per giro. Non era carico:
era il CLAMP dei timer, che Firefox applica comunque. Il limite che ne
derivava usciva a 393600 ms, **sopra** il muro del blocco a 120000, quindi
l'asserzione sulla lentezza era irraggiungibile - un'asserzione morta che
sembrava una protezione. Un riferimento va scelto per cio' che misura, e un
timer clampato misura il clamp. I microtask non sono clampati.
Il tetto (`muro - 1`) esiste per la stessa ragione: se il limite di lentezza
supera il muro del blocco, la prima asserzione scatta sempre prima e la
seconda non esiste piu'. Un limite che non puo' essere raggiunto non e' un
limite.
Il tempo e il riferimento vengono stampati sempre, quindi una regressione di
velocita' resta visibile anche quando non fa fallire niente.
La soglia e' 30 secondi, e la prima versione di questo test aveva 5: un
numero che diceva "e' veloce" mentre il commento accanto dichiarava di
assertire "si risolve". Misurato subito dopo, falliva 7 volte su 8 sotto
carico con tempi fra 2.7 e 5 secondi - cioe' bocciava sessioni in cui la
chiamata si RISOLVEVA, che non e' il difetto. 30 secondi sta sopra ogni
tempo osservato quando funziona e sotto i 45 in cui il difetto si manifesta
come timeout altrove. Il tempo viene stampato sempre, quindi una regressione
di velocita' resta visibile senza rendere il test instabile.
"""
#: Oltre questo non si risolvera' mai: e' il difetto, ed e' assoluto.
LIMITE_BLOCCO_MS = 120_000
#: Pavimento della lentezza, piu' il multiplo del riferimento di carico. Il
#: multiplo e' tarato sul riferimento a microtask misurato a macchina scarica
#: (pochi ms), quindi da' un limite ben sotto il pavimento fino a un carico
#: di circa venti volte, e sopra oltre quello.
PAVIMENTO_LENTEZZA_MS = 30_000
MULTIPLO_SUL_RIFERIMENTO = 2_000
with InvisiblePlaywright(seed=42, binary_path=firefox_binary) as browser:
page = browser.new_page()
page.goto(detector_site.url, wait_until="load", timeout=45000)
r = page.evaluate(
"""(limite) => {
// Riferimento di carico: 20000 microtask. NON setTimeout, che
// Firefox clampa comunque e che quindi misurerebbe il clamp
// invece della contesa. Si misura PRIMA, cosi' non include
// l'inizializzazione dello stack media che stiamo cronometrando.
const giroDiEventi = async () => {
const t = performance.now();
for (let i = 0; i < 20000; i++) {
await Promise.resolve();
}
return performance.now() - t;
};
return giroDiEventi().then(rif => {
const t0 = performance.now();
return Promise.race([
navigator.mediaDevices.enumerateDevices().then(
d => ({esito: 'risolta', n: d.length, rif: rif,
ms: Math.round(performance.now() - t0)}),
e => ({esito: 'rifiutata', rif: rif,
err: String(e).slice(0, 120),
ms: Math.round(performance.now() - t0)})),
new Promise(res => setTimeout(
() => res({esito: 'MAI RISOLTA', ms: limite,
rif: rif}), limite)),
]);
});
}""",
LIMITE_BLOCCO_MS,
"""() => {
const t0 = performance.now();
return Promise.race([
navigator.mediaDevices.enumerateDevices().then(
d => ({esito: 'risolta', n: d.length,
ms: Math.round(performance.now() - t0)}),
e => ({esito: 'rifiutata', err: String(e).slice(0, 120),
ms: Math.round(performance.now() - t0)})),
new Promise(res => setTimeout(
() => res({esito: 'MAI RISOLTA', ms: 30000}), 30000)),
]);
}"""
)
rif = round(r.get("rif") or 0)
limite_lentezza = min(LIMITE_BLOCCO_MS - 1,
max(PAVIMENTO_LENTEZZA_MS,
MULTIPLO_SUL_RIFERIMENTO * rif))
print(f"[media] enumerateDevices: {r.get('n')} dispositivi in {r['ms']}ms "
f"(riferimento di carico {rif}ms -> limite di lentezza "
f"{limite_lentezza}ms, muro del blocco {LIMITE_BLOCCO_MS}ms)")
assert r["esito"] != "MAI RISOLTA", (
f"navigator.mediaDevices.enumerateDevices() non si e' risolta in "
f"{LIMITE_BLOCCO_MS}ms. Non e' lentezza: e' il BLOCCO. Ogni rilevatore "
f"che fa `await enumerateDevices()` prima di risolvere resta appeso per "
f"sempre e la pagina sembra viva - il difetto del 2026-08-10, che si "
f"presentava come un test dell'identificativo rosso una volta su tre. "
f"Riferimento di carico di questa corsa: {rif}ms."
"navigator.mediaDevices.enumerateDevices() non si e' risolta entro 5s. "
"Ogni rilevatore che fa `await enumerateDevices()` prima di risolvere "
"resta appeso per sempre, e la pagina sembra viva: e' il difetto del "
"2026-08-10, che si presentava come un test dell'identificativo rosso "
"una volta su tre."
)
assert r["esito"] == "risolta", (
f"enumerateDevices ha rifiutato invece di risolvere: {r.get('err')!r}"
)
assert r["ms"] <= limite_lentezza, (
f"enumerateDevices si e' RISOLTA in {r['ms']}ms, oltre il limite di "
f"{limite_lentezza}ms. Questo non e' il blocco del 2026-08-10 - il "
f"segnale arriva - ed e' un limite che scala col carico: il riferimento "
f"del ciclo di eventi era {rif}ms, quindi la macchina era "
f"{'contesa' if rif > 200 else 'scarica'}. Se il riferimento e' basso e "
f"questo tempo e' alto, e' una regressione di velocita' del nostro "
f"stack media e non un artefatto della macchina."
)
print(f"[media] enumerateDevices: {r['n']} dispositivi in {r['ms']}ms")
-129
View File
@@ -1,129 +0,0 @@
"""I due file e2e della PUBBLICAZIONE non lasciano passare l'ambiente nel venv.
**Perche' questo file esiste.** `test_release_e2e.py` e `test_upgrade_e2e.py`
creano un venv e ci installano il pacchetto DALL'INDICE: sono l'unica cosa che
verifica cosa riceve un utente. Ma un venv EREDITA l'ambiente, e fino al
2026-08-14 `subprocess.run(env=None)` glielo passava intatto. Misurato il
2026-08-11: `PYTHONPATH` verso i sorgenti del banco e `INVISIBLE_SEAL_FILE`
verso un sigillo locale hanno prodotto **sedici fallimenti in un giorno, nessuno
del prodotto**. E il verso pericoloso e' l'altro: un VERDE che arriva da un
ambiente che nessun utente ha.
**Perche' e' un test e non un commento.** Il rimedio vive in DUE copie, una per
file, e la duplicazione e' imposta da un gate del core
(`test_no_install_e2e_file_imports_a_package_the_runner_does_not_have`, in
`invisible_core/tests/test_marker_vocabulary.py`): quei file devono raccogliersi
con solo stdlib e pytest sul runner, quindi un modulo condiviso sarebbe un
errore di raccolta. Due copie divergono, a meno che qualcosa non le confronti.
Il caso che conta e' l'ULTIMO: il controllo che dimostra che senza la correzione
la variabile passerebbe davvero. Un test che verifica solo la versione corretta
non distingue "il rimedio funziona" da "il problema non esisteva".
"""
from __future__ import annotations
import importlib.util
import os
import subprocess
import sys
from pathlib import Path
import pytest
QUI = Path(__file__).resolve().parent
FILE_E2E = ("test_release_e2e.py", "test_upgrade_e2e.py")
#: Le variabili misurate, piu' quella aggiunta per costruzione. Se un file
#: dimenticasse una di queste, il confronto fra le due copie qui sotto lo
#: riporterebbe come divergenza.
ATTESE = ("PYTHONPATH", "INVISIBLE_SEAL_FILE", "PYTHONHOME")
def _carica(nome: str):
"""Importa il modulo e2e dal PERCORSO, non dal nome.
Il nome dipenderebbe da come pytest ha popolato `sys.path`, e questo test
deve valere anche fuori da una corsa che raccoglie quei file.
"""
percorso = QUI / nome
spec = importlib.util.spec_from_file_location(nome[:-3] + "_letto", percorso)
modulo = importlib.util.module_from_spec(spec)
spec.loader.exec_module(modulo)
return modulo
@pytest.fixture(scope="module")
def moduli():
return {n: _carica(n) for n in FILE_E2E}
def test_entrambi_i_file_dichiarano_le_stesse_variabili(moduli):
"""Due copie che divergono sono peggio di una copia sola."""
visto = {n: tuple(m._NON_ERMETICHE) for n, m in moduli.items()}
valori = set(visto.values())
assert len(valori) == 1, (
"i due file e2e ripuliscono ambienti DIVERSI, quindi uno dei due lascia "
"passare qualcosa che l'altro ferma:\n "
+ "\n ".join("%s -> %s" % (n, v) for n, v in sorted(visto.items())))
assert valori.pop() == ATTESE, (
"l'elenco e' cambiato senza aggiornare questo test. Le tre attese sono "
"%s: le prime due sono misurate (sedici rossi il 2026-08-11), la terza "
"e' PYTHONHOME, che redirige la libreria standard e romperebbe il venv "
"prima che esegua una riga." % (ATTESE,))
@pytest.mark.parametrize("nome", FILE_E2E)
def test_clean_env_toglie_le_variabili_e_lascia_le_altre(moduli, nome, monkeypatch):
m = moduli[nome]
monkeypatch.setenv("PYTHONPATH", "/c/src/firefox-stealth/release/invisible_core/src")
monkeypatch.setenv("INVISIBLE_SEAL_FILE", "C:/tmp/seal-locale.json")
monkeypatch.setenv("PYTHONHOME", "/opt/altrove")
monkeypatch.setenv("UNA_QUALSIASI", "resta")
env, tolte = m._clean_env()
for k in ATTESE:
assert k not in env, "%s: %s e' ancora nell'ambiente del sottoprocesso" % (nome, k)
assert sorted(tolte) == sorted(ATTESE), (
"%s: dice di aver tolto %s" % (nome, tolte))
assert env.get("UNA_QUALSIASI") == "resta", (
"%s: ha ripulito piu' del dovuto. Un ambiente svuotato rompe cose che "
"non c'entrano - PATH, TEMP, le variabili del proxy - e la correzione "
"diventa un difetto nuovo." % nome)
@pytest.mark.parametrize("nome", FILE_E2E)
def test_il_sottoprocesso_non_le_vede_davvero(moduli, nome, monkeypatch):
"""Il percorso VERO: non `_clean_env` in isolamento, ma `_run`.
E' la differenza fra provare l'aiutante e provare cio' che il file fa. Il
difetto originale non era in un aiutante: era `env=None` nella chiamata.
"""
m = moduli[nome]
monkeypatch.setenv("PYTHONPATH", "/percorso/del/banco")
monkeypatch.setenv("INVISIBLE_SEAL_FILE", "C:/tmp/seal-locale.json")
script = ("import os;"
"print(os.environ.get('PYTHONPATH'), os.environ.get('INVISIBLE_SEAL_FILE'))")
out = m._run([sys.executable, "-c", script], timeout=60).stdout.strip()
assert out == "None None", (
"%s: il sottoprocesso lanciato da _run vede ancora l'ambiente del "
"chiamante: %r" % (nome, out))
def test_controllo_senza_il_rimedio_la_variabile_PASSEREBBE(monkeypatch):
"""L'input noto-cattivo, che qui e' il MONDO PRIMA della correzione.
Senza questo, i tre test sopra non distinguono "il rimedio funziona" da "il
problema non esisteva". Riproduce la chiamata com'era - `env=None` - e
pretende che la variabile arrivi a destinazione.
"""
monkeypatch.setenv("PYTHONPATH", "/percorso/del/banco")
script = "import os; print(os.environ.get('PYTHONPATH'))"
r = subprocess.run([sys.executable, "-c", script], capture_output=True,
text=True, timeout=60, env=None)
assert r.stdout.strip() == "/percorso/del/banco", (
"il controllo non riproduce il difetto: con env=None la variabile "
"dovrebbe passare, e non e' passata. Allora i test qui sopra non stanno "
"dimostrando quello che sembrano dimostrare, ed e' il BANCO a essere "
"rotto - non il rimedio a funzionare. Ottenuto: %r" % r.stdout)
+5 -6
View File
@@ -6,9 +6,8 @@ reached the index built from a tree that predated the fix it was meant to carry.
A PyPI filename is never re-uploaded, so that artifact is wrong forever and the
only remedy was another version.
The gate lives in `invisible_core.release` - one implementation for every
package that publishes off it (three until invisible_firefox was deleted on
2026-08-18), importable because this package pins the core exactly. What makes it
The gate lives in `invisible_core.release` - one implementation for all three
packages, importable because this package pins the core exactly. What makes it
work is not the digests or the ledger: it is that `publish` builds and uploads
WHAT IT JUST BUILT, so a stale directory cannot be the thing that ships.
@@ -39,8 +38,8 @@ def test_the_gate_is_importable_from_the_pinned_core():
def test_the_gate_recognises_THIS_project_and_not_the_core():
"""One gate, several projects: the identity comes from our pyproject.
Reading the core's would gate the wrong package and pass every time."""
"""One gate, three projects: the identity comes from our pyproject. Reading
the core's would gate the wrong package and pass every time."""
from invisible_core.release import resolve_project_identity
dist, pkg = resolve_project_identity(_REPO)
@@ -62,7 +61,7 @@ def test_the_pre_push_hook_gates_release_tags():
The helper pushes a release tag through the real policy with a recording
runner and checks the gate was invoked FOR THIS PROJECT, then pushes a
branch and checks it was not. Its write-up lives once, in the core, because
every repo that runs the hook makes the same claim.
all three repos make the same claim.
"""
from invisible_core.testing import assert_pre_push_policy_is_wired
+11 -113
View File
@@ -41,55 +41,12 @@ import sys
import pytest
# The variables that must NOT cross into a venv this file builds.
#
# A venv inherits the environment, and these two walk straight through it into
# the thing under test. Measured 2026-08-11:
#
# PYTHONPATH pointing at the workbench sources makes the venv import
# the workbench core instead of the installed one. 5
# failures here and 2 in test_upgrade_e2e.py on Linux,
# every one of them "requires invisible-core==18.13.0 /
# installed 18.14.0". The product was not involved.
# INVISIBLE_SEAL_FILE pointing at a LOCAL seal makes the four tests that
# download the published release fail with "the active
# seal is a LOCAL seal with no published assets". 4
# failures, on Windows AND Linux, that went away by
# re-running the same file without it: 9 of 9 passed.
# PYTHONHOME same mechanism as PYTHONPATH and worse - it redirects
# the standard library, so the venv python is broken
# before it runs a line. Not measured here; added because
# it cannot be right and would be unreadable if it hit.
#
# Sixteen failures in one day, none of them the product. And the dangerous
# direction is the other one: a GREEN that comes from an environment no user
# has. These tests are the only thing that checks the install path, so their
# verdict must not depend on the shell that launched them.
_NON_ERMETICHE = ("PYTHONPATH", "INVISIBLE_SEAL_FILE", "PYTHONHOME")
def _clean_env(base=None):
"""L'ambiente da passare a un sottoprocesso, senza le variabili che filtrano.
Torna anche cosa ha tolto, cosi' il messaggio di errore puo' dirlo: una
variabile rimossa in silenzio e' la stessa classe di difetto di una
ereditata in silenzio, solo con il segno cambiato.
"""
env = dict(os.environ if base is None else base)
tolte = [k for k in _NON_ERMETICHE if k in env]
for k in tolte:
env.pop(k, None)
return env, tolte
# ── venv mechanics, LOCAL ON PURPOSE ────────────────────────────────────────
# These three live in `invisible_core.testing` and every other suite that
# shares the core imports them from there - three repos when this was written,
# two (this package and invisible_core) since invisible_firefox was deleted on
# 2026-08-18. NOT this file. The job that runs it installs pytest on the
# runner and nothing else, deliberately: what is being tested is what a
# stranger gets from the index, and a second copy of anything on the runner's
# path would mean the assertions read the wrong one.
# These three live in `invisible_core.testing` and every other suite in the
# three repos imports them from there. NOT this file. The job that runs it
# installs pytest on the runner and nothing else, deliberately: what is being
# tested is what a stranger gets from the index, and a second copy of anything
# on the runner's path would mean the assertions read the wrong one.
#
# So `from invisible_core.testing import ...` here is a COLLECTION error -
# ModuleNotFoundError, whole job red, nothing tested. It happened on every leg
@@ -98,25 +55,14 @@ def _clean_env(base=None):
# the path. The core's suite now parses these files and refuses the import, so
# the rule does not depend on this comment being read.
def _run(cmd, *, timeout: int = 600, check: bool = True, env=None, cwd=None):
# `env=None` significava EREDITA, che e' esattamente il difetto. Adesso il
# default e' l'ambiente ripulito; passare `env=` esplicitamente lo ripulisce
# comunque, perche' un chiamante che costruisce un ambiente parte quasi
# sempre da `os.environ`.
env, tolte = _clean_env(env)
r = subprocess.run([str(c) for c in cmd], capture_output=True, text=True,
timeout=timeout, env=env,
cwd=str(cwd) if cwd is not None else None)
if check and r.returncode != 0:
nota = ""
if tolte:
nota = ("\n--- ambiente ---\nrimosse prima di lanciare: {}\n"
"(sono le variabili che entrerebbero nel venv e lo farebbero "
"misurare qualcosa che non e' cio' che riceve un utente)"
.format(", ".join(tolte)))
raise AssertionError(
"{} exited {}\n--- stdout ---\n{}\n--- stderr ---\n{}{}".format(
"{} exited {}\n--- stdout ---\n{}\n--- stderr ---\n{}".format(
" ".join(str(c) for c in cmd), r.returncode,
r.stdout[-3000:], r.stderr[-3000:], nota))
r.stdout[-3000:], r.stderr[-3000:]))
return r
@@ -152,13 +98,10 @@ make_venv = _make_venv
# Reading it from the VENV is also the more honest question: what a user gets
# is what the installed package says, not what this checkout says.
def _upstream_version(py: Path) -> str:
# `_clean_env()` e non l'ambiente ereditato: questa e' la lettura che decide
# quale COPIA del pacchetto risponde, ed e' proprio quella che `PYTHONPATH`
# dirotta sui sorgenti del banco.
out = subprocess.run(
[str(py), "-c",
"from invisible_playwright.constants import FIREFOX_UPSTREAM_VERSION as v; print(v)"],
capture_output=True, text=True, timeout=60, env=_clean_env()[0])
capture_output=True, text=True, timeout=60)
assert out.returncode == 0, (
"could not read FIREFOX_UPSTREAM_VERSION from the installed package: "
+ (out.stdout or "") + " " + (out.stderr or ""))
@@ -366,13 +309,8 @@ def test_binary_executes_after_fetch(clean_venv: Path, isolated_cache_env: dict)
# Linux binary path on Windows host - skip launch, the previous
# ensure_binary() already proved cache landed correctly.
pytest.skip("Cross-platform binary launch from Windows requires WSL.")
# Anche qui `_clean_env()`, e non perche' Firefox legga `PYTHONPATH`: non lo
# legge. Perche' cosi' in questo file NON c'e' un solo sottoprocesso lanciato
# con l'ambiente ereditato, quindi non c'e' un'eccezione da ricordare ne' un
# esempio da ricopiare. Costa niente.
r = subprocess.run([str(binary_path), "--version"],
capture_output=True, text=True, timeout=30,
env=_clean_env()[0])
capture_output=True, text=True, timeout=30)
text = (r.stdout + r.stderr).lower()
upstream = _upstream_version(clean_venv)
assert "firefox" in text and upstream in text, (
@@ -544,30 +482,7 @@ def test_the_published_version_has_a_github_release():
recorded = {e["version"]: e for e in
json.loads(ledger_path.read_text(encoding="utf-8"))["released"]}
# ⛔ LA VERSIONE CHE QUESTO ALBERO DICHIARA E' ESENTE, e solo lei.
#
# Il registro non puo' arrivare su main insieme alla pubblicazione: publish.yml
# pubblica su PyPI e POI prova a spingere PUBLISHED.json, ma main e' protetto e
# la spinta diretta viene rifiutata sempre, per costruzione. La voce finisce su
# un ramo ledger/<versione> la cui PR resta bloccata da sola ([B136]), quindi
# fra la pubblicazione e il merge a mano l'indice ha la versione e il registro
# no. Senza questa riga il caso e' ROSSO su un rilascio andato a buon fine, ed
# e' la QUARTA occorrenza della stessa forma trovata il 2026-08-18: un
# controllo scritto guardando lo stato a regime che diventa rosso esattamente
# quando serve.
#
# L'esenzione non apre un buco permanente, e la ragione e' che si richiude da
# sola. Se quel ramo del registro non viene mai unito, al rilascio successivo
# la versione rimasta indietro non e' piu' quella dichiarata dall'albero:
# ricade in unrecorded e il caso torna rosso. E' lo stesso modello che il
# commento qui sopra descrive per version_gate - una pubblicazione fuori dal
# cancello resta invisibile fino al rilascio dopo, che la rifiuta.
import tomllib
in_volo = tomllib.loads(
(Path(__file__).resolve().parents[1] / "pyproject.toml")
.read_text(encoding="utf-8"))["project"]["version"]
unrecorded = [v for v in live if recorded and v not in recorded and v != in_volo]
unrecorded = [v for v in live if recorded and v not in recorded]
thin = {v: [k for k in ("published_at", "requires_dist", "wheel_filename",
"sdist_filename", "wheel", "sdist")
if k not in recorded[v]]
@@ -663,26 +578,9 @@ def test_the_changelog_documents_every_version_it_claims_to_cover():
# first published version can be an invention - below it, the index simply
# has nothing to say. The first draft of this gate flagged all fifteen.
first_published = min(published, key=key)
# La versione che QUESTO albero dichiara e' il rilascio IN CORSO, non
# un'invenzione. Senza questa riga il gate rendeva impossibile una PR di
# rilascio verde: la voce del changelog deve stare nel commit che alza la
# versione, l'indice non la serve ancora, e il gate la chiamava inventata.
# Misurato il 2026-08-18 sulla PR #80, dove era l'UNICO rosso rimasto e
# nessuna sequenza di passi poteva evitarlo. Togliere la voce per far tacere
# il gate avrebbe ricreato esattamente il buco che questo gate esiste per
# impedire, e che aveva gia' lasciato 0.7.1 senza voce per un giorno.
# Ogni ALTRA versione documentata e mai pubblicata resta un errore, e le
# date restano confrontate: quando il rilascio atterra, la sua data deve
# coincidere con quella dell'upload come per tutte le altre.
import tomllib
in_volo = tomllib.loads(
(Path(__file__).resolve().parents[1] / "pyproject.toml")
.read_text(encoding="utf-8"))["project"]["version"]
missing = sorted(expected - set(documented), key=key)
invented = sorted((v for v in set(documented) - set(published)
if key(v) > key(first_published) and v != in_volo), key=key)
if key(v) > key(first_published)), key=key)
misdated = sorted((v, documented[v], published[v]) for v in
set(documented) & set(published) if documented[v] != published[v])
+3 -7
View File
@@ -126,15 +126,11 @@ def test_refusal_names_the_remedy(tmp_path, active):
The remedy is the CORE's own command on purpose. It used to be
`python -m invisible_playwright fetch --force`, written inside
invisible_core.seal - a module the profile manager also imported, while not
invisible_core.seal - a module the profile manager also imports, while not
depending on this package at all. Half the readers of that refusal were
handed a command they could not run. `doctor --fix` clears the cached tree
and re-fetches the sealed one, and it exists wherever this message can be
printed, so it is the only remedy that is true for every reader of it.
The profile manager's repository was deleted on 2026-08-18 and the property
does not depend on it: invisible_core is published on its own, so this
refusal still reaches anybody who installed the core without this package.
printed, so it is the only remedy that is true for both consumers.
"""
entry = build_tree(tmp_path / "old2", version=OLD_VERSION, build_id=OLD_BUILD)
with pytest.raises(EngineMismatch) as exc:
@@ -143,7 +139,7 @@ def test_refusal_names_the_remedy(tmp_path, active):
assert "invisible_core doctor --fix" in msg, msg
assert "invisible_playwright" not in msg, (
"the shared core is naming a consumer's CLI again: this message also "
"reaches anybody who installed invisible-core without this package.\n" + msg)
"reaches invisible-firefox users, who do not have that package.\n" + msg)
assert "INVISIBLE_SEAL_FILE" in msg, msg
+2 -3
View File
@@ -11,9 +11,8 @@ hand-edited application.ini, because it comes from the running engine rather
than from a text file next to it.
No browser is launched: the check reads one attribute, so a stub object with a
`version` is the whole input. The manager arm had no equivalent, which section 8
of the spec recorded as an accepted asymmetry; that repository was deleted on
2026-08-18, so this is the only arm left.
`version` is the whole input. The manager arm has no equivalent, which section 8
of the spec records as an accepted asymmetry.
"""
from __future__ import annotations
+8 -98
View File
@@ -26,7 +26,6 @@ Marked `e2e`: builds venvs and talks to the index.
from __future__ import annotations
import json
import re
import shutil
import sys
import tempfile
@@ -38,47 +37,12 @@ import subprocess
import pytest
# Le variabili che NON devono attraversare un venv costruito qui, e la copia di
# `_clean_env` accanto a loro.
#
# **La duplicazione con `test_release_e2e.py` e' voluta e c'e' un gate che la
# pretende**: `test_no_install_e2e_file_imports_a_package_the_runner_does_not_have`
# nel core parsa questi file e rifiuta ogni import di modulo che non sia stdlib,
# pytest, packaging o pip, con il messaggio "Keep the helpers local in these
# files - the duplication is the point". Un modulo condiviso qui sarebbe un
# errore di RACCOLTA sul runner, cioe' un job rosso che non ha testato niente.
# Fattorizzare e' la mossa giusta ovunque tranne che in questi due file.
#
# Misurato 2026-08-11: `PYTHONPATH` verso i sorgenti del banco fa importare al
# venv il core del banco invece di quello installato (2 fallimenti qui, 5
# nell'altro file); `INVISIBLE_SEAL_FILE` verso un sigillo locale fa fallire i
# test che scaricano la release pubblicata. Sedici rossi in un giorno, nessuno
# del prodotto - e il verso pericoloso e' l'altro: un verde da un ambiente che
# nessun utente ha.
_NON_ERMETICHE = ("PYTHONPATH", "INVISIBLE_SEAL_FILE", "PYTHONHOME")
def _clean_env(base=None):
"""L'ambiente per un sottoprocesso, senza le variabili che filtrano.
Torna anche cosa ha tolto: una variabile rimossa in silenzio e' la stessa
classe di difetto di una ereditata in silenzio, col segno cambiato.
"""
env = dict(os.environ if base is None else base)
tolte = [k for k in _NON_ERMETICHE if k in env]
for k in tolte:
env.pop(k, None)
return env, tolte
# ── venv mechanics, LOCAL ON PURPOSE ────────────────────────────────────────
# These three live in `invisible_core.testing` and every other suite that
# shares the core imports them from there - three repos when this was written,
# two (this package and invisible_core) since invisible_firefox was deleted on
# 2026-08-18. NOT this file. The job that runs it installs pytest on the
# runner and nothing else, deliberately: what is being tested is what a
# stranger gets from the index, and a second copy of anything on the runner's
# path would mean the assertions read the wrong one.
# These three live in `invisible_core.testing` and every other suite in the
# three repos imports them from there. NOT this file. The job that runs it
# installs pytest on the runner and nothing else, deliberately: what is being
# tested is what a stranger gets from the index, and a second copy of anything
# on the runner's path would mean the assertions read the wrong one.
#
# So `from invisible_core.testing import ...` here is a COLLECTION error -
# ModuleNotFoundError, whole job red, nothing tested. It happened on every leg
@@ -87,24 +51,14 @@ def _clean_env(base=None):
# the path. The core's suite now parses these files and refuses the import, so
# the rule does not depend on this comment being read.
def _run(cmd, *, timeout: int = 600, check: bool = True, env=None, cwd=None):
# `env=None` significava EREDITA, che e' il difetto. Adesso il default e'
# l'ambiente ripulito, e anche un `env=` esplicito viene ripulito, perche'
# chi ne costruisce uno parte quasi sempre da `os.environ`.
env, tolte = _clean_env(env)
r = subprocess.run([str(c) for c in cmd], capture_output=True, text=True,
timeout=timeout, env=env,
cwd=str(cwd) if cwd is not None else None)
if check and r.returncode != 0:
nota = ""
if tolte:
nota = ("\n--- ambiente ---\nrimosse prima di lanciare: {}\n"
"(sono le variabili che entrerebbero nel venv e gli farebbero "
"misurare qualcosa che non e' cio' che riceve un utente)"
.format(", ".join(tolte)))
raise AssertionError(
"{} exited {}\n--- stdout ---\n{}\n--- stderr ---\n{}{}".format(
"{} exited {}\n--- stdout ---\n{}\n--- stderr ---\n{}".format(
" ".join(str(c) for c in cmd), r.returncode,
r.stdout[-3000:], r.stderr[-3000:], nota))
r.stdout[-3000:], r.stderr[-3000:]))
return r
@@ -160,26 +114,6 @@ def _versions(py: Path) -> dict:
return json.loads(out.strip().splitlines()[-1])
def _pinned_core(py: Path) -> str:
"""La versione del core che il wrapper INSTALLATO dichiara di volere.
Si legge dal Requires-Dist della distribuzione installata, che e' la sola
fonte che non dipende da quante versioni ci siano sull'indice ne' dal loro
ordine. Il pin e' un `==` esatto per contratto, quindi qui c'e' una versione
e una sola.
"""
out = _run([str(py), "-c",
"from importlib.metadata import metadata;"
"print([r for r in (metadata('invisible-playwright')"
".get_all('Requires-Dist') or []) if 'invisible' in r and 'core' in r])"],
timeout=180)
testo = out.stdout.strip()
m = re.search(r"invisible[-_]core\s*==\s*([0-9][^'\"\s,\]]*)", testo)
if not m:
pytest.skip(f"nessun pin esatto del core nella metadata installata: {testo[:200]}")
return m.group(1)
def _released_versions(py: Path, dist: str) -> list[str]:
"""Versions the index will serve, newest last. Read from pip itself so the
test does not carry a hardcoded list that goes stale on the next release."""
@@ -288,31 +222,7 @@ def test_a_hand_pinned_old_core_is_reported_by_pip_check(workspace: Path):
cores = _released_versions(py, CORE)
if len(cores) < 2:
pytest.skip("only one core release on the index")
# ⛔ LA VERSIONE SBAGLIATA SI SCEGLIE DA CIO' CHE IL WRAPPER INSTALLATO
# PRETENDE, NON DALLA POSIZIONE SULL'INDICE.
#
# Prima era `cores[-2]`, la penultima pubblicata, con l'assunzione implicita
# che la piu' recente fosse quella che il wrapper pinna. Quella assunzione
# CADE per tutta la durata di un rilascio fatto nell'ordine che il progetto
# impone: si pubblica il core PRIMA del consumatore, quindi fra i due
# momenti la piu' recente sull'indice e' una che nessun wrapper pubblicato
# pinna ancora, e `cores[-2]` diventa esattamente la versione GIUSTA.
#
# Misurato il 2026-08-18: pubblicato il core 20.15.0, il wrapper sull'indice
# era ancora 0.7.1 che pinna 20.14.0, e questo caso ha installato 20.14.0
# chiamandola "older". `pip check` ha risposto pulito perche' l'ambiente era
# corretto, e il test ha letto quel pulito come una cecita' del pin. Rosso su
# un prodotto sano, dentro la finestra in cui il rilascio e' a meta'.
# E dentro quella finestra la versione diversa dal pin e' piu' NUOVA, non
# piu' vecchia: il nome del caso dice "old" perche' quello e' lo scenario
# d'uso che descrive, ma cio' che il meccanismo deve vedere e' un
# DISACCORDO, e un disaccordo verso l'alto e' un disaccordo uguale. Il nome
# resta com'e' perche' i documenti lo citano e un gate lo verifica.
atteso = _pinned_core(py)
older = next((v for v in reversed(cores) if v != atteso), None)
if older is None:
pytest.skip(f"the index serves only {atteso}, which is the pinned one")
older = cores[-2]
_run([str(py), "-m", "pip", "install", "--no-cache-dir", "--no-deps",
"--force-reinstall", f"{CORE}=={older}"], timeout=600)