0.7.1 era pubblicata da un giorno e non era nel changelog (#79)
* record 0.7.1 as published * 0.7.1 era pubblicata da un giorno e non era nel changelog Il gate che confronta l'indice con CHANGELOG.md esiste da tempo e ha fatto il suo lavoro, ma e' marcato e2e e la selezione di default lo deseleziona: e' scattato alla prima corsa e2e completa DOPO il rilascio, e quella corsa e' avvenuta per una ragione che col rilascio non c'entrava niente. Un gate che gira solo quando qualcuno decide di girarlo non protegge il momento in cui serve. Nel resto: tolti i riferimenti operativi a invisible_firefox, cancellato il 2026-08-18. Il CHANGELOG resta com'era, perche' e' storia: una riga che dice "allineato con invisible_firefox 0.2.0" descrive un fatto vero di allora. Sono cambiate solo le frasi che parlavano al presente di tre repo o due consumatori, compresi un commento in tests.yml e uno in pyproject.toml, piu' il badge dei lanci nel README che puntava a una pagina ora 404. 446 test verdi, 0 skipped. e2e sul binario firefox-20: 144 verdi.
This commit is contained in:
1 parent
25d7b73659
commit
d5d92e8689
17 files changed
+108
-52
No files matched your search
@@ -13,7 +13,8 @@
|
||||
# this repo now has to RESOLVE that dependency from the index.
|
||||
#
|
||||
# The publish order is fixed and non-negotiable: invisible-core is uploaded
|
||||
# FIRST, the two consumers after it. So there is a window - from the first push
|
||||
# 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
|
||||
# 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.
|
||||
|
||||
@@ -72,10 +72,12 @@ 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 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.
|
||||
# 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.
|
||||
run: python scripts/install_hooks.py
|
||||
|
||||
- name: undefined names and duplicate definitions
|
||||
|
||||
@@ -4,6 +4,28 @@ 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.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
|
||||
|
||||
@@ -258,5 +258,5 @@ This project is for educational purposes only. It is provided as-is, with no war
|
||||
<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_firefox/releases/tag/usage-counter"><img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/badges/docs/badges/launches.svg" alt="browser launches"></a>
|
||||
<img src="https://raw.githubusercontent.com/feder-cr/invisible_playwright/badges/docs/badges/launches.svg" alt="browser launches">
|
||||
</p>
|
||||
@@ -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 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. |
|
||||
| `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. |
|
||||
|
||||
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
|
||||
|
||||
+7
-3
@@ -40,7 +40,8 @@ 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 three-repo release instead of a core-only push.
|
||||
# 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).
|
||||
# invisible-core must be live on the index BEFORE this package is published,
|
||||
# or a cold install fails to resolve.
|
||||
#
|
||||
@@ -75,8 +76,11 @@ dev = ["pytest>=7", "build>=1", "ruff>=0.6", "pytest-rerunfailures>=14", "pytest
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
markers = [
|
||||
# ONE VOCABULARY FOR ALL THREE REPOSITORIES. Aligned 2026-07-27; before
|
||||
# that the same word meant different things and selected different sets.
|
||||
# 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.
|
||||
#
|
||||
# `integration` was "multi-module tests, no browser" in invisible_core and
|
||||
# invisible_playwright, and "launches the real patched Firefox binary" in
|
||||
|
||||
@@ -34,8 +34,10 @@ 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, shared with the
|
||||
# profile manager so both products diagnose and fix an environment the same way.
|
||||
# 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.
|
||||
# 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.
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
"""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) 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.
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
"""Make the browser tree die when this process does.
|
||||
|
||||
THIS MODULE IS NOW A RE-EXPORT. The implementation lives in
|
||||
``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.
|
||||
``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.
|
||||
|
||||
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
|
||||
|
||||
@@ -18,9 +18,13 @@ 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 is shared with
|
||||
invisible_firefox, so pruning "trees no seal points at" would
|
||||
delete the other product's engine on a machine running both.
|
||||
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.
|
||||
`version` prints the cache location; removing a directory is a
|
||||
thing a person can do without a subcommand for it.
|
||||
|
||||
|
||||
+6
-3
@@ -40,9 +40,12 @@ 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 is shared
|
||||
with invisible_firefox, so pruning trees no seal points at would delete the
|
||||
other product's engine. `version` prints the location instead.
|
||||
`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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -3,15 +3,17 @@
|
||||
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
|
||||
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.
|
||||
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.
|
||||
|
||||
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 and never about the other consumer;
|
||||
invisible-playwright by name, never about whatever else consumes the core;
|
||||
* that no second copy of the comparison grew back here;
|
||||
* that the expected core version is written in pyproject and nowhere else.
|
||||
|
||||
@@ -152,8 +154,10 @@ 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. The two consumers share a core and each has its own
|
||||
Requires-Dist; asking with the wrong name reads the wrong pin."""
|
||||
"""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."""
|
||||
asked = []
|
||||
monkeypatch.setattr(_pin, "_assert_core_pin", lambda name: asked.append(name))
|
||||
_pin.assert_core_pin()
|
||||
|
||||
@@ -6,8 +6,9 @@ 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 all three
|
||||
packages, importable because this package pins the core exactly. What makes it
|
||||
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
|
||||
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.
|
||||
|
||||
@@ -38,8 +39,8 @@ def test_the_gate_is_importable_from_the_pinned_core():
|
||||
|
||||
|
||||
def test_the_gate_recognises_THIS_project_and_not_the_core():
|
||||
"""One gate, three projects: the identity comes from our pyproject. Reading
|
||||
the core's would gate the wrong package and pass every time."""
|
||||
"""One gate, several 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)
|
||||
@@ -61,7 +62,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
|
||||
all three repos make the same claim.
|
||||
every repo that runs the hook makes the same claim.
|
||||
"""
|
||||
from invisible_core.testing import assert_pre_push_policy_is_wired
|
||||
|
||||
|
||||
@@ -83,11 +83,13 @@ def _clean_env(base=None):
|
||||
|
||||
|
||||
# ── venv mechanics, LOCAL ON PURPOSE ────────────────────────────────────────
|
||||
# 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.
|
||||
# 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.
|
||||
#
|
||||
# So `from invisible_core.testing import ...` here is a COLLECTION error -
|
||||
# ModuleNotFoundError, whole job red, nothing tested. It happened on every leg
|
||||
|
||||
@@ -126,11 +126,15 @@ 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 imports, while not
|
||||
invisible_core.seal - a module the profile manager also imported, 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 both consumers.
|
||||
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.
|
||||
"""
|
||||
entry = build_tree(tmp_path / "old2", version=OLD_VERSION, build_id=OLD_BUILD)
|
||||
with pytest.raises(EngineMismatch) as exc:
|
||||
@@ -139,7 +143,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 invisible-firefox users, who do not have that package.\n" + msg)
|
||||
"reaches anybody who installed invisible-core without this package.\n" + msg)
|
||||
assert "INVISIBLE_SEAL_FILE" in msg, msg
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,9 @@ 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 has no equivalent, which section 8
|
||||
of the spec records as an accepted asymmetry.
|
||||
`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.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -71,11 +71,13 @@ def _clean_env(base=None):
|
||||
|
||||
|
||||
# ── venv mechanics, LOCAL ON PURPOSE ────────────────────────────────────────
|
||||
# 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.
|
||||
# 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.
|
||||
#
|
||||
# So `from invisible_core.testing import ...` here is a COLLECTION error -
|
||||
# ModuleNotFoundError, whole job red, nothing tested. It happened on every leg
|
||||
|
||||
Reference in new issue
Block a user