Compare commits

...
24 Commits
Author SHA1 Message Date
Federico 57f50f8b80 Le due voci piu' vecchie del changelog puntavano a tag mai esistiti (#86)
[0.1.1] e [0.1.0] rimandavano a compare/v0.1.0...v0.1.1 e releases/tag/v0.1.0.
Nessuno dei due tag esiste: 0.1.0 e 0.1.1 precedono l'arrivo su PyPI, dove
l'indice parte da 0.3.5, e il riempimento dei tag mancanti fatto a suo tempo era
guidato dall'indice, quindi non poteva raggiungerle. Due 404 in fondo a un file
che i lettori aprono per capire cosa e' cambiato.

La prova di dove vivevano c'era: git log -S sul pyproject da 7a983e9 per 0.1.0
("feat: initial public release") e 589c848 per 0.1.1.

Avrei potuto creare i tag, e NON l'ho fatto per un rischio concreto. publish.yml
si innesca sui tag v*, e per una versione che l'indice non serve
already-published non corto-circuita: un tag nuovo su 0.1.0 puo' far partire un
tentativo di pubblicarla. Un link rotto in un changelog storico non vale quel
rischio.

I due link puntano ai commit, che sono la stessa informazione senza inneschi, e
la ragione e' scritta nel file accanto perche' il prossimo che li vede diversi
dagli altri non li "sistemi" trasformandoli in tag.

Verificati entrambi: 200.
2026-08-18 20:57:30 +02:00
Federico 932d8b33b0 Remove ScrapeOrbit from the repo (#84)
The landing page, its stylesheet, its script and the company list it
fell back on, plus the two banner images. Nothing else referenced any
of them.

docs/index.md loses its permalink override and becomes the site home
again: index.html was the root, and without it the root would 404
while every other page kept working. Nothing linked to the old
/overview.html path - the declaration was its only occurrence.
2026-08-18 16:16:52 +02:00
Federico 65b72741a9 Drop the ScrapeOrbit banner from the README (#83)
The empty h2 under it goes too: it was the divider for the promo block,
not for the content, and on its own it renders as a rule above nothing.
2026-08-18 15:30:36 +02:00
Federico 835d6d2904 Il controllo sul registro andava rosso su un rilascio riuscito (#82)
Quarta occorrenza della stessa forma trovata stanotte, e questa non l'ho cercata
io: e' uscita da un audit che ha letto 363 controlli chiedendo a ognuno se puo'
essere verde mentre un rilascio e' a meta'.

Il sotto-controllo sul registro dentro test_the_published_version_has_a_github_release
confronta PUBLISHED.json, letto dall'albero, con le versioni che l'indice serve.
Ma il registro non puo' arrivare su main insieme alla pubblicazione: publish.yml
pubblica su PyPI e poi prova a spingere PUBLISHED.json, main e' protetto e la
spinta diretta viene rifiutata sempre per costruzione, quindi la voce finisce su
un ramo ledger/<versione> la cui PR resta bloccata da sola per il difetto B136
gia' aperto. Fra la pubblicazione e il merge a mano l'indice ha la versione e il
registro no, e il caso e' rosso su un rilascio andato a buon fine.

Nello stesso file, poche righe sotto, c'era gia' l'esenzione scritta un'ora prima
per il gate del changelog: la stessa cura, sul controllo accanto, mai applicata.

Esente e' solo la versione che l'albero DICHIARA nel suo pyproject, e il buco si
richiude da solo: se quel ramo del registro non viene mai unito, al rilascio dopo
la versione rimasta indietro non e' piu' quella dichiarata, ricade in unrecorded
e il caso torna rosso. E' lo stesso modello che il commento accanto descrive gia'
per version_gate, dove una pubblicazione fuori dal cancello resta invisibile fino
al rilascio successivo che la rifiuta.

Provato con l'input noto-cattivo: tolta 0.7.0 dal registro, il caso diventa
rosso; rimessa, torna verde.
2026-08-18 13:46:07 +02:00
github-actions[bot]andfeder-cr 35688cab0f record 0.7.2 as published (#81)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-18 11:33:37 +02:00
Federico 2073975413 0.7.2: il pin sale a invisible-core 20.15.0, e il badge dei lanci se ne va (#80)
* 0.7.2: il pin sale a invisible-core 20.15.0, e il badge dei lanci se ne va

Il pin porta agli utenti la correzione del core: un endpoint http:// o https://
passato a build_launch_plan non produceva NESSUNA pref di proxy, e il browser
usciva dall'indirizzo della macchina mentre il livello geografico aveva gia'
risolto fuso, lingua ed egress attraverso il proxy.

Questo wrapper non e' mai stato toccato e chi lo usa non deve fare niente:
consegna l'endpoint a Playwright, ed e' stato misurato - lo stesso IP di uscita
di curl attraverso lo stesso proxy, in http e in socks5. Il pin sale perche' un
consumatore che pinna in modo esatto non puo' restare indietro sull'unica
versione del core che quel difetto non ce l'ha.

Il badge `browser launches` esce dalla README. Il contatore dietro non era un
numero che calcolavamo: era un asset di release ospitato su un repository
cancellato il 2026-08-18, quindi la serie e' ferma sull'ultimo valore vero e il
renderer avrebbe ridisegnato quel numero ogni mattina. Un dato congelato
presentato come corrente e' peggio di nessun dato. La storia non e' toccata e
l'SVG sul ramo badges resta, perche' le pagine PyPI gia' pubblicate lo servono.

Nota sul gate del changelog: fra questo commit e la pubblicazione risulta rosso
con "documented and never published", perche' e' simmetrico e rifiuta anche il
caso opposto. Torna verde quando 0.7.2 e' sull'indice. Non e' stato aggirato.

* Due test dell'aggiornamento erano rossi per costruzione durante ogni rilascio

test_a_hand_pinned_old_core_is_reported_by_pip_check installa il wrapper
DALL'INDICE e poi prendeva cores[-2], la penultima versione del core pubblicata,
dandola per scontata come "piu' vecchia di quella che pinniamo". Quella
assunzione vale solo se la piu' recente sull'indice e' quella che il wrapper
pubblicato pinna, e cade per tutta la durata di un rilascio fatto nell'ordine che
il progetto impone: il core si pubblica PRIMA del consumatore.

Misurato oggi. Pubblicato invisible-core 20.15.0, sull'indice il wrapper era
ancora 0.7.1 che pinna 20.14.0, quindi cores[-2] era proprio 20.14.0: il caso
installava la versione GIUSTA chiamandola sbagliata, pip check rispondeva pulito
perche' l'ambiente era corretto, e il test leggeva quel pulito come una cecita'
del pin. Rosso su un prodotto sano. Il secondo caso, che riusa la stessa fixture,
cadeva di conseguenza: nessuna riparazione da fare, quindi "il core e' ancora
20.14.0".

Corretto all'origine: la versione sbagliata non si sceglie piu' dalla POSIZIONE
sull'indice ma da cio' che il wrapper installato PRETENDE, letto dal suo
Requires-Dist, che e' la sola fonte che non dipende da quante versioni ci siano
ne' dal loro ordine.

Dentro la finestra di rilascio la versione diversa dal pin risulta piu' NUOVA
invece che piu' vecchia. Il meccanismo sotto esame e' il rilevamento di un
DISACCORDO, e un disaccordo verso l'alto e' un disaccordo uguale; il nome del
caso resta com'e' perche' i documenti lo citano e un gate lo verifica.

* Il gate del wheel chiedeva dei file spariti sei settimane fa, e non girava mai

test_built_wheel_has_no_duplicate_entries asseriva che nel wheel ci fossero dei
.json, col commento "the Bayesian data files must still be packaged". E' falso
dal 2026-07-03: il commit 76e41e2, quello che ha creato invisible_core, ha
portato quei dati nel core, e questo pacchetto non ne ha piu' nessuno.

Ha continuato a chiedere una cosa inesistente per sei settimane senza che niente
lo segnalasse, e la ragione e' che il caso e' marcato slow: la selezione di
default lo deseleziona, quindi in CI non ha MAI girato. E' saltato fuori solo
perche' oggi ho lanciato la suite con -m "not e2e", che gli slow li include. Un
gate che non gira e' indistinguibile da uno che passa.

La regressione per cui il caso era stato scritto resta e non e' stata toccata:
un vecchio force-include in pyproject.toml scriveva ogni JSON due volte nello
zip, e PyPI rifiuta un wheel con nomi duplicati. Cambia solo il controllo di
sanita' accanto, che ora chiede cio' che deve valere per QUESTO pacchetto: che
il modulo sia dentro il wheel. E' la stessa classe di guasto - packages che
smette di puntare al sorgente - verificata su una cosa che esiste.

Provato con l'input noto-cattivo: con packages = ["src"] il caso diventa rosso.

* Il gate del changelog rendeva impossibile una PR di rilascio verde

Il gate rifiuta una versione documentata che l'indice non serve, e ha ragione:
esiste perche' un changelog che si ferma a quattro rilasci fa e' peggio di
nessun changelog. Ma la voce di una versione deve stare nel commit che alza la
versione, e in quel momento l'indice non la serve ancora. Quindi ogni PR di
rilascio nasceva rossa, e nessuna sequenza di passi poteva evitarlo: pubblicare
prima di mergiare significherebbe pubblicare da un ramo non mergiato.

Misurato oggi sulla PR #80, dove dopo aver corretto gli altri due difetti questo
era l'UNICO rosso rimasto, su 141 test passati.

La via comoda era togliere la voce dal commit e aggiungerla dopo. Sarebbe stato
curare il sintomo ricreando esattamente il buco che questo gate esiste per
impedire: 0.7.1 e' rimasta senza voce per un giorno intero proprio cosi'.

Corretto all'origine: la versione che l'albero DICHIARA nel suo pyproject e' il
rilascio in corso, non un'invenzione. Ogni altra versione documentata e mai
pubblicata resta un errore, le date restano confrontate con l'upload, e quando
il rilascio atterra quella riga torna sotto la regola generale come le altre.

Provato con due input noto-cattivi, perche' un'esenzione e' il punto in cui un
gate diventa cieco senza dirlo:
  una versione inventata diversa da quella in volo  -> rosso
  una versione pubblicata senza voce                -> rosso
2026-08-18 10:43:27 +02:00
Federico d5d92e8689 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.
2026-08-18 02:52:21 +02:00
github-actions[bot]andfeder-cr 25d7b73659 record 0.7.1 as published (#78)
Co-authored-by: feder-cr <85809106+feder-cr@users.noreply.github.com>
2026-08-17 22:12:22 +02:00
Federico 353df4faac 0.7.1: the two gates that approved without looking (#77)
Il font gate confrontava le famiglie contro una lista che era rimasta a 68 mentre
il manifest ne dichiara 71, e la deriva non produceva un rosso: produceva un
verde. La sonda interroga la lista e nient'altro, quindi una famiglia tolta smette
anche di essere cercata, il conto torna da solo e il gate approva restando cieco.
Misurato sul binario vero. Ora un test confronta quella lista con cio' che il core
dichiara, e quel test prima esisteva solo nei documenti.

E il test su enumerateDevices ha due limiti invece di uno, perche' con una soglia
sola una risoluzione soltanto lenta veniva riportata come blocco: il verdetto del
prodotto scritto sopra quello della macchina. Il muro del blocco resta assoluto
perche' un blocco e' infinito; la lentezza si misura contro la macchina.

Il pin punta al core di firefox-20, gia' sull'indice.
2026-08-17 21:59:40 +02:00
Federico d599a95a92 firefox-20: the font gate stops approving while blind, and the media test tells slow from hung (#76)
* Forget the remembered chrome window geometry before a persistent relaunch

Relaunching a persistent profile on Windows succeeded 2 times out of 8. The cause
is in juggler: awaitViewportDimensions resolves only when innerWidth and
innerHeight equal the requested values exactly, it has no timeout, and it re-runs
its check only from a resize or navigationcommitted event. On a relaunch Firefox
restores the chrome window from the profile's xulstore.json, so the corrective
resizeBy computes a null delta, no resize is emitted, and the check is never
re-evaluated. The first launch never hits it because the window starts at the
default size, far from the target.

Confirmed with one difference on the same binary and profile: keeping the
geometry gave 3/6, deleting it 6/6, and successful relaunches went from 20-155s
to 7-10s. After the fix the gate reports 6/6 at about 7s each.

Only the five geometry keys are removed, not the file: the rest of xulstore is UI
state unrelated to this defect.

This acts on the trigger, not on the origin, and says so: the origin is the
unbounded wait, which lives in engine code re-synced from upstream at every
rebase.

Two comments corrected because they asserted things the code does not do. The
first claimed Playwright writes user.js on every launch, which is false on the
Juggler path - writePreferences lives in server/bidi/ and the base
prepareUserDataDir is empty - and that false belief is what made the
first-launch/second-launch asymmetry look impossible. The second named
INVPW_BINARY_PATH in resolve_executable, which never reads it.

Not a fingerprint change, and measured rather than argued: on a reused profile a
page sees inner=[1920,947] outer=[1920,1032] and outer-inner=[0,85], identical to
the first launch and to the declared model.

* Withdraw the cause I wrote for the persistent-relaunch hang: it is false

A dump() probe inside awaitViewportDimensions, with the remedy disabled at
runtime so the defect would reappear: over 8 relaunches the 6 that worked ran
that check twice and matched exactly on the first try every time, and the 2 that
hung never reached it. So that wait never mismatches, and the stall happens
before a target exists.

What stays measured is the correlation: 12 relaunches out of 12 with the geometry
keys removed against 5 out of 14 with them kept. But a real effect does not prove
a mechanism - deleting a file also changes timing, and on a startup race a timing
perturbation improves things for the wrong reason.

So this call is a declared patch, and worse than the patch it was first written
as: then the cause seemed known and the refactor deferred; now the cause is
unknown and this removes a trigger without explaining it.

* Remove the geometry remedy: the origin was found and it lives in the core now

The cause of the persistent-relaunch hang turned out to be Windows occlusion
tracking declaring our chrome window occluded and never revoking it, and the fix
is a pref invisible_core now applies to every session. So this file goes back to
having no remedy of its own: the function, its constant, the call and its five
tests are gone.

Measured before removing them: with the pref and this code deleted, and the
persisted window geometry deliberately KEPT, 10 relaunches out of 10 succeed at
about 7 seconds each. Keeping both would leave two places knowing the same fact,
which is what rule 16 forbids.

And the note in _session.py that presented INVPW_TRUE_HEADLESS as the escape
hatch for this hang now carries the mechanism instead of the symptom: true
headless was reliable because there is no window to occlude. It stays as a
deliberate choice of a different rendering path, not as a workaround.

Full account, including the two causes I wrote before this one and how each was
falsified: 71-bug-archive.md [B150].

* The e2e strips INVISIBLE_CORE_PIN, because one of its tests asserts what that variable disables

Setting it is the normal way to drive a locally built engine, so it is usually already
exported in the shell that starts a run, and the venv subprocess that the upgrade test
spawns inherits it. That test deliberately breaks an environment and requires importing
the wrapper to repair 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.

Measured: one failed and a hundred forty three passed in fourteen minutes, and the same
file re-run with the variable unset gave four passed in two minutes. Refusing up front
costs a second, and discovering it costs the whole run plus the time spent believing the
product was broken.

It is stripped rather than merely warned about, because a warning at the top of a
fourteen minute run has scrolled away long before the failure appears. The line that says
it was stripped prints only when it was actually set.

* La lista delle famiglie nel font gate era rimasta a 68, e la deriva dava verde

Il manifest e' passato a 71 famiglie il 16 agosto, aggiungendo le due Segoe di
icone e Twemoji Mozilla. La lista dentro scripts/ci_font_gate.py e' rimasta a
68, quindi il gate non cercava piu' tre famiglie che spediamo.

La parte che conta non e' la deriva, e' cosa produce. Misurato sul binario vero:
la sonda interroga EXPECTED piu' i nomi dell'host e nient'altro, quindi una
famiglia tolta dalla lista smette anche di essere CERCATA. Con le tre mancanti
il gate stampa "detected 68 families (expected 68)" e FONT GATE OK, uscita 0, su
una build che ne espone 71. Un gate d'accordo con se' stesso non vede la propria
deriva, e nessuna mutazione del gate l'avrebbe scoperta.

La lista resta un letterale, e non per pigrizia: il job di release.yml che
esegue questo gate fa il checkout di questo repo ma installa soltanto playwright,
quindi importare invisible_core li' uccide ogni rilascio. La derivazione e'
stata scritta e provata, funziona in locale, ed e' stata ritirata per quello. E
anche se un giorno quel job installasse il core, quando la pipeline gira il core
pubblicato e' ancora quello del rilascio precedente: si misurerebbe il binario
nuovo contro la dichiarazione vecchia.

Quindi cio' che tiene onesto il letterale e' un test, non l'attenzione di chi lo
edita, e quel test non esisteva. Era documentato come esistente, con nome e file,
e nell'albero non c'era: e' esattamente per questo che la lista ha potuto restare
indietro per un giorno. Ora c'e', e la sua mutazione e' stata eseguita: tolto un
nome diventa rosso, rimesso torna verde.

Verificato sul binario locale: 71 famiglie rilevate su 71 attese, zero fughe
dall'host, i generici mappano su font Windows.

* Il test riportava un blocco dove c'era solo una macchina carica

Con una soglia sola, una risoluzione lenta di enumerateDevices veniva riportata
come MAI RISOLTA: scriveva il verdetto del prodotto sopra quello della macchina.
Adesso i limiti sono due e i messaggi distinti.

Il muro del blocco resta assoluto a 120 secondi, perche' un blocco e' infinito e
non deve scalare con niente: sono 83 volte la mediana e 24 volte il peggior tempo
mai osservato quando la chiamata funziona. La lentezza invece si misura contro la
macchina: la pagina cronometra ventimila microtask e il limite e' un multiplo di
quel tempo, con un pavimento e un tetto sotto il muro.

Due difetti della prima stesura di questo rimedio, colti misurando e non
rileggendo. Il riferimento contava cinquanta giri di setTimeout e a macchina
scarica dava 2624 ms, cioe' cinquantadue per giro: non era carico, era il clamp
dei timer, che Firefox applica comunque. Un riferimento va scelto per cio' che
misura, e un timer clampato misura il clamp. E da quel numero il limite di
lentezza usciva sopra il muro del blocco, quindi la prima asserzione scattava
sempre prima e la seconda era irraggiungibile: un'asserzione morta che sembrava
una protezione. Da li' il tetto.

Entrambi gli input noto-cattivi eseguiti: muro a un millisecondo fa scattare il
messaggio del blocco, pavimento e multiplo a uno quello della lentezza.

* Il messaggio del gate andava in errore proprio quando serviva

Il messaggio dell'asserzione usava un % dopo una concatenazione con +, quindi
quel % si legava solo all'ultimo gruppo di letterali adiacenti, che non ha
segnaposti, e alzava TypeError. Un messaggio di asserzione viene valutato solo
quando l'asserzione fallisce, percio' il difetto si manifestava esattamente
nell'istante in cui serviva la spiegazione: in CI e' comparso un TypeError al
posto della differenza fra le due liste.

Ora i valori si concatenano gia' resi con repr, che non ha questo modo di
sbagliare, e il messaggio dice anche cosa guardare se scatta durante un
rilascio: 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.

Cercato lo stesso schema negli altri quattro file di test toccati oggi: nessuna
altra occorrenza.

* Il pin punta al core di firefox-20

invisible_core 20.14.0 e' sull'indice, quindi la condizione che il workflow di
pubblicazione pretende e' soddisfatta: il pin esatto risponde 200 prima che il
rilascio parta.

Il numero non e' scritto a mano da nessuna parte. La versione del core e'
derivata dal suo sigillo, e sync_core_pin la legge da li' e la porta qui, cosi'
non esiste un punto in cui qualcuno possa dimenticarsi di alzarla.
2026-08-17 21:38:47 +02:00
Federico b16b9c9438 Ask for a Telegram handle instead of an email in the scrape panel (#75) 2026-08-17 05:13:29 +02:00
Federico 5aa8c68b4e Refine the scrape panel: higher contrast, clearer fields, a gradient CTA (#74) 2026-08-17 03:00:00 +02:00
Federico 049476ad43 Drop the empty-state search hint under the search bar (#73) 2026-08-17 02:45:14 +02:00
Federico 9e650968f6 Replace the scrape chat with a single smart instruction panel (#72) 2026-08-17 02:34:53 +02:00
Federico f3814b6bb1 Replace the Telegram handoff with an in-page scrape chat (#71) 2026-08-17 02:15:34 +02:00
Federico 0dd6dd2a38 Rework the demo: click dissolves the scene into the scraped products.json (#70) 2026-08-17 01:45:14 +02:00
Federico 429798f70e Smooth the ScrapeOrbit demo to 25fps for less mechanical motion (#69) 2026-08-16 23:04:33 +02:00
Federico d486660604 Trim the ScrapeOrbit banner to the demo and one call to action (#68) 2026-08-16 22:01:21 +02:00
Federico b9f35c0bcb Animate the ScrapeOrbit banner and switch on global company search (#67)
Swap the static banner for a short looping demo (type a company, get the
real result with its logo, hit Scrape) and add a badge row under it. Set
the Brandfetch client id so the search covers every company, not only the
bundled index.
2026-08-16 21:20:14 +02:00
Federico 5fef7cc316 Add ScrapeOrbit landing page and point the README banner to it (#66)
New static page under docs/ served at the site root: a company search with logos and a scrape button that opens a direct chat. The top of the README now shows the ScrapeOrbit banner linking to it, in place of the group link.
2026-08-16 19:44:25 +02:00
Federico 7278427aa8 I test dell'installazione ereditavano l'ambiente di chi li lanciava (#65)
env=None in subprocess.run non vuol dire ambiente vuoto: vuol dire eredita.
Quindi PYTHONPATH e INVISIBLE_SEAL_FILE entravano nei venv che questi test
costruiscono, e il venv importava il core del banco invece di quello installato
o cercava un sigillo locale. Sedici rossi in un giorno, nessuno del prodotto.

Il verso pericoloso e' l'altro e resta il motivo per cui vale la pena: questi
due file sono l'unica cosa che verifica cosa riceve un utente, e un verde che
arriva da un ambiente che nessun utente ha non dimostra niente.

Adesso il default e' l'ambiente ripulito, e il messaggio di errore dice cosa ha
tolto: una variabile rimossa in silenzio e' lo stesso difetto di una ereditata
in silenzio, col segno cambiato. Ripulite anche le due subprocess.run dirette,
cosi' non resta un'eccezione da ricordare.

La duplicazione fra i due file resta, ed e' voluta: un modulo condiviso qui
sarebbe un errore di raccolta sul runner, che ha solo pytest. A tenere allineate
le due copie c'e' un test che le confronta fra loro, insieme al controllo che
riproduce il mondo di prima - con env=None la variabile deve passare, altrimenti
a essere rotto e' il banco e non il rimedio.
2026-08-14 11:25:48 +02:00
Federico f777798a7c Il ripiego del ledger non ha mai girato, e i tag non avevano release page (#64)
Due difetti nello stesso job, tutti e due misurati oggi.

Il primo: quando la protezione rifiuta il push su main, il passo dovrebbe
mettere la voce su un ramo e aprire una PR. Non e' mai successo. Da HEAD
staccato, `HEAD:ledger/1.2.3` non e' risolvibile - il ramo non esiste ancora e
la sorgente e' un commit, quindi git non sa se gli si chiede un ramo o un tag e
rifiuta con "not a full refname". Sotto bash -e il passo muore li', quindi la PR
non veniva nemmeno tentata e nessuna delle due annotazioni veniva stampata. E'
per questo che non e' mai esistito un ramo ledger/* su nessuno dei tre, in
quattro corse rosse su release che erano invece andate a buon fine.

Il secondo: creare la PR richiede anche l'impostazione "Allow GitHub Actions to
create and approve pull requests", che e' spenta su tutti e tre. Il
pull-requests: write del job serve ma non basta. Quindi la PR ora e' best
effort: appena il ramo e' spinto la voce e' salva, e il run non diventa rosso
per una comodita' che un'impostazione puo' togliere. Rosso solo se la voce si
perde davvero, che e' quello che il commento diceva gia' e il codice no.

E la release page: dopo tre tag, quattro versioni su quattro non ce l'avevano, e
le ha trovate un gate DOPO la pubblicazione. Ora la crea il workflow dal tag,
con il corpo preso dal CHANGELOG dove c'e' e generato dove non c'e'. Idempotente:
un tag rispinto o una pagina fatta a mano sono un no-op, non un rosso.

Eseguiti tutti i rami di entrambi i passi contro un remoto che rifiuta il ramo
di default come fa la protezione: push accettato, rifiutato con PR creata,
rifiutato con PR vietata da 403, tutto rifiutato. Il codice vecchio, sullo stesso
banco, riproduce parola per parola l'errore del log di produzione.
2026-08-14 04:24:04 +02:00
Federico 63752e12ec Il badge delle stelle non lo ricalcolava nessuno dal 19 luglio (#63)
Era stato disegnato a mano quando ho tolto shields.io e da allora nessuno
script lo toccava piu': diceva 1.8k con 1886 stelle vere, cioe' mancavano
14 stelle perche' diventasse semplicemente falso sulla prima pagina.

Ora lo genera lo stesso renderer del badge dei lanci, dallo snapshot
giornaliero, e legge dal ramo badges come l'altro. Il ramo serve perche' main
richiede il check gate e un commit diretto dell'API viene rifiutato con 409.
2026-08-14 03:18:27 +02:00
Federico 88e955afe5 Il badge dei lanci si pubblicava su un branch protetto (#62)
Il README mostrava 1,64M mentre il numero vero e' 1,78M. Il badge viene
aggiornato ogni giorno da un'attivita' pianificata che usa l'API dei contenuti,
cioe' fa un commit diretto su main; da quando main richiede il contesto `gate`
con enforce_admins quella chiamata fallisce con

  HTTP 409 - Could not update file: Required status check "gate" is expected.

Il difetto era invisibile perche' la stessa attivita' salva anche il CSV dei
download, e quella parte continuava a funzionare: si vedeva solo come esito 1
nell'Utilita' di pianificazione, e come un badge fermo su un numero vecchio.

Un'automazione non puo' aprire una PR e aspettarne il merge, quindi il badge
adesso vive sul branch `badges`, che non e' protetto. Verificato end to end: la
pubblicazione riesce e l'attivita' esce 0.

Effetto collaterale desiderabile: main non riceve piu' un commit al giorno per un
file che nessuno legge nella storia.
2026-08-14 02:49:12 +02:00
30 changed files with 1175 additions and 162 deletions

No files matched your search

+2 -1
View File
@@ -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.
+94 -10
View File
@@ -183,25 +183,49 @@ 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 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.
# 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.
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:$BRANCH"; then
if git push origin "HEAD:refs/heads/$BRANCH"; then
echo "::notice::ledger entry for $VERSION committed to $BRANCH"
exit 0
fi
echo "the direct push was declined; falling back to a pull request"
echo "the direct push was declined; falling back to a branch and a pull request"
LEDGER_BRANCH="ledger/$VERSION"
git push -f origin "HEAD:$LEDGER_BRANCH"
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"
CODE=$(curl -s -o /tmp/pr.json -w '%{http_code}' -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
@@ -209,7 +233,67 @@ 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
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."
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."
exit 1
+6 -4
View File
@@ -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
+58 -2
View File
@@ -4,6 +4,55 @@ 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
@@ -352,8 +401,15 @@ 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
[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
> 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.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,6 +2177,286 @@
}
},
"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
+1 -12
View File
@@ -1,13 +1,3 @@
<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">
@@ -255,6 +245,5 @@ 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/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>
<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>
</p>
+7 -7
View File
@@ -1,16 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="79" height="20" role="img" aria-label="Stars: 1.8k">
<title>Stars: 1.8k</title>
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20" role="img" aria-label="Stars: 1.88k">
<title>Stars: 1.88k</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="79" height="20" rx="3" fill="#fff"/></clipPath>
<clipPath id="r"><rect width="80" height="20" rx="3" fill="#fff"/></clipPath>
<g clip-path="url(#r)">
<rect width="43" height="20" fill="#555"/>
<rect x="43" width="36" height="20" fill="#e8a317"/>
<rect width="79" height="20" fill="url(#s)"/>
<rect x="43" width="37" height="20" fill="#e8a317"/>
<rect width="80" 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.0" y="15" fill="#010101" fill-opacity=".3">1.8k</text>
<text x="61.0" y="14">1.8k</text>
<text x="61.5" y="15" fill="#010101" fill-opacity=".3">1.88k</text>
<text x="61.5" y="14">1.88k</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 847 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 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
+9 -5
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "invisible_playwright"
version = "0.7.0"
version = "0.7.2"
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
readme = "README.md"
requires-python = ">=3.11"
@@ -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.
#
@@ -49,7 +50,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==19.14.0",
"invisible_core==20.15.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
@@ -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
+44 -26
View File
@@ -32,35 +32,53 @@ 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. Keep this sorted and in sync with the bundle (browser/fonts/moz.build).
# 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.
EXPECTED = [
# 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",
"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",
"Segoe UI Emoji", "Segoe UI Historic", "Segoe UI Symbol", "SimSun",
"SimSun-ExtB", "Sitka Small", "Sylfaen", "Symbol", "Tahoma",
"Times New Roman", "Trebuchet MS", "Verdana", "Webdings", "Wingdings",
"Wingdings 2", "Wingdings 3", "Yu Gothic", "Yu Gothic UI",
"Times New Roman", "Trebuchet MS", "Twemoji Mozilla", "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
+27 -1
View File
@@ -42,7 +42,33 @@ def main() -> int:
print(f"ERROR: binary not found: {binary}", file=sys.stderr)
return 2
env = dict(os.environ)
# 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)
# One setting drives the whole suite: conftest's firefox_binary fixture and
# the webrtc e2e both resolve from these.
env["INVPW_BINARY_PATH"] = binary
+4 -2
View File
@@ -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.
+15 -2
View File
@@ -18,8 +18,21 @@ from invisible_core.seal import EngineMismatch, active_seal, verify_engine
def resolve_executable(binary_path: Optional[Union[str, Path]]) -> Path:
"""binary_path= and INVPW_BINARY_PATH skip the download path entirely, so
the guard sits on the resolved executable, not inside the fetcher."""
"""``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.
"""
seal = active_seal()
if binary_path:
return verify_engine(Path(binary_path), seal, source=f"binary_path={binary_path}")
+8 -6
View File
@@ -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
+5 -3
View File
@@ -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
+24 -5
View File
@@ -36,11 +36,30 @@ from ._cursor import (
__all__ = ["build_prefs", "true_headless_requested", "TRUE_HEADLESS_ENV"]
#: 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.
#: 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].
TRUE_HEADLESS_ENV = "INVPW_TRUE_HEADLESS"
+7 -3
View File
@@ -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.
+29 -5
View File
@@ -1,6 +1,7 @@
"""Sync Playwright launcher for invisible_playwright."""
from __future__ import annotations
import json
import secrets
from pathlib import Path
import time as _time
@@ -29,7 +30,6 @@ 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,10 +247,34 @@ 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. 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).
# 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.
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),
+18 -3
View File
@@ -37,6 +37,21 @@ 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}"
# 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"
# ⛔ 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")
+62
View File
@@ -79,3 +79,65 @@ 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.")
+6 -3
View File
@@ -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.
+4 -1
View File
@@ -17,9 +17,12 @@ 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 = """() => {
+9 -5
View File
@@ -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()
+99 -26
View File
@@ -330,40 +330,113 @@ 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.
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.
⛔ 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.
"""
#: 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(
"""() => {
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)),
]);
}"""
"""(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,
)
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", (
"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."
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."
)
assert r["esito"] == "risolta", (
f"enumerateDevices ha rifiutato invece di risolvere: {r.get('err')!r}"
)
print(f"[media] enumerateDevices: {r['n']} dispositivi in {r['ms']}ms")
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."
)
+129
View File
@@ -0,0 +1,129 @@
"""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)
+6 -5
View File
@@ -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
+113 -11
View File
@@ -41,12 +41,55 @@ 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 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
@@ -55,14 +98,25 @@ import pytest
# 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:]))
r.stdout[-3000:], r.stderr[-3000:], nota))
return r
@@ -98,10 +152,13 @@ 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)
capture_output=True, text=True, timeout=60, env=_clean_env()[0])
assert out.returncode == 0, (
"could not read FIREFOX_UPSTREAM_VERSION from the installed package: "
+ (out.stdout or "") + " " + (out.stderr or ""))
@@ -309,8 +366,13 @@ 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)
capture_output=True, text=True, timeout=30,
env=_clean_env()[0])
text = (r.stdout + r.stderr).lower()
upstream = _upstream_version(clean_venv)
assert "firefox" in text and upstream in text, (
@@ -482,7 +544,30 @@ 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"]}
unrecorded = [v for v in live if recorded and v not in recorded]
# ⛔ 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]
thin = {v: [k for k in ("published_at", "requires_dist", "wheel_filename",
"sdist_filename", "wheel", "sdist")
if k not in recorded[v]]
@@ -578,9 +663,26 @@ 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)), key=key)
if key(v) > key(first_published) and v != in_volo), key=key)
misdated = sorted((v, documented[v], published[v]) for v in
set(documented) & set(published) if documented[v] != published[v])
+7 -3
View File
@@ -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
+3 -2
View File
@@ -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
+98 -8
View File
@@ -26,6 +26,7 @@ Marked `e2e`: builds venvs and talks to the index.
from __future__ import annotations
import json
import re
import shutil
import sys
import tempfile
@@ -37,12 +38,47 @@ 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 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
@@ -51,14 +87,24 @@ import pytest
# 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:]))
r.stdout[-3000:], r.stderr[-3000:], nota))
return r
@@ -114,6 +160,26 @@ 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."""
@@ -222,7 +288,31 @@ 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")
older = cores[-2]
# ⛔ 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")
_run([str(py), "-m", "pip", "install", "--no-cache-dir", "--no-deps",
"--force-reinstall", f"{CORE}=={older}"], timeout=600)