Compare commits

...
Author SHA1 Message Date
feder-cr 62d623a816 udp: a command that waits answers from a thread of its own, so four proxied contexts leave the transport workers free 2026-12-01 07:45:59 +01:00
feder-cr e1ef053355 udp: a context proxy being measured holds up no other command of the served browser 2026-12-01 07:15:00 +01:00
feder-cr 2ea8c602e5 udp: one exit cache per served browser, as the core's browser keeps one 2026-12-01 07:13:06 +01:00
feder-cr 3ebc864346 tests: an e2e test fails when its browser writes the expired popupshown wait
A tee in front of the core's reader of the browser output matches the engine's warning line; the conftest installs it for every e2e test and the teardown fails naming the line. The unit rows go up by the five tests of the new file.
2026-12-01 06:09:59 +01:00
feder-cr e5798ba80c tests: a press and a release at once on a select reach the page as retail does, and the contextmenu of a right click follows its release
The select case is the second press of the retail double click with nothing between the press and the release; the suite minimum of the two rows that hold the file goes up by the three scales.
2026-12-01 06:09:46 +01:00
feder-cr f0a2a8d304 popups: a popup the engine did not pin is told no viewport, and the hand reads its window when it plans
page.viewport_size of a popup under the declared default is None, as for a
page whose viewport is not emulated. The size the hand plans inside is read
from the window at the time of use, since a popup can still change size after
its first script. A size the client sets on the popup pins it again.
2026-12-01 06:09:33 +01:00
feder-cr 7cc5a4494a popups: a popup that names no size is left to its own window under the declared viewport, and pinned to one the user chose
The session marks the viewport of its defaults as the core's; a viewport the
user passes replaces it. The server sends the mark to the engine as
isDeclaredDefault of Browser.setDefaultViewport and never to the client. A popup
the engine did not pin tells the client the size its window has.

Tests: unit for the mark, the engine command and the size a popup is told; an
e2e case for a popup with no size under a user viewport. Both are in the suite
rows.
2026-12-01 06:09:33 +01:00
feder-cr 6b5f5c78a0 tests: the webgl ranges are checked as Float32Array of the page's own realm, with DEPTH_RANGE as the control 2026-12-01 06:09:33 +01:00
feder-cr 9437e06399 persona cover: the screen size test reads the formula from the core's screen profile, not from a copy of the taskbar 2026-12-01 05:22:07 +01:00
feder-cr 2d0620e33e persona cover: the screen size in device pixels is derived from the screen dimension
zoom.stealth.screen.device_width and device_height are the panel's work area plus the taskbar
(the core declares the screen as the whole panel and the work area as the screen minus the
taskbar). They were left unclassified, so every recompute of the cover stopped. A test checks
the formula over many seeds and scales.
2026-12-01 05:20:52 +01:00
feder-cr 6aebe0eb15 ci: the crash-record parser of the known-defects judge says it moves to the core, and the list says it is read from main once main holds it
The parser lives in one place next to the core's matcher after S1, fetched by sha, so the series and the wrapper share it. The list of the wrapper under test is read only until the wrapper's main holds the first row; then it comes from main, so a branch cannot excuse its own crash.
2026-12-01 02:45:08 +01:00
feder-cr 039c2e8bdc ci: the wrapper's list of known Mozilla defects holds D31, the FSBroker crash at the exit of a -backgroundtask process of Firefox 159
ci/mozilla-defects.json has the one row seen in run 46539190316 (process
backgroundtask, phase exit, thread FSBroker, the MOZ_CRASH reason, no frames:
the top frames are libc's and an unsymbolized libxul address, which depend on
the runner), for Firefox 159.0 to 159.*. The core's matcher accepts the file
for 159.0 and 159.0.1 and refuses it for 160.0. Four cases check that and that
the A/A judges the core of the real run with this list; the unit suites count
them (4443 on Linux, 4455 on Windows).
2026-12-01 02:36:33 +01:00
feder-cr c4d5ffe903 ci: the cores a browser leaves are judged against the known Mozilla defects with the core's matcher; the A/A reports a matched crash by its D<n> and is not red
scripts/ci_crash_evidence.py: every core the probe finds becomes a crash record
(process from the `Core was generated by` line, with the cut-line rule; thread
from gdb's header or %e of the core's name without its instance number; frames
of the crashing thread; the MOZ_CRASH reason; phase exit or run from the moment
the launch began to close the browser, recorded in the launch entry before the
original close runs). exit_problems judges the cores of a launch whose parent
ended with 0 with the core's main matcher (MOZILLA_DEFECTS_CHECKER, else
fetched once from main by sha) and the wrapper's ci/mozilla-defects.json for the
Version= of the application.ini beside the binary. The judge is closed: no
matcher, no API, no list or no version keeps every core red and says why. A
launch whose parent did not end with 0, a minidump, a core with no record and a
caller that does not say whether its measurements are complete (None) stay red
exactly as before.

scripts/ci_ab_oracle.py: only the A/A control (the two dumps of the published
engine) judges; its measurements are complete when the dump ended with 0 and
every asked visit has its result and no tab died (visits_complete). A matched
crash is a note, printed and kept in diff-a-a.json.

Tests: test_known_mozilla_defects_in_crash_evidence.py (64 cases, the real gdb
text of the FSBroker core and a copy of the matcher with its sha256); both
unit suites count them (4439 on Linux, 4451 on Windows).
2026-12-01 02:35:59 +01:00
feder-cr 73add864d3 tests: a popup with a position and no size opens normal at the stored size, at the retail position, at the four scales
window.open with left=100,top=100 and with left=5000,top=5000 from a maximized
main window whose state is stored: the popup reads the retail inner and outer
sizes and screenX, screenY (Firefox 159 on Windows, measured), in its first
script and at load. The two suite rows holding the file count eight tests more.
2026-12-01 02:04:38 +01:00
feder-cr 49838e1df3 tests: a popup of a maximized main window reads the retail inner, outer and visual viewport sizes for six feature strings at the four scales 2026-12-01 00:55:58 +01:00
feder-cr 66530eadba tests: a stencil mask wider than the stencil bits reads back whole, the four masks after each write on a fresh WebGL1 context 2026-11-30 23:50:35 +01:00
feder-cr 49f9ac900c tests: a press or a wheel with a popup open follows the platform's rollup, no popup outlives its page, the WebGL ranges are Float32Array
A real press, release, double click, right press, wheel turn or item press while a select dropdown, a datalist list or the page context menu is open reaches the page as retail Firefox 159 on Windows measured it, at the scales 1, 1.25 and 1.5, in the top document and in a frame of another site. Closing a page with a dropdown, a context menu or a datalist list open leaves no popup open and no browser element with pointer-events changed. The declared aliased line width and point size ranges are Float32Array of the page. The two new files are in the second whole-e2e rows of each system (447 on Linux, 318 on Windows).
2026-11-30 21:07:32 +01:00
Federico Elia a0d7c627a6 Merge pull request #633 from oss-invisible/ledger/0.61.0
record 0.61.0 as published
2026-11-30 16:52:48 +01:00
feder-cr 704fd5f98c record 0.61.0 as published 2026-11-30 12:28:40 +00:00
Federico Elia 262937350f Merge pull request #632 from oss-invisible/release/0.61.0-firefox-71
release 0.61.0: engine firefox-71, core 71.85.0
2026-11-30 10:01:32 +01:00
feder-cr 50cda456cb release 0.61.0: pins invisible-core 71.85.0 (engine firefox-71), the core release whose proof reads main's retired tests; persona seeds and the gate lock for that core 2026-11-30 02:39:56 +01:00
feder-cr ce913bbf4b release 0.61.0: pins invisible-core 71.84.0 (engine firefox-71); persona seeds and the gate lock for that core 2026-11-30 00:40:08 +01:00
feder-cr a6fe4ea53b release 0.61.0: version and changelog (engine firefox-71, core 71.84.0) 2026-11-29 22:29:07 +01:00
feder-cr 34f02cdcdc ci: the unit suites count the five cases of the drag twin's frame rule (4375 on Linux, 4387 on Windows) 2026-11-29 22:02:46 +01:00
feder-cr a3ff6087f1 tests: the move with a button down starts outside the context menu that the right click left open
Juggler closes a menu on a press only, as the platform does, so the context menu of "frame right click" is still open at the next action. Its first move, to (300, 200), lay over the menu and the page never saw it, on retail or on ours. The points of "move with button down" are now left of and above the right click's point, inside the iframe and on its button; the press of the action closes the menu. The expected event list is unchanged.
2026-11-29 19:59:52 +01:00
feder-cr d7b0cb8638 tests: the dropdown test waits for the trusted mouseup and click that the page gets after a release the parent handled alone
A release that the parent handles in chrome (the select dropdown is open) is answered without the content ack. On retail the page then gets a trusted mouseup and click on the select, dispatched by SelectChild after the parent's Forms:MouseUp, asynchronously. The pages of the stays-open test record both on the select, and the test waits for them in the page's own log with the deadline of the file (never assuming they arrived when the call returned), in the top document and in the frame of another site. What the tests already assert is unchanged. The negative control (popup hidden between the press and the release) does not wait for them.
2026-11-29 19:59:52 +01:00
feder-cr 66a682cfe6 tests: the back-forward cache bench leaves the page when the frame's report request is over, not when the server has recorded it
The frame page /shown sent its pageshow report with a fetch, and the test left the top as soon as the server had recorded the report. The response was still on its way, the fetch was still in the frame's load group, and Firefox refuses the back-forward cache for a page left with a request in flight (BFCacheStatus::REQUEST, CanonicalBrowsingContext::AllowedInBFCache): both reports came with persisted=false. Stock Firefox does the same, and the product never promised the cache for a page left like that.

The page keeps the request in window.__sent; the test waits in the frame until it settles (the request is over, so the frame's load group is empty), then leaves. The sequence is a helper with the condition to leave on ("finished" or "recorded"). The server fixture gets a knob that holds the first pageshow response for 2 s after recording it, and a new e2e runs the sequence with the knob on: the old sequence (leave on "recorded") with the knob is the red case, which runs on the candidate; the new one is green.

e2e rows: wrapper.e2e.suite.linux.2 419 to 420 and wrapper.e2e.suite.windows.3 276 to 277 (+1 each).
2026-11-29 19:59:23 +01:00
feder-cr 1717c2063c tests: the drag twin declares the top's leave into an in-process frame and the dropEffect of the frame drop
In the drop in a frame of another site, two fields of the top document depend on stock's frame
being in its own process model: the top's dragleave whose element under the cursor is the frame
(stock's event manager fires a leave at the body when the cursor enters the subdocument; retail
with the frame out of process and ours have none), and the dropEffect of the top dragend (the
frame's drop result, which crosses processes). Before the comparison they leave top.once for
top.into_frame and top.dragend_effect, both declared IN_PROCESS_FRAME, so the event lists line up
and the rest of the top is still compared. In the drop in the top document the record is compared
whole, dragend's effect included. split, compare, recorded and verdict take the kind of the drop.

The frame page of the twin was served raw with height:100%%, an invalid length, so body had height
0 and the twin read html where retail reads body; it is height:100% now.

The unit test of the twin gets the leave under the frame in its frame fixture, a case with stock
leave and copy against ours without it and move (green, recorded as declared), and the same
dragend effect difference in the top drop (red).
2026-11-29 19:56:25 +01:00
feder-cr 5ea88e57d5 tests: a select dropdown stays open after the release, and a context menu closes on the next press with no input call hanging
Menus are closed by the platform on a press outside them and on the wheel (nsWindow::DealWithPopups), not on a release or a move. Per place (select of the top document, select of a frame of another site): press, wait for the popup to be open, release, and the state read over the next second must be open at every look; a chrome hidePopup between the press and the release is the negative control and must read closed. The pages and reads are those of the select twin, imported.

One more e2e for the case an unguarded call in the input path was there for: a chrome context menu that captures the mouse. A right click opens the chrome context menu, then moves across the page, a left click elsewhere and a move again must each return (each duration is in the message of a failure), and the menu is closed after the press of that click.

Red on an engine whose input closes menus on a release or a move: the dropdown reads closed after the button went up. e2e rows: wrapper.e2e.suite.linux.2 414 to 419 and wrapper.e2e.suite.windows.2 286 to 291 (+5 each).
2026-11-29 16:47:15 +01:00
feder-cr b7ef739d56 tests: the intersection twin does not compare the box of a frame that is fully out of view with stock
In Mozilla's code a fission frame scrolled fully out of view reads an empty boundingClientRect: DOMIntersectionObserver.cpp 792-794 returns early when there is no in-process root frame, after the transform chain HitTestingTreeNode.cpp 298-328, BrowserChild.cpp 3751-3778 and UnitTransforms.h 343-351; Mozilla's own web-platform meta (cross-origin-iframe.sub.html.ini) marks that step FAIL under fission. Stock's frame is in-process, so it reads the rectangle. The declared list of the twin now has the box of the steps all above and all below (in-process frame in stock); the box of the steps where the frame is in view and every other field stay compared, and the retail capture decides the declared ones.

Red on the old list: the declared-list test and the two out-of-view tests fail with nothing declared. unit.all rows: +13 (Linux 4370, Windows 4382).
2026-11-29 16:39:04 +01:00
feder-cr 23548f5822 tests: the select twin records the window's activation and focus at the click
For each select the record now has, before the click and right after it: chrome Services.focus.activeWindow === win, win.document.hasFocus(), the browsing context's isActive (win.gBrowser.selectedBrowser.browsingContext.isActive), the top content document's hasFocus() and visibilityState, and the driver's ack of the click when it keeps one. A popup that does not open for a window that was not active is then told apart from a popup at the wrong place. A read that fails is recorded and never raised.

Red on the old code: the six new tests and the existing ones that use the fake chrome fail without the read. unit.all rows: +6 (Linux 4357, Windows 4369).
2026-11-29 16:27:40 +01:00
feder-cr 5f58bdf808 tests: a field that depends on stock's frame being in-process is recorded, not compared with stock
Stock Playwright's Firefox sets fission.webContentIsolationStrategy=0, so its cross-site frame shares the top's process, and its drag is Juggler's synthetic one (no OLE loop). A field that depends on either is not what stock reads, and the retail capture decides it.

_stock_twin.split_differences splits the differences of a twin by a declared list per twin (a pattern of canonical paths and one of two reasons: in-process frame in stock, synthetic drag in stock); a declared field that differs is recorded (recorded_differences in the report) and a field that is not declared and differs is red.

The drag twin declares the buttons, drag at the source (count and presence), the dragend point less the last drag, and in the frame effectAllowed, dropEffect and mozSourceNode; routing, targets, client points, rel, types, trusted, the input source and the effects of the top document stay compared. The intersection twin has the list and declares nothing yet (moving boundingClientRect is one line).

Red on the old code: the new tests fail at their import of the declared list and of split_differences. unit.all rows: +43 (Linux 4351, Windows 4363).
2026-11-29 16:26:35 +01:00
feder-cr e0273aac56 tests: the retail driver's synthesized input reaches a frame in another process
SEND_JS called Window.synthesizeMouseEvent without isAsyncEnabled. With the webidl default (false) the event goes through widget->DispatchEvent and never through APZ (nsContentUtils.cpp 10552-10560 at FIREFOX_159_0_RELEASE), has no layers id, and EventStateManager::DispatchCrossProcessEvent falls back to the top process (EventStateManager.cpp 2199): a frame in another process never got the move or the click. The options now carry isAsyncEnabled: true, Mozilla's own mechanism (EventUtils.js asyncEnabled).

A static check reads every synthesize call of code that runs on retail or stock Firefox and is red when its options literal lacks isAsyncEnabled: true. Red on the old SEND_JS (two tests of the file), green on the new.
2026-11-29 16:22:44 +01:00
feder-cr 622f0d3eaf tests: the drag twin records every drag event the page reads, for a drop in a frame and for a drop in the top document
The twin of the drag kept a few numbers (the count of dragstart, the drop target and the client
point of the drop, the end point less the last drag point) and only for a drop in a frame of another
site. A dragenter at the wrong element, an empty dataTransfer, a dropEffect of none or an untrusted
event read as the same as stock's, and a drop in the top document was not covered at all.

Now both pages keep every event they hear (dragstart and drag at the source; dragenter, dragover,
dragleave and drop where the drag goes; dragend at the source) with its type, target id, the id of
the element under the cursor, client and screen points, buttons, mozInputSource,
dataTransfer.types, effectAllowed, dropEffect, mozUserCancelled, whether mozSourceNode is null and
isTrusted, plus the count of drag events at the source and the dragend point. The same test does
the drag twice on a fresh page, once ending in the frame and once in the top document, on stock
and on ours, and the verdict prints both records whole.

Ours is compared with stock exactly in every field that is the same on every machine; in one CSS
pixel in a client point (the tolerance the drop point already had); and through the relation of the
screen point to the client point, because screenX/Y is where the window stands (real on stock,
declared on ours). The counts of dragover and of drag events are recorded and not compared: retail
fires both from a timer (OLE calls DragOver periodically, and nsNativeDragTarget fires drag at the
source each time). What is compared is that drag fired at the source at least once on both sides.

Regression test (54 tests, no browser, fake pages): red on the old files (the module of the record
does not exist and the old twin has no DROPS or recorder), and red on each mutation of the
comparison. In the two unit rows: 4250 -> 4304 on Linux, 4262 -> 4316 on Windows (collect-only on
the row's files). The e2e row keeps its 4 tests.
2026-11-29 14:16:39 +01:00
feder-cr e0e620e8d5 tests: a select twin that fails says where it clicked and what the geometry was, and every case leaves its numbers
The steps of the select twin said "the dropdown did not open after a click on the select of the
frame document" and nothing about the click, so a red case at one display scale could not be told
from a wrong point, a wrong scale or a window that moved. Now, for each select, every failure of the
steps carries: the click point (CSS, and the point the driver sent with its unit and its device
point), the scales record, the select's box in its own document and the frame element's box in the
top document, mozInnerScreenX/Y of the top and of the frame, and the popup's state after the click,
at the deadline and at a second look. The verdict of the twin prints both browsers' records whole.
The same record is written for every case, red or green, to
$RUNNER_TEMP/invpw-evidence/popup-diagnostics/<case>-<browser>.json, the folder the jobs upload, so
a green run leaves the numbers to compare with a red one. A read of the diagnosis that fails is
recorded in the record and never replaces the finding.

The drivers keep the point they sent (last_click), and the retail driver reads a frame through
Marionette and is back in the top document when the read ends or fails.

Regression test (13 tests, no browser, a fake driver): red on the old files (11 of the 13 fail on
the old steps and drivers, the module of the record does not exist). In the two unit rows: 4237 ->
4250 on Linux, 4249 -> 4262 on Windows (collect-only on the row's files, not OS-specific).
2026-11-29 11:09:11 +01:00
feder-cr a7f84eded4 tests: the intersection twin routes the page of its frame again, and a check reads every page a test asks the fake sites for
The frame of the intersection twin is sites.url("B", "/io") and nothing routed B /io: the route was
dropped in an earlier commit and _register did not get it back. The fake sites answer an unrouted
path with a 404 and an empty body, so the frame had no #t and IntersectionObserver.observe threw.
_register routes B /io (FRAME_IO, which was defined and unused) again.

Regression test (9 tests, no browser): in every test module that builds Sites(), each
X.url(site, path) and each wait_frame/frame_of that names a site and a path has an X.route for it
in the same module; a computed part of a path is a wildcard on both sides; one exemption (the
expected scope of a service worker, compared and never requested) is listed with its reason and is
itself red when no call uses it any more. Red on the old file: the module without the route reads
B /io asked and not routed (two lines: the page of A and the frame lookup), and a snippet of the same
shape; green with the route. In the two unit rows: 4228 -> 4237 on Linux, 4240 -> 4249 on Windows
(collect-only on the row's files: 4240 before, 4249 after).
2026-11-29 11:01:13 +01:00
feder-cr 06c2428572 tests: the retail twin sends its input with Window.synthesizeMouseEvent, and a check reads every chrome call against Mozilla's sources
The four cases of wrapper.e2e.stock_twin.tooltip died on the engine candidate with "win.windowUtils.sendMouseEvent is not a function": Firefox 159 has no
nsIDOMWindowUtils.sendMouseEvent, its chrome input is Window.synthesizeMouseEvent. SEND_JS of the retail reference now calls
win.synthesizeMouseEvent(type, x, y, {button, clickCount, modifiers, inputSource}, {ignoreRootScrollFrame, isDOMEventSynthesized}), with Mozilla's own field names
and the same offsets (CSS pixels of the browser window).

Static check, no browser: scripts/extract_mozilla_chrome_api.py reads nsIDOMWindowUtils.idl and Window.webidl at the release tag into ci/mozilla-chrome-api.json
(path, tag, commit and sha256 of each source; what only our engine tree has is listed apart under "ours"). tests/test_the_chrome_calls_of_the_tests_exist_in_firefox.py
scans the strings of every test and script for windowUtils.<name>, .synthesize<...>( and the keys of the dictionaries those calls pass: a name that no Firefox
has is red, a name only our engine has is red in code that runs on retail or stock Firefox. Red on the old SEND_JS (sendMouseEvent is not in 159), green on this
one. The extractor has its own unit test on a small IDL and WebIDL sample.

Both files join wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests raised by 18 each (12 + 6).
2026-11-29 10:40:14 +01:00
feder-cr 3e082e07d7 tests: the stack watchdog's log lands in the evidence folder that every job uploads
INVPW_TEST_WATCHDOG_FILE is set only by the wrapper's own e2e workflow, so a run of the gate
wrote the stacks of a hung test to the temporary folder, which nothing uploads, and they were
gone with the runner. With RUNNER_TEMP set and no file named, the log is now
$RUNNER_TEMP/invpw-evidence/watchdog/e2e-watchdog.log, inside the folder the gate keeps as
"what the tests saved"; a named file still wins, and off a runner nothing changes.

Regression test (5 tests, red on the old files: the module does not exist and conftest.py
opens the temporary folder). In the two unit rows: 4205 -> 4210 on Linux, 4217 -> 4222 on
Windows (not OS-specific).
2026-11-29 08:59:28 +01:00
feder-cr 3366497f7d tests: the twins open their page before they ask Marionette for a session
The wrapper launches the engine with -silent, so there is no window at start-up, and
Marionette's WebDriver:NewSession is answered only when the browser's start-up ends, which
only a window ends. run_retail_twin and _on_ours created Chrome() before browser.new_page(),
so the session never got its answer and the socket timed out after 300 s (every retail twin
and every stock twin of the engine candidate).

Chrome now takes the page of the launch as a required argument, so the wrong order cannot be
written, and both twins open the page first. scales() reads that page.

Regression test (red on the old files, 4 of 9 fail): an ast scan of every test and script
refuses a function that asks for a session before its first new_page; the scan is itself
proved on the old order; a fake Marionette that answers NewSession only once a window exists
shows _on_ours and run_retail_twin get their answer. In the two unit rows: 4196 -> 4205 on
Linux, 4208 -> 4217 on Windows (9 tests, not OS-specific).
2026-11-29 08:59:28 +01:00
feder-cr aaf5863598 ci: the host oracle takes each side's own install folder as that side's own package, and the row of the graphics probe is out of the file
Engine final candidate (run 46227711139), ab_host on Linux, two defects of the harness:

1. DIFF on invisible_core/branding/official/branding.zip: <published set venv>/site-packages/... on the published side, <hostedtoolcache python>/site-packages/... on the candidate's.
   Each side's engine reads the branding of ITS OWN core, in the folder that core is installed in, and since the control side is the published set (0b23228e) the two folders
   differ. The classifier knew one own package, the folder of the engine. It now also knows the install folders of the python that runs the side (ci_ab_host.install_folders:
   sysconfig's purelib and platlib, the link and the real folder; the side's launch runs in that side's python), in the same class `package`, so the same read is the same
   file of the package on both sides and no path is named. Anything else stays the host's and red: the other side's folder, the python's own library under the same prefix,
   a sibling folder that only starts with the same text, any path declared nowhere.
2. FAIL the declared difference 'gfxtest-69' ... is stale, remove it: the published engine is the 70, which no longer spawns gfxtest either. ci/ab-host-expected.json declares nothing.
   The mechanism of a declared `proc` difference is tested with the row as a row of the tests' own (tests/_ab_host_declared.py), and a test takes the run's case as data: a row that
   does not show is red as stale, in the wording of the run, and the same run is green against the empty file.

tests/test_ab_host.py (+10, 9 of them red on the old classifier): the pair of the run is the same package on both sides and no difference; each of five reads outside a side's own
install folder is a difference; the install folders of a process; the stale row. tests/test_ab_oracle.py: the new helper is one of the host oracle's files for a pull request.
wrapper.unit.all.linux 4196 and wrapper.unit.all.windows 4208 (+11).
2026-11-29 08:59:28 +01:00
feder-cr dfd35bb47e ci: the page oracle's A/B allows the differences a release is known to make, declared per os, seed, dpr and leaf, and is red on a row that does not show
Engine final candidate (run 46227711139): ab_oracle was red on Linux and Windows on the same 24 differences, all of them the bar of a main window above the content.
Seed 6 at 1.25: the bar is 106 device px as retail Firefox 159 measures it, the published engine's core said 107; the candidate's core rounds the bar once on the sum in app units
(window_frame.chrome_height_device). Seed 63 at 1.5: the work area is under 720 CSS px, so retail chooses the compact density by itself (browser.js gUIDensity) and the bar is
73 CSS px, not the normal 85 (constants.ui_density, window_frame.chrome_height_device(1.5, 'compact')).

- ci/ab-oracle-expected.json (ab-oracle-expected/1): 48 rows, one per os x seed x leaf of those 24 (Linux and Windows read the same), each with exactly id, os, seed, dpr, leaf,
  published, candidate and reason (the retail source, the core function that produces the value, what the leaf is).
- scripts/ci_ab_oracle.py: the A/B (run, run_ab, compare) allows a difference only when a row matches it exactly (os of the leg, seed, dpr, leaf and both values); any other
  difference is red, and so is a row that does not show in the run (stale: "remove it", the wording of the host oracle). The rows apply to the A/B only: the A/A is judged without
  them. A row of a visit the run did not make (another shard or seed set) is not judged. The rows name no tag: when the published set moves to the release that holds the work, the two
  sides agree, every row is stale and the check forces them out. compare takes --leg (default: this machine's).
- tests/test_ab_oracle_declared_differences.py (16, red on the old judge) with the 24 DIFF lines of the run as data: the old judge is red on them and the new one green with the
  rows; an undeclared extra difference, another value than the row's, another seed, dpr or os, are red; a stale row is red; the A/A ignores the rows; the file's keys and rows.
  tests/test_ab_oracle.py: the fake pages of its tests have no rows (a fixture), the leg of one test is a real leg, and the file of the rows is one of the oracle's files for a pull request.
- wrapper.unit.all.linux 4185 and wrapper.unit.all.windows 4197 (+17: the 16 tests and the case of the new file in the oracle's pull-request file list).
2026-11-29 08:48:49 +01:00
feder-cr 76c33a9e0a tests: the stock browser and the retail reference of the twins get a display from the wrapper's mechanism
The engine gate runs the stock twin rows' pytest without xvfb-run (only wrapper.e2e.suite.* rows get it), and the docstrings said the browsers drew on "the display of the job".
Ours gets a display of its own from the wrapper (make_virtual_display, started per session), so ours drew and stock and retail died on Linux with
"no DISPLAY environment variable specified" (wrapper.e2e.stock_twin.intersection, all four cases).

_stock_twin.OwnDisplay starts the core's make_virtual_display() on Linux (1920x1080x24 Xvfb, access control on), one per launch, and gives the browser's environment its
DISPLAY and XAUTHORITY (the Wayland variables removed), stopped after the browser, also when the launch fails. Stock gets it through the env of p.firefox.launch, the retail
reference through its Popen env. On Windows nothing is made: a stock client cannot be spawned on another desktop. The docstrings of _stock_twin, _retail_reference and the
select and tooltip twins say what is true.

test_the_stock_and_retail_browsers_get_a_display_from_the_wrapper.py (4 tests, red on the old code) is in wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests +4 each.
_fake_stock_playwright.py is the recorder both unit files of the stock twin share.

The exact counts of the two unit rows are corrected by 2: since the published-set commit the two rows were 2 below the real collect (the new published-set.yml workflow adds one case to
test_ci_linux_legs_read_no_mirror.py and one to test_ci_windows_temp_is_on_d.py, which are parametrized by workflow file, and that commit counted only the 36 tests of its own file).
wrapper.unit.all.linux is 4168 and wrapper.unit.all.windows is 4180, as the run of the engine's final candidate collected (4160 and 4172) plus the 8 of the two commits above.
2026-11-29 07:44:35 +01:00
feder-cr ce6db02d36 tests: the stock twins get layout.css.devPixelsPerPx as the string ours gets
The pref is a string pref of Firefox. The stock client sends user prefs through Browser.enable and Playwright's Juggler sets a number with setIntPref, so
the float of the case failed every stock twin launch on Windows with NS_ERROR_UNEXPECTED [nsIPrefBranch.setIntPref], a broken control on all four cases.
Stock now gets the scale from _window_origin.scale_pref, the form the core declares for ours (str(profile.screen.dpr)).

test_the_stock_twin_gets_the_display_scale_as_ours_does.py records the stock launch and compares it with ours composed by the core for each of the four cases
(4 tests, red on the number the old code passed); it is in wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests +4 each.
2026-11-29 07:32:38 +01:00
feder-cr a1711b9802 ci: the published set is installed from published/ only, by hash, checked with pip check, and verify names the file installed
The wheelhouse's own folder holds the candidate's wheels of invisible-core and invisible-playwright,
built from core_ref and wrapper_ref; at an equal version they have the file names of the published
ones. With real pip, two --find-links and --require-hashes take the first local file of a name and
fail on a hash mismatch, they do not choose by hash.

- install: the gate lock's dependencies from the wheelhouse, then the two published wheels from
  <house>/published ONLY (one --find-links per pip call, --no-deps, by the hashes of
  ci/py-lock/published.txt), then pip check over the venv with the set's python: red, with what pip
  reports, when a requirement of the published wheels is not met. The wheel of each package is
  chosen by the sha256 the lock holds (a file with the name and another hash is refused, naming both)
  and recorded with the digest of its package files in <venv>/published-set.json.
- verify: reads that record and the disk. It names the file installed (wheel name, sha256), is red
  when that sha256 is not one the lock holds (naming both), and when a file of the package on disk is
  not, byte for byte, the wheel's. A version says nothing of which file is installed.
- tests (real pip, offline, wheels made with zipfile): the same name and version in the house root
  (the candidate's) and in published/ installs the published one and verify is green; a venv holding
  the candidate's wheels is red naming the file, its sha256 and the lock's; a record that says
  published over candidate bytes is red; a lock naming neither is red; a published wheel requiring
  what the house lacks is red at pip check, the normal house green. 42 tests in the file (+6), the
  rows of the whole unit suite raised by 6.

Red on the old install: the real-pip same-name test fails with pip's "THESE PACKAGES DO NOT MATCH
THE HASHES FROM THE REQUIREMENTS FILE" on the candidate's wheel of the same name (8 of the 42 fail
on the previous script).
2026-11-29 05:52:46 +01:00
feder-cr c4dbbe8faf ci: the stock twin row is four rows, one file and one leg each
The row wrapper.e2e.stock_twin (4 files, 20 tests) ran past the 25 minutes of a leg. It is now wrapper.e2e.stock_twin.dnd (4 tests),
.select (4), .tooltip (4) and .intersection (8), each with the file, the marker, the systems and stock_firefox of the old row, and the old note split by file.
The table of leg fields, the accounting of the e2e suite and the retail reference's messages name the new rows.
2026-11-29 03:54:02 +01:00
feder-cr b916990a33 e2e: a popup moved to the far right stops where retail's does, the capture's numbers per case
The phase ran moveBy(10, 10) and moveTo(99999, 0) in one popup and expected availLeft + availWidth - outerWidth, which is not retail's clamp:
Mozilla's CheckSecurityLeftAndTop uses the outer width rounded by its edges (CSSIntRect::Round), then the device rounding and the read-back.
The phase now runs the sequence of the retail capture (popup_move_resize, retail-window-geometry, Firefox 159.0) and expects the screenX and screenY
retail read after each call, per case, with the derivation for scale 1.25 written next to the table.
2026-11-29 03:50:11 +01:00
feder-cr 0b23228eb8 ci: the control side of every A/B oracle is the published set, as a user installs it
Engine candidate 5 (run 46208549074): ab_oracle, ab_network and ab_host were all red on a BROKEN
CONTROL. The published engine (labelled firefox-68, a tag written in the harness, when firefox-70
was the last published) was launched by the CANDIDATE's core, which no longer declares
zoom.stealth.screen.popup_position, and the engine refuses a launch whose declarations its core does
not emit (rule 7). A pairing no user has.

The control is now the set a user gets: the last invisible-playwright on the index, the
invisible-core it pins exactly, the engine that core's seal pins, in a venv of their own.

- ci/py-lock/published.txt: the set as a hash lock (every file of the two versions, the requirements
  each declares); scripts/ci_published_set.py makes it (resolve), compares it with the index (check),
  installs it offline over the gate's lock from the run's wheelhouse (install) and verifies what the
  venv imports (verify); fetch/tag run BY the set's python: its own core fetches its own engine.
- .github/workflows/published-set.yml: daily and on a pull request that touches the lock, red when
  the committed lock is not the index's last release.
- ci_ab_oracle, ci_ab_host, ci_ab_network: the published side runs in the set's python
  (INVPW_PUBLISHED_PYTHON) with an environment that carries nothing of the candidate's job
  (PYTHONPATH, VIRTUAL_ENV, its seal, its pin switches); the candidate side is unchanged. No tag is
  written in a harness file: the label and the file names (dump-<N>.json, ...) come from the seal of
  the set. A candidate without a set is refused, never run against its own core.
- ci_poison_host: the by-product files are named for the tag of the set as well.
- tests/test_ci_published_set.py (36, in wrapper.unit.all.linux and .windows): the defect on fake
  cores and a fake engine that refuses as rule 7 (red on the old harness with that refusal), the
  three seams, the lock on known-bad inputs, the resolver on synthetic index documents, the install
  commands, no tag written in a harness file.

Red on the old harness: the defect test fails with "stealth: zoom.stealth.screen.popup_position is
not declared by the core candidate-core (rule 7)" on the scripts of df491f2e. The regression
registry of the wrapper is not on this base: its row follows with the registry.
2026-11-29 03:40:21 +01:00
feder-cr df491f2e67 Merge commit '8e342a1378e9da0a8e6340411f42dbe66c39a5ed' into candidate/wrapper-71-final 2026-11-29 01:48:12 +01:00
feder-cr 8e342a1378 tests: the e2e stack watchdog holds the GIL (a Python thread), not faulthandler's dump_traceback_later, whose GIL-free copy of every thread's frames crashed the Windows part 3 worker
Five workers of the Windows part 3 of the e2e died, all on tests/test_fakeweb_p4_e2e.py::test_the_journey_leaves_every_page_only_once_its_noise_is_done, which runs 122-171 s with about 50 threads. tests/conftest.py armed faulthandler.dump_traceback_later(150 s, repeat=True) for every e2e test: a C thread that copies the frames of every thread WITHOUT the GIL (_Py_DumpTracebackThreads, documented "for debug purpose only ... after a segmentation fault, at fatal error") while the process keeps running and the other threads keep changing their frames. Two full dumps of a crashed worker show the process dead inside dump_frame, called from faulthandler_thread, reading a frame another thread was changing.

tests/_stack_watchdog.py is the same watchdog as a Python daemon thread: one per process, reused by every test; arm(nodeid, threshold_s, period_s, file) and cancel(); past the threshold, and then every period until cancelled, it writes "Timeout (h:mm:ss)!" and the frames of every thread (sys._current_frames(), holding the GIL, threads named from threading.enumerate()) to the same e2e-watchdog.log, in the format of faulthandler's dump; nothing to stdout or stderr; nothing after cancel() returns. Known limit, in the module: a thread that never releases the GIL keeps it from writing, which is pytest's faulthandler.enable() at the death of the process. tests/conftest.py calls it in place of dump_traceback_later and cancel_dump_traceback_later (setup, teardown, unconfigure).

Tests (all in the rows of wrapper.unit.all.linux and wrapper.unit.all.windows, min_tests 4061 -> 4116 and 4073 -> 4128, counted with the selector of the judge):
- tests/test_no_file_arms_a_gil_free_thread_dump.py: no .py of tests/, scripts/ or src/ calls faulthandler.dump_traceback_later, or dump_traceback with all_threads true or defaulted (ast, through any import form); pytest's faulthandler_timeout is set in no pyproject, pytest.ini, setup.cfg, tox.ini, conftest string, script string or workflow line (parsers, not text). Red on the conftest of 03425bb8, naming tests/conftest.py and the line, with how to fix and the rule; each form has its known-bad and its green twin. The only exclusion is norecursedirs of pyproject.toml.
- tests/test_the_stack_watchdog_writes_every_thread_after_its_threshold.py: in a child python, a blocked call gets the header and the stack of every thread, a test cancelled before its threshold leaves no dump, nothing is written after cancel (judged on the bytes of the file, waiting on the second test's first dump), the second test reuses the thread.
- tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py: 32 threads churning frames; dump_traceback_later at 1 ms ends the child with a crash status (red on the old mechanism), the new watchdog at a 1 ms period lets it run 6 s (60 times longer) and writes its dumps.
2026-11-29 01:20:27 +01:00
feder-cr 03425bb898 ci: every pytest process of a Windows e2e job clears SEM_NOGPFAULTERRORBOX, so a crashing worker reaches the LocalDumps
#629 sets WER LocalDumps for python.exe in each Windows e2e job, and a crashing pytest-xdist worker still left no dump. The pytest controllers of the runner are born with the
error mode 0x0003 (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX), every child inherits the mode of its parent, and a process with SEM_NOGPFAULTERRORBOX (0x0002) never
invokes Windows Error Reporting, so no worker crash reached LocalDumps.
https://learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode

The "Windows Error Reporting keeps a full dump..." step of each Windows job now also exports INVPW_WER_DUMPS=<the dumps folder> to $GITHUB_ENV. tests/conftest.py calls
tests/_wer_error_mode.py in pytest_configure (the controller and every xdist worker run it): when that variable names an existing folder on Windows, the process clears bit
0x0002 of its error mode and keeps the others, and appends "pid <n> error mode born 0x.., now 0x.." to invpw-evidence/dumps/error-mode.log. Nothing is written to stdout or
stderr, and nothing happens on Linux or in a job that did not set LocalDumps.

Tests: the rule test of the Windows jobs (tests/test_every_windows_job_keeps_a_dump_of_a_crashing_python.py) now requires the export in the LocalDumps step of every Windows
job, with the folder of DumpFolder and no other place that sets it (red on the previous e2e.yml, naming the job); a real child python born with 0x0003 (and 0x8003, 0x0002,
0x0001, 0x0000) ends with the born mode minus 0x0002 and leaves its evidence line, and without the variable or with a missing folder the mode is unchanged
(tests/test_every_pytest_process_clears_the_gp_fault_error_box_on_windows.py, a Windows file: only the row of Windows names it, min_tests 4061 on Linux, 4073 on Windows).
2026-11-29 00:34:35 +01:00
feder-cr 67b2ad3188 tests: the table of the leg fields carries the stock_firefox of the row wrapper.e2e.stock_twin, which the gate reads 2026-11-28 22:30:13 +01:00
feder-cr fe50cdc118 e2e: the retail reference gets the outer size of ours before anything is measured and both inner sizes are compared (a difference is a broken control); the launcher and the messages cover the Linux binary (firefox, no .exe, the job's display) 2026-11-28 21:52:21 +01:00
feder-cr e4aa743af3 e2e: the select dropdown and the tooltip are measured against RETAIL Firefox 159 driven by Marionette alone, headed (tests/_retail_reference.py, INVPW_RETAIL_FIREFOX set by the leg), not against Playwright's own Firefox; the tooltip joins the row wrapper.e2e.stock_twin (20 tests) and its rule is a cross-check in the record 2026-11-28 21:41:56 +01:00
feder-cr 5298149cd0 e2e: the stock twin runs headed, in the mode of ours (a real window on the display of the job), not in Firefox's headless mode 2026-11-28 21:36:40 +01:00
feder-cr 9140845e4d e2e: the select, drag and IntersectionObserver/lazy-frame tests are stock twins (the same steps on Playwright's own Firefox first, ours second, the verdict is the same as stock), in the new row wrapper.e2e.stock_twin (stock_firefox) and out of the whole-suite rows; each record keeps the page's and the chrome's devicePixelRatio and the real screen scale 2026-11-28 21:35:33 +01:00
feder-cr cb67c18332 e2e: a popup's position is Firefox's own rule (retail round 5: 4, 4 at scale 1.0), no popup_position pref is set; the second popup's stagger waits for capture round 8 2026-11-28 21:35:33 +01:00
feder-cr 652c911514 persona_cover: popup_client_top is a pref of the dpr dimension, the ui_normal and ui_compact rows of DERIVED go (no core writes them), persona-seeds.json regenerated with the core of c58efd7 2026-11-28 21:28:31 +01:00
feder-cr 229cfb7da2 Merge remote-tracking branch 'origin/main' into e2e/oop-frame-71
# Conflicts:
#	ci/required-suites.json
2026-11-28 20:47:26 +01:00
feder-cr 3259840c7c e2e: the tooltip's vertical offset is computed by Firefox's own rule (kDefaultTooltipOffset scaled by the system cursor size on Windows), not typed as 21 2026-11-28 19:56:28 +01:00
feder-cr c39a976a44 e2e: a tooltip opens at the real pointer, in the top document and in a frame of another site, at the four scales (red without the tooltip map), in the rows of the maximized-window test 2026-11-28 19:54:44 +01:00
Federico Elia df35204915 Merge pull request #629 from oss-invisible/ci/windows-worker-dumps
ci: every Windows e2e job leaves a full dump of a crashing python.exe in its evidence
2026-11-28 19:06:47 +01:00
feder-cr de9c19b578 ci: every Windows e2e job leaves a full dump of a crashing python.exe in its evidence
A pytest-xdist worker (python.exe) dies on the Windows e2e jobs with "node down: Not properly terminated" (a native "Windows fatal exception: access violation",
jobs 138402013609 and 138966622085) and nothing names the faulting native module. Each of the six Windows jobs that run pytest now sets, before its tests,
HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\python.exe (DumpType 2 = full, DumpCount 3, DumpFolder RUNNER_TEMP/invpw-evidence/dumps/python,
WER made enabled, no dialog), so the dump travels in the evidence artifact the job already uploads (the Control+A job gets that upload). After the tests
scripts/ci_wer_dumps.py lists the dumps with their size and reads the minidump header (thread, exception code, faulting module+offset, failed access) into summary.txt.
Docs: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps

Tests: the Windows jobs' rule test (red on the previous e2e.yml) and the reader on a synthetic minidump.
2026-11-28 18:39:32 +01:00
feder-cr 678978399c e2e: three new test files stored with LF, as the index of the repository has them (they were committed with CRLF) 2026-11-28 02:40:48 +01:00
feder-cr 310b88e81d e2e: the input test takes no tolerance: clientX/clientY of every click, hover, drag and wheel equal the requested whole CSS point exactly, and the message prints the requested point, the received one and the scale 2026-11-28 02:40:28 +01:00
feder-cr 6f84d62290 e2e: a page cannot reach the three chrome-only methods of the window-origin map (window, document, reachable objects, prototype chains, CanonicalBrowsingContext), in the rows of the maximized-window test 2026-11-28 02:40:28 +01:00
feder-cr eb2629fea1 e2e: the consumers of the window origin (early readings of a frame, popup moveBy/resizeBy/moveTo, drag into a frame, IntersectionObserver and lazy loading in a frame, input at four scales, select dropdown anchor), in the rows of the maximized-window test 2026-11-28 01:26:31 +01:00
Federico Elia 465386fd7d Merge pull request #625 from oss-invisible/tests/webgl-reference-on-our-gl
tests: the control launch of two WebGL e2e tests runs on the engine's own GL
2026-11-28 00:15:47 +01:00
feder-cr ce55e15e60 Merge remote-tracking branch 'origin/main' into tests/webgl-reference-on-our-gl
# Conflicts:
#	ci/required-suites.json
2026-11-27 23:45:45 +01:00
Federico Elia 21b5276c4d Merge pull request #624 from oss-invisible/tests/neutral-names-for-public-pages
tests: neutral names for the tests of public fingerprint and detector pages; one bundle and its two tests removed
2026-11-27 23:35:33 +01:00
feder-cr abfc2d2764 tests: the host-GL probe test writes down the page's WebGL at engine off and does not judge it
With the engine off the context comes from the host's Mesa, which a runner may not
serve (hunt run 45998187350: once in 3083 launches). The page still asks for WebGL,
which is what makes Firefox read GfxInfo; with the engine declared a missing context
is still red.
2026-11-27 23:35:16 +01:00
feder-cr 025ae12b72 tests: the control launch of two WebGL e2e tests runs on the engine's own GL
The control of the non-premultiplied WebGL canvas test and of the createPattern projection test had the engine off
(hw_seed 0), so WebGL ran on the host's Mesa: once in 3503 launches a runner gave no context. The control now keeps the
engine on, with the same declared GPU, and declares only the canvas noise off (zoom.stealth.canvas.substitute_pixels
false), as test_webgl_noise_active.py does. Both launches of both files, on Linux, check the maps of the engine's
processes with the rule of test_webgl_draws_on_the_engine_s_own_gl, now written once in engine_process_tree.py.
2026-11-27 23:17:13 +01:00
feder-cr 28841856d0 tests/vendor: the rules scanner's MIT notice is the copyright holder and year and the full permission text, verbatim from upstream; the contact address is left out (pm, 27/11) 2026-11-27 21:01:47 +01:00
feder-cr 9ba446ed3c e2e: the maximized window, its frames (also transformed) and its popups read as retail
The restored-window part of the retail window-geometry test is dropped
with the feature. What stays is read against retail Firefox 159.0 on
Windows at the four display scales: the maximized window and its probe
(round 4), fullscreen in and out from it, the same-origin and cross-site
frames and the popups (round 5).

New, from round 6 (GitHub run oss-invisible/core 46052782097,
RetailCaptures 4a37f5f, WINDOW_GEOMETRY_TRANSFORMED_FRAME.csv): a
cross-site frame under scale(1.5) and under rotate(10deg), one at a time,
read from inside after three real mouse moves to retail's CSS points. Its
mozInnerScreen equals retail's, and clientX/Y and screenX/Y equal retail's
at scale 1.0 and are within one pixel at the others.

A cross-site frame that reads the top's own mozInnerScreen now fails by
name: the out-of-process frame lost its own place in the top.

Registered in wrapper.e2e.suite.linux.3 and wrapper.e2e.suite.windows.4
with four tests each.
2026-11-27 20:56:16 +01:00
feder-cr 5e535d9faa tests/vendor: the headless detector bundle and its one test are removed (its required licence notice cannot ship without a studied system's name, and the local scanner is not changed); the rules scanner carries its upstream MIT notice verbatim in its header; min_tests of wrapper.e2e.suite.linux.1 (-2), wrapper.e2e.suite.windows.1 (-1), wrapper.e2e.suite.windows.4 (-1), wrapper.e2e.realness (-1) lowered by the tests removed (the headless detector test and the realness test that loaded its page) 2026-11-27 20:51:40 +01:00
feder-cr 0c43c7ec60 tests/vendor: the two upstream notices are left out until their place is decided; the README stays neutral 2026-11-27 20:51:28 +01:00
feder-cr 08f7fd91c7 tests: the licence notices of the two vendored bundles without a header are copied verbatim from the upstream LICENSE at the commit of the vendored version 2026-11-27 20:51:28 +01:00
feder-cr 90449bbdb2 tests: the README of the vendored bundles lists each with version, license, sha256 and where its licence notice lives; a test is red if a bundle changes without its row; unit counts +3 2026-11-27 20:51:28 +01:00
feder-cr dbdd7c7c6d tests: neutral names for the tests of public fingerprint and detector pages (file, functions, ids, references); behaviour and counts unchanged 2026-11-27 20:51:07 +01:00
Federico Elia 244fdcf0a8 Merge pull request #621 from oss-invisible/ci/retired-tests-by-nodeid
ci_verdict: retired single tests by nodeid, each declared once against the floor it lowers
2026-11-27 20:20:57 +01:00
feder-cr 53b5a1ef17 ci_verdict: a retired-test entry carries from_min_tests and allows its drop only while main's floor of the suite is still that value, so it is inert once the removal is on main; the five entries are written at 449, 333, 274 and 32 2026-11-27 13:42:20 +01:00
feder-cr eef12eb659 ci_verdict: ci/retired-tests.json declares single retired tests (nodeid, suite, count, reason, decided_by); a floor drops by exactly the declared count, any other lost test stays red; the entries of the two tests the rename removes 2026-11-27 13:42:20 +01:00
Federico Elia 54ce892a60 record 0.60.0 as published (#618) 2026-11-27 13:41:57 +01:00
Federico Elia f3f35ea0c3 Merge pull request #619 from oss-invisible/ci/install-job-deps-from-lock
user-install: the install-from-index harness comes from the hashed lock; every module the tests import is held to it
2026-11-27 13:06:40 +01:00
feder-cr 11c1b4573f CHANGELOG: 0.60.0 is dated 2026-11-27, the UTC day of its upload to the index (the line the ledger PR writes) 2026-11-27 08:09:12 +01:00
feder-cr 8a6ef83ef4 user-install: the harness comment names the helper and the rule test in words, not by path (the install-job gate reads every tests/ path of the file as a test the job runs) 2026-11-27 08:09:12 +01:00
feder-cr 4b97532753 user-install: the test harness of the install-from-index job comes from the wrapper's hashed lock, and a rule test holds every third-party module the tests import to that lock (psutil was missing, ledger PR #618) 2026-11-27 08:09:12 +01:00
Federico Elia 67648a9eb6 Merge pull request #617 from oss-invisible/tests/fission-frames-evidence
tests/fission frames: every test of the module keeps the module's evidence when it fails
2026-11-27 07:39:45 +01:00
feder-cr b4f7cde592 Merge remote-tracking branch 'origin/main' into tests/fission-frames-evidence 2026-11-27 07:07:10 +01:00
Federico Elia fb8a407084 Merge pull request #607 from oss-invisible/tests/webgl-engine-off-evidence
tests/canvas: an engine-off WebGL canvas that cannot be made says why, and the run keeps its gfx log
2026-11-27 00:27:59 +01:00
feder-cr 603ca155c9 tests/fission frames: every test of the module keeps the module's evidence when it fails (the wire, the engine trace, every frame's lifecycle)
Main run 45823271010 (linux part 1) saw the goto of /workers (A, its frame B, B's frame C: three processes) reach commit and domcontentloaded but not load in 30 s, with nothing in flight, in test_a_dedicated_worker_reports_the_identity_of_the_window_in_every_frame[blob]. The module arms FailureEvidence for all of its tests but only the one test that opened OnFailure saved it: that run kept nothing. Each test now runs in OnFailure with its page listened to (frameattached / framenavigated / framedetached, domcontentloaded, load). Diagnostic only: no wait or assertion changes; the 9 e2e nodes are the same.
2026-11-26 23:54:25 +01:00
feder-cr d12d722975 Merge remote-tracking branch 'origin/main' into tests/webgl-engine-off-evidence
# Conflicts:
#	ci/required-suites.json
2026-11-26 23:52:46 +01:00
Federico Elia c5709c6bd8 Merge pull request #616 from oss-invisible/release/0.60.0-firefox-70
release 0.60.0: pins invisible-core 70.83.0 on the engine firefox-70
2026-11-26 23:07:32 +01:00
feder-cr b39b7f65e1 release 0.60.0: the gate lock names core 70.83.0 (no locked distribution changes), the CHANGELOG heading is dated 2026-11-26 22:05:21 +01:00
feder-cr 1d21e84954 release 0.60.0: pins invisible-core 70.83.0 (engine firefox-70); persona seeds for that core 2026-11-26 21:55:59 +01:00
feder-cr 6e3e166bb7 CHANGELOG 0.60.0: the restored-window frame leaves (it ships with firefox-71) 2026-11-26 19:18:39 +01:00
feder-cr 91346ececc release 0.60.0: version and changelog (the unpublished 0.59.1 entry folds into 0.60.0; the core version and the engine tag are placeholders until they are published) 2026-11-26 19:18:32 +01:00
Federico Elia cccef5dadb Merge pull request #547 from oss-invisible/ci/windows-temp-on-d
ci: on Windows the browser's profiles and temp files go on D:, not on the saturated C:
2026-11-26 13:49:28 +01:00
feder-cr bb610da22e ci: the four Windows e2e jobs added since (network, host, page oracle, final seeds) also keep TEMP and TMP on D:
tests/test_ci_windows_temp_is_on_d.py was red on them on today's main (e2e-network-windows, e2e-host-windows,
e2e-page-windows, e2e-page-final-windows had TEMP on C:); green with the job env every other Windows job has.
2026-11-26 13:14:38 +01:00
feder-cr c3c1fcee2a ci: the unit rows count the test of the Windows temp folder (3949 -> 3964, 3953 -> 3968) 2026-11-26 13:14:38 +01:00
feder-cr c1b9c5392d Windows jobs keep the browser profiles on D:, not on C:
The profile of every Firefox the tests launch is made in TEMP. On the GitHub
Windows runners TEMP is on C:, and four browsers at once saturate that disk
(queue up to 144, latencies up to 4 s): the parent's main thread stays still
40-60 s and the e2e fail at random. Hunt of 20/11: profiles on C: took 5 of
4 shards, TEMP and TMP on D:\a\_temp took none.

Every Windows job that launches a browser (e2e, e2e-hunt, fakeweb, tests,
firefox-launch-matrix, real-sites, user-install) sets TEMP and TMP to
D:\a\_temp in its job env (matrix jobs: D: on Windows, /tmp on Linux).
tests/test_ci_windows_temp_is_on_d.py fails on the workflows of main.
2026-11-26 13:14:28 +01:00
Federico Elia cb31015dd5 Merge pull request #575 from oss-invisible/fix/screenshot-refuses-what-would-touch-the-page
Screenshot refuses by name the parameters Playwright honours by modifying the page
2026-11-26 13:14:09 +01:00
feder-cr 6834f16734 CHANGELOG 0.59.1: the screenshot refusal joins the entry #606 opened (the version is already 0.59.1 on main) 2026-11-26 12:45:10 +01:00
feder-cr d348c347f6 tests: omitBackground with png is compared with stock's exact first line, the API name included
The e2e asserted `^Not implemented`, and the client prefixes every server error with the API name, so the line is
`Page.screenshot: Not implemented` (and `Locator.screenshot`, `ElementHandle.screenshot`): red on every system in run 45081196889.
Stock Playwright 1.61.1 answers the same line: `FFPage.setBackgroundColor` throws `new Error("Not implemented")` and the Python
client writes `f"{apiName}: {error}"`. The test now compares the first line with that exact text for each way of asking.
2026-11-26 12:45:10 +01:00
feder-cr fe26fca02c fix: a refused screenshot of an element or a locator is refused before the page is scrolled or measured
The refusals of mask, style, animations="disabled", caret="initial" and omitBackground with png were inside PageDispatcher.op_screenshot, which the element's
screenshot reaches only after scrolling the element into view, taking its box and reading the document's scroll: a call that was going to be refused had moved the
page. They are now one function, _refuse_unserved_screenshot_parameters, called first by the page's screenshot and first by the element's (a locator's is the
element's). It reads the parameters and nothing else, so the element's second pass through the page's is the same answer. The required-suites counts follow the
13 unit and 10 e2e tests added.
2026-11-26 12:45:10 +01:00
feder-cr 2206289d7e tests: a refused screenshot of an element or a locator neither scrolls nor measures the page (red: the refusal came after the scroll)
ElementHandleDispatcher.op_screenshot scrolled the element into view, took its box and read the document's scroll before handing the call to the page's
screenshot, where the refusal of mask, style, animations="disabled", caret="initial" and omitBackground with png is. A refused call therefore moved the page. Unit:
for each refused parameter the element's call sends nothing to the engine, not a scroll, not a measure, not a picture (the page's call is held to the same, and the
call that is taken still scrolls and measures first). E2E: on a page scrolled to a known position with the element below the fold, a refused locator.screenshot and
element.screenshot leave window.scrollY as it was; the same call without the parameter does scroll.
2026-11-26 12:45:09 +01:00
feder-cr 3b362bab4b fix: a screenshot refuses what Playwright does by modifying the page: mask, style, animations="disabled", caret="initial"
PageDispatcher.op_screenshot never read these parameters, so the call succeeded with a picture that ignored them. It now refuses each by name with what to do
instead, and answers Firefox's own `Not implemented` for omitBackground with png (jpeg is a no-op, as in stock). caret="hide" and an absent caret are served: the
engine never draws the caret, which is what stock's default produces. The element's and a locator's screenshot reach the same call. The sentences are declared by
(operation, parameter) in perimeter.REFUSED_PARAMETERS and raised through _refuse_parameter, which the declared-refusals test holds to that table both ways.
2026-11-26 12:45:09 +01:00
feder-cr 020fe74328 tests: a screenshot refuses what would touch the page (red: mask, style, animations, caret="initial" and omitBackground were silently ignored)
Stock Playwright takes mask, style and animations="disabled" by modifying the page and draws the caret only for "initial"; its Firefox throws "Not implemented" for
omitBackground with png. PageDispatcher.op_screenshot never read any of them, so the call succeeded with a picture that ignored the parameter. Unit: the page, full
page, clip, element and locator calls refuse each parameter by name (and what is harmless passes), omitBackground png answers "Not implemented"; the refusals are
declared by (operation, parameter) in perimeter.REFUSED_PARAMETERS, both directions. E2E: the same through the client on a page, a locator and an element handle, the
page left untouched, and a measurement that no caret is in the picture with caret absent and "hide". Registered in wrapper.unit.all.* and wrapper.e2e.suite.{linux,windows}.1.
2026-11-26 12:45:09 +01:00
Federico Elia 250ac6919d Merge pull request #615 from oss-invisible/tests/the-tree-guard-names-the-launch-by-its-line-not-by-the-clock
tests: the tree guard's launch time is judged from the launch line, not by a window of seconds
2026-11-26 12:44:52 +01:00
feder-cr 444cf1128d tests: a process that exits between being listed and being read is gone for the tree guard's test, not an error
Wrapper #603's round (pytest ubuntu py3.13, job 139861116959): the same test failed with `psutil.NoSuchProcess: process PID
not found` from its helper `_alive`, which asked `pid_exists` and then `Process(pid).status()`: the grandchild the guard had
just killed was there for the first question and gone for the second. The guard itself already treats such a process as
gone (`kill_tree` suppresses `NoSuchProcess` and `psutil.Error`); the helper now does too.

Red on old: `test_a_process_that_exits_between_being_listed_and_being_read_is_gone` makes the race on purpose (a pid that
exists when listed and raises `NoSuchProcess` when read): the old `_alive` raised it (1 failed), the new one answers gone; a
process that is really there is still alive (the control). wrapper.unit.all rows +1.
2026-11-26 12:10:36 +01:00
feder-cr 2703848a44 tests: the tree guard's launch time is judged from the launch line, not by a window of seconds
`test_the_tree_guard_returns_at_the_timeout_kills_the_grandchild_and_names_the_launch_that_was_alive` asserted
`2 <= alive_s < 8`. `alive_s` is the time from the launch line the child writes to the moment the run is read; a child
that a loaded machine starts late writes that line late, so it was alive for less than 2 s when the tree was killed
and the check failed although the guard had done everything right (this repo's pre-push under the load of the whole
suite, twice in a row: `2 <= 1.75824`). A test cannot fail for the speed of the machine.

What holds whatever the load is asserted instead: the line cannot have been written before the run began nor after it
was read, and its `at` is whole seconds (`launch_line`, timespec="seconds"), so `0 <= alive_s <= spent + 1`; and the
message gives that number. The kill and the naming of the launch were already asserted and stay.

Red on the old check, on purpose: `test_a_launch_that_began_late_is_named_with_the_time_since_its_own_line` is a child
slowed until its launch line comes one second before the kill (`last_launch` read at a fixed `now`): the guard names it
alive for 1 s, the old window rejects it (asserted), the new check accepts it. A control shows the check refuses a time
the line cannot give (a line 30 s before a 3 s run, a line after the read). wrapper.unit.all rows +2.
2026-11-26 11:48:17 +01:00
Federico Elia 7369fffa53 Merge pull request #612 from oss-invisible/fix/core-328-frame-fields
persona cover and launcher test read the window frame of core #328 (ui_normal/ui_compact derived, the bar through declared_maximized_ui)
2026-11-26 07:48:56 +01:00
feder-cr e02024933a tests: the fake clock of the index wait stays out of the real subprocess.run (Popen.wait polls through time.sleep: a child not yet reaped moved the fake time past the deadline after one all-yes round); two tests, wrapper.unit.all counts 3855 linux, 3859 windows 2026-11-26 06:58:26 +01:00
feder-cr 5140ecd424 required suites: wrapper.unit.all counts the four new persona-cover tests (linux 3853, windows 3857, as collected by the round of #612) 2026-11-26 06:58:16 +01:00
feder-cr c39077a050 tests: persona cover derives the window-bar prefs from their dimension, so the stored seeds hold on the pinned core and on the core with the window-frame rule
The core now declares the maximized window's bar from the panel as well as the
scale (declared_maximized_ui) and adds ui_normal/ui_compact. persona_cover has a
DERIVED category: a pref that is a function of a dimension, checked to take one
value per value of it and kept out of the stored features. maximized_ui is of
screen_panel, ui_normal and ui_compact are of dpr. test_launcher_config reads
the bar through the core when it has declared_maximized_ui.
2026-11-26 06:57:59 +01:00
Federico Elia d1cf338a2f Merge pull request #613 from oss-invisible/tests/ab-network-dealloc-early-evidence
ab network: a TURN deallocation before the page began closing is evidence, not a problem
2026-11-26 06:56:56 +01:00
feder-cr 411c2ad6ae ab network: a TURN deallocation before the page began closing is evidence, not a problem: the page's reduced-precision clock cannot order it (published engine against itself on Windows, wrapper #612's round) 2026-11-26 06:24:49 +01:00
Federico Elia 8ca47cba13 Merge pull request #609 from oss-invisible/tests/the-os-cursor-is-parked-outside-the-window
tests: on Windows the OS cursor is parked outside the browser window before every e2e, and the gestures that record pointer events require it
2026-11-26 03:00:00 +01:00
feder-cr e2e1c49db6 ci: every Windows e2e job sets the runner's screen to 1920x1080 before its e2e, so the window leaves a strip to park the cursor in
Run 45719708645 of this pull request: the runner's screen is 1024x768 and the browser window of a 1920x1080 identity is 1936x1048, so
it covered the whole screen and the cursor parked at (1023,767), inside it; the gestures' precondition said so. Parking the cursor over
the browser's own chrome does not help: hunt 45724307513 showed native moves over the tab strip reach the page too (clientY < 0,
buttons=0) once Juggler input is in it. Hunt 45730213378: 1920x1080 is the largest mode the runner's video device accepts (Microsoft
Hyper-V Video; 2560x1440 is refused) on windows-2022 and windows-latest.

The six Windows jobs of e2e.yml set it with a declared step (Set-DisplayResolution, read back, red if the screen is smaller), before
their e2e. The engine's gate runs the same step, byte for byte, in its Windows wrapper.e2e rows. Two unit tests: the runner's
1920x1080 arrangement parks the cursor in the strip below the window, and every Windows job of e2e.yml declares the screen before it
starts pytest (red on main's e2e.yml). wrapper.unit.all rows +2.
2026-11-26 02:26:32 +01:00
feder-cr 041010070c tests: every e2e test on Windows starts with the OS cursor parked outside the browser window
An autouse fixture per e2e test, and one per module that has an e2e test (a module-scoped browser opens its window before the first test of the module),
calls tests/_os_cursor.py park: the cursor goes to the bottom-right corner of the virtual screen, where no window of the engine is, and is read back. The
window then opens away from the cursor and no native mouse move reaches the page in the middle of a recorded gesture; require_outside at the start of the
drag test and the humanise move count (previous commit) is green. Windows only: the Linux e2e run under xvfb-run, whose pointer is virtual.
2026-11-26 02:26:32 +01:00
feder-cr 9ea819445f tests: a gesture the page records starts with the OS cursor outside the browser window (red: on a Windows runner nothing parks it and it sits inside)
A headed window that appears under the real cursor gets a native WM_MOUSEMOVE for it; the first native move of a process passes Gecko's filter, so the
page saw `mousemove 512,299 buttons=0` after the press in the middle of test_a_real_page_sees_a_drag_that_travelled. The runner's cursor is at (512, 384),
inside the window (-8, -8) to (1928, 1040) of a 1920x1080 screen.

tests/_os_cursor.py: park_outside (a pure choice of a point of the virtual screen beyond every window rectangle plus a margin, a clear error when none
exists), cursor_is_outside, park (SetCursorPos read back with GetCursorPos) and require_outside, over user32 on Windows and no-ops elsewhere (the Linux e2e
run under xvfb-run, whose pointer is virtual). The drag test and the humanise move count (which asserts `off <= 2` page moves) call require_outside at
the start of their gesture. The unit rows of required-suites count the new file (+20 on each OS).
2026-11-26 02:26:31 +01:00
Federico Elia 2ec1a9026b Merge pull request #611 from oss-invisible/tests/ab-network-webrtc-evidence
ab network: the TURN path really works and the A/A proves it; the udp leaf counts STUN transactions
2026-11-26 02:25:59 +01:00
feder-cr f0d25a86ff ab network: the gateway marks the TURN deallocation from its payload (one shared reading), the count drops it by that mark, and one before the page began closing is a problem 2026-11-26 01:54:35 +01:00
feder-cr ca0c6e33f8 ab network: the TURN deallocation (a Refresh with lifetime 0, one best-effort send at teardown) is evidence, not a compared leaf; two of them, or one without an allocation, is a problem 2026-11-26 01:50:11 +01:00
feder-cr 46cf6a579a ab network: the A/A proves the TURN path it compares: a walk with no relay candidate, an error for the lab TURN, or a request the lab TURN refused is a problem on either side 2026-11-26 01:09:41 +01:00
feder-cr 0a031d2688 ab network: the probe uses the lab TURN's credential so the relay is really made; the fake TURN refuses a request whose integrity is wrong; the udp leaf counts STUN transactions, and a transaction over the engine's 7 transmits is a problem 2026-11-26 01:07:54 +01:00
feder-cr a9e56c0b21 ab network: the hunt also keeps the TURN server's answers, the relay's return datagrams and nICEr's log 2026-11-26 01:07:53 +01:00
feder-cr 04b7a79b66 ab network: the webrtc walk keeps, as evidence never compared, each datagram's time and STUN transaction and the page's own ICE times; e2e-hunt can repeat that walk alone 2026-11-26 01:07:53 +01:00
Federico Elia 2c5cd5ea79 Merge pull request #610 from oss-invisible/tests/worker-cache-back-evidence
tests/worker-cache: a red go_back keeps the Juggler record, the engine's session-history log and what the page says
2026-11-26 00:53:52 +01:00
feder-cr 877027f9f4 tests/worker-cache: the helpers of the evidence come after the test, so the guard reads wait_cacheable before the first go_back 2026-11-26 00:28:44 +01:00
feder-cr 0e48424da8 tests/worker-cache: a red go_back keeps the Juggler record, the engine's session-history log and what the page says
Candidate 45691494388 (job 139520127265) saw go_back end with "no new navigation on frame mainframe-11 in 30s" for top/other-site/goto and kept nothing. A hunt of 2960 iterations on that engine did not reproduce it (run 45711081489). The test now arms FailureEvidence with SHIPBFCache, nsSHistory, SessionHistory, BCWebProgress, DocumentChannel and BrowsingContext, and records what the page says when go_back raises and 2 s later. Diagnostic only: no assertion changes.
2026-11-26 00:19:44 +01:00
Federico Elia 43e1b355a3 Merge pull request #604 from oss-invisible/tests/unit-tests-never-reach-the-network
tests: a test that is not e2e never leaves the machine (socket and asyncio doors guarded, four tests declare the lab's exit)
2026-11-26 00:01:57 +01:00
feder-cr ebfd0fa573 tests: the ten unit tests that compose a launch declare the engine instead of asking GitHub for it
Run 45708815163 (this pull request, every pytest leg): the guard refused `api.github.com` in ten unit tests. Without
`binary_path=` a launch resolves the engine through `ensure_binary` (`_engine.resolve_executable`): with an engine in the
machine's cache it answers at once, with none it asks GitHub's release index and downloads the archive. So these
tests passed on any machine that had run `fetch` and went to the internet on a fresh runner (reproduced here with
INVISIBLE_PLAYWRIGHT_CACHE_DIR on an empty folder: 10 failed, 10 errors; with the fixture: all pass).

A fixture, `declared_engine` (tests/conftest.py), declares an empty executable in the test's folder as the answer of
`ensure_binary`; the file is never run. The ten tests take it:
  test_launcher_helpers.py: test_build_env_carries_the_declared_network, test_build_env_caller_env_override_wins,
    test_build_env_never_injects_font_env, test_build_env_no_font_keys_when_absent
  test_launcher_config.py: test_enter_with_profile_dir_calls_launch_persistent_context,
    test_enter_without_profile_dir_calls_launch_not_persistent, test_persistent_context_user_data_dir_is_created_if_missing,
    test_teardown_closes_persistent_context
  test_async_api.py: test_the_async_api_stamps_the_session_token_into_the_browser_env
  test_virtual_display_start_off_the_loop.py: test_a_second_browser_is_served_while_the_first_starts_its_display
The whole non-e2e selection with an empty engine cache and the guard: 3763 passed, 8 skipped (Windows).
2026-11-25 23:30:27 +01:00
feder-cr b699439355 tests: the version gate is the one declared third party of the guard (pypi.org, for its own file only)
Run 45647282454, job version: tests/test_version_is_not_taken.py asks the index whether the proposed version is
already published, which only the index can answer; the guard refused its lookup of pypi.org and the gate went red.
It is skipped unless IPW_CHECK_VERSION is set, which only the version job of tests.yml does.

tests/_no_network.py: DECLARED_THIRD_PARTIES names that file and that host alone. Its lookup of pypi.org passes and
the addresses it answered may be connected to; any other host, and pypi.org from any other file, stay refused.
Three cases (faked under the guard, nothing leaves the machine): the gate may ask the index and only the index; no
other file may ask it; the declared table is that one entry, so a new one changes a test in the same diff.
wrapper.unit.all rows +3 (3688 linux, 3692 windows).
2026-11-25 22:45:35 +01:00
feder-cr 7031c911c7 tests: the four tests that compose prefs through the core declare the exit of the lab
A new fixture, lab_exit (tests/conftest.py), declares the exit and the GeoIP database of the lab for one test that
is not e2e, as the e2e session has them (tests/_lab_egress.py). With no proxy the core asks the network where this
machine leaves from on every composition, even with a declared zone (zone, language and position come from the
exit): that is the product's rule, so the tests declare the answer instead of asking the internet.
2026-11-25 22:45:33 +01:00
feder-cr 464e0b132b tests: a test that is not e2e never leaves the machine (red: four tests asked the internet where this machine leaves from)
pyproject.toml says unit and integration are "no network", and nothing enforced it: the pre-push of the wrapper
failed on tests/unit/test_config_public.py where the network refused api.ipify.org and icanhazip.com.

tests/_no_network.py patches the four doors every client in the process goes through (socket.socket.connect,
connect_ex, sendto and socket.getaddrinfo) for every test that is not e2e (an autouse fixture of tests/conftest.py):
loopback, the unspecified address, localhost names, the documentation ranges and the address this host sends from
pass; anything else is refused (ConnectionRefusedError, what an offline machine shows) and recorded, and the record
fails the test at its teardown, with WHERE (the test), WHAT (door and destination), FIX and RULE, even when the code
under test swallowed the refusal.

Red on this commit, all through the core's one discovery of the exit (prepare_session_geo, no proxy):
  tests/unit/test_config_public.py::test_public_import_matches_direct_import
  tests/test_launcher_helpers.py::test_default_context_screen_matches_profile
  tests/test_launcher_helpers.py::test_default_context_color_scheme_follows_dark_theme
  tests/test_prefs_composition_arm.py::test_the_wrapper_composes_what_the_public_api_composes (green before: the
  core swallows the failed discovery when the zone is given, only the record catches it)

tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py (35 on Linux, 38 on Windows: the asyncio cases run on the selector loop, and on Windows on the Proactor loop too, which connects with ConnectEx and sends with WSASendTo, never through socket.socket) tests the guard; wrapper.unit.all rows +35 / +38.
2026-11-25 22:45:33 +01:00
Federico Elia a480b58677 Merge pull request #602 from oss-invisible/tests/h3-attempt-read-at-the-port
tests: h3 that was never tried is read as no datagram at the h3 port, not as a load time
2026-11-25 22:01:33 +01:00
feder-cr 995e2da01e tests: five h2 visits with no datagram at the h3 port are clean on a loaded runner, and a datagram there is an attempt whatever the load times
The verdict of an h2-only road is the judge of the protocols plus the attempt read at the port of the server; the time a visit took is no input of it.
One visit loaded in 2500 ms against 719 ms (a loaded runner) with nothing at the h3 port is clean; every visit fast with one datagram at the port is an
attempt. Four roads each; the unit rows of required-suites count the eight.
2026-11-25 21:00:48 +01:00
feder-cr 13286044c7 tests: the non-coherent SOCKS5 roads also read the attempt at h3 at the gateway (UDP ASSOCIATE asked, datagram into the relay)
The server's UDP port does not see an engine that tries h3 through the relay of a gateway: it asks for a UDP ASSOCIATE or sends into the relay.
relay_activity() is taken before the first visit (after the core's own measurement) and after the last; h3_attempts() reports what the engine
asked of the gateway in between. A unit test covers a granted and a refused ASSOCIATE and a datagram into the relay; the unit rows of
required-suites count it (+1 again).
2026-11-25 21:00:47 +01:00
feder-cr 4f4b8ab7a3 tests: behind an HTTP proxy (and where UDP is dropped) h3 is never tried, read as a datagram at the h3 port, not as a load time
The e2e judged the fallback by an absolute margin on page.goto (visit 2 loaded in 2500 ms against 719 ms), which is red on a loaded runner with
five visits that all read h2. The attempt is now read where it is born: H3Server records every datagram that reaches its UDP port
(udp_datagrams), a QUIC Initial included whether or not a handshake follows, and the h2 roads assert there is none. judge_visits no longer takes
load times, LOAD_MARGIN_MS and its debt entry in the clock exceptions are gone. A unit test proves the server sees an attempt that never
completes; the unit rows of required-suites count it (+1).
2026-11-25 21:00:47 +01:00
Federico Elia 46054486c9 Merge pull request #606 from oss-invisible/fix/element-handle-actions-walk-like-a-hand
ElementHandle pointer actions walk onto the element the way selector actions do (one click path, one fingerprint)
2026-11-25 21:00:14 +01:00
feder-cr 3e43f597e4 tests: the handle e2e prints what the page saw of the pointer and the core's turns when its opening sequence is wrong
Evidence only; the verdict is unchanged (`ordine[:2] == ['hover', 'click']`). Candidate 45621332479 recorded
['hover', 'hover', 'click'] once, and nothing told an exit and re-entry of the pointer from a spurious second
mouseover. The page now also keeps every mouseover, mouseout and click of the button with its relatedTarget, its
point and the button's box at that instant, and the first moves of the document; the test wraps the core's
actionability loop (Actions._retry, _center_point, hit_target: the originals are called with the same arguments) and
records the turns of each action, their hit-target verdicts and how they ended. All three go into the failure message.
2026-11-25 19:56:37 +01:00
feder-cr 8bcc2a9ca1 ElementHandle pointer actions walk onto the element the way selector actions do, one hand for every door
click, dblclick, hover, tap, check and uncheck (and so set_checked) of an ElementHandle called the core's actions directly: with no client cursor the approach is one mousemove onto the exact centre of the quad and a press there, while the selector actions go through Frame._by_hand / Pointer.act (a drawn path, a landing point of the session's own). The handle now goes through the same _by_hand with element=<its object id>: Pointer.act aims at that node (no selector looked up, the handle not disposed), and trial/force/strict/position/modifiers are read as before. The keyboard and text actions (fill, type, press, focus, selectText, setInputFiles) already end in the same core action as their selector twins and are unchanged. The comment that said a handle click was the humanised pointer is now true. Version 0.59.1.
2026-11-25 19:56:37 +01:00
feder-cr 292d86a15a tests: a handle's pointer action walks like a selector's (red: a handle click is one jump to the exact centre)
ElementHandle.click/dblclick/hover/tap/check/uncheck go straight to the core's actions, which with engine_approach off send one mousemove onto the exact quad centre and press there; the selector actions go through the server's hand. A unit test over the real core Actions and the real Pointer (only the connection and the injected script stubbed) and an e2e that asks the page. Both rows of wrapper.unit.all and one row per system of the e2e partition name the new files.
2026-11-25 19:56:37 +01:00
Federico Elia 2f5216b4c0 Merge pull request #605 from oss-invisible/fakeweb/stock-unsettled
fake web P2: a stock round that lost the end of a fetch the page aborted is stock unsettled, not a broken control
2026-11-25 19:56:04 +01:00
feder-cr c2c3d3c289 tests: the engine-off WebGL canvas test says why it got no context
The probe listens for webglcontextcreationerror and returns what it heard instead of null; after a first null the test waits 2 s and records a second attempt (statusMessages, renderer). The verdict stays the first attempt's. The test runs inside FailureEvidence with MOZ_LOG gfx2d.
2026-11-25 19:05:33 +01:00
feder-cr 4d0cbc8d08 fake web P2: a stock round that lost the end of a fetch the page aborted is stock unsettled, not a broken control; ours is judged against the declared outcome there 2026-11-25 18:16:44 +01:00
Federico Elia 7c4a9c0702 Merge pull request #599 from oss-invisible/tests/occlusion-cover-without-focus
tests/occlusion: on Linux the cover is a window of the test's own, and neither the pointer nor the focus may move
2026-11-25 18:15:17 +01:00
feder-cr 8fd5d8ae7d Merge remote-tracking branch 'origin/main' into tests/occlusion-cover-without-focus
# Conflicts:
#	ci/required-suites.json
2026-11-25 15:28:21 +01:00
feder-cr 2706c29676 tests/occlusion: the pointer, not the focus, is what the cover must not move
Run 45620136865 refuted the focus reading: with an X cover over the pointer 458 of 463 runs were red, FocusOut 0 of 40 on the old arrangement. With no window manager the focus is PointerRoot, the pointer sits inside the covered window, and a window mapped over it makes the pointer leave the toplevel; GDK turns that crossing into a GTK focus-out that redraws the window after FullyObscured.

- the display: the test warps the pointer to the bottom-right pixel of the root (from its read-back geometry) before any session starts.
- cover_rectangle keeps the pointer outside the cover (the margin shrinks on that side) and cover_window fails with "the pointer is inside the covered window, no free point on the screen".
- watch also selects Enter/LeaveWindowMask; crossings and focus events are kept with time, mode and detail; the pointer is read back once after the cover is up.
- precondition (both halves, before the page is judged): no crossing and no focus event on the covered toplevel, pointer outside both rectangles; message starts "arrangement: the covering moved the pointer or the focus".
- unit cases for all of it; min_tests of wrapper.unit.all.* raised by 11.
2026-11-25 15:27:21 +01:00
Federico Elia 1e8d47cb6e Merge pull request #598 from oss-invisible/ci/pin-actions-by-sha
ci: every action and reusable workflow pinned to a commit SHA, and a test that refuses an unpinned one
2026-11-25 14:37:04 +01:00
feder-cr 2273bb1f77 CI: pin every action and reusable workflow by commit SHA, with a rule test
Every uses: in .github/workflows is a local path or owner/repo@<40 hex> with the
version in a trailing comment. SHAs resolved from the official tags through the
API; the cross-repository noreply-identity reusable is pinned to the last core
commit that changed that file. tests/test_every_action_is_pinned_by_commit_sha.py
refuses any other form (FAIL file / job / step) and is in the wrapper.unit.all rows
(min_tests 3650 linux, 3651 windows).
2026-11-25 13:56:10 +01:00
feder-cr 063a507a9c tests/occlusion: the cover on Linux is a window of the test's own and the focus must not move
The covering window was the second Firefox session's. When it mapped it took the X focus; the covered toplevel got FocusOut and GTK draws a window that loses the focus (nsWindow::OnExposeEvent -> NotifyOcclusionState(VISIBLE)). When X delivered Partially, FocusOut and Fully in one batch, that draw ran after the Fully and the page never recorded hidden (hunt run 45603211231, 58 reds of 1294).

- _x_visibility: override-redirect InputOutput cover (cover_window, destroy_window), FocusChangeMask with VisibilityChangeMask on the covered toplevel, FocusIn/FocusOut kept with their time, focus_moved for the precondition.
- test_window_occlusion_e2e: on Linux no second session; both halves assert that no FocusOut reached the covered toplevel before the page is judged ("arrangement: the covering moved the focus"). Windows unchanged.
- _evidence_on_failure: MOZ_LOG_FILE carries %PID, one log file per process.
- unit cases for all of it; min_tests of wrapper.unit.all.* raised by 13.
2026-11-25 13:49:56 +01:00
Federico Elia 92adffd3ee ci/py-lock/gate: the pip lock of the engine series' gate, with hashes, read by its wheelhouse at wrapper_ref (#596)
* ci: the lock of the gate environment (ci/py-lock/gate.txt), resolved once with hashes, and the test that it follows its sources (ci-03)

The engine series' gate installs the wrapper's environment offline from a wheelhouse made of a lock that lives here. gate.in is written by
scripts/ci_py_lock.py from pyproject.toml (dependencies without invisible_core, and the dev extra), the dependencies of the pinned core, the playwright
pin and cryptography 44.0.3; gate.txt is its uv pip compile --universal --generate-hashes --no-build result. The new test reads both offline and is red on a
missing dependency, a range, an entry with no hash, a pin that moved without the lock. Registered in both wrapper.unit.all rows (min_tests recounted).

* ci: the archives of Playwright's Firefox are pinned by sha256 in ci/py-lock/playwright-browsers.json, with its generator and a test (ci-03)

The gate of the engine series installs Playwright's own Firefox for the stock rows. Its archives (Firefox and FFmpeg on both platforms, winldd on Windows) are
now pinned here, at the wrapper_ref the gate selects, for the Playwright of scripts/playwright_pin.txt.

scripts/ci_playwright_browsers.py writes the file: it asks the pinned Playwright for the URLs with `install --dry-run` on each platform, downloads each archive
once and hashes it. The test reads the file offline and is red on another version, a missing platform or archive, a bad hash, an absolute URL or a file that is
not the generator's bytes. It runs in wrapper.unit.all on both systems; min_tests 3624 -> 3642 (linux) and 3625 -> 3643 (windows), by collection.
2026-11-25 10:31:49 +01:00
Federico Elia fc8e7da94a ci: the rows of the registry carry the details of each leg (runner image, timeout, cores, ...) (#595)
The gate of the engine series will derive its matrix from ci/required-suites.json, so every per-leg
detail must be a field of the row. Optional fields, absent = the plain leg: runner_image, timeout_minutes,
needs_userns, core_dumps, stock_firefox, location_service, run, extra_steps (closed set), moz_log,
juggler_trace, artifact. Set on the rows that need them today; no row, os, test or minimum changes.

ci_verdict.py validates each known field (type and closed values, named); unknown names stay ignored.
A new test pins the validation and the table of the fields on the rows. wrapper.unit.all lists and
minimums follow the new test file (3610 / 3611, counted by collection on Python 3.11).
2026-11-25 02:55:31 +01:00
Federico Elia cad287d504 tests: date:date-time() called from an imported stylesheet is in the declared zone (#594)
An e2e test for the road a site uses: a main stylesheet that xsl:imports a
second one, both loaded by address, the imported one calling EXSLT's
date:date-time(). A context with timezone_id=Pacific/Kiritimati reads +14:00;
a launch with an empty declaration reads what getTimezoneOffset() says, and
that is not +14:00.

The file is added to wrapper.e2e.suite.linux.3 and wrapper.e2e.suite.windows.4
and their minimums go up by one.
2026-11-24 23:42:52 +01:00
Federico Elia 73a72cc540 tests.yml: the unit job judges the exact counts of wrapper.unit.all on Python 3.11, and min_tests follows the collection (#593)
PR #590 added a test to tests/test_ab_host.py without raising min_tests of
wrapper.unit.all.<os>; the PR checks (pytest tests/, floor 380) were green and
the engine series' gate went red ("the suite is exact").

The unit job now runs, on the Python 3.11 legs of both systems, the selection of
the row (ci_verdict.py args --with-marker) with a junit, and judges it with
ci_verdict.py judge from main against ci/required-suites.json, the list of main
as --main-required. The files outside the row run in a second, small pytest
(--ignore of every file of the row): no test runs twice. The plain run and its
floor stay for the other legs.

min_tests 3575 (linux) and 3576 (windows), counted by collection, including the
new test that holds the workflow to this.
2026-11-24 18:41:07 +01:00
Federico Elia a2dc1b6c2f record 0.59.0 as published (#591) 2026-11-24 12:09:59 +01:00
Federico Elia 9a6c12f0cb ab host: the presence of the pingsender and of what it spawns is listed, never red (#590)
Run 45364818483 (e2e on main 5a68489d, host windows): the A/A of the 68 broke on proc.socket<-pingsender, in no launch of one run and in every launch of the other. Whether a launch starts Mozilla's pingsender is canUpload()'s, not the engine's to hold, and with a few launches per side the rule of every kind turns that into a difference of the engine with itself. The kinds backgroundtask/pingsender and <kind><-pingsender are listed (not-judged), never red; their paths, their destinations and the separate pingsender[.exe] stay judged, and every other kind keeps the rule. A test with the shape of that run is red on the old oracle.
2026-11-24 11:14:44 +01:00
Federico Elia 5a68489dc3 Merge pull request #572 from oss-invisible/integ/candidate-69
Integration for the next candidate: #555, #567, #566 and #568 on main 3527f573
2026-11-24 10:23:56 +01:00
feder-cr 5076cec4c2 release 0.59.0: pins invisible-core 69.82.0 (engine firefox-69)
ci/persona-seeds.json names the core it was computed with: 69.82.0, same content.
2026-11-24 09:41:55 +01:00
Federico Elia 3722690103 Merge pull request #589 from oss-invisible/tests/ab-host-exit-ignores-reused-pids
ab-host: the wait for the exit ignores pids that Windows handed to another process
2026-11-24 07:00:18 +01:00
feder-cr 1156f42860 ab host: the run of the reused pid is 45328762166 2026-11-24 06:52:22 +01:00
feder-cr 69afb93aa2 ab-host: a pid of the tree is alive only while it is still that process
Windows hands the pid of an ended process to the next one it makes: pid 7352
of the tree ended at 05:05:33 and was TiWorker.exe at 05:05:38, so the wait
for the exit saw the tree alive for the whole 120 s (A/A seed 4 side A).
A pid of the tree has ended when the audit has its 4689 after its 4688, or,
with no 4689, when the process that has the pid was created after the birth
the audit gives. EXIT_LIMIT_S is unchanged.
2026-11-24 06:43:23 +01:00
Federico Elia 4eea99197d Merge pull request #588 from oss-invisible/ci/unit-min-tests-measured
ci: unit minimums are the counts the gate measured
2026-11-24 06:35:58 +01:00
feder-cr 539f5203ee ci: the unit minimums are the counts the gate measured (3563 Linux, 3564 Windows)
The two linux-deps PRs raised wrapper.unit.all by the size of each version of
tests/test_ci_linux_legs_read_no_mirror.py while the second one replaced the
first, so the minimum counted 78 new tests where 66 exist (plus 5 of the
occlusion test). Republish 45328762166 collected 3563 on Linux and 3564 on
Windows, against minimums of 3575 and 3576.
2026-11-24 06:20:23 +01:00
Federico Elia ec4db32b62 Merge pull request #587 from oss-invisible/tests/occlusion-control-sees-hidden
tests: the occlusion control judges that hidden was recorded after FullyObscured
2026-11-24 05:46:50 +01:00
feder-cr 7ce4b16a3a tests(occlusion): the engine's window log at Widget:4, the level of nsWindow's LOG 2026-11-24 05:37:47 +01:00
feder-cr 57a2e612b3 tests: the occlusion control judges that hidden was recorded after FullyObscured, not the final state
nsWindow::OnExposeEvent calls NotifyOcclusionState(VISIBLE) at every draw of the
window's container (Mozilla's code, the same in retail), so a draw after X's
FullyObscured makes the page visible again and the control, which read the
final state, was a race.

The control now takes the page's list of visibilitychange entries and passes
when hidden was recorded after FullyObscured; the product half is unchanged
(hidden never seen). A deterministic case on Linux draws the covered window
again while it stays covered (one pixel narrower through X): the page must
record visible, hidden, visible. The decision is a pure function with unit
tests, and the engine's Widget log goes into the evidence folder.
2026-11-24 05:29:08 +01:00
Federico Elia 7c9d414af9 Merge pull request #585 from oss-invisible/ci/linux-deps-repository
ci: Linux legs install from the run's repository of the closure (linux-deps, second form)
2026-11-24 05:23:08 +01:00
feder-cr a3cb07c126 ci(linux-deps): a root only provided is its one provider (libgtk-3-0's closure came without libgtk-3-0t64: apt-cache depends --recurse does not walk from a virtual root); identical to the series' copy 2026-11-24 04:49:16 +01:00
feder-cr ba86f02ee7 ci(linux-deps): each fetch of the closure retries 5 times, the MB and seconds of the download are logged (identical to the series' copy) 2026-11-24 04:20:10 +01:00
feder-cr 30ce3226d8 ci(linux-deps): a root may be a provided name, the entry per release of the image, the closure downloaded 8 at a time
libgtk-3-0 is a name libgtk-3-0t64 provides on noble and the root check read Package: alone (linux-deps-real-sites
red); a key per image build missed the entry whenever the builds of a release are mixed; the closure read one
package at a time took 13 minutes from a slow mirror. linux-deps.yml stays identical to the series' copy.
2026-11-24 03:48:21 +01:00
feder-cr 0663250d48 ci: the Linux legs install from the run's repository of the closure (second form of linux-deps)
The first form installed the .deb files the job's image lacked against the
leg's own image and lists; GitHub mixes builds of one image in one run, and
legs failed with "E: Unable to fetch some archives".

linux-deps.yml (identical to the series' copy) now hands the jobs a
repository: the roots and their whole closure, a Packages index and
roots.txt. A leg installs the roots by name with an apt that reads only that
repository (its own sources list and lists folder) and --no-download. The
Playwright pin is read from playwright_wrapper_ref (github.sha) instead of the
`playwright` flag.

tests/test_ci_linux_legs_read_no_mirror.py follows the same rules as the
series' test: the only apt lines are the two allowed ones, APT and the sources
list are local, the files are copied into apt's archives, the artifact is
downloaded before the install; it is red on the first form.
2026-11-24 03:20:40 +01:00
Federico Elia 13cd04a8d3 Merge pull request #584 from oss-invisible/ci/linux-deps-no-mirror
ci: Linux legs install packages from the run's linux-deps job, never from Ubuntu's mirror
2026-11-24 02:52:13 +01:00
feder-cr 83293b8184 ci: the Linux legs install their packages from the run's linux-deps job, never from Ubuntu's mirror
A run lost a green leg to its time limit because `playwright install-deps firefox` fetched 48.8 MB
from the mirror at 102 kB/s (about 8 minutes per leg). linux-deps.yml fetches the .deb files once
per runner image and list (xvfb, strace, gdb, elfutils or the leg's own packages, plus what
`install-deps --dry-run firefox` names for the pin of scripts/playwright_pin.txt), keeps them in a
cache entry and hands them to the run as the artifact linux-deps-<name>. The legs of e2e.yml,
fakeweb.yml, e2e-hunt.yml, real-sites.yml and user-install.yml need that job and install the local
files with --no-download: no apt-get update, no install-deps, no install from the archive.

tests/test_ci_linux_legs_read_no_mirror.py refuses those three in any job, requires each installing
leg to download the artifact of a linux-deps call it needs before its first install, and is in both
unit rows (3529/3530). The tests that read the job headers of e2e.yml, fakeweb.yml and
real-sites.yml follow the new needs.
2026-11-24 02:40:59 +01:00
feder-cr fead0e8c44 Merge tests/etw-session-lifecycle (#583) into the integration for the candidates 2026-11-23 23:12:13 +01:00
feder-cr a158db2151 ci: the stock control of the geolocation step reads the first host read Firefox makes for location, and our engine must make none
Republish 45257636942 (windows-2022): stock Firefox did not start the location utility process
(sandboxingKind=3), while on the same image it did in 45165805370, 45170547415 and 45252267809. The runner
has no source of position (getCurrentPosition answers code 2), so the utility depends on the runner. Stock
loaded capabilityaccessmanagerclient.dll (the CheckAccess of GeolocationSystemWin.cpp) in every launch
that ran, 5 of 5. The 68, the 68 again and the candidate loaded no location module in any of 168 launches.
- The stock control is broken only if stock ran and did not load capabilityaccessmanagerclient.dll. The
  utility is still recorded and printed.
- Our engine, on both sides of the A/A and the candidate in the A/B, the idle launch included: a location
  module or the location utility in any launch is red.
Unit rows 3492/3493.
2026-11-23 22:53:22 +01:00
feder-cr 0b63169b51 ci: the host oracle's ETW session is read from the list of sessions, waited for after its stop, and its errors say Windows' code
Gate 45257629988 (Windows, seed 6): `logman query <session> -ets`, the round trip between the canaries, failed
with 0x80071068 (4200, ERROR_WMI_GUID_NOT_FOUND) right after a successful create. The launch went without a
trace and the A/A was broken, under a line that blamed the administrator.
- The round trip reads the list of sessions (`logman query -ets`, which does not resolve the providers): the
  launch's session must be there and Running. A read that fails is read again every 0.25 s until the
  condition holds or the 120 s hang guard runs out. The browser starts only once it holds.
- After every stop, the next launch waits until the session is gone from that list (same read, same guard).
- Errors carry the command, the code in hex and Windows' text; "it needs an administrator" only for access
  denied (0x80070005).
Unit rows 3482/3483.
2026-11-23 22:06:11 +01:00
feder-cr 4a840e39b0 Merge tests/the-covered-window-is-covered-before-it-is-measured (#582) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 111dc3bf69 Merge tests/gl-probe-born-before-goto (#581) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 87f26ec99d Merge tests/location-checkaccess (#580) into the integration for the candidates 2026-11-23 21:06:48 +01:00
feder-cr 41738dcc3d ci: the host oracle judges the kinds of processes by the rule of the paths, keeps the raw audit of every launch, and drops a pid only when it is born again
Run 45228081536 (Windows): the A/A of the 68 was red on how many pingsenders a launch started (2, not 0 or 3)
and on whether they spawned a socket process. Mozilla's pingsender leaves in some launches and not in others
(measured: 6 short launches of 48, 5 long ones of 16).
- The kinds of processes follow the rule of the host paths: red only if a kind is in every measured launch of
  one engine and in no launch of the other. The other kinds, pingsenders included, are listed with their
  counts in not-judged[-a-a].json. The count rule for the pingsenders is gone. The separate pingsender
  executable and the pingsender's destinations are still judged, and so is the stock control's location
  utility process.
- process_tree: a pid of the tree stops counting only when it is born again as a process that does not join
  (plus the creator's name). A creator's end no longer excludes a child logged after it.
- Every Windows launch saves the raw 4688/4689 events of the tree and of the processes left out, with the
  reason, next to its footprint.
Unit rows 3464/3465.
2026-11-23 20:36:54 +01:00
feder-cr 3f63899afb tests: the covered window is measured only once Windows says the cover is in front and the tracker has been signalled (hunt run 45226548295)
The Windows half of the occlusion test judged the page after a Z-order change that the tracker never hears: WinWindowOcclusionTracker recalculates on
hooked events (foreground change, move or resize, minimize, state change, cloak, location change of a process that had a visible window), not on a
change of the Z-order, and the second move of the covered window went to where it already was, so it sent nothing. When the covered window kept the
foreground the tracker was never told, and the page stayed visible for the whole deadline.

The test now builds each precondition with calls the system honours and waits for it, with a deadline, as Windows reads it back:
- before the page is asked anything, the covered window is made topmost and moved by one pixel, and the test waits until nothing above it covers it and the
  page reads visible (a window of the same size opened over it by another session or by the load of the runner no longer reads as "hidden before anything
  covered it");
- the cover is made topmost, the covered window moves inside it, and the test waits until the read-back says the cover covers it ("the lab could not cover
  the window" otherwise, never a verdict about the page);
- the tracker is signalled after that with a real one-pixel move, repeated while the page still reads visible, so a page that never turns hidden is the
  engine's.

The step that only recorded, without a verdict, whether the system kept a plain Z-order is gone (it spent a full deadline in the control half and would
now read as kept every time); the foreground window and the number of signals are recorded on every run.
2026-11-23 19:07:26 +01:00
feder-cr e3572f289f ci: the host oracle's process tree takes a process only while its creator is alive in it
Run 45221868374 (Windows, idle launch of the 68): a Windows service (svchost wlidsvc), seven wevtutil and two
wsl of the oracle entered the engine's tree because their creator's pid matched a pid of the tree that Windows
had reused. The service never exited, so the wait for the tree's exit ran out and the A/A was broken.
process_tree now walks births (4688) and ends (4689) in order: a process joins only if its creator is alive in
the tree at its birth, and only if the creator's image matches ParentProcessName when the audit gives it.
A stranger that takes the pid of a process that has gone drops that pid. The trace turns on the
process-termination audit and puts it back afterwards; without it the tree relies on births alone.
Unit rows 3450/3451.
2026-11-23 18:20:50 +01:00
feder-cr 78271d32ce tests: with the engine off the host GL probe is born before the first goto (Linux) 2026-11-23 18:11:37 +01:00
feder-cr 16bf5d37c4 ci: the host job reads Windows' answer for location (CheckAccess) before and after turning it on, and is red unless Allowed
Run 45206303882 (gate, windows-2025): the location keys said Allow and lfsvc ran, and stock Firefox did not
start the Windows provider. Before it does, Firefox asks AppCapability("location").CheckAccess(), and that
answer was never read. The step now prints it before and after, and is red unless it is Allowed after.
2026-11-23 17:46:56 +01:00
feder-cr 71d8dfa4f6 Merge tests/journey-hang-guard (#579) into the integration for the candidates 2026-11-23 16:23:32 +01:00
feder-cr 1adc3f3ccf ci: a visit of the HTTPS and HTTP/3 walks is left only after its origin's favicon is served and the page is network-idle
A/A run 45189518824 (Linux): in one run the second visit of the HTTP/3 page asked for /favicon.ico, in the
other it did not. Over 14 transcripts of the day Firefox asks once per origin of a launch: in the journey
on the first page of each origin (140 of 140), on no page of the other steps (0 of 980), and in the walks
?v=1 always asks while ?v=2 does not (59 and 60 of 60). Hypothesis, not proved: the goto of ?v=2 races the
recording of ?v=1's favicon.
- settle_visit, the one point a visit is left from: the favicon of the page's origin has been asked for
  and served in full (WireServer.answered_at, marked after the last byte on http1, h2 and h3), then the page
  reaches networkidle. Each wait has the 120 s hang guard; one that reaches it is an error of the
  transcript that names the visit and the missing wait.
- The evidence of the transcript keeps the arrival and the end of the answer of the HTTP/3 requests,
  for the measure to make if this falls again. The journey is not touched.
- Unit rows 3443/3444.
2026-11-23 15:42:37 +01:00
feder-cr 2e2ce133df tests: the waits of the fake web's journey have a hang guard, and a wait that reaches it says its stage
Run 45176061220 (gate, Windows, network oracle): in one launch the runner was 3 to 4 times slower for
about 100 s. From the click to `load` steps 2 and 3 took 18.9 and 22.1 s (4.5 to 10.2 s on 480 pages in
6 runs), over the 15 s default deadline of the walk's context. A deadline meant for a hang became a leaf of
the comparison and the A/A of the published engine was red.
- TIMEOUT_MS becomes HANG_GUARD_MS (120 s), the deadline of every wait of the walk that has no time of its
  own; the wait for the noise uses it too. The back/forward keys and the networkidle time keep their own.
- A wait that reaches the guard says which wait, on which page, and the last request the site saw, in
  place of "Timeout Nms exceeded". Only the stage and the page are compared.
- Fake site pages that hold `load`: a click to a page that holds it 20 s is a passed step, and a page that
  never loads names `navigation to load` with a small guard.
2026-11-23 14:52:35 +01:00
feder-cr 472db8a7b3 Merge tests/oracle-controls-r2 (#578) into the integration for the candidates 2026-11-23 12:44:28 +01:00
feder-cr 5a328bb87c tests: the host e2e expects the stock control's footprint on Windows, in the A/A and with a candidate
Run 45165805370: the stock control passed (utility sandboxingKind=3) and the e2e was red only on the list of
footprints, which did not have it. expected_footprints holds the four cases (Windows/Linux, A/A/candidate).
Unit rows 3418/3419.
2026-11-23 12:44:06 +01:00
feder-cr 60f4fb7679 ci: the trace of the host oracle's stock control is rooted at the parent of stock Firefox, not at the oracle
Run 45162128126: stock Firefox answered getCurrentPosition (error 2) within a second and then stood in
`seed result` until its 120 s limit: the trace waited for the tree rooted at the oracle's own python, which
cannot exit (EXIT_LIMIT_S). The root is now the stock browser's parent process, found among the oracle's
descendants after the launch, as an engine's root is its parent; one not found is a broken control that says so.
Unit rows 3417/3418.
2026-11-23 12:23:04 +01:00
feder-cr 121cd4b5e0 ci: the host job turns on the runner's location service; the stock control has its own limit and says its phase; the network guard is the measured run plus 25%
Run 45153612447 (PR #578), host on Windows: the A/A was green, then the stock control stood still for more than 26 minutes,
until the test's guard killed the python child alone and nothing was said. On the runner the location service is off and
denied for the machine (lfsvc Disabled and Stopped, the machine's location consent Deny).
- e2e-host-windows turns the service on before any launch: lfsvc made startable and started, consent Allow for the machine
  and for the user's non-packaged apps. A setting that does not hold is red with its reason. The claim of the geolocation step
  is unchanged.
- The host test runs the oracle through crash.run_tree. The stock control runs in at most 120 s (crash.run_tree) and prints
  every phase, so a control that does not end says the phase it stood in.
- Network: the test's guard is the slowest measured run plus 25% (runs 45121964904 and 45153612447): 2197 s for the A/A,
  3285 s with a candidate. The network jobs of the PR have 50 minutes.
- Unit rows 3415/3416.
2026-11-23 11:59:07 +01:00
feder-cr b5f8865ea5 release 0.59.0: version and changelog (the unpublished 0.58.1 entry folds into 0.59.0) 2026-11-23 11:42:22 +01:00
feder-cr b1550faf89 ci: the unit rows counted again (3407/3408) and tests/test_glean_ready.py named in them 2026-11-23 11:02:42 +01:00
feder-cr efa6d948fe ci: the host and network oracles close only after Glean has initialised, and their controls say why they broke
Run 45121964904 (the gate of the 69) had three red controls, none from the candidate:
- network, Linux: the published 68 exited with -11 in the exit-pings launch. It is Mozilla's race:
  a session closed before Glean initialised makes it start inside the shutdown, where glean.init can
  panic ("No database found"). That launch had no window, so Glean was always born in the shutdown.
  Every launch of the two oracles now waits, right after its first page, for
  <profile>/datareporting/glean/db/data.safe.bin (a condition read from the host; 60 s is a red
  safety limit). The launch's own work always sits between the condition and the close. The
  exit-pings launch opens a page and navigates once before it closes, and its wait for the
  data-policy pref (which never came) is gone. The host's bare launch, never compared, is removed.
  Each launch keeps the listing of datareporting/ as evidence.
- network, Windows: the subprocess timeout killed only the python child; the firefox grandchild
  held the pipe and pytest timed out without a word. crash.run_tree writes the output to files,
  kills the whole tree, and names the launch that was alive and for how long.
- host, Windows: the stock control never started (Playwright's Firefox was not installed) and was
  reported as "does not reach the platform provider". It now runs after a green A/A on every
  Windows run, pull requests included. The job installs the browser, a missing executable is said by
  name, and a stock that ran without reaching the provider prints its processes and modules. A
  read-only step prints lfsvc and the location consent keys.
2026-11-23 11:02:42 +01:00
feder-cr 6d42084c95 Merge f2bd726e (#571) into the integration for the candidates
The partner tab of step 10 is closed from the walk's one point (Journey.leave) and the walk then waits
for its two pagehide requests, as integ already did; the fake tab of the unit test of that wait answers
the noise-done wait. The rows counted again by the collection: unit 3384/3385, suite.linux.2 412,
suite.windows.3 274.
2026-11-23 06:27:19 +01:00
feder-cr cf0c7ba3d2 Merge tests/ab-host-aa-stable into the integration for the candidates 2026-11-23 06:27:19 +01:00
feder-cr 3c09b863bf ci: the host oracle judges every host path by one rule, red only if in all measured launches of one engine and in none of the other, and lists the rest 2026-11-23 06:23:07 +01:00
feder-cr 583516ca34 tests: the host oracle's one rule on real A/A and A/B footprints and on built cases (red on the current judge) 2026-11-23 06:23:07 +01:00
feder-cr f2bd726ef4 tests: a page declares its noise done only once its fetch chain and its streams have sent their release
The network oracle of the run 45088980743 (Windows) saw `GET A/release?id=lp<TOK>` once in one run
of an engine and twice in the other: the home page of step 15 had sent its last stage and its
fonts, but its chain of seven fetches had not yet sent the release that ends it when the walk asked
for /account. window.__noiseDone did not cover that stage. It is now true once the fonts, the last
stage, the release of the fetch chain (stage 5) and the releases of the three aborted streams
(stage 9) have all been answered. A held request of a parked page stays out of it.

The check of the walk (journey_site.pages_left_before_their_noise) also asks, for every page, for
the release that ends its fetch chain, with the page as its referrer, before the walk leaves it.

Unit tests: a page left before that release is found; the page declares the new conditions. Both
red on the previous site. Counts: unit.all.linux 2426 -> 2427, unit.all.windows 2427 -> 2428.
2026-11-23 05:26:56 +01:00
feder-cr 715cbc9e59 tests: the late stylesheet of a partner page is read with the page's own URL as its referrer
The check of the p4 walk (journey_site.pages_left_before_their_noise) expected the late stylesheet
ld3 of a page of the other origin with the origin alone as its referrer. The partner page loads ld3
from its own origin: a same-origin request carries the whole URL of the page (O/partner/8). In the
run 45074928774 the stylesheet arrived 3 s after `load`, after the walk had waited for the page's
declaration, with that referrer, and the check called it missing (Linux job 137370233977, Windows
job 137370233997). The driver was right; the expected referrer was wrong.

Unit tests: the partner page is found by its own URL (red on the previous check, green here); step
10 closes the partner tab only after the wait for the tab's declaration (red when the cleanup
closes it at once); the source check also pins goto to the first page and forbids reload.

Counts: unit.all.linux 2424 -> 2426, unit.all.windows 2425 -> 2427.
2026-11-23 05:22:30 +01:00
feder-cr 88b3de4320 tests: the p4 walk leaves a page from one point, once the page has declared its noise done
Every page of the journey site now declares the end of its noise: window.__noiseDone is true once
the font stage is done (its stylesheet has loaded and document.fonts.ready has resolved after the
spans were laid out) and the last stage has loaded its stylesheet ld3; at once on a page without
noise.

The walk leaves a page only from Journey.leave, which waits for that declaration (deadline 30 s,
never a pause) before the act that leaves: every navigating click and Enter (Journey.navigate),
back and forward (history_step), closing the partner tab (step 10) and the end of the walk (the
context closes the last page). The same driver runs for stock Firefox and for ours, so the
verdict "same outcome as stock" is unchanged.

Unit tests (red on the previous commit's driver, green here): step 15, the form keys of steps 12
and 14, back and forward, the tab and the last page, a source check that every navigation, back,
forward and close of the walk goes through that one point, and the page's declaration.

Counts: unit.all.linux 2418 -> 2424, unit.all.windows 2419 -> 2425.
2026-11-22 22:51:11 +01:00
feder-cr bf3823036a tests: the p4 walk must leave a page only once its noise is done (red on the current driver)
The network A/A oracle on Windows differed at step 15 of the journey (ld3 1 vs 2, woff2 5 vs 7):
the walk clicks Account as soon as the home page has loaded, while the home page's noise still
runs on timers after load (fonts at 250 ms, the late stylesheet ld3 at 600 ms).

The lab can now make the last stage of the noise long (journey_site.start(last_stage_ms=...)),
and the site's record keeps the referrer and the type of every answer. The new e2e test runs the
walk with that stage at 3000 ms and reads the record: every page's ld3 (with the page as its
referrer) and its five woff2 must arrive before the walk's next navigation
(journey_site.pages_left_before_their_noise). The current driver leaves the home page of step 15
right after load, so the test is red on it by construction.

Counts: wrapper.e2e.fakeweb 4 -> 5, e2e.suite.linux.2 411 -> 412, e2e.suite.windows.3 273 -> 274,
unit.all.linux 2413 -> 2418, unit.all.windows 2414 -> 2419.
2026-11-22 22:44:57 +01:00
225 changed files with 32262 additions and 11995 deletions

No files matched your search

+7
View File
@@ -21,3 +21,10 @@ ci/persona-seeds.json text eol=lf
# (tests/test_every_wire_method_is_served_or_refused.py): a Windows runner checks
# out with autocrlf and would hand the test CRLF that nobody wrote.
tests/gates/wire_method_debt.json text eol=lf
# The lock of the gate is hashed byte for byte: its header names the sha256 of gate.in, so neither file may be rewritten with CRLF on a Windows checkout.
ci/py-lock/** text eol=lf
# The vendored bundles are third-party bytes whose sha256 is pinned in tests/vendor/README.md: no checkout converts their line endings
# (a Windows runner with core.autocrlf=true would hand them over with CRLF and the hash would no longer match).
tests/vendor/*.js -text
+3 -3
View File
@@ -35,18 +35,18 @@ jobs:
timeout-minutes: 10
steps:
- name: Check out the script (main)
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
path: main
- name: Check out the badges branch
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
ref: badges
path: badges
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
+77 -4
View File
@@ -22,6 +22,15 @@
# Windows runner separates the two without asking anyone to stay off it
# for six hours.
#
# A second use, chosen by the input `ab_network_webrtc_seed` (empty = the loop
# above, as always): the network oracle's WebRTC walk of that seed, alone,
# `runs` times for each engine of its A/A (the published engine twice). It
# exists to tell two readings apart when the A/A of that walk differs from
# itself in the number of TURN Allocate datagrams (scripts/ci_ab_network.py:
# AB_NETWORK_HUNT): each repetition keeps every datagram with its time and its
# STUN transaction id and the page's own ICE times (network/hunt/<engine>-<i>.json,
# summary in network/hunt/summary.json). It decides nothing: the step exits 0.
#
# Doesn't start on its own: `workflow_dispatch` only. It's not a gate, it's
# an investigation tool, and it must not be added to the required contexts.
# ─────────────────────────────────────────────────────────────────────────────
@@ -34,6 +43,10 @@ on:
description: "How many runs at most (at 12% it takes ~18 for a 90% chance)"
required: false
default: "18"
ab_network_webrtc_seed:
description: "A seed (e.g. 4) to repeat ONLY the network oracle's WebRTC walk of, `runs` times for each engine of its A/A, instead of the e2e loop. Empty: the e2e loop."
required: false
default: ""
os:
description: "Where to hunt. windows-latest answers a DIFFERENT question: are the interaction retries seen on the dev machine the product or contention?"
required: false
@@ -59,9 +72,27 @@ env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
# The Ubuntu packages of the Linux hunt, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by the hunt. On Windows this job is
# skipped and the hunt runs on (the condition below accepts `skipped` and `success`, nothing else).
linux-deps-hunt:
name: linux-deps-hunt
if: startsWith(inputs.os, 'ubuntu')
uses: ./.github/workflows/linux-deps.yml
with:
name: hunt
packages: xvfb
playwright_wrapper_ref: ${{ github.sha }}
hunt:
name: hunt (${{ inputs.os }})
needs: linux-deps-hunt
if: ${{ !cancelled() && (needs.linux-deps-hunt.result == 'success' || needs.linux-deps-hunt.result == 'skipped') }}
runs-on: ${{ inputs.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(inputs.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(inputs.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
# 18 runs of ~6 minutes plus install time. Deliberately generous: the
# ceiling here must NEVER be the thing that stops the hunt, or we're back
# to a killed job that explains nothing, which is the original defect.
@@ -88,16 +119,49 @@ jobs:
# Linux only: on Windows the browser launches on the runner's desktop,
# and `firefox-launch-matrix.yml` has shown for months that it really
# starts there.
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-hunt job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-hunt.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb + Firefox runtime libs; the repository of the linux-deps-hunt job)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: The security state (a fixed directory of the repository)
if: inputs.ab_network_webrtc_seed != ''
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
- name: Fetch the published firefox binary
run: echo "FF=$(python -m invisible_playwright fetch | tail -1)" >> "$GITHUB_ENV"
- name: The GeoIP database (made by the repository, same bytes every run)
if: inputs.ab_network_webrtc_seed != ''
run: python scripts/ci_lab_geoip.py build
# The hunt of the network oracle's WebRTC walk: instead of the loop below, never with it. `runs` is the number of repetitions per engine.
- name: The network oracle's WebRTC walk of one seed, repeated (decides nothing)
if: inputs.ab_network_webrtc_seed != ''
env:
PYTHONUNBUFFERED: "1"
AB_NETWORK_HUNT: webrtc:${{ inputs.ab_network_webrtc_seed }}:${{ inputs.runs }}
run: |
set -u
if [ "$RUNNER_OS" = "Linux" ]; then PRE="xvfb-run -a"; else PRE=""; fi
mkdir -p network
$PRE python -u scripts/ci_ab_network.py ab --a-a --out network --published-binary "$FF"
- name: Loop until it catches one
if: inputs.ab_network_webrtc_seed == ''
env:
PYTHONUNBUFFERED: "1"
INVPW_TEST_WATCHDOG_FILE: evidence/e2e-watchdog.log
@@ -152,3 +216,12 @@ jobs:
evidence/e2e-watchdog.log
if-no-files-found: warn
retention-days: 14
- name: Upload the hunt of the network oracle's WebRTC walk
if: always() && inputs.ab_network_webrtc_seed != ''
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: e2e-hunt-network-webrtc-${{ inputs.os }}-${{ github.run_id }}-${{ github.run_attempt }}
path: network/hunt
if-no-files-found: warn
retention-days: 14
+450 -41
View File
@@ -80,6 +80,20 @@ jobs:
core-on-index:
uses: ./.github/workflows/core-on-index.yml
# THE UBUNTU PACKAGES OF THE LINUX JOBS, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by a job: a run lost a green leg to its time
# limit because a mirror served `playwright install-deps firefox` at 102 kB/s. One list for every Linux job of this file: xvfb (with xauth, its recommend, for
# xvfb-run), strace (the fontconfig suite, the host oracle and its recorder), gdb and elfutils (the cores of a browser that did not end with 0), and what
# Playwright's install-deps names for Firefox. The jobs install its roots by name from that repository, with --no-download.
linux-deps-e2e:
name: linux-deps-e2e
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
uses: ./.github/workflows/linux-deps.yml
with:
name: e2e
packages: xvfb strace gdb elfutils
playwright_wrapper_ref: ${{ github.sha }}
# THE e2e ON LINUX, IN THREE PARTS. One job ran the whole Linux e2e in 24.6 minutes on a normal runner and 35.7 on a slow one (the same tests, every
# one slower by the same 1.44x), close to the 40-minute ceiling. The files of each part are the rows `wrapper.e2e.suite.linux.1` to `.3` of
# ci/required-suites.json, the same partition the gate of the candidate runs on the engine under test (tests/test_the_e2e_suite_is_accounted_for.py
@@ -89,7 +103,7 @@ jobs:
# branch protection read.
e2e-linux:
name: e2e (linux, part ${{ matrix.part }})
needs: core-on-index
needs: [core-on-index, linux-deps-e2e]
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: ubuntu-24.04
timeout-minutes: 40
@@ -117,30 +131,42 @@ jobs:
python -m pip install ".[dev]"
# ⛔ The playwright package is NO LONGER a product dependency: the
# client lives in invisible_playwright._pw and the driver in _driver. It
# is installed here for ONE thing only, the `playwright install-deps
# firefox` step below, which downloads the SYSTEM libraries Firefox
# needs on a bare runner. The fork does not expose that subcommand
# on purpose (it is meant to drive, not to be a toolchain).
# is installed here as a system tool, not as a product dependency (the
# SYSTEM libraries Firefox needs on a bare runner come from the run's
# linux-deps-e2e job, which reads the roots `install-deps firefox` installs from the
# table of the same pin, once per runner image and list).
#
# That the product does not IMPORT it is verified by tests/test_fork.py,
# not from here: if someone one day reintroduced
# `from playwright...` in src/, this line would mask it, and that is
# exactly why that test exists.
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-e2e job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-e2e.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb, strace, gdb, elfutils + Firefox runtime libs; the repository of the linux-deps-e2e job)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xvfb
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# the fontconfig e2e trace the opens of the browser: strace is not in the runner image (setsid is, util-linux)
sudo apt-get install -y strace
# TEMPORARY (the -11 at the exit of the security state's generate): a core file of any crash where kernel.core_pattern says, and gdb to read it. tests/conftest.py
# lifts the core limit of the pytest session (the runner's default soft limit is 0) and, after a test that fails, tests/_crash_cores.py saves gdb's text of every
# core in INVPW_CORE_DIR under invpw-evidence/cores/<test>/ and deletes the core.
sudo apt-get install -y gdb
mkdir -p "$RUNNER_TEMP/invpw-cores"
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/invpw-cores/core.%e.%p"
echo "INVPW_CORE_DIR=$RUNNER_TEMP/invpw-cores" >> "$GITHUB_ENV"
sudo "$(which python)" -m playwright install-deps firefox
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
# STEALTHFOX_SECURITY_STATE set the core neither downloads nor generates one. BEFORE `fetch`, which makes the state present (it would download and generate it).
- name: The security state (a fixed directory of the repository)
@@ -385,8 +411,44 @@ jobs:
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: Install wrapper + test deps (the stock client is in the dev extra)
run: |
python -m pip install --upgrade pip
@@ -402,6 +464,18 @@ jobs:
env:
PYTHONUNBUFFERED: "1"
run: INVPW_BINARY_PATH="$FF" python -u -m pytest -m e2e -p no:cacheprovider -v tests/test_control_a_selects_all_in_a_field_e2e.py
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the tests saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: invpw-evidence-windows-control-a-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/invpw-evidence
if-no-files-found: ignore
retention-days: 14
# THE SAME e2e ON WINDOWS (Federico, 12/11: every test of the product runs on Linux AND Windows; where Windows behaves
# differently the test adapts to the system). Before this, 562 of the 808 e2e had never run on Windows in any round. The census
@@ -431,8 +505,44 @@ jobs:
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
# The A/A of the three A/B oracles (page, network, host) runs on the first seeds of the candidate set on a pull request, and on ALL of them when the pull request
# changes a file of that oracle (scripts/ci_ab_pr_seeds.py holds the lists). The checkout is shallow, so the script fetches the base commit and lists the files that
# differ from it (`git diff --name-only <base> HEAD`: HEAD is the merge commit, so this is the pull request's own change); the tests read the variables it prints.
@@ -496,6 +606,10 @@ jobs:
path: ${{ runner.temp }}/e2e-junit-*.xml
if-no-files-found: warn
retention-days: 14
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the tests saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -506,16 +620,17 @@ jobs:
retention-days: 14
# ``The network oracle``: the A/A of tests/test_ab_network_e2e.py (the P4 journey and the lab, the published engine against itself) on its own job, Linux and Windows,
# as its gate leg runs it. On a pull request that changes the oracle it visits all five seeds of the candidate set (scripts/ci_ab_pr_seeds.py), 30 minutes at most
# for the run (the test's own budget: 120 s to start and, for each of the two engine runs, 240 s for the first seed and 150 s for each next one; about 15 minutes on
# Linux and 19 on Windows expected), which would not fit in the shared job's 40 minutes next to everything else. The shared jobs leave this file out (OWN_JOB_FILES
# as its gate leg runs it. On a pull request that changes the oracle it visits all five seeds of the candidate set (scripts/ci_ab_pr_seeds.py), 37 minutes at most
# for the run (the test's own guard, from the measured runs plus 25%; about 20 minutes on Linux and 22 on Windows measured in run 45153612447), which would not fit in
# the shared job's 40 minutes next to everything else. The shared jobs leave this file out (OWN_JOB_FILES
# above, `own_job` in the Windows parts). The same setup as the shared jobs: the security state, the engine, the GeoIP database made by the repository.
e2e-network:
name: e2e (network, linux)
needs: core-on-index
needs: [core-on-index, linux-deps-e2e]
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: ubuntu-24.04
timeout-minutes: 40
# the network oracle's own guard (2197 s, two engine runs: the measured runs 45121964904 and 45153612447 plus 25%) and the job's own steps, with room for a slow runner
timeout-minutes: 50
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
@@ -532,18 +647,31 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-e2e job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-e2e.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb, strace, gdb, elfutils + Firefox runtime libs; the repository of the linux-deps-e2e job)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# What a browser that did not end with 0 leaves is kept by the oracle (scripts/ci_crash_evidence.py): the core goes through gdb (every thread's backtrace, the MOZ_CRASH reason, the
# libraries, with the build ids from elfutils). The kernel writes the core where its pattern says, so the pattern points at a folder of the job (INVPW_CORE_DIR); the launches
# allow cores themselves (`ulimit -c unlimited` in the host oracle's stand-in, the soft limit raised to the hard one in the page and network oracles). Nothing here reaches a
# launch that does not crash: no environment variable of the browser, no pref, no crash reporter option.
- name: Cores of a browser that did not end with 0 (gdb, elfutils, where the kernel writes them)
run: |
sudo apt-get install -y gdb elfutils
mkdir -p "$RUNNER_TEMP/cores"
chmod 1777 "$RUNNER_TEMP/cores"
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/cores/core.%e.%p.%t"
@@ -592,15 +720,56 @@ jobs:
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: windows-2022
timeout-minutes: 40
# the network oracle's own guard (2197 s, two engine runs: the measured runs 45121964904 and 45153612447 plus 25%) and the job's own steps, with room for a slow runner
timeout-minutes: 50
# TEMP and TMP on D:\a\_temp, as every Windows job that launches a browser (see e2e-windows): on C: the profiles saturate the disk.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: How many seeds the A/A of each oracle visits (all of them when the pull request touches the oracle)
if: github.event_name == 'pull_request'
shell: bash
@@ -643,6 +812,10 @@ jobs:
run: |
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the test saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -661,7 +834,7 @@ jobs:
# 35 for the test.
e2e-host:
name: e2e (host, linux)
needs: core-on-index
needs: [core-on-index, linux-deps-e2e]
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: ubuntu-24.04
timeout-minutes: 65
@@ -681,20 +854,32 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-e2e job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-e2e.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb, strace, gdb, elfutils + Firefox runtime libs; the repository of the linux-deps-e2e job)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xvfb
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# the host oracle traces the whole tree of the browser with strace
sudo apt-get install -y strace
sudo "$(which python)" -m playwright install-deps firefox
# What a browser that did not end with 0 leaves is kept by the oracle (scripts/ci_crash_evidence.py): the core goes through gdb (every thread's backtrace, the MOZ_CRASH reason, the
# libraries, with the build ids from elfutils). The kernel writes the core where its pattern says, so the pattern points at a folder of the job (INVPW_CORE_DIR); the launches
# allow cores themselves (`ulimit -c unlimited` in the host oracle's stand-in, the soft limit raised to the hard one in the page and network oracles). Nothing here reaches a
# launch that does not crash: no environment variable of the browser, no pref, no crash reporter option.
- name: Cores of a browser that did not end with 0 (gdb, elfutils, where the kernel writes them)
run: |
sudo apt-get install -y gdb elfutils
mkdir -p "$RUNNER_TEMP/cores"
chmod 1777 "$RUNNER_TEMP/cores"
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/cores/core.%e.%p.%t"
@@ -763,14 +948,54 @@ jobs:
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: windows-2022
timeout-minutes: 45
# TEMP and TMP on D:\a\_temp, as every Windows job that launches a browser (see e2e-windows): on C: the profiles saturate the disk.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: How many seeds the A/A of each oracle visits (all of them when the pull request touches the oracle)
if: github.event_name == 'pull_request'
shell: bash
@@ -782,6 +1007,48 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
# The geolocation control of the host oracle runs on Playwright's own Firefox (`run_stock`, `ci_ab_host.py stock`) on every run: the binary is not in the image (run
# 45121964904: `Executable doesn't exist at ms-playwright/firefox-1532/firefox/firefox.exe`, and the oracle blamed the platform provider). The same python as the tests.
- name: Playwright's own Firefox (the control of the geolocation step)
run: python -m playwright install firefox
# The laboratory, before any launch (the published engine, the candidate and the stock control then run on the same machine in the same state): the runner image has
# the Windows location service off and denied for the machine (run 45153612447: `lfsvc` Disabled and Stopped, `HKLM\...\ConsentStore\location` = Deny), so stock
# Firefox cannot reach the platform provider and its request waits on the system. A runner that is thrown away after the job: the service is made startable and started,
# and the consent is Allow for the machine and for the user's non-packaged apps. A setting that does not hold is red here with its reason, never a silent go-on.
- name: Turn on the Windows location service of the runner (the laboratory of the geolocation step)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
# Windows' own answer for the user of the job: the question stock Firefox asks before it starts the Windows provider (AppCapability "location"
# CheckAccess, dom/geolocation/GeolocationSystemWin.cpp). Read, not presumed: printed before and after, and red unless it is Allowed after
# (run 45206303882: on windows-2025 the keys said Allow and stock Firefox did not start the provider). WinRT is read through Windows PowerShell.
$access = {
$answer = & powershell.exe -NoProfile -Command "`$null = [Windows.Security.Authorization.AppCapabilityAccess.AppCapability,Windows.Security.Authorization.AppCapabilityAccess,ContentType=WindowsRuntime]; [string][Windows.Security.Authorization.AppCapabilityAccess.AppCapability]::Create('location').CheckAccess()" 2>&1
($answer | Out-String).Trim()
}
"CheckAccess(location) before: $(& $access)"
$machine = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location'
$user = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location'
foreach ($key in @($machine, $user, "$user\NonPackaged")) {
if (-not (Test-Path $key)) { New-Item -Path $key | Out-Null }
Set-ItemProperty -Path $key -Name Value -Value 'Allow'
}
Set-Service -Name lfsvc -StartupType Manual
Start-Service -Name lfsvc
$service = Get-Service -Name lfsvc
$bad = @()
if ($service.Status -ne 'Running') { $bad += "lfsvc is $($service.Status), not Running" }
if ($service.StartType -eq 'Disabled') { $bad += 'lfsvc is still Disabled' }
foreach ($key in @($machine, $user, "$user\NonPackaged")) {
$value = (Get-ItemProperty -Path $key -Name Value).Value
if ($value -ne 'Allow') { $bad += "$key is $value, not Allow" }
"$key = $value"
}
"lfsvc: $($service.Status), $($service.StartType)"
$after = & $access
"CheckAccess(location) after: $after"
if ($after -ne 'Allowed') { $bad += "Windows answers CheckAccess(location) = $after, not Allowed" }
if ($bad) { throw ("the location service of the runner is not on: " + ($bad -join '; ')) }
- name: The security state (a fixed directory of the repository)
shell: bash
run: python scripts/ci_lab_security_state.py set --pin ci/security-state.pin.json
@@ -802,6 +1069,30 @@ jobs:
print(counts)
sys.exit(0 if counts == {"tests": 1, "failures": 0, "errors": 0, "skipped": 0} else 1)
PY
# What the Windows location provider needs, read only and printed when the control says the step does not reach it (the service, the consent of the location
# capability for the machine and for the user, its configuration): the runner's state, to be read next to the stock evidence of the oracle.
- name: The state of the Windows location service and of its consent (read only)
if: always()
shell: pwsh
run: |
$ErrorActionPreference = 'Continue'
"--- Get-Service lfsvc"
try { Get-Service lfsvc -ErrorAction Stop | Format-List * } catch { "lfsvc: not readable: $($_.Exception.Message)" }
foreach ($key in @(
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location',
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location',
'HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration')) {
"--- $key"
if (-not (Test-Path -LiteralPath $key)) { "key absent: $key"; continue }
try { Get-ItemProperty -LiteralPath $key -ErrorAction Stop | Format-List * } catch { "not readable: $($_.Exception.Message)" }
foreach ($sub in @('NonPackaged')) {
$path = Join-Path $key $sub
if (Test-Path -LiteralPath $path) {
"--- $path"
try { Get-ItemProperty -LiteralPath $path -ErrorAction Stop | Format-List * } catch { "not readable: $($_.Exception.Message)" }
}
}
}
- name: The leg ran with the pinned GeoIP database
if: always()
run: |
@@ -813,6 +1104,10 @@ jobs:
run: |
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the test saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -832,7 +1127,7 @@ jobs:
# `own_job` in the Windows parts). 45 minutes for the job, as the host oracle's: the setup of the job plus the guard of the test with the margin of Windows. The same setup as the shared jobs.
e2e-page:
name: e2e (page oracle, linux)
needs: core-on-index
needs: [core-on-index, linux-deps-e2e]
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: ubuntu-24.04
timeout-minutes: 45
@@ -852,18 +1147,31 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-e2e job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-e2e.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb, strace, gdb, elfutils + Firefox runtime libs; the repository of the linux-deps-e2e job)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# What a browser that did not end with 0 leaves is kept by the oracle (scripts/ci_crash_evidence.py): the core goes through gdb (every thread's backtrace, the MOZ_CRASH reason, the
# libraries, with the build ids from elfutils). The kernel writes the core where its pattern says, so the pattern points at a folder of the job (INVPW_CORE_DIR); the launches
# allow cores themselves (`ulimit -c unlimited` in the host oracle's stand-in, the soft limit raised to the hard one in the page and network oracles). Nothing here reaches a
# launch that does not crash: no environment variable of the browser, no pref, no crash reporter option.
- name: Cores of a browser that did not end with 0 (gdb, elfutils, where the kernel writes them)
run: |
sudo apt-get install -y gdb elfutils
mkdir -p "$RUNNER_TEMP/cores"
chmod 1777 "$RUNNER_TEMP/cores"
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/cores/core.%e.%p.%t"
@@ -913,14 +1221,54 @@ jobs:
if: needs.core-on-index.outputs.available == 'true' && inputs.only != 'windows-control-a'
runs-on: windows-2022
timeout-minutes: 45
# TEMP and TMP on D:\a\_temp, as every Windows job that launches a browser (see e2e-windows): on C: the profiles saturate the disk.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: How many seeds the A/A of each oracle visits (all of them when the pull request touches the oracle)
if: github.event_name == 'pull_request'
shell: bash
@@ -963,6 +1311,10 @@ jobs:
run: |
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the test saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -1008,7 +1360,7 @@ jobs:
e2e-page-final:
name: e2e (page oracle, final seeds ${{ matrix.shard }}/4, linux)
needs: [core-on-index, e2e-page-final-touched]
needs: [core-on-index, e2e-page-final-touched, linux-deps-e2e]
if: needs.core-on-index.outputs.available == 'true' && needs.e2e-page-final-touched.outputs.touched == 'true'
runs-on: ubuntu-24.04
timeout-minutes: 40
@@ -1026,18 +1378,31 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-e2e job, no mirror)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-e2e.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb, strace, gdb, elfutils + Firefox runtime libs; the repository of the linux-deps-e2e job)
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# What a browser that did not end with 0 leaves is kept by the oracle (scripts/ci_crash_evidence.py): the core goes through gdb (every thread's backtrace, the MOZ_CRASH reason, the
# libraries, with the build ids from elfutils). The kernel writes the core where its pattern says, so the pattern points at a folder of the job (INVPW_CORE_DIR); the launches
# allow cores themselves (`ulimit -c unlimited` in the host oracle's stand-in, the soft limit raised to the hard one in the page and network oracles). Nothing here reaches a
# launch that does not crash: no environment variable of the browser, no pref, no crash reporter option.
- name: Cores of a browser that did not end with 0 (gdb, elfutils, where the kernel writes them)
run: |
sudo apt-get install -y gdb elfutils
mkdir -p "$RUNNER_TEMP/cores"
chmod 1777 "$RUNNER_TEMP/cores"
sudo sysctl -w kernel.core_pattern="$RUNNER_TEMP/cores/core.%e.%p.%t"
@@ -1089,6 +1454,10 @@ jobs:
if: needs.core-on-index.outputs.available == 'true' && needs.e2e-page-final-touched.outputs.touched == 'true'
runs-on: windows-2022
timeout-minutes: 40
# TEMP and TMP on D:\a\_temp, as every Windows job that launches a browser (see e2e-windows): on C: the profiles saturate the disk.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
strategy:
fail-fast: false
matrix:
@@ -1099,8 +1468,44 @@ jobs:
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: { fetch-depth: 1 }
# The runner's screen (1024x768 by default) is smaller than the browser window the e2e open (1936x1048 for a 1920x1080 identity), so the
# OS cursor cannot be parked outside it (tests/_os_cursor.py) and a native move for it reaches the page. 1920x1080 is the largest mode the
# runner's video device accepts (run 45730213378 of oss-invisible/playwright): it leaves the strip below the window free. Declared here, read back.
- name: The runner's screen is 1920x1080, larger than the browser window is tall (read back)
shell: pwsh
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force
Add-Type -AssemblyName System.Windows.Forms
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
"the runner's screen: $($b.Width)x$($b.Height) at $($b.X),$($b.Y)"
if ($b.Width -lt 1920 -or $b.Height -lt 1080) { Write-Error "the runner's screen is $($b.Width)x$($b.Height), not 1920x1080: the OS cursor could not be parked outside the browser window"; exit 1 }
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
# The native crash of the pytest worker ("node down: Not properly terminated", "Windows fatal exception: access violation" in a thread Python has no state for, jobs
# 138402013609 and 138966622085): Windows Error Reporting writes a FULL dump of a python.exe that dies from an unhandled exception, into the evidence folder the job
# uploads (dumps/python), so the faulting module and stack can be read. HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<image>, DumpType 2 = full,
# DumpCount = how many are kept: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps . faulthandler (pytest enables it) is a vectored handler that
# returns EXCEPTION_CONTINUE_SEARCH, so WER still sees the exception. BEFORE the first pytest step; the summary step before the upload reads what it left.
- name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$dumps = Join-Path $env:RUNNER_TEMP 'invpw-evidence\dumps\python'
New-Item -ItemType Directory -Force -Path $dumps | Out-Null
$wer = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting'
New-Item -Force -Path $wer | Out-Null
New-ItemProperty -Force -Path $wer -Name Disabled -PropertyType DWord -Value 0 | Out-Null
New-ItemProperty -Force -Path $wer -Name DontShowUI -PropertyType DWord -Value 1 | Out-Null
$key = "$wer\LocalDumps\python.exe"
New-Item -Force -Path $key | Out-Null
New-ItemProperty -Force -Path $key -Name DumpFolder -PropertyType ExpandString -Value $dumps | Out-Null
New-ItemProperty -Force -Path $key -Name DumpType -PropertyType DWord -Value 2 | Out-Null
New-ItemProperty -Force -Path $key -Name DumpCount -PropertyType DWord -Value 3 | Out-Null
Get-ItemProperty -Path $key | Format-List DumpFolder, DumpType, DumpCount
Get-ItemProperty -Path $wer | Format-List Disabled, DontShowUI
# The one variable tests/conftest.py reads (tests/_wer_error_mode.py): every pytest process of the later steps clears SEM_NOGPFAULTERRORBOX of its error mode, which the
# runner gives it and which would keep a crashing worker from ever reaching the LocalDumps above, and says so in dumps/error-mode.log.
"INVPW_WER_DUMPS=$dumps" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: Install wrapper + test deps (+ Playwright ONLY as a system tool)
run: |
python -m pip install --upgrade pip
@@ -1139,6 +1544,10 @@ jobs:
run: |
Get-Process firefox -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
"left: " + @(Get-Process firefox -ErrorAction SilentlyContinue).Count
- name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)
if: always()
shell: bash
run: python scripts/ci_wer_dumps.py "$RUNNER_TEMP/invpw-evidence/dumps/python"
- name: Upload what the test saved
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+36 -6
View File
@@ -53,11 +53,27 @@ jobs:
core-on-index:
uses: ./.github/workflows/core-on-index.yml
walk:
name: fakeweb ${{ matrix.profile }} (${{ matrix.os }})
# The Ubuntu packages of the Linux legs, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by a leg.
linux-deps-fakeweb:
name: linux-deps-fakeweb
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
uses: ./.github/workflows/linux-deps.yml
with:
name: fakeweb
packages: xvfb
playwright_wrapper_ref: ${{ github.sha }}
walk:
name: fakeweb ${{ matrix.profile }} (${{ matrix.os }})
needs: [core-on-index, linux-deps-fakeweb]
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.runner }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.runner, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.runner, 'windows') && 'D:\a\_temp' || '/tmp' }}
timeout-minutes: 30
strategy:
fail-fast: false
@@ -80,12 +96,26 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ".[dev]"
python -m pip install "playwright==$(cat scripts/playwright_pin.txt)"
- name: System deps (xvfb + Firefox runtime libs)
- name: The Linux packages (the run's linux-deps-fakeweb job, no mirror)
if: matrix.os == 'linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-fakeweb.outputs.artifact }}
path: /tmp/linux-deps
- name: System deps (xvfb + Firefox runtime libs; the repository of the linux-deps-fakeweb job)
if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo "$(which python)" -m playwright install-deps firefox
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: Playwright's own Firefox (the control)
run: python -m playwright install firefox
# The security state is a ready directory of the repository (ci/security-state/, a result with no data, the sha256 in ci/security-state.pin.json): with
+8 -3
View File
@@ -50,6 +50,11 @@ jobs:
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: 'D:\a\_temp'
TMP: 'D:\a\_temp'
strategy:
fail-fast: false
matrix:
@@ -60,10 +65,10 @@ jobs:
python: ["3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: ${{ matrix.python }}
cache: pip
@@ -146,7 +151,7 @@ jobs:
- name: Upload diagnostics on failure
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 (v4.6.2)
with:
name: launch-failure-${{ matrix.os }}-py${{ matrix.python }}
path: |
+188
View File
@@ -0,0 +1,188 @@
# ─────────────────────────────────────────────────────────────────────────────
# linux-deps.yml — the Ubuntu packages of a workflow's Linux jobs, read from Ubuntu's archive ONCE per runner image and list, never by the jobs.
# The same file in the series and in the wrapper.
#
# Republish 45297517213: wrapper.e2e.fakeweb-linux-x86_64 was cancelled at its 25 minutes with every step green, because `playwright install-deps
# firefox` fetched 48.8 MB from the archive's mirror at 102 kB/s ("Fetched 48.8 MB in 7min 59s"). The speed of a mirror is a third party's.
# The first form of this file handed the jobs only the packages missing on ITS runner image and installed them against the job's own image: the
# wrapper's PR #584 ran that job on ubuntu24 20261116.376.1 and the legs on 20261116.133.1, and the legs' apt wanted a package the files did not
# hold ("E: Unable to fetch some archives"). GitHub mixes builds of an image in one run, so the files cannot depend on the image they were read on.
#
# So this job hands the jobs a REPOSITORY: the roots (the packages named with their recommends, the recommends themselves, the packages named without,
# and the roots `playwright install-deps firefox` installs for the Playwright of the wrapper's pin, read from its table), their whole closure of
# Depends and Pre-Depends with the virtual packages' providers, INCLUDING what the image already has, a Packages index, and roots.txt. A job
# installs the roots BY NAME with an apt that reads only that repository (its own sources list and lists folder) and --no-download: whatever its
# image has or lacks is resolved from the files, and a package that is not there is named by apt, red, never fetched from a mirror.
# The files are kept in a cache entry keyed by the image's OS, the date of its release and the sha of the list (an entry of .deb files on GitHub's
# runners, this file only), and handed to the run's jobs as the artifact linux-deps-<name>. Not by the image's build: the repository does not depend
# on it, and the builds of one release are mixed in a run (20261116.133.1, 20261116.376.1), so a key per build missed the entry run after run and
# read the archive each time (wrapper PR #585: 13 minutes for a closure, from a slow mirror). The download runs 8 at a time: the slowness seen is
# per connection.
# ─────────────────────────────────────────────────────────────────────────────
name: linux-deps
on:
workflow_call:
inputs:
name:
description: the artifact is linux-deps-<name>
type: string
required: true
packages:
description: packages installed with their recommends (as `apt-get install -y` did)
type: string
default: ''
packages_no_recommends:
description: packages installed without their recommends
type: string
default: ''
playwright_wrapper_ref:
description: the oss-invisible/playwright ref whose scripts/playwright_pin.txt names the Playwright of `install-deps firefox`; empty for none
type: string
default: ''
outputs:
artifact:
description: the artifact that holds the repository
value: ${{ jobs.debs.outputs.artifact }}
permissions: { contents: read }
jobs:
debs:
name: debs
runs-on: ubuntu-24.04
timeout-minutes: 20
outputs:
artifact: linux-deps-${{ inputs.name }}
steps:
- name: Checkout wrapper (its Playwright pin)
if: inputs.playwright_wrapper_ref != ''
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: oss-invisible/playwright
ref: ${{ inputs.playwright_wrapper_ref }}
path: linux-deps-pin
fetch-depth: 1
sparse-checkout: scripts/playwright_pin.txt
sparse-checkout-cone-mode: false
- name: Set up Python
if: inputs.playwright_wrapper_ref != ''
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.11' }
- name: The list and its entry (the runner image and the sha of the list)
id: spec
shell: bash
env:
PACKAGES: ${{ inputs.packages }}
NO_REC: ${{ inputs.packages_no_recommends }}
PW_REF: ${{ inputs.playwright_wrapper_ref }}
run: |
set -euo pipefail
: "${ImageOS:?no ImageOS: not a GitHub runner image}" "${ImageVersion:?no ImageVersion: not a GitHub runner image}"
PIN=""
if [ -n "$PW_REF" ]; then PIN="$(tr -d '[:space:]' < linux-deps-pin/scripts/playwright_pin.txt)"; [ -n "$PIN" ] || { echo "ERROR: empty scripts/playwright_pin.txt at $PW_REF"; exit 1; }; fi
mkdir -p "$RUNNER_TEMP/linux-deps-spec"
printf 'form: repository of the closure\nrecommends: %s\nno-recommends: %s\nplaywright-roots-firefox: %s\n' "$PACKAGES" "$NO_REC" "$PIN" > "$RUNNER_TEMP/linux-deps-spec/spec.txt"
cat "$RUNNER_TEMP/linux-deps-spec/spec.txt"
SHA="$(sha256sum < "$RUNNER_TEMP/linux-deps-spec/spec.txt" | cut -c1-16)"
echo "pin=$PIN" >> "$GITHUB_OUTPUT"
RELEASE="${ImageVersion%%.*}"
echo "key=linux-deps-$ImageOS-$RELEASE-$SHA" | tee -a "$GITHUB_OUTPUT"
- name: The entry of this image and list
id: restore
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/linux-deps
key: ${{ steps.spec.outputs.key }}
- name: A new image or list - the repository from Ubuntu's archive, once
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
env:
PACKAGES: ${{ inputs.packages }}
NO_REC: ${{ inputs.packages_no_recommends }}
PIN: ${{ steps.spec.outputs.pin }}
run: |
set -euo pipefail
printf '%s\n' 'Acquire::http::Timeout "60";' 'Acquire::https::Timeout "60";' 'Acquire::Retries "5";' \
| sudo tee /etc/apt/apt.conf.d/80-ci-network >/dev/null
sudo apt-get update -qq
command -v apt-ftparchive >/dev/null || sudo apt-get install -y -qq apt-utils
PW_ROOTS=""
if [ -n "$PIN" ]; then
python -m pip install --quiet "playwright==$PIN"
# The roots `playwright install-deps firefox` installs (with --no-install-recommends): the `tools` and `firefox` lists of this system's
# entry in the driver's table, the list install-deps itself reads.
PLATFORM="ubuntu$(. /etc/os-release && echo "$VERSION_ID")-x64"
PW_ROOTS="$(python - "$PLATFORM" <<'PY'
import os, re, sys
import playwright
path = os.path.join(os.path.dirname(playwright.__file__), "driver", "package", "lib", "coreBundle.js")
text = open(path, encoding="utf-8").read()
at = text.find('"%s": {' % sys.argv[1])
if at < 0:
sys.exit("no entry %s in %s" % (sys.argv[1], path))
roots = []
for group in ("tools", "firefox"):
m = re.compile(r"\b%s: \[(.*?)\]" % group, re.S).search(text, at)
if not m:
sys.exit("no %s list after the entry %s" % (group, sys.argv[1]))
roots += re.findall(r'"([a-z0-9][a-z0-9.+-]*)"', m.group(1))
if "xvfb" not in roots or len(roots) < 10:
sys.exit("the roots read from %s are not install-deps' list: %s" % (path, roots))
print(" ".join(sorted(set(roots))))
PY
)"
echo "playwright install-deps firefox roots: $PW_ROOTS"
fi
# The recommends of the packages named with their recommends (as `apt-get install -y` installed them), one level, as roots themselves.
RECS=""
[ -z "$PACKAGES" ] || RECS="$(apt-cache depends --no-depends --no-pre-depends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances $PACKAGES \
| sed -n 's/^ *|\{0,1\}Recommends: \([a-z0-9][^ <>]*\)$/\1/p' | sort -u | tr '\n' ' ')"
NAMED="$(echo $PACKAGES $RECS $NO_REC $PW_ROOTS | tr ' ' '\n' | sed '/^$/d' | sort -u | tr '\n' ' ')"
# A name only provided (libgtk-3-0, libgtk-3-0t64's on noble) is its provider, as `apt-get install` resolved it: `apt-cache depends
# --recurse` does not walk from a virtual root (wrapper PR #585: the closure of libgtk-3-0 came without libgtk-3-0t64, 92 packages of 230).
ROOTS=""
for r in $NAMED; do
if apt-cache show --no-all-versions "$r" 2>/dev/null | grep -qx "Package: $r"; then ROOTS="$ROOTS $r"; continue; fi
p="$(apt-cache showpkg "$r" | sed -n '/^Reverse Provides:/,$p' | sed '1d' | awk 'NF {sub(/:.*/, "", $1); print $1}' | sort -u)"
[ "$(echo "$p" | wc -w)" = 1 ] || { echo "ERROR: the root $r is not a package and is provided by [$p], not by one package"; exit 1; }
echo "the root $r is provided by $p"
ROOTS="$ROOTS $p"
done
ROOTS="$(echo $ROOTS | tr ' ' '\n' | sort -u | tr '\n' ' ')"
echo "roots: $ROOTS"
# The closure: Depends and Pre-Depends, recursively, the providers of every virtual package, what the image has included.
CLOSURE="$(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances $ROOTS \
| grep -E '^[a-z0-9]' | sed 's/:amd64$//' | grep -v ':' | sort -u)"
REAL="$({ apt-cache show --no-all-versions $CLOSURE 2>/dev/null || true; } | sed -n 's/^Package: //p' | sort -u)"
rm -rf /tmp/linux-deps && mkdir -p /tmp/linux-deps
# The lists were refreshed above (apt-get update), so every closure name has its current version; each fetch retries 5 times. The MB and
# the seconds of the download go to the log, so the archive's speed is measured run after run.
T0="$(date +%s)"
( cd /tmp/linux-deps && echo "$REAL" | xargs -n 20 -P 8 apt-get download -qq -o Acquire::Retries=5 )
T1="$(date +%s)"
echo "download: $(echo "$REAL" | wc -w) packages, $(du -sm /tmp/linux-deps | cut -f1) MB in $((T1 - T0)) s"
( cd /tmp/linux-deps && apt-ftparchive packages . > Packages )
for p in $REAL; do grep -qx "Package: $p" /tmp/linux-deps/Packages || { echo "ERROR: $p of the closure was not downloaded"; exit 1; }; done
# A root is a package of the repository or a name one of them provides (libgtk-3-0 is libgtk-3-0t64's on noble, as `apt-get install` resolved it)
for r in $ROOTS; do
e="$(printf '%s' "$r" | sed 's/[.+]/\\&/g')"
grep -qE "^(Package: $e|Provides: (.*, )?$e( \(.*\))?(,.*)?)$" /tmp/linux-deps/Packages || { echo "ERROR: the root $r is not in the repository"; exit 1; }
done
echo "$ROOTS" | tr ' ' '\n' | sed '/^$/d' > /tmp/linux-deps/roots.txt
cp "$RUNNER_TEMP/linux-deps-spec/spec.txt" /tmp/linux-deps/spec.txt
echo "$ImageOS $ImageVersion" > /tmp/linux-deps/image.txt
echo "$(wc -l < /tmp/linux-deps/roots.txt) roots, $(find /tmp/linux-deps -name '*.deb' | wc -l) packages in the closure, $(du -sh /tmp/linux-deps | cut -f1)"
- name: Keep the entry
if: steps.restore.outputs.cache-hit != 'true'
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/linux-deps
key: ${{ steps.spec.outputs.key }}
- name: The repository for the jobs of this run
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: linux-deps-${{ inputs.name }}
path: /tmp/linux-deps
retention-days: 1
if-no-files-found: error
+1 -1
View File
@@ -9,4 +9,4 @@ permissions:
contents: read
jobs:
noreply-identity:
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@6d048ac02fc886a50791a4ae0423cbca2a547d72 # core main, the last change of noreply-identity.yml
+2 -2
View File
@@ -63,10 +63,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo (docs + the converter)
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
+8 -8
View File
@@ -62,7 +62,7 @@ jobs:
present: ${{ steps.probe.outputs.present }}
version: ${{ steps.probe.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- id: probe
shell: bash
run: |
@@ -88,10 +88,10 @@ jobs:
contents: read
checks: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
@@ -206,8 +206,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: Install the wrapper (its core comes from the index)
@@ -225,10 +225,10 @@ jobs:
contents: write # to commit the ledger entry back
pull-requests: write # and to open one when protection declines the push
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip build
@@ -237,7 +237,7 @@ jobs:
run: |
pip install twine
twine check dist/*
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
- name: record what was published, and commit it back
# The action above holds the OIDC credential and does the upload; the
# thing that writes PUBLISHED.json is invisible_core.release. So the
+44
View File
@@ -0,0 +1,44 @@
# ─────────────────────────────────────────────────────────────────────────────
# published-set.yml - the control side of the A/B oracles is the last PUBLISHED SET, and this keeps its lock equal to the index.
#
# An A/B oracle holds a candidate against the engine published before it, and that engine is launched by the core it was built for (it refuses a launch whose
# declarations that core does not emit). So the control is a set: the last `invisible-playwright` on the index, the `invisible-core` it pins exactly, and the engine
# that core's seal pins, in a venv of their own, installed by hash (ci-03): ci/py-lock/published.txt, made by scripts/ci_published_set.py. Nothing in it is chosen
# by hand; a new release is the new baseline.
#
# The lock is a committed file so that a run installs it offline (the wheelhouse of the run holds the files it names). What can go stale is the lock, the day a
# release is published: this reads the index (the JSON of the two packages, nothing is installed or run) and is RED when the committed lock is not the index's last
# release. The fix is one command, `python scripts/ci_published_set.py resolve --write`, in the pull request that records the release.
# ─────────────────────────────────────────────────────────────────────────────
name: published-set
on:
schedule:
- cron: "41 5 * * *"
pull_request:
paths:
- ci/py-lock/published.txt
- scripts/ci_published_set.py
- .github/workflows/published-set.yml
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lock-is-the-index:
name: the committed published set is the index's last release
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out the lock and the script
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: The lock against the index (reads the index, installs nothing)
run: python scripts/ci_published_set.py check
+56 -8
View File
@@ -146,16 +146,29 @@ jobs:
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "admission: $admission, invisible-playwright $version"
# The Ubuntu packages of the Linux legs, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by a leg.
linux-deps-real-sites:
name: linux-deps-real-sites
needs: plan
uses: ./.github/workflows/linux-deps.yml
with:
name: real-sites
packages: xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
round:
name: round (${{ matrix.os }})
needs: plan
needs: [plan, linux-deps-real-sites]
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false # one system failing must not hide the other's table
matrix:
os: [ubuntu-24.04, windows-latest]
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
VERSION: ${{ needs.plan.outputs.version }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@@ -163,11 +176,26 @@ jobs:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: Linux runtime libraries for the browsers
- name: The Linux packages (the run's linux-deps-real-sites job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-real-sites.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browsers (the repository of the linux-deps-real-sites job)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
# Two venvs that share nothing: what a user gets from the index, and what a user of stock Playwright gets. The wrapper is installed by its published version
# (the index may lag a few minutes behind a publication: only the install is asked again), then its engine is fetched the way a user fetches it.
@@ -245,9 +273,14 @@ jobs:
# One pass of stock over the list, on one system: five of them per system make the admission.
admit:
name: admit (${{ matrix.os }}, pass ${{ matrix.repeat }})
needs: plan
needs: [plan, linux-deps-real-sites]
if: needs.plan.outputs.admission == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
timeout-minutes: 40
strategy:
fail-fast: false
@@ -260,11 +293,26 @@ jobs:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with: { python-version: '3.12' }
- name: Linux runtime libraries for the browser
- name: The Linux packages (the run's linux-deps-real-sites job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-real-sites.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browser (the repository of the linux-deps-real-sites job)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: Stock Playwright and its Firefox, then one pass
shell: bash
+63 -15
View File
@@ -53,8 +53,8 @@ jobs:
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
@@ -82,8 +82,8 @@ jobs:
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
@@ -108,8 +108,8 @@ jobs:
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
@@ -135,8 +135,8 @@ jobs:
needs: core-on-index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: install the pinned core, which carries the gate
@@ -164,13 +164,18 @@ jobs:
# email (author, committer, tagger). The judge lives in oss-invisible/core and
# is read from its main, never from this branch.
noreply-identity:
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@main
uses: oss-invisible/core/.github/workflows/noreply-identity.yml@6d048ac02fc886a50791a4ae0423cbca2a547d72 # core main, the last change of noreply-identity.yml
unit:
name: pytest (${{ matrix.os }}, py${{ matrix.python }})
needs: core-on-index
if: needs.core-on-index.outputs.available == 'true'
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
strategy:
fail-fast: false
matrix:
@@ -190,7 +195,7 @@ jobs:
- { os: windows-latest, python: "3.13" }
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
# main, for the tests that compare a list of this change with the list of main (tests/test_the_e2e_tests_do_not_wait_on_clocks.py: the debt of
# the e2e tests only shrinks). The checkout is one commit deep; without this the comparison has nothing to read and the test says so.
@@ -199,7 +204,7 @@ jobs:
run: git fetch --no-tags --depth=1 origin main:refs/remotes/origin/main
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: ${{ matrix.python }}
cache: pip
@@ -248,11 +253,37 @@ jobs:
run: python scripts/ci_lab_geoip.py build
- name: Run pytest
if: matrix.python != '3.11'
shell: bash
run: |
set -o pipefail # or tee would swallow pytest's exit code
pytest tests/ -v --tb=short -rs | tee tests-report.txt
# The legs of Python 3.11 (the version the engine series' gate runs, on both of its systems) run the suite the way that gate does: the files and the
# marker of the row wrapper.unit.all.<os> of ci/required-suites.json (printed by scripts/ci_verdict.py args), one junit, and the judge below reads
# it. Until 2026-11-24 this workflow ran `pytest tests/` with a floor of 380 and nothing judged the exact counts the gate holds: PR #590 added a test
# without raising min_tests, this workflow was green, and the gate went red on main's next series run ("the suite is exact").
# No test runs twice: the row leaves out the files of the environment (a clone with its hooks armed, one with origin/main, the package index, ...: named,
# each with its reason, in tests/test_the_unit_suite_is_accounted_for.py), so a second pytest, with --ignore for every file of the row, runs those
# and any file that is in no row: together the two runs are what `pytest tests/` ran.
- name: Run pytest (the selection of the gate, then the files outside the row)
if: matrix.python == '3.11'
shell: bash
env:
SUITE_OS: ${{ startsWith(matrix.os, 'windows') && 'windows' || 'linux' }}
run: |
unset PYTEST_ADDOPTS
python scripts/ci_verdict.py args --required ci/required-suites.json --suite "wrapper.unit.all.$SUITE_OS" --os "$SUITE_OS" --with-marker | tr -d '\r' > "$RUNNER_TEMP/unit_args.txt"
mapfile -t ARGS < "$RUNNER_TEMP/unit_args.txt"
IGNORE=()
for a in "${ARGS[@]}"; do
case "$a" in tests/*::*) ;; tests/*) IGNORE+=("--ignore=$a") ;; esac
done
rc=0
python -m pytest "${ARGS[@]}" -o addopts='' -o junit_family=xunit2 -q --tb=short -p no:cacheprovider -p no:rerunfailures -rs --junitxml="$RUNNER_TEMP/unit-junit.xml" || rc=$?
python -m pytest tests/ "${IGNORE[@]}" -v --tb=short -rs || rc=$?
exit $rc
# The leg ran with the pinned database, and the core never went past it to GitHub (tests/geoip_used.py wrote what it did).
- name: The leg ran with the pinned GeoIP database
if: always()
@@ -267,6 +298,7 @@ jobs:
# already filters on two markers - one more, or a typo in one, silently
# turns 726 tests into 0 and reports success.
- name: Refuse a run in which the suite deselected itself
if: matrix.python != '3.11'
shell: bash
run: |
python - <<'PY'
@@ -293,6 +325,22 @@ jobs:
print(f"{passed} tests ran")
PY
# The judge of the engine series' gate on the junit of the step above: the exact count of the row (not one test more, not one less), no skip, every
# file of the row passed, and the list only grows against main. The judge and the list it compares with are read from main, never from the branch under
# judgment (a branch that edits its own judge or its own list cannot pass itself): a PR that adds a test and does not raise min_tests is red here.
# The suite launches no browser, so --binary names the interpreter that ran it (the judge wants a file to hash; nothing reads that hash: no --out).
- name: Judge the suite wrapper.unit.all (the exact count, with the judge and the list of main)
if: always() && matrix.python == '3.11'
shell: bash
env:
SUITE_OS: ${{ startsWith(matrix.os, 'windows') && 'windows' || 'linux' }}
run: |
mkdir -p "$RUNNER_TEMP/main"
git show origin/main:scripts/ci_verdict.py > "$RUNNER_TEMP/main/ci_verdict.py"
git show origin/main:ci/required-suites.json > "$RUNNER_TEMP/main/required-suites.json"
if git cat-file -e origin/main:ci/retired-tests.json; then git show origin/main:ci/retired-tests.json > "$RUNNER_TEMP/main/retired-tests.json"; fi
python "$RUNNER_TEMP/main/ci_verdict.py" judge --required ci/required-suites.json --suite "wrapper.unit.all.$SUITE_OS" --os "$SUITE_OS" --junit "$RUNNER_TEMP/unit-junit.xml" --binary "$(python -c 'import sys; print(sys.executable)')" --main-required "$RUNNER_TEMP/main/required-suites.json"
# ONE SINGLE CONTEXT FOR BRANCH PROTECTION. Measured 2026-08-13: this
# repo's protection required `pytest (windows-latest, py3.11)`, which the
# matrix explicitly EXCLUDES a few lines up - a context no job can ever
@@ -327,8 +375,8 @@ jobs:
if: needs.core-on-index.outputs.available == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
cache: pip
@@ -424,12 +472,12 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
with:
# The gate diffs the tree against the tag of the published
# version; a shallow clone has no tags and cannot tell.
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with:
python-version: "3.12"
- name: the version this change proposes is still free
+40 -8
View File
@@ -79,9 +79,23 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# The Ubuntu packages of the Linux leg, from Ubuntu's archive once per runner image and list (linux-deps.yml), never by the leg.
linux-deps-user-install:
name: linux-deps-user-install
uses: ./.github/workflows/linux-deps.yml
with:
name: user-install
packages: xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
install:
needs: linux-deps-user-install
name: ${{ matrix.os }} - install from ${{ github.event.inputs.source || 'index' }} and launch
runs-on: ${{ matrix.os }}
# TEMP and TMP on D:\a\_temp (the runner's temp folder): the Firefox profiles land in TEMP and on C: they saturate the disk (queue up to 144,
# latencies up to 4 s, parent main thread still 40-60 s). On the job, not in a step: `runner.temp` is not readable in a job's `env`.
env:
TEMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
TMP: ${{ startsWith(matrix.os, 'windows') && 'D:\a\_temp' || '/tmp' }}
timeout-minutes: 45
strategy:
fail-fast: false # one OS failing must not hide the other's result
@@ -89,17 +103,20 @@ jobs:
os: [ubuntu-24.04, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 (v4.4.0)
- uses: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 (v5.6.0)
with: { python-version: '3.11' }
# Only what the TEST needs (and `uv`, for the wait below to ask uv, which the release test installs the package with). The package under test is installed by the
# Only what the TEST needs, from the wrapper's hashed lock (ci/py-lock/gate.txt), the one the other test jobs read: never a hand list, which is how
# `psutil` (imported by the OS-cursor helper of the tests since #609) was missing here and ledger #618 was red. The lock holds `uv` (the wait below asks it, and the
# release test installs the package with it) and holds neither invisible-playwright nor invisible-core: the package under test is installed by the
# test itself, into a venv it creates, from the index - installing it
# here as well would put a second copy on the path and the assertions
# would be reading the wrong one.
# would be reading the wrong one. The runner's own pip, nothing unhashed.
# A rule test of the unit suite (the install job has every module its tests import) holds every third-party module the tests import to that lock.
- name: Test harness only
run: python -m pip install --upgrade pip pytest packaging uv
run: python -m pip install --require-hashes -r ci/py-lock/gate.txt
# ⛔ THE VERSION OF A LEDGER PULL REQUEST IS THE ONE IT ADDS TO PUBLISHED.json, NOT THE ONE THE TREE DECLARES.
# The ledger PR of a release is merged after this job is green, and the next release's tree can already be on main: ledger #534 recorded
@@ -197,11 +214,26 @@ jobs:
time.sleep(poll)
PY
- name: Linux runtime libraries for the browser
- name: The Linux packages (the run's linux-deps-user-install job, no mirror)
if: runner.os == 'Linux'
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ${{ needs.linux-deps-user-install.outputs.artifact }}
path: /tmp/linux-deps
- name: Linux runtime libraries for the browser (the repository of the linux-deps-user-install job)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0 libdbus-glib-1-2 libasound2t64
set -euo pipefail
# The run's linux-deps repository and nothing else: apt reads only its sources list and lists folder, the files are already in apt's archives,
# and the roots are installed by name with --no-download: a package the repository does not hold is named here and red, never fetched.
read -r OS VER < /tmp/linux-deps/image.txt
echo "the repository was read on $OS $VER; this runner is $ImageOS $ImageVersion"
sudo mkdir -p /tmp/linux-deps-apt/lists/partial /tmp/linux-deps-apt/parts
echo "deb [trusted=yes] file:/tmp/linux-deps ./" | sudo tee /tmp/linux-deps-apt/sources.list >/dev/null
APT="-o Dir::Etc::SourceList=/tmp/linux-deps-apt/sources.list -o Dir::Etc::SourceParts=/tmp/linux-deps-apt/parts -o Dir::State::Lists=/tmp/linux-deps-apt/lists -o Acquire::Languages=none"
sudo apt-get $APT update
sudo cp /tmp/linux-deps/*.deb /var/cache/apt/archives/
sudo apt-get $APT install -y --no-download --no-install-recommends $(cat /tmp/linux-deps/roots.txt)
- name: The user path, end to end
env:
+65 -1
View File
@@ -4,13 +4,77 @@ 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.58.1] - 2026-11-22
## [0.61.0] - 2026-11-30
### Changed
- Pins invisible-core 71.85.0 on the engine firefox-71 (Firefox 159.0).
- The window origin is declared by the core, and the screen coordinates a page reads go through it, in the top document and in an
out-of-process frame of another site: such a frame used to read the top document's origin without its own position.
- The end point of a drag is mapped through the window of the drag source, and tooltips and autoscroll open at the real pointer.
- A popup's position and outer size are set when it opens by Firefox's own rule, and a positioned popup is kept on the declared screen by
Firefox's own clamp; the core no longer declares a popup position.
- The height of the maximized browser chrome follows Firefox's toolbar density rule, and the window frame is computed from the system
metrics at the declared scale: at 125% the bar above the page is 106 device pixels, as in retail Firefox 159, where 0.60.0 declared 107.
- The core accepts exactly the display scales Windows offers (100% to 500%), and refuses a scale the declared screen does not offer.
### Fixed
- The load of a frame waits for the processes below it, a navigation that does not create a new document no longer releases a frame, and
the ready of a page is told once, after its document.
- Drag and drop driven by the client reaches a frame of another site: the drag has one session, owned by the browser process, as a real
drag does; `dragend` ends at the screen point of the declared window, the drag events carry the buttons held, and `drag` fires at the
source.
- A select dropdown opened by a click no longer closes on that click's own release: menus close on the next press or wheel, as with a
real mouse, never on a release or a move.
- `wait_for_selector(state="hidden")` returns at once when nothing matches and never returns a handle, as stock Playwright does.
- A font face that our text code used after it could be released (a dangling HarfBuzz face pointer) is now held by its own type.
- Through a UDP proxy, an IPv6 socket reaches its IPv4 relay after the association too.
## [0.60.0] - 2026-11-27
### Changed
- Pins invisible-core 70.83.0 on the engine firefox-70 (Firefox 159.0).
- The engine carries Firefox's fix for the race between the start and the shutdown of its telemetry (Glean): a browser closed while it was
still starting no longer leaves that work half done.
- ElementHandle pointer actions (`click`, `dblclick`, `hover`, `tap`, `check`, `uncheck`, `set_checked`) now use the same humanised pointer walk as selector actions (they used to jump to the exact centre of the element in one move).
- Screenshot parameters that Playwright honours by modifying the page (`mask`/`maskColor`, `style`, `animations="disabled"`,
`caret="initial"`) are now refused by name with a clear error instead of being silently ignored; `omitBackground` with PNG answers
Firefox's own `Not implemented`, as stock Playwright does. A refused screenshot of an element or a locator is refused before the page is
scrolled or measured.
## [0.59.0] - 2026-11-24
### Changed
- Pins invisible-core 69.82.0 on the engine firefox-69 (Firefox 159.0).
### Added
- An element handle serves the methods of Playwright's `ElementHandle` that it used to refuse as a gap: `query_selector`, `query_selector_all`,
`eval_on_selector`, `eval_on_selector_all` (rooted at the element), `evaluate_handle`, `is_visible`, `is_hidden`, `is_enabled`, `is_disabled`,
`is_checked`, `is_editable`, `wait_for_element_state`, `dblclick`, `select_text` and `dispatch_event`, with the answers and the errors
Playwright's own server gives. `wait_for_selector` on an element handle is still refused.
- `set_input_files` with a file path works from a client attached with `connect`: the file is streamed into the session, as a stock client does
over a remote connection, and a stream can be used only by the context that made it.
### Fixed
- The argument of `evaluate` and its kin (`page.evaluate(fn, element)`, `evaluate_handle`, `eval_on_selector`, `eval_on_selector_all` and the
frame and handle forms) reaches the page as Playwright sends it: element and JS handles, dates, URLs, errors, shared references, `undefined`,
`-0` and `ArrayBuffer` are decoded in the page instead of arriving as `null`.
- `screenshot(scale="css")` is a picture in CSS pixels, as in stock Playwright; the scale was ignored and the picture was in device pixels.
- `tap` on a context without `has_touch` is refused with Playwright's own message before anything is sent to the page.
- A read that waits for its element (`inner_text`, `text_content`, `get_attribute` and the others) and runs out of time now always fails with
Playwright's own `Timeout Nms exceeded`. On Windows it could fail with the engine connection's `no response in 0s` instead, when the last
probe ran out of the caller's time a moment before the clock said so.
### Engine firefox-69
- On Linux the engine no longer runs the host's GL probe when the machine is declared: whether WebGL is available comes from the declaration alone.
- A navigation that changes process is no longer ended by the document it left, and a page is reported ready only after its document.
- A request to a page process that went away is answered instead of being left waiting, and the end of a network request and the contexts of a
frame are reported as Playwright expects.
- The engine's security-state generation no longer ends in a crash now and then (the telemetry was starting during shutdown).
- On Windows, the port a WebRTC connection holds is its own.
### Known issues
- `tap` with `has_touch` fails with an engine error: the engine cannot send a touch event since Firefox 159. It will be fixed in the engine.
## [0.58.0] - 2026-11-21
### Changed
+2404
View File
File diff suppressed because it is too large. Load diff
+1 -11
View File
@@ -1,14 +1,4 @@
{
"format": "ab-host-expected/1",
"differences": [
{
"id": "gfxtest-69",
"os": "linux",
"category": "proc",
"name": "gfxtest",
"published": "present",
"candidate": "absent",
"reason": "the 69 no longer spawns the graphics probe gfxtest (GFX_PROBE_BINARY, widget/gtk/GfxInfo.cpp:55; commit 0e896e4ee1, the probe never reads the host); the paths only that process touched go with it"
}
]
"differences": []
}
+749
View File
@@ -0,0 +1,749 @@
{
"format": "ab-oracle-expected/1",
"differences": [
{
"id": "linux-seed6-state.after_fullscreen.events.mousemove",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed6-state.after_fullscreen.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-state.after_fullscreen.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed6-state.normal.events.mousemove",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed6-state.normal.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-state.normal.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed6-surface.visualViewport.height",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.visualViewport.height",
"published": 730.4000244140625,
"candidate": 731.2000122070312,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "linux-seed6-surface.window.innerHeight",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed6-surface.window.mozInnerScreenY",
"os": "linux",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-state.after_fullscreen.events.click",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mousedown",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mousemove",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
73
],
[
0,
72
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.events.mouseup",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.after_fullscreen.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-state.after_fullscreen.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-state.normal.events.click",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mousedown",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mousemove",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
72
],
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.events.mouseup",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "linux-seed63-state.normal.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-state.normal.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "linux-seed63-surface.visualViewport.height",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.visualViewport.height",
"published": 587.3333129882812,
"candidate": 599.3333129882812,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "linux-seed63-surface.window.innerHeight",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "linux-seed63-surface.window.mozInnerScreenY",
"os": "linux",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-state.after_fullscreen.events.mousemove",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed6-state.after_fullscreen.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-state.after_fullscreen.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-state.normal.events.mousemove",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
86
],
[
0,
85
]
],
"candidate": [
[
0,
85
],
[
0,
84
]
],
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed6-state.normal.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-state.normal.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "state.normal.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed6-surface.visualViewport.height",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.visualViewport.height",
"published": 730.4000244140625,
"candidate": 731.2000122070312,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "windows-seed6-surface.window.innerHeight",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.innerHeight",
"published": 730,
"candidate": 731,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed6-surface.window.mozInnerScreenY",
"os": "windows",
"seed": 6,
"dpr": 1.25,
"leaf": "surface.window.mozInnerScreenY",
"published": 85.5999984741211,
"candidate": 84.80000305175781,
"reason": "Seed 6 is at 1.25. The bar of a main window, client top to content top, is 106 device px in retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406), not the 107 that the published engine's core declares; the candidate's core computes it with window_frame.chrome_height_device(1.25, 'normal'), which rounds the tab strip, the nav bar and the content border once, on the sum in app units (_offset_device), and the page gets 106 device px = 84.8 CSS px. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-state.after_fullscreen.events.click",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mousedown",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mousemove",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
73
],
[
0,
72
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.events.mouseup",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.after_fullscreen.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-state.after_fullscreen.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.after_fullscreen.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-state.normal.events.click",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.click",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a click event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mousedown",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousedown",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousedown event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mousemove",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mousemove",
"published": [
[
0,
85
],
[
0,
84
]
],
"candidate": [
[
0,
72
],
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mousemove event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.events.mouseup",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.events.mouseup",
"published": [
[
0,
85
]
],
"candidate": [
[
0,
73
]
],
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: the distinct (screenY - clientY) that a mouseup event of the page was seen with, in CSS px: the bar above the content as the page reads it from a pointer event."
},
{
"id": "windows-seed63-state.normal.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-state.normal.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "state.normal.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
},
{
"id": "windows-seed63-surface.visualViewport.height",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.visualViewport.height",
"published": 587.3333129882812,
"candidate": 599.3333129882812,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: visualViewport.height, the viewport height in CSS px."
},
{
"id": "windows-seed63-surface.window.innerHeight",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.innerHeight",
"published": 587,
"candidate": 599,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.innerHeight, the viewport height in CSS px."
},
{
"id": "windows-seed63-surface.window.mozInnerScreenY",
"os": "windows",
"seed": 63,
"dpr": 1.5,
"leaf": "surface.window.mozInnerScreenY",
"published": 84.66666412353516,
"candidate": 72.66666412353516,
"reason": "Seed 63 is at 1.5, and the work area of its screen is under 720 CSS px high (about 693 on a 1920x1080 panel), so retail Firefox 159 chooses the compact density by itself (browser.js gUIDensity: compact while 36 CSS px over the reference height is more than browser.compactmode.auto.threshold 0.05, that is below 720 CSS px; RetailCaptures analysis/window-geometry/chrome-density; retail Firefox 159 on Windows, measured by the core's retail window-geometry capture workflow (rounds 2 and 3, runs 45672953042 and 45679625406)). The bar is the compact 109 device px = 73 CSS px, not the normal 127 device px = 85 CSS px that the published engine's core declares: the core's constants.ui_density and declared_maximized_ui pick the density, window_frame.chrome_height_device(1.5, 'compact') gives the bar. This leaf: window.mozInnerScreenY, the screen Y of the content's top in CSS px (the bar above the content)."
}
]
}
File diff suppressed because it is too large. Load diff
+18
View File
@@ -0,0 +1,18 @@
[
{
"id": "D31",
"bug": "",
"firefox": {
"from": "159.0",
"to": "159.*"
},
"signature": {
"process": "backgroundtask",
"phase": "exit",
"thread": "FSBroker",
"reason": "MOZ_CRASH(mozilla::detail::MutexImpl::mutexLock: pthread_mutex_lock failed)"
},
"seen": "oss-invisible/firefox_antidetect_patch/actions/runs/46539190316/job/142310624770",
"why": "at the exit of a -backgroundtask process the FSBroker thread unregisters from the profiler after the static destructors ran and locks a destroyed mutex"
}
]
+32 -32
View File
@@ -6,7 +6,7 @@
6,
63
],
"core_version": "68.80.0",
"core_version": "71.85.0",
"counts": {
"audio": {
"audio.sample_rate=44100|audio.output_latency_ms=20|audio.max_channel_count=2": 4315,
@@ -50,9 +50,9 @@
"ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0": 40144
},
"dpr": {
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72": 70210,
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90": 18299,
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.maximized_ui=127|screen.popup_ui=106": 11491
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31": 70210,
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38": 18299,
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45": 11491
},
"gfx_device": {
"adliris_7085": 7197,
@@ -156,9 +156,9 @@
"ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0"
],
"dpr": [
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90",
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.maximized_ui=127|screen.popup_ui=106"
"layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45"
],
"gfx_device": [
"adliris_7085",
@@ -254,7 +254,7 @@
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5070_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=5",
@@ -266,7 +266,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=22",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd630_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=6",
@@ -278,7 +278,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=32",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.maximized_ui=127|screen.popup_ui=106",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "rpl770_7092",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=16",
@@ -290,7 +290,7 @@
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=5",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "gtx980_58278",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=6",
@@ -302,7 +302,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=24",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "adliris_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=5",
@@ -314,7 +314,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=6",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "gtx1650_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=20",
@@ -326,7 +326,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=20",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd620_2145",
"gfx_feature_status": "gfx.feature_status=sha:d1db3983c9",
"render_noise": "fpp.hw_seed=28",
@@ -338,7 +338,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "renoir_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=16",
@@ -350,7 +350,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=14",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx3060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=19",
@@ -362,7 +362,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=16",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "rx580_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=20",
@@ -374,7 +374,7 @@
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=28",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "irisxe_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=6",
@@ -386,7 +386,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=false|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "icl_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=11",
@@ -398,7 +398,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd630_2145",
"gfx_feature_status": "gfx.feature_status=sha:80c00ab015",
"render_noise": "fpp.hw_seed=5",
@@ -410,7 +410,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rx6600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=5",
@@ -422,7 +422,7 @@
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=28",
@@ -434,7 +434,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=8",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.maximized_ui=127|screen.popup_ui=106",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "arl_6629",
"gfx_feature_status": "gfx.feature_status=sha:098c0bf836",
"render_noise": "fpp.hw_seed=19",
@@ -446,7 +446,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=3",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5080l_61742",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=28",
@@ -458,7 +458,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=12",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "adliris_7085",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=19",
@@ -470,7 +470,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=false|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=7",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.maximized_ui=107|screen.popup_ui=90",
"dpr": "layout.css.devPixelsPerPx=\"1.25\"|screen.frame_border=9|screen.popup_ui=89|screen.popup_client_top=38",
"gfx_device": "rx7600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=11",
@@ -482,7 +482,7 @@
"codecs": "media.av1.enabled=false|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:9c24a8728f",
"cores": "hw_concurrency=32",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.maximized_ui=127|screen.popup_ui=106",
"dpr": "layout.css.devPixelsPerPx=\"1.5\"|screen.frame_border=11|screen.popup_ui=106|screen.popup_client_top=45",
"gfx_device": "rx7600_32015",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=5",
@@ -494,7 +494,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=4",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx5060ti_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=11",
@@ -506,7 +506,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=10",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "uhd770_7092",
"gfx_feature_status": "gfx.feature_status=sha:05ce56d3c0",
"render_noise": "fpp.hw_seed=5",
@@ -518,7 +518,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=true|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=9",
"dark_theme": "ui.systemUsesDarkTheme=0|layout.css.prefers-color-scheme.content-override=1",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "rtx4060_62101",
"gfx_feature_status": "gfx.feature_status=sha:b153aef69f",
"render_noise": "fpp.hw_seed=6",
@@ -530,7 +530,7 @@
"codecs": "media.av1.enabled=true|media.encoder.webm.enabled=true|media.mp4.enabled=true|media.webm.enabled=false|media.decode_support=sha:960968735a",
"cores": "hw_concurrency=2",
"dark_theme": "ui.systemUsesDarkTheme=1|layout.css.prefers-color-scheme.content-override=0",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.maximized_ui=85|screen.popup_ui=72",
"dpr": "layout.css.devPixelsPerPx=\"1.0\"|screen.frame_border=8|screen.popup_ui=72|screen.popup_client_top=31",
"gfx_device": "renoir_21925",
"gfx_feature_status": "gfx.feature_status=sha:2f5fe3776b",
"render_noise": "fpp.hw_seed=9",
@@ -562,5 +562,5 @@
],
"format": "persona-seeds/1",
"max_seed": 100000,
"sha256": "8de3d8a621389f707181b9c9569b4d3266931e26f4cb3ea6b64e8f40f3e9dc29"
"sha256": "82547e9f34ece0c17075d812dcc009c7e8e6f348eb33fb4cc5cdbff6253cc4f0"
}
+28
View File
@@ -0,0 +1,28 @@
# Input of the gate lock; `python scripts/ci_py_lock.py` writes it and gate.txt from the sources below. Wrapper-owned (ci-03), read at the wrapper_ref.
# python-version: 3.11
# exclude-newer: 2026-11-25T00:00:00Z
# wrapper: pyproject.toml sha256 93d8d0940284352ad53e189e17b9ad6e3109ce52e54ab138ecdfa01d8571b193 (at generation); its dependencies without invisible_core, and its `dev` extra
# core: invisible_core==71.85.0, tag v71.85.0, pyproject.toml sha256 c0d14a4d26d3650005076ab72347eb24fba4b89e643f514e7f7334bd0a2ac174 (at generation); the core is a wheel of ours, only what it depends on is locked
# core-requires: platformdirs>=4 | psutil>=5.9 | requests[socks]>=2.31 | maxminddb>=2.2 | tzdata>=2024.1
# playwright: 1.61.0 from scripts/playwright_pin.txt (the stock client the gate drives the engine with)
# cryptography: 44.0.3 (the lab's PKI)
# harness: uv>=0.5 (the installers of the install-from-index job)
aioquic>=1.2
build>=1
cryptography==44.0.3
cryptography>=41
greenlet>=3.1.1,<4.0.0
h2>=4,<5
maxminddb>=2.2
platformdirs>=4
playwright==1.61.0
psutil>=5.9
pyee>=13,<14
pytest>=7
pytest-timeout>=2
pytest-xdist>=3
requests[socks]>=2.31
ruff>=0.6
tzdata>=2024.1
uv>=0.5
websockets>=13
+845
View File
@@ -0,0 +1,845 @@
# Generated by `python scripts/ci_py_lock.py`: do not edit. Wrapper-owned (ci-03).
# input: ci/py-lock/gate.in sha256 7de18cd95f842ff5df52b931d6fb2f318936f54b0ff1be1c8d66df1d6706d9df
# resolver: uv pip compile --universal --generate-hashes --no-build --python-version 3.11 --exclude-newer 2026-11-25T00:00:00Z
# Every file of each version is hashed (Linux and Windows wheels of every Python from 3.11, and the sdist): one lock for every OS.
# A consumer installs it with: pip install --no-index --find-links <wheelhouse> --require-hashes -r <this file>
aioquic==1.8.0 \
--hash=sha256:12333f99f7493af4bc6b9af24f5ac45ae993a2780b9c469c38bdf4461189d5db \
--hash=sha256:14c8f0e4d7a74ee6ba3ade9434601f21ab8d6f9948f602efddbfc082d2bbb385 \
--hash=sha256:3da2c9609cd7299ee2965ff4b0df7a5d50ebe4eacd0cf50f8243686612c2d801 \
--hash=sha256:6fd3cd612aa739be38ab15005e596087cfc0ecbbe935a0343dc82f8b60532669 \
--hash=sha256:78616046a99831c55ca3aac3405b6353e79a923c67a6e5b1dd134585cfcc8e66 \
--hash=sha256:90d1a379ff0057a84863ba7d886af7f49eedfd1a14def5ba5a3ba719ab99c37f \
--hash=sha256:a17bf2347cb9f92c5ccb93fd88be65550e47db2a76e086602b226259f814b111 \
--hash=sha256:a4b57b3235014074fd7316dae5f4ee08cf46fa9b9c7bdf8718c3f310aaff9155 \
--hash=sha256:ac365806f09cba9127fe716f570219bf1fb7d733e847eef7535ade5c08aed721 \
--hash=sha256:b2acf9f4b7214502792d3430a341907f872cedd25042430f2c4138f9b7092d87 \
--hash=sha256:d9de93041c7749f1a93dbc0367408572ed76d710566fd7d74241ce7f69388350 \
--hash=sha256:eb44d2276ad670e8608bc2f2a926afc8e06f62de87275afb56d7ed8aa8a4f298
attrs==26.1.0 \
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
build==1.6.1 \
--hash=sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53 \
--hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
certifi==2026.11.20 \
--hash=sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f \
--hash=sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e
cffi==2.1.1 ; platform_python_implementation != 'PyPy' \
--hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
--hash=sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66 \
--hash=sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2 \
--hash=sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0 \
--hash=sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6 \
--hash=sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971 \
--hash=sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c \
--hash=sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d \
--hash=sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9 \
--hash=sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517 \
--hash=sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735 \
--hash=sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80 \
--hash=sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f \
--hash=sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1 \
--hash=sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29 \
--hash=sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8 \
--hash=sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c \
--hash=sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e \
--hash=sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48 \
--hash=sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813 \
--hash=sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac \
--hash=sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632 \
--hash=sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6 \
--hash=sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1 \
--hash=sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659 \
--hash=sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688 \
--hash=sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004 \
--hash=sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0 \
--hash=sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062 \
--hash=sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779 \
--hash=sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94 \
--hash=sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50 \
--hash=sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab \
--hash=sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac \
--hash=sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6 \
--hash=sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676 \
--hash=sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1 \
--hash=sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9 \
--hash=sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf \
--hash=sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13 \
--hash=sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e \
--hash=sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e \
--hash=sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973 \
--hash=sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527 \
--hash=sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72 \
--hash=sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890 \
--hash=sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c \
--hash=sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990 \
--hash=sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd \
--hash=sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9 \
--hash=sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94 \
--hash=sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3 \
--hash=sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80 \
--hash=sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41 \
--hash=sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5 \
--hash=sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c \
--hash=sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a \
--hash=sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4 \
--hash=sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e \
--hash=sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6 \
--hash=sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98 \
--hash=sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b \
--hash=sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1 \
--hash=sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03 \
--hash=sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af \
--hash=sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231 \
--hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2 \
--hash=sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3 \
--hash=sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836 \
--hash=sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5 \
--hash=sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399 \
--hash=sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96 \
--hash=sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e \
--hash=sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be \
--hash=sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf \
--hash=sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc \
--hash=sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455 \
--hash=sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0 \
--hash=sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12 \
--hash=sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b \
--hash=sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7 \
--hash=sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692 \
--hash=sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54 \
--hash=sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3 \
--hash=sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b \
--hash=sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be \
--hash=sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d \
--hash=sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358 \
--hash=sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a \
--hash=sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7 \
--hash=sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc \
--hash=sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960 \
--hash=sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125 \
--hash=sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb \
--hash=sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a \
--hash=sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa \
--hash=sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf \
--hash=sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3 \
--hash=sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4 \
--hash=sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264
charset-normalizer==3.5.3 \
--hash=sha256:00edb7682962c596f774bfa126e6b6f885b7af2319f448d327591c284a482de8 \
--hash=sha256:01b35bec964b92b89bdf94adf931d2e80a15f1c7b93bf850b4430cca23f7a2a2 \
--hash=sha256:020cabbb90926b2d8b022a5e057ab349f28844b61f34117323fc08c2971915e3 \
--hash=sha256:02b1abf64742b2d0782172cd2542616e462c201c829c23aff833390babe2967f \
--hash=sha256:06d07272f70d9880fba32d4876e966ae4dc9961134bc989066a0901509dfd8cf \
--hash=sha256:0810592b80dc5a97f8103443460264b588f31c6baa8a20abae7c683435d8117a \
--hash=sha256:085a5d1f49eaf96596d79494fcab18d9a32db6e345da15d6debfc90110b20679 \
--hash=sha256:09833ba78c91f0d1fd06387c69dae9f079428b77ea05eaaf1553eecead31fb68 \
--hash=sha256:0b3fc6f7dd9db4a7782e65dc98eb80b2a91a854cf54a03dd93649be2f7ca638d \
--hash=sha256:0c0fe07631dce6dae788a59c20ed927adc6feeb2d9ed440747eb367d89822a45 \
--hash=sha256:0ca25f1b1167e9fb94d93d3708df0b631de241bf8440947b0cb9f8c4cb66fed0 \
--hash=sha256:0ca2da4a505fae7ef95922f8d48235b2e49ff8f10f4edcc0481e5f6526ba3841 \
--hash=sha256:0cf4cb8d75090a8da3bd30c0963b2c6c6114e791c6fc060c3cef8971497b1f04 \
--hash=sha256:106b9d0438e2ff0a0e8ebd869273fcb3640af28323bba8651c714c57efb38e51 \
--hash=sha256:11ad35a0b856ad8bbd0c9e900c069461a4661694714aa17b6e6e2e8621e1c373 \
--hash=sha256:139aeb8ca63946dc79364c37f2c9cfe5c1b7f3882f2c47484d0e54bf14b921b0 \
--hash=sha256:1714ff1ba001da5241a585fbd17a7742a61ad34efb4be8404aca5679f51e53ea \
--hash=sha256:183aee7e84789391e547ec1609f8269332b9b123d21e97f7ef79eaa474c47e08 \
--hash=sha256:1a34385837db59d5de814c9f1e0f4157b571f9ce0eabdaeace410aa93bf5df62 \
--hash=sha256:1b2704f4651539eab50ba104a975b96c3cd5246011aa0755d2dd71ac12546644 \
--hash=sha256:2246873913d7db43ed5a3d98ace398b989b2ae20b77c8d761a7bef5fdb9bed42 \
--hash=sha256:249bf0b6f43985c33c83adbbab0ca71246ec24c82d960fa00c4ddb2cfed25db9 \
--hash=sha256:256b434b2860ef9da1cb6a5fd4ebb5d600936668e50e2035858948b96b068ecd \
--hash=sha256:26c6ad87bb79628954b52f8f7b9e18ab5cd9667546712ded9689fb7677e630d6 \
--hash=sha256:277b72183b96879887f0c3aa0bdac1fee08a6c7e67bad53145c4fd416d99dfd3 \
--hash=sha256:28ba8e6361e0f319641707484994096ceb77e05c29eaad2919756218c0c89001 \
--hash=sha256:28d954a437bfa5fcdfe7ad8902cf4347a8486f34a86c5f39003bc1288eb67d72 \
--hash=sha256:2978c799237eb66619d8951d2ab7efd317414cb6682160e05614ce1c8b5c905f \
--hash=sha256:29ac44f5878142128ffe4fa7e041ddc4cc5fafe43983245b9a141908c40b515d \
--hash=sha256:2a6f937e0b70133d1f826d0a253331b6fe1a4c874808cc12e16f2fb8177042f4 \
--hash=sha256:2b7797a5b0cb197f118fd13b41c14c5a3c38dd625a87c1da58a3066cf53254fd \
--hash=sha256:2c4e0050b732ee3dca3676a5f5cf7fbd0c131761c194f1bb1d24c055fad071cf \
--hash=sha256:2e7fbd98443f28a5ed8004f0b058edcc4720a3d344adf007c0b7f1adbff2f59f \
--hash=sha256:2f2d973d3c79fbd1066d63d1bafb2ade66934c0840ed149f6fac13c3fdf80793 \
--hash=sha256:323d5cf6df3ea724afcc3bfb07c73be06d2e8200a8b6b37979a300ae1e7836d0 \
--hash=sha256:326a7a0e3715c3ac24c21e7a3b831d6799cc795bff260aa49c23b69025852f99 \
--hash=sha256:34054580168b04e90e6c7c0f6c80173fa2d4f72c4db91c9095598454f96d6389 \
--hash=sha256:366f5efe95a6149ecbcebf779c2594a6a4ff6fc116402826c72ed0eccd6aabe9 \
--hash=sha256:390ef7c7e018c0abb8c0ec2d28ee137567ff50c3706facf6d115cac832ac993b \
--hash=sha256:39229c222445415db07a0be4dff8ad1addc3126644d7aa72d73f1575b637d69e \
--hash=sha256:396fdf2d4367674531a7c8d54ecabbc8e5131e3a1a06270285eb99f3140143df \
--hash=sha256:39e019884c8f857393df954d35f42bf99c5ab85af226fe74d1410188c6fec31f \
--hash=sha256:3ce4e4587e451ebc7d9899a7a1f539ea30a3c712d7bc8e0d256923c697fd5dcc \
--hash=sha256:3e8da696ef1935a019c10ec16555a062183ddf6d5901e296edeca4b2a8f84e1d \
--hash=sha256:40b2ba91f0851aa864994b3c7022e4d96d09026717e6a72e44410d6fb3a74a13 \
--hash=sha256:45aa4ccf5a6caba138dd0f8bf36fa3e26654585d534881b62ce5e4fea2487772 \
--hash=sha256:4831fb33e98e92140fa17d4d673a9f49f9c0ddd056115b722858793e4b86b0c5 \
--hash=sha256:48f7c7f537246bb3af2b3139f44716a30b21e78c2fd1cff0f3e392fbd55d8044 \
--hash=sha256:499e4bbeb1e79b14756311a1d12cb88112f244423e152d80981d9bcaff3279fa \
--hash=sha256:4a991dbd7aec868fe10802b02bddbf898173a47ba236f2d6afb4ab1f98243534 \
--hash=sha256:4ff5e27478681ef1b13b036baaf9beaf9b4c6990e903c752ad3b8764692c6d6c \
--hash=sha256:56405211fa124c393eea14b3aeacf5b90de72b1f69b0a60c9bc40b01dfe71a42 \
--hash=sha256:581d6e7df9b58d34147e21efde42a480b5087fe54f31e42550c26321566ba1e4 \
--hash=sha256:5970d148182b6b7c22b8290a81f02fb521c4e7aee6747743b3e645db58d5001a \
--hash=sha256:5f86753952f7de3abc7ce871f8239ce4e0d32a91c84d22f3a667e669907c3897 \
--hash=sha256:6118055f4ad0d94e016eadbb86caed9caf2c9033631ed70964ba631c1336984f \
--hash=sha256:61e32fdbf56f4cd25a1efa451c8b5fe886fc5e00143ccaacafdf21f301fad059 \
--hash=sha256:61f3258f700412c68fde407e7c749ed6930e795ea8f5ead9a40afddefbec12c4 \
--hash=sha256:6423accb6ecd1456bf824bbac98ba919398523a69ee5f1680dd1da88769de866 \
--hash=sha256:643724071b01cc0369026e259850791212cc187c6031d0e930abcd253f128e0c \
--hash=sha256:656b9744bac4493561d28b56d7d646afd7a8471254ef7004d849aa8368020037 \
--hash=sha256:6651fecdac146ecfa52700e02a5fa3b3677bddf5fced4983b43e904244de3f6a \
--hash=sha256:67bb767a8de7a2b1164c74fdbe5cdc32b9c15d7142efd9a6dc77ff63da94e846 \
--hash=sha256:6b702d36c565f6c650f4b479488f475b2982132ab8d0840d42b1442462c21056 \
--hash=sha256:6bfbbb9414dd0f5b81c259deb7e50b4b44e65e05879eee482351bdabed49d7f4 \
--hash=sha256:6c80b4e83e2fbddd25fe27804cdfc45ef71bb387522caa575af42118d72dc970 \
--hash=sha256:6c8abe7d59bbc891e5080b8b142c36db93154f840c4baf7c83ad6273a1a15397 \
--hash=sha256:6dde7edd9ba5005389bc7c0ab461411f281dbacb2b06e52bd23592eba42bb503 \
--hash=sha256:6eea31136fd924ecbb4e7c4f3df4b18230409629a22b3896f38a6754d5857794 \
--hash=sha256:70f65dd0c2ed79ea2d9776096e9c7d25e398c2c03eb31877753598d201d91784 \
--hash=sha256:73b4ddf1230df56c9e7017a16e3f5171b6ef0e4ff554a418a370d7ac7245bd84 \
--hash=sha256:747e83d415939612284afdc99f15295382639c0d3fc69a73aeb84b380d1f4af3 \
--hash=sha256:7a7e5bb8974842ad747d4a2b9fb928f84c3cdbe2c2fd7e405197fc1a1badaeaa \
--hash=sha256:7c313b46730b4a68bb31450973467313b2c496fefa42ae316b86c186cba74613 \
--hash=sha256:7fd816f466883dcaac196ac77271d0292eee4a81f4db1191b95d15328f335937 \
--hash=sha256:7fdd11094a0b07bce306b359fa7311c71d93466d967b3b345f2e9f03d8b2c959 \
--hash=sha256:806e72ebaeef54d7faa03414be9e8409eb3dcae49fba089d62063a60c0b5a4e5 \
--hash=sha256:81132eaffa984f0a399233df4cd383caad18e8cadc6c24c568cf9324732a9768 \
--hash=sha256:8231365b03b702b516aad35c9515694177ac31c9dc6240326f07308a4c45c708 \
--hash=sha256:826d82356907350f345cf0aa744d43a69ac7948bd60f460f997cde86928beadf \
--hash=sha256:84356c7b7ddf090e3e4692cb99fc820e6189b5f6662ca7e8589f41095cc8efca \
--hash=sha256:87d5a237d6531c654e7b9b319be9ba7e368665c466e02a03cfd4d3d77730782e \
--hash=sha256:87f7d6c595465a25d33fa3d5215a571a98c4cad00ead3ad18ebfb62adb3d3e6e \
--hash=sha256:885f202d6e4e2298bea9802ffc6d8c7dc45394199a8dd9e1492f05fe32dce311 \
--hash=sha256:8b969f0309de905101bc3d2471c112e9ccbba711a7590b12d51f372b4163688a \
--hash=sha256:8baddc6349faf49edae4d1322f12b681b9e86acacd01874457c997437ef4ccaa \
--hash=sha256:8c4dfcd3269f13dff7f29f9c332d54a4a21f17be818b49e769e111befd4d39e6 \
--hash=sha256:90b1ff6cb9c7a204a3b79b1b0ed6ac8a1d8fed3b6dc69e50ae5de0f358ee81d4 \
--hash=sha256:92bf85ecec3ad6374ae50d870bd1deb34de12bc1158b5fd09036d4c435c6f58c \
--hash=sha256:92ddc32b6a1508ea145f4f7995e00666db454b8fd3e2cae6c2ecbde4f4d44616 \
--hash=sha256:948fb3649416a70bcdbb267d79c7048e8aa16e989ab9da09f416e67cdd3d6b8c \
--hash=sha256:94b595e64bc2927f679774de50df340b7828dc1c07c99149ba7c2d0828dd8bf3 \
--hash=sha256:94c9d5d91c16554f6397b823d9e47181ba100d830ab16b5d720adc229e17b2e2 \
--hash=sha256:9510da88bdebc903be7844f31523ac8d7b3f63e167db54b6045104a2354afa6a \
--hash=sha256:96387278c3b17bc1170f80693398d0babac7b41df128ced8e27588a7155d95b2 \
--hash=sha256:96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132 \
--hash=sha256:9902e80096a94cf70fb72d12ae40e3b187b40e96fa722873d4d62afcd0333c46 \
--hash=sha256:9a6b95b1737f9b5942c35676c52db0c302d60fa806efde3fc2d9f54247ecf4be \
--hash=sha256:9b887e8a7103ae2171dccbab00a4bb2bf1560f5c10c28227e5513bc90a608cad \
--hash=sha256:9c1bd8321a840729a6b2620774cf4000fafe66c54cac9064972a10c4f607794b \
--hash=sha256:9eba4613d45b49196af04a5cbadfc5e9379ba94aac85184b72cb1107ad31af0d \
--hash=sha256:a094178c51530c9ebd1775e72d160af0eac4be244fb06ff1b6f182128c71903c \
--hash=sha256:a09ca76391f6e17b12d55c1068b4b5f8f6c9b44b432d936075372fa12782292d \
--hash=sha256:a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff \
--hash=sha256:a312fedd182357f2c22f066d17dcd7413b6a205ee3d063d36950e94e3019d3de \
--hash=sha256:a36bba41dc7fd263417688c4daf95a1091f93e1f6957c0f71ad7798907c5a10c \
--hash=sha256:a3f4044dd5d2f7b958be6b9903cb432e6a0fd944d673707ca5cab68137d0592c \
--hash=sha256:a43831574e14423103d69fb1357e76e4f2347041c98e8357ab88ef21812e80d9 \
--hash=sha256:a491d4afb361aba32d55d7df7ccde766a3aa9a34c002d2c32c2743bf6e77c13c \
--hash=sha256:a5a7e0326566759f9a7bc44f4b9a179cc40a297e09e759b0bc7c848c06347527 \
--hash=sha256:a6eba94fc00d899f8d268712772c8dcafc40215aa9b51701a397afc9426e012b \
--hash=sha256:a8f92cc9080bff47555c79b88e7fb8655438ce3bcf29c5f01ed2ed5efdf174a4 \
--hash=sha256:aa2476abf8669be493689634bdb79f468a6fe57b005a5126db7e9f61d1954fe2 \
--hash=sha256:aa8be1f24fbc03a07cfe002b70ba0716effc6b3011fd9e5560ca399d3d0605ad \
--hash=sha256:aa9390d89822dd06f9920ae3038819cb121643a72f4753b2eee1a79b2f1215f8 \
--hash=sha256:acaa0e100f39287dc5d13de96e33ba0786f1cdfb5b4ca28918913ab0eec3af72 \
--hash=sha256:ad1becd776f5a41a4d91cb9ee51778f4fd687ef15e4919779e00a33c6cff6948 \
--hash=sha256:af217012cfdaf6ea5dc0c538aac29b7bd030eb865056cc60f1d973b982b7917b \
--hash=sha256:b013417037c931583578639cab2523d5a2efc35a584c192d07f4c909b133f6b0 \
--hash=sha256:b0aa6b81bc632af7cac7b270c933298cb5ee858506dcf344e0da006667e0c351 \
--hash=sha256:b30e5496e453ac971bb17f5e096b84fbaae16d09e2613f6148ff528c08a54a0c \
--hash=sha256:b66a0e045cf859d7418f26a554509b65f21ebb6d90a95152460781939e8264f4 \
--hash=sha256:b6dad86d938104f9d43404029e5fc8392f82762d171933be4f192a6008bffa53 \
--hash=sha256:b6ea5bf7e3c39f6e56957d82274ac7cfab469590085883fdbc86e754cde76b11 \
--hash=sha256:b8fc4fe56992b089d6177021fe6db641321bb2bc2fc7a1abf815c29a80ca2137 \
--hash=sha256:ba26e4d073a4f7f2594676f2ff20ab80a7f03332b81c3f9964e9e53bf2305329 \
--hash=sha256:bed05639ae1bc23df7996a4fd13ea5064ddf60dc7dabd754f8badf060daec63f \
--hash=sha256:c08e06fc69750827d7ccebba63ebc97a85e479cd5c9dbdb80f5e08a77b774fdb \
--hash=sha256:c39a4fe28a16e8fa667c55c154f62c6c3cd9ca2491cca9f16330dd7360d05b76 \
--hash=sha256:c437ed8775d201d37206f37d233f547506e3aef60b9711584c65444c686b4905 \
--hash=sha256:c43d9737c3b85ccd16b1862b1e7aa5c4bf30a6033068403713c0a2bba5bda979 \
--hash=sha256:c9d1f467d121b33b06865c94ed5ed8388a9ef76f5e1acc1c8a854ac653493f5d \
--hash=sha256:caefc441edff6070a9f9749ca880a22731a1715d9e74b24304a546eec44bfc16 \
--hash=sha256:cb18428af7399e0a6f7e3b45f110d57a1a47cf07fd4b3ce50e2366d99a38959a \
--hash=sha256:cb4c25a9d3410262216b5c7447e51bfd2de0efae0a7640772dc6d2a8741590de \
--hash=sha256:cbd09b22b340f846671e79e8d832167fac60c1884be4c71fd667211486a3b58e \
--hash=sha256:cd5422fd4f8a7859846c9289e310dd95c0d1890c31819667942753e510f88f69 \
--hash=sha256:d12571adb9ceeb9ba0640db46433430062f5f1dec89e39713a2a5a8ce3016c37 \
--hash=sha256:d1b7a3fe4cf679eb3870b91b86b8ce12cacd5cf4d74bc114864a5cd65319ddac \
--hash=sha256:d313494077f849d8199f36166947785da1eeb36335fda15fde2e8f801ef271b6 \
--hash=sha256:d3c9d5284d64f4c1015d95b751577b260fd6d14e3f8edf21710f4436e7ac4c49 \
--hash=sha256:d4e7ecaa25f0dae672ac783c2e5aa9054a62e011749d64ff47b887af360a3e82 \
--hash=sha256:d57f1b6affc3581fbf0bc6d783cc60e7c9957adfd9c7b89f8a9f3573ad1cd49a \
--hash=sha256:d8f85e019c9f08ec134648a378ddd3f6f073c1e4b5ce9bdacd9a9e7b60749cd2 \
--hash=sha256:d93403a13c8f6f2d027185d90ab695e81d95e3ebd000f0078e201a1c3159d4d1 \
--hash=sha256:da606e3015dbd4b9a31c0468898a0c4c998846197ddfda78308821dc8c9e9be3 \
--hash=sha256:db2eedef732424346f98d0aba5c6ad688b648bc79847f4cc70dfca830130b1e6 \
--hash=sha256:dbdd407104ebf2360464ce02c7933c6ffac58bd5b64cdf6ef7dc0e787e782aaf \
--hash=sha256:ddea089587432e3df6771a4a405ef249cc9727f7becb1de3f00ab571b2432002 \
--hash=sha256:dfbde696fb427301ec40cd82b8eec0b528e44c6af8239f33ede2b2552d9a085a \
--hash=sha256:e1cdbde56f9fa6d426b78941c381e2ba160c1214809baa47e02c1d0d8881d598 \
--hash=sha256:e282983b8def5ada758fa1f18bf9060bb8ce6cdd73be32f62a2de59820d3286d \
--hash=sha256:e34f591669498a03cd70993b0a79b9f0ef40c4e6f8232466bac33c42f0c15742 \
--hash=sha256:e405cce4170de1fe520d9a92de9d7ececc23dfcf6888c62ab608a21be50838eb \
--hash=sha256:e4a0f2adf29a69dd8fe58e42bb191f3c87067b05fcc63279983e8c9ce5092abd \
--hash=sha256:e4f85c34f9be32ec5568a0668fb8bc029d3e729285fb8fccc38695e185379a9b \
--hash=sha256:e5e4785d8a0adeadfbdf75f4efc357911842674651cbafd7e97f69b11ec3cbc6 \
--hash=sha256:e86a27ab632d2e888c22b79263864eaff8b7dea9e87328a9bb0ea04eff24786f \
--hash=sha256:ea880ae1a692ae694c11bca7be74864614ff1a58bdfff4605f36d1956b4b1588 \
--hash=sha256:ee9de080e8d6221bbe4ba2667367b1cee0f47a53f60ffc5e431b698cd2f2b214 \
--hash=sha256:ef8b925f2b331a1f17d6fb32625e09fd571cf41844f578379f934dab0067cf0d \
--hash=sha256:f06e257ee0cc85a7e4ec44f171ae2595fd901c34212f3c9e7ab8fd8621401e99 \
--hash=sha256:f1214052966421a88ed526ba93e4463b39346862fa4721be5306434b33dae795 \
--hash=sha256:f160f03e15bd1e3c35db9bfc20c42ff83155d37f9b0c79806cb10051ca725f13 \
--hash=sha256:f1b357340e4cd29011683bd81226175611ad835fec22e5b7df83b96701571226 \
--hash=sha256:f39290a0c2e3f4196563189bb45e6ef5d5badf50864e1bfaafa9003f0595573f \
--hash=sha256:f5a5c311e5de6954c36230a37863b5ca58ce232589bd637ad2881c4056897b12 \
--hash=sha256:f7a841170fde40b0e1345884bee09ceca7db49a9291fa340089bec66a366c243 \
--hash=sha256:f7fb9a3275f1a1528e542a0f5a3d2c89fcaf68e797fc5c6530434cbd92a852c4 \
--hash=sha256:fc540d1618c5638fcf5aea97060cf011467918b010bf682a84ecc0c9474e6cd0 \
--hash=sha256:fcb17f1d40c38912a2cdb56ea47aadac3527cd0b06fe24f3a0c4896febbea063 \
--hash=sha256:fd0341b9dea133d187d7c5a2cd7e21ae6449a7b68ea8c2454f9cf77def11ec1b
colorama==0.4.6 ; os_name == 'nt' or sys_platform == 'win32' \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
cryptography==44.0.3 \
--hash=sha256:02f55fb4f8b79c1221b0961488eaae21015b69b210e18c386b69de182ebb1259 \
--hash=sha256:157f1f3b8d941c2bd8f3ffee0af9b049c9665c39d3da9db2dc338feca5e98a43 \
--hash=sha256:192ed30fac1728f7587c6f4613c29c584abdc565d7417c13904708db10206645 \
--hash=sha256:21a83f6f35b9cc656d71b5de8d519f566df01e660ac2578805ab245ffd8523f8 \
--hash=sha256:25cd194c39fa5a0aa4169125ee27d1172097857b27109a45fadc59653ec06f44 \
--hash=sha256:3883076d5c4cc56dbef0b898a74eb6992fdac29a7b9013870b34efe4ddb39a0d \
--hash=sha256:3bb0847e6363c037df8f6ede57d88eaf3410ca2267fb12275370a76f85786a6f \
--hash=sha256:3be3f649d91cb182c3a6bd336de8b61a0a71965bd13d1a04a0e15b39c3d5809d \
--hash=sha256:3f07943aa4d7dad689e3bb1638ddc4944cc5e0921e3c227486daae0e31a05e54 \
--hash=sha256:479d92908277bed6e1a1c69b277734a7771c2b78633c224445b5c60a9f4bc1d9 \
--hash=sha256:4ffc61e8f3bf5b60346d89cd3d37231019c17a081208dfbbd6e1605ba03fa137 \
--hash=sha256:5639c2b16764c6f76eedf722dbad9a0914960d3489c0cc38694ddf9464f1bb2f \
--hash=sha256:58968d331425a6f9eedcee087f77fd3c927c88f55368f43ff7e0a19891f2642c \
--hash=sha256:5d186f32e52e66994dce4f766884bcb9c68b8da62d61d9d215bfe5fb56d21334 \
--hash=sha256:5d20cc348cca3a8aa7312f42ab953a56e15323800ca3ab0706b8cd452a3a056c \
--hash=sha256:6866df152b581f9429020320e5eb9794c8780e90f7ccb021940d7f50ee00ae0b \
--hash=sha256:7d5fe7195c27c32a64955740b949070f21cba664604291c298518d2e255931d2 \
--hash=sha256:896530bc9107b226f265effa7ef3f21270f18a2026bc09fed1ebd7b66ddf6375 \
--hash=sha256:962bc30480a08d133e631e8dfd4783ab71cc9e33d5d7c1e192f0b7c06397bb88 \
--hash=sha256:978631ec51a6bbc0b7e58f23b68a8ce9e5f09721940933e9c217068388789fe5 \
--hash=sha256:9b4d4a5dbee05a2c390bf212e78b99434efec37b17a4bff42f50285c5c8c9647 \
--hash=sha256:ab0b005721cc0039e885ac3503825661bd9810b15d4f374e473f8c89b7d5460c \
--hash=sha256:af653022a0c25ef2e3ffb2c673a50e5a0d02fecc41608f4954176f1933b12359 \
--hash=sha256:b0cc66c74c797e1db750aaa842ad5b8b78e14805a9b5d1348dc603612d3e3ff5 \
--hash=sha256:b424563394c369a804ecbee9b06dfb34997f19d00b3518e39f83a5642618397d \
--hash=sha256:c138abae3a12a94c75c10499f1cbae81294a6f983b3af066390adee73f433028 \
--hash=sha256:c6cd67722619e4d55fdb42ead64ed8843d64638e9c07f4011163e46bc512cf01 \
--hash=sha256:c91fc8e8fd78af553f98bc7f2a1d8db977334e4eea302a4bfd75b9461c2d8904 \
--hash=sha256:cad399780053fb383dc067475135e41c9fe7d901a97dd5d9c5dfb5611afc0d7d \
--hash=sha256:cb90f60e03d563ca2445099edf605c16ed1d5b15182d21831f58460c48bffb93 \
--hash=sha256:dad80b45c22e05b259e33ddd458e9e2ba099c86ccf4e88db7bbab4b747b18d06 \
--hash=sha256:dd3db61b8fe5be220eee484a17233287d0be6932d056cf5738225b9c05ef4fff \
--hash=sha256:e28d62e59a4dbd1d22e747f57d4f00c459af22181f0b2f787ea83f5a876d7c76 \
--hash=sha256:e909df4053064a97f1e6565153ff8bb389af12c5c8d29c343308760890560aff \
--hash=sha256:f3ffef566ac88f75967d7abd852ed5f182da252d23fac11b4766da3957766759 \
--hash=sha256:fc3c9babc1e1faefd62704bb46a69f359a9819eb0292e40df3fb6e3574715cd4 \
--hash=sha256:fe19d8bc5536a91a24a8133328880a41831b6c5df54599a8417b62fe015d3053
execnet==2.1.2 \
--hash=sha256:63d83bfdd9a23e35b9c6a3261412324f964c2ec8dcd8d3c6916ee9373e0befcd \
--hash=sha256:67fba928dd5a544b783f6056f449e5e3931a5c378b128bc18501f7ea79e296ec
greenlet==3.5.6 \
--hash=sha256:0616b8f878098c5681fd8f0dc92d887551717402342a70f0abcbfea5f5ad8a44 \
--hash=sha256:06c0e933290fba8ffe53ead4ae1b8044b0e9754b75cebf381aa2bc3e50d82fac \
--hash=sha256:128813fc29f2336a21b4d06eedd5e16bcc7ea46f59e9ff1cb30ea70e48195d88 \
--hash=sha256:188bf333769b7145e2b0b4a7f09615ec550ed44d3a2a8395fb7b36f0e9901e13 \
--hash=sha256:1c20ea32a73d17b9b60e3371240e17b0068120c98a5ec01a224a7dd8c89733ba \
--hash=sha256:2ab5f42ac6c238eb71770715e6e909ad9a1a92b6c681ccb64cd5a0f07edb953f \
--hash=sha256:301102a49120b095e72a7838792b41233975fc1c155daec6d98f81c00c9280e0 \
--hash=sha256:311018b46472fb26ee85870847fb89eb64cc8aaddb617400789d87076f7cfeec \
--hash=sha256:3ac3494c381dab876cad7d0b22f3a722f3e0c8deb3a65b9e7f35ad7f58b8fcb3 \
--hash=sha256:3c6dede9133e1da41d561bc3fb14e92b47e2ce39ae60edefaad145658ea7c5e2 \
--hash=sha256:3dbb4596a6a4e5d47121a33ff20533a81e60f302d9e67b69909a8bc21a43f0a7 \
--hash=sha256:3deccbb57a481e3a408fe61cdfd5c13e0678fc0a30fdd09597917ca87b4be877 \
--hash=sha256:45663c01a4de48b9a64a2ee1509d92d1dfd3afb02b2ccfc9333029d11aef996a \
--hash=sha256:45bfd2b51e38aaa5f9849f114d9c7c1d75f69187c849b3549cd64c465283abfa \
--hash=sha256:460e70b033aba8ed47e2ac9b5d0d2157b05a34fbfa30a241400aef4118902cdc \
--hash=sha256:4fb8e59f68845d56c23c031dcd79c329f345e4a9d2ffac91c3d1ab366bdc457b \
--hash=sha256:520648db8fb92eef7b3e6013f5a6f901cdf0d6685f639c2f7a245879f865bef7 \
--hash=sha256:5599b380c1f28efeb724e81569eac80cd92f99a85bd9775456caaf3225d40b11 \
--hash=sha256:59deccd347735a7774223b05a93773fddbb298aba3cea21be4337fb4752dbe32 \
--hash=sha256:5a0b2791239c99992a86c1b635b787fe2a877d9eaaa26f8891ce943832b585ae \
--hash=sha256:5adcbbfe78bdc242c71740a02e0991cc1b2f34d33c8bb15ca45eee8fd1140942 \
--hash=sha256:5b602b4201b965a8354d74e232364a66ff243dd142e350d035f46169bb36e13d \
--hash=sha256:5bbda3c70dd35d60671bc33b01916802707a052130d9e50cdb871d34594d35cb \
--hash=sha256:602024dae6d77e161f4b89491b62ca1d4f19949d79d47b2db057e476d21179d6 \
--hash=sha256:61a61b4a95a4f97922c3a6f5606d3e360851584bd47e500a5161373c53810e3d \
--hash=sha256:63aff70fe5aac59c72215f42ec39fcb59ff46774fa966e717f8ecb6ee2273577 \
--hash=sha256:71890d5247020c25c21a6b65202782bfc281d4e6e244842419d30e3492bb6dcc \
--hash=sha256:73a29b5ba642e35433166a03a3e02935e7238c4b3467fbd77523b99edea23e5b \
--hash=sha256:7969bffa322c097bd46ae595ada6a931cefda613f18ba64587e9cff4cb320756 \
--hash=sha256:7ac4abb3877c43af320392c664774eef6fa2cc063c79a55fc02d844a3cbe7395 \
--hash=sha256:7f731ebac68ea06d628658295cb2d217b10186329fcf9a3b6a149045059bf92e \
--hash=sha256:7f924a5a9d5890649566f2f6682e0d8ad8ca23028bacffbbac36dbd7fd680176 \
--hash=sha256:874cea8bb1ec1ddccbacbd027856f6bf496f6bc18aba97a918c20e067edab236 \
--hash=sha256:876077e7ebb8c84ed068e2b23d4c62ebb010d60df84b9591af1be2f39010ffb2 \
--hash=sha256:886bcf1870af74c32bc310fd00a6b803445e17e51b7d5a107c7b35c0f362cc16 \
--hash=sha256:8b27df301f56e3b3d2298095c8f7d6b68f2521f6b1693e901fa039bdbae34424 \
--hash=sha256:8b7c73d1cef3d9ae963e9ff03f6222df43efbb9054ffd2f1969c935b7fc84c02 \
--hash=sha256:8cda13494d86a4f12429641117cb6ac4bbbc9c30a33f711f7d3a2e5fbe4b0b7e \
--hash=sha256:8cddea1b8339451c2fb3388e138347b6126744f33b611bdb55b7357361cfef46 \
--hash=sha256:8dba0129b93e7091dfefaf4cf7000172741bff7f47bf6326fcf17f32fbb54d6b \
--hash=sha256:8e67c43bdfc88d5fee6db0d3e40175b362fc95fb85f0412d233b9b203c53a575 \
--hash=sha256:9133d68624b1f2e89ec2f554d56aea8a5b0d7168cd9320200ba58d4d794845a4 \
--hash=sha256:916f92f2a8db10508f739d0b5e00b83defe5d1115a997c54532a6d7cf8c95404 \
--hash=sha256:9297fb9c39b9a2c039dbcd306c410bd6906b95244dec3bba4318d36c718c164c \
--hash=sha256:95e7c44d072db623a1aab04ce488cf9533294a77ed9d072cd503a3596f4106ac \
--hash=sha256:975736b002ed080d124cf81a79cb7e05cb26d6b3f5c7a7b651c0fcce70353aa1 \
--hash=sha256:97c5a53e8c1754df58e73f047a99e287d4da1bdfe64b0072fb25c87000897951 \
--hash=sha256:9a09d59bef1db94f384b5bcc2d523694d338f3df6b757aeeaf7baca5d0c0be88 \
--hash=sha256:a364c1ea75dc51b83a17f52fe0c79cf8bc4ddf740403bebd4581c7666eea017d \
--hash=sha256:a3b4a01c6da07ef9f80d4fe8933b994bc99747bcea3eab0330a9c34d3c12655b \
--hash=sha256:a5876d0a60355af98d535c47f6cd6eb0f8a432396dab26845d380b92f8412422 \
--hash=sha256:a6a4b98a9132e0f45c9fc245a63894cfd8c45fb7a0d6bffc5eab3ec327cf7324 \
--hash=sha256:a6b4ff33f7e011bbaa148238d131c4fd4f8afbab3c104ddfbdb2b12b74ff7016 \
--hash=sha256:a93ee7c6e8fd0f8a83525a51bd777be57ee17787e91d805bd8d6faf9dcada18e \
--hash=sha256:b374e79ffa7511afc11773aef40a4ccea6191fba1c856ea2f9c56738dca69d7a \
--hash=sha256:b7d501d5eb5d4f67207df364752ad697465b834268744be7581c18d81d35d41d \
--hash=sha256:c59acfa8eb73a1e0d484392dc002bdf001fd4ce73394e0132df3d1ab6093d7cb \
--hash=sha256:c75116c9de79949de23006e2d9b35ee82874c594fcf5c0311b439acaa14b8441 \
--hash=sha256:ca80a49b53ed1d22f7282da7255f7bb2fd1935fd0f623d8613fda38745f18961 \
--hash=sha256:cad5782f93f7f738b62c6527b6f32a60694d924029f299a8b524758cfa53d815 \
--hash=sha256:ccadce0130fd813ec86ebfe969a6c58b42acc1d0fe55a47525375b740e07b605 \
--hash=sha256:d701eab36200c36224833d07dbdb709adb7fd4253429548ddb5e547b8ed40586 \
--hash=sha256:dad3d233d441a022c1f7155f0fb9d5aff7b97c1ea8c7dfa02cce586b16ab2d0b \
--hash=sha256:dd0b83bed3405b586a3133629f1d1a5bc7bfd64822a3b7ab342bdc68e6dbc61b \
--hash=sha256:de3de000d459402cda015068fd135aa50c0bf6f2477a80d4da1e646f123b4e78 \
--hash=sha256:de9923832f2d8c1a5ecd8d7260465a6ca5a86888a0d129e3bd5cf0406d2fc5bf \
--hash=sha256:df19e2d0b1620039af5102563fbd96e8938c7f5c3f5828528d641d9fc585525e \
--hash=sha256:e85880b538e59a59f55117b81f208a6660ad5ac328aad9305f812d9b8bc67a0f \
--hash=sha256:ee7d9da3bf493909cf811a3f038840cb34fab5ae2956b8a263919f6e289ab188 \
--hash=sha256:eed88b64a5e5da72d6a71cdc5aaeefaa5ced9b748f8d19f89800b339961dad39 \
--hash=sha256:f0ba7c2a329d650628f4c8572fd1db29f0a59dd70a3e3e0710dcf18a35cce9d8 \
--hash=sha256:f8e63209c3e1e828ee6a457529b4a6d8b05d050fe0ae03a7ae49e967c5d312e0 \
--hash=sha256:f8f0bd690e1a41294ac87905e8121c81a3761ec2583c768f13467428606c8c7a \
--hash=sha256:f96f0e30b5a95c7631b12bfe214cbc90ec8fe8cfa36920596c10514a65743519 \
--hash=sha256:f98e8215e172f567ce80eeaed9107fb4d32b6c44f26983d9b8334658136a205a \
--hash=sha256:f9fe868463ec7e1363733af77e38a5fda3e9b63940337048c945d69e0c80ff24 \
--hash=sha256:fdacf26402389bdd89857ad3c045a26fe8f3314f9a8b28226f82f88463a65b77 \
--hash=sha256:fe3170a69fe039b18ad18171e66faa9a75f6fe9d78f968fd9b54e09fbd714d81 \
--hash=sha256:fea4427d1ffdb3b523d7daa6712038428a4c16c450b9777bdd1221cfee0eab49
h2==4.4.1 \
--hash=sha256:0e25f1462b23c9cb82d9eb02e28bc706dac2a68cb457c6a0d74d63c8a2a5d0e6 \
--hash=sha256:4e866ffb1a869ae14dd9b5e6beb5c24a13da0495ad72b65925ded182521c1516
hpack==4.2.0 \
--hash=sha256:0895cfa3b5531fc65fe439c05eb65144f123bf7a394fcaa56aa423548d8e45c0 \
--hash=sha256:858ac0b02280fa582b5080d68db0899c62a80375e0e5413a74970c5e518b6986
hyperframe==6.1.0 \
--hash=sha256:b03380493a519fce58ea5af42e4a42317bf9bd425596f7a0835ffce80f1a42e5 \
--hash=sha256:f630908a00854a7adeabd6382b43923a4c4cd4b821fcb527e6ab9e15382a3b08
idna==3.20 \
--hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
iniconfig==2.3.1 \
--hash=sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960 \
--hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
maxminddb==3.3.0 \
--hash=sha256:02cc5c537c4114e28d016df20038782bb58ac8b2ff0c2b565c98b2d98b5f0fe5 \
--hash=sha256:07319eff57ffd7098e03134617ad5c7f914d142e480c8c94e03c1f6de5fac730 \
--hash=sha256:0bbe7c13bfbd2f31b07814af15aa3c00143f8ffb0d29395b9eea1be6455961e6 \
--hash=sha256:0ce3807a0152b15d3f21786df65b111a8125bbf6791116f8f7fc4bfa9400f1b3 \
--hash=sha256:0de3312ba04de27cadb94cb929a70e4e766e2c6ef2e03c7fe00d539aa37ac0f3 \
--hash=sha256:0e0ee21668fc19e363220f3ada0c711840d9a2113969196f72f839e693e04c71 \
--hash=sha256:0f5eb14e7aa94cd0a527d2204eec5300990dd625312ebc149fc3404dcaeeeb98 \
--hash=sha256:0faf21b6af26e16714c1a5a3bc25ed33fd54e36cc569a6d237fd933747c2bf88 \
--hash=sha256:1522beddd9469584592259adbeb7a8e9c245c711340e3d69ec119455122cc6d0 \
--hash=sha256:1ae6c42bb73a1d1fc49c444968226d7badc692da325bf7933fdd4914f3594f99 \
--hash=sha256:1d00629a61610b79049c58a038f2b153b753a3c49705feddddd5794e0fdb8ffe \
--hash=sha256:20f49792c0cbcc7ca471beb4fe2d672166f80214d995ca1904f7cdee9ec22a7f \
--hash=sha256:21f4f14eb7952be84ad8545c47b3dc6f74ec9c9376f558bfcc3010e8f39ab698 \
--hash=sha256:258dae2eaf1d41fd2cec24c35f4416db1fc5f229bf4e166e48b95ec63a56a14c \
--hash=sha256:27dcb821921058222f482a07e0197234acb20115f1d306ddc6a8366166119016 \
--hash=sha256:28dc9fdf062804d4f45f2a1db22a53bca4efb0a7819a91135e66f5a3128889f2 \
--hash=sha256:2c2ce11abe1e95024a89c94760363018117991c5beedabba31bdb8919233588b \
--hash=sha256:2c5b2e1d004bad06a5b69287b2f5e9dc62e627d53687add975fa2eb89e8935bc \
--hash=sha256:349efe73c27482bc2cf8102a54afbfb8d9edb354251f92f153f68ba37b337c90 \
--hash=sha256:365d4f1e278062669e67911c83a5e6cc0b6a7056eb809dab9510aaa2f3598039 \
--hash=sha256:3a04a057569c7a25f22bb09d2eb3642afdd68229f553d1fce45a5671ecb10933 \
--hash=sha256:3a9e909ea42c485f36827193a0c2e308b2507ec9f3dcc20a15007d9311da917a \
--hash=sha256:3e644605506108fc186b51cb4b8d0689a9b6e645e437d3a0d44aa9eaa703c929 \
--hash=sha256:3ff1a4df2f3bed1e59cc2e6d133b5958cc8ef0809099ea1832ef9254a512e704 \
--hash=sha256:40b3221611c5e7f4e2ea763f126750f0d07cd9008cf4dcbd2be556e2bcfef1df \
--hash=sha256:4116b442797b7abe627e0602a2bd18962f6334b6de9c8ac84975be1b1275cf57 \
--hash=sha256:41c76b7477242d750ba445cc546ba4f35b5e0c25697c5152394ada7a1e09201b \
--hash=sha256:467dbdc1057ef3654d67caf5786aefca06875601620d9b82b431863d95caf29b \
--hash=sha256:46bf4d61e7756c05eeaded62f1c4972937fd1f78565e2506a186819ba066b46c \
--hash=sha256:476f017ef7de4297c67e53e2f09797e467932192308e7076db5b1e92c875c3db \
--hash=sha256:49c265a28764299c80c42c571d61d04c636a2a2ba12cd9b03ef8ab7ba6da2405 \
--hash=sha256:4dcc5db21722eda1ef390da04ac07b404776f9883c04266ebfdeb0bda2d45173 \
--hash=sha256:509249b07366262792532ec08191eb342a50310001ce9a14ecb1750b82392f10 \
--hash=sha256:5a3a7921ab8c3d9ee885ece3111b91722fa5a376413de10caff61331108c6714 \
--hash=sha256:5c35330ff224d61c10a3d3b3d34eeb9b21cbb1639a8bfe7a7a8dc9eda745ca33 \
--hash=sha256:5cefe4162a1a61dc4a9e2b9dccfe24bc6e5e5f49f713f6d4fcb062bdba1bb326 \
--hash=sha256:5d07281b67c3db198073780657e452a7d75664bddc75b462246335569475b8d1 \
--hash=sha256:5ecacf5d13421d5222368874e98bec96b634aca4743f92384f0aead15fa16147 \
--hash=sha256:5efc65479e474059ae7f85aede693ad3a8e31c255437d39aa03528dc17d369cf \
--hash=sha256:5f82f74e1e15cd828a55ab392d0fd80d4fc6d51eb31b5262d3481b7027c18efc \
--hash=sha256:610fc2a2e62037e4b23b17391897b63be600fae99a92a7ae68169c73e7a4a4ae \
--hash=sha256:61acddb7247a405fe944368574d44e11bc0d1dcd6b61008abab75d0f5472e6bd \
--hash=sha256:6267226f6664c3f0260841295ef0c9af70a6ba05b70f2dc7475ac560aa3fbb90 \
--hash=sha256:64f2d3635d2cc9dc5271d84c4d05a4577b60e10abff5af52b2fd6b60959107b8 \
--hash=sha256:71aba1b8f867e62724beae2a23fa92cbf4276375067abfd225d0ac1f021ee500 \
--hash=sha256:7a9ad4ddddf7bc20798975a1171cbccf7c0f50cecb3e86be30659253d2d8bee7 \
--hash=sha256:7b81da613941cc7d9e82db57c1772f6bef5c100954cacc7d9876232aca59505e \
--hash=sha256:833121c30e701edf8ac2464b1c310607e51a3f54c0f26b2b9922344f363e596a \
--hash=sha256:8827cd2d85ef250460d9dd96a0e67c57ef8deaa14599caa3f06e290cc1838389 \
--hash=sha256:88d6c904009e5bec0e6a38ab5dfe421646a0d14f7084fa86a8b36142117418ce \
--hash=sha256:890bc8115b8750fa4af1cd548b1064e844f4804ec39527b11c794830bade51fd \
--hash=sha256:8ab285825e128d211f31d11a46517e44235bf5dca79cba9a2cb1f10bcf99ad27 \
--hash=sha256:8ab7572acf78e2ef8d630b667a0b85690278221cca76339803488fa6c1272786 \
--hash=sha256:8ac0f9fdd7e27f5b9815684616759bd6fb367bd37cd7f4217c5aa5c0541f0aed \
--hash=sha256:8cb0027692908d9c302ba8dd0dae0eb8a9955b7ccf72335b4651ef66778df284 \
--hash=sha256:8f12c30c765cd6181bcd91affc2f0138f5364daff567f4672a9ae7b77e631480 \
--hash=sha256:91c1cc2989d4e392a37c26de67505a79ba213c90eecc83740b7c81e2df3e60db \
--hash=sha256:9639ca7810411293c9c576ed9843d3e7a8666474a1371fd9982a6f62728e6c35 \
--hash=sha256:99620535d26c8da868bae2018affde754e59e5b43b8705902f0f4a6003356a13 \
--hash=sha256:9a1bebada95181fd1602ef554e9d5d36da00403691dc8520efb99751c52d9162 \
--hash=sha256:9a9c7ada72b6af6dc2920be812867ff17cb6168892f3cba87f052986d2125f2a \
--hash=sha256:9add6485ddb57071d919dcb8ee98617392d143ac39dad797d9786701d8397c7c \
--hash=sha256:9cc2c7c166f87080f1471f1c1b256fef57ff9f3db436d69f1659837b98793d98 \
--hash=sha256:a00220f8c1b5427eb541fed03329ed122b731de571f9379ce1c7b235ef43e75d \
--hash=sha256:a04d62ae564795a630e4e375b30ef2166933ba887862f825494b2ad40cfcf622 \
--hash=sha256:a2438674f20fa9a86961ef121d0e07baa27000e186356ebf29cebf1af3ea9db3 \
--hash=sha256:aae50ff65f1252476587c351af9b6509bef7931bafe2cb90bf76f14fc4a2c1af \
--hash=sha256:ac035833b9792e045eb425c887b95a2e31ef657edf7923c5e80989580c69c604 \
--hash=sha256:b0006b64890a98a88faf89cad185deb7b519c0bfbf405a8273ede74a521b64fb \
--hash=sha256:b4b808b90b6f7a360d7bd7a3c5093e072b8a7f5c8e58bad9747e7f072dec9434 \
--hash=sha256:b7ba63a56028e629205ecf09820a92247a43f2ec90177aebbc745a36d7504805 \
--hash=sha256:bb4bc63ec6599362f7d8dcef412b17d7231a828af4ae0961f570a99a13096f72 \
--hash=sha256:bda0e715d702b847ab2082be1ef298f2b4a6cdffb72435d9967b057e88e8d8ec \
--hash=sha256:bf0d031ae8536c3f255db2677712f32802a3075e19c5638fb39868e439fd8dfd \
--hash=sha256:c56dacc8b9a4c85c62e5363ba718f628c93ae542df9e2d4c806362ac823d99be \
--hash=sha256:c85a62953aece0e4ae5ae54bfef64bd6b5af5945febfb9d587cbca848b9e4bd9 \
--hash=sha256:c8d81122ae0c7433ff40b32ae15b033e092ab2d00a2dfdd14f1a281e5d34015c \
--hash=sha256:c928a8ec2bf02166fdb7ea2f7c34221a4cd7870efe9eb9880adb85c994e9d044 \
--hash=sha256:c9ac07bb579fe86b61eaf1afebacc814be9310735e57764b18ccdb4988ef18d8 \
--hash=sha256:c9caa99bc6c724d83b28ecb047ecf4025df3fca551dc55361277fa24fcb41294 \
--hash=sha256:caa27e2adfaf74e9543f7cab81c1ce7247ff6a916fa122aa5af9e2bf9ebfd074 \
--hash=sha256:d09e124045edeaa0d81f3682e58b7b7e4c661f7a4b5ca1fad51746ef3b88df60 \
--hash=sha256:d2c45dc64167e177241c875e43d6baef2c36add9e1494bbb695a802eb8958e1d \
--hash=sha256:d926424a2ab007733913698f85d229e3cc5063fc95fc425b9088ec565de35a84 \
--hash=sha256:db36ff8dad59bc58882ea3374f191557783203588cf9aa2f9c4542adce36eb63 \
--hash=sha256:de07a78680594a9b4c49bab13c7b3d280068ee4846a1580787ed3ca800e1604f \
--hash=sha256:df8121c8af59e9ec51810f54d47d3bf9b89ac20a8305a890d5b97133325d10c1 \
--hash=sha256:e0971046ef19aa64e77446e45d8a87a7aa4a7b867312253d0ae90f12dd53ab6c \
--hash=sha256:e1dc4c12292fc9629a95daa7c98ebf74cf59368e62b5eec79975a2598c91b5e5 \
--hash=sha256:e30ded32a953398b001a8856ddd2eae2ff79656cf25db62b26fdf8fc3e7597f5 \
--hash=sha256:e31dd47a404093a3b257285c70e230bcd76952ab11c1b326c21abe400a252a12 \
--hash=sha256:e4bf04ee9373307becc3e6cb70ae47b4c0dcf9e566d5f9bf59a97e569ef7d38e \
--hash=sha256:e621394915e565f671958e2453e5fb6cc7e34552c1e51a2768686d4b1501c2c3 \
--hash=sha256:e72ae1be344ee834ba6e9951b2a2b4866968f85443505078847b139549921884 \
--hash=sha256:ec86c26da32501ba0fa0ed47de784c61500614b1b2d9e2a78e6c621bdd17d2c1 \
--hash=sha256:ed94f267f0c5caaac4ab2430b11cad3af7b98a882498ea73101776ac881735eb \
--hash=sha256:eda4be57322b09230af7e3cbec89f8f3f90709835137902d5d741cfecda862fd \
--hash=sha256:edda68f4ea05a3ac537bc1505f916019d7a9eb47d88244904713aec5a2761421 \
--hash=sha256:f0fdc32d7b2e9890de5bf5c24d11f0740bbc7d137b97764a2e47374bbd581efb \
--hash=sha256:f198f726c515dac34a9a75fe663a475506f30b430631e10ea8f14dc15370154e \
--hash=sha256:f19a0a42d3c99a80edd14d0bd972cb83993989c714d54d41f5fe170031aca7b8 \
--hash=sha256:f21ff2e354e15b865af7cf393366c2c5b1169eacd5d5b1ca3660ac10a04706f1 \
--hash=sha256:f22a60827975d1ef37cfadf87cafda030e669c1b298deaee823e1f45cef7f886 \
--hash=sha256:f5a7a57ad94f2ac03cdd8f345c1d17f33a97f12fe75ff04c3a0d050fce91cad0 \
--hash=sha256:fc6bb1b23a4614377d6ca090e01da624d5141193abcc58be27b9bbe67ae86d02 \
--hash=sha256:fcaf3aa27b2872da169818c5f44bd55161ef509f83216cb9669499a0aa0f41cb \
--hash=sha256:fd7a6faa680a285f2747d22185401f09dbde094e40267201e743c91a8c6e2813 \
--hash=sha256:fff5ae9e651fb2098b8634e6a1bbec07077279d2fd0f20a1da529b9353515336
packaging==26.4 \
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
platformdirs==4.14.8 \
--hash=sha256:1e34af590de4d978631b751eb2202f2fee4497537a17c1720b12fcf57b331392 \
--hash=sha256:96893d686e84e9e6f358a9ea41a8de544df66dbf2ba6cda250e7dc73acf85b9b
playwright==1.61.0 \
--hash=sha256:009588c2a7e499bc5a8b425b61fa65490968bbda9cd69e0cf2cff10f8304659a \
--hash=sha256:35c6cc4589a5d00964a59d7b3e59641e0aac0c02f15479a7af77d20f6bc79597 \
--hash=sha256:372d55a6f1248fa1dd47599686980cb8fb5bbe6fcda59eab793eb657c11d8a9b \
--hash=sha256:54f3b39f6eab832e33458c1dd7da0b5682aedab3b09ae731b5c59fa12fd2024e \
--hash=sha256:93454322ade8c11d5d6c211bfd91bdfb9ffb4810e3e026371bcbc4bec1b7ee4c \
--hash=sha256:9f7de4536088d12037c13a52b7ea34b59270b78926bb56935070597ffac6b1af \
--hash=sha256:e9fcbffcf557a8620fdedd92491eb59a32d18e23d6f3b4f6214b952be324fe51 \
--hash=sha256:ff138c3a604f69911e9d42fd036e55c2a171e5616edf04c1e7f60a2a285540b0
pluggy==1.7.0 \
--hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
--hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
psutil==7.2.2 \
--hash=sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372 \
--hash=sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9 \
--hash=sha256:11fe5a4f613759764e79c65cf11ebdf26e33d6dd34336f8a337aa2996d71c841 \
--hash=sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63 \
--hash=sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979 \
--hash=sha256:1fa4ecf83bcdf6e6c8f4449aff98eefb5d0604bf88cb883d7da3d8d2d909546a \
--hash=sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b \
--hash=sha256:7b6d09433a10592ce39b13d7be5a54fbac1d1228ed29abc880fb23df7cb694c9 \
--hash=sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee \
--hash=sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312 \
--hash=sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b \
--hash=sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9 \
--hash=sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e \
--hash=sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc \
--hash=sha256:c7663d4e37f13e884d13994247449e9f8f574bc4655d509c3b95e9ec9e2b9dc1 \
--hash=sha256:e452c464a02e7dc7822a05d25db4cde564444a67e58539a00f929c51eddda0cf \
--hash=sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea \
--hash=sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988 \
--hash=sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486 \
--hash=sha256:eed63d3b4d62449571547b60578c5b2c4bcccc5387148db46e0c2313dad0ee00 \
--hash=sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8
pyasn1==0.6.5 \
--hash=sha256:4017b0fce125096b8573b39c989fdb1a4b19cf761e683398184550fea0e66587 \
--hash=sha256:6b11616a6bcf3a40e635f082bb232fa57b5e0dd7f517bd7ddd69ec3794508a47
pyasn1-modules==0.4.2 \
--hash=sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a \
--hash=sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6
pycparser==3.12 ; implementation_name != 'PyPy' and platform_python_implementation != 'PyPy' \
--hash=sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e \
--hash=sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6
pyee==13.0.1 \
--hash=sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8 \
--hash=sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228
pygments==2.21.0 \
--hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
--hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
pylsqpack==1.1.3 \
--hash=sha256:11242dfb87124853c1af0931dc766c34f99e000ceca9cf1912883297b19509c5 \
--hash=sha256:20e870f903bfad70c3b65536049091d5d325367bcde6855dd6d2b7b419c45ae6 \
--hash=sha256:4cac49c32d9f455bea012223b8e2bc64e79d4b94eb8a8a7f60a239947b09df97 \
--hash=sha256:6ba422e788309d0564f80cde1704d8857ae288951b7707f9fee7ab660ae56109 \
--hash=sha256:8fdb02cb2d4c7e5b31ad6959398ccc2d6963f449f5776bf754a3425fbbb830f2 \
--hash=sha256:b220afff798cf59baf15489a4f1bd8d5f167d0f3224695380b767e8dffe8316b \
--hash=sha256:b733be9fc7ea9ac37945a3333a11c79838d8d9886fb9f6169376fc258333530b \
--hash=sha256:bc3967c423fbba759b4353d0b467753b8f510c6f769bf3f68317ac4b8dfef9db \
--hash=sha256:c1f1c495c161415a371535e524ab1a68753fe15c6534aaf87a3a50bfd804e85c \
--hash=sha256:cd4de1c914be239e99b6251f0c03ceeca5fe4d19dc67b727e921dcf3d3587d4d \
--hash=sha256:f25a63d645a3e3ad59c5d453048f91b2d9b0f3655b146d1491c18c783d584a56 \
--hash=sha256:ff53d63bf96a90973fbfceb7381c11bf1656bd9704f703259f9ba38f71c6040d
pyopenssl==25.1.0 \
--hash=sha256:2b11f239acc47ac2e5aca04fd7fa829800aeee22a2eb30d744572a157bd8a1ab \
--hash=sha256:8d031884482e0c67ee92bf9a4d8cceb08d92aba7136432ffb0703c5280fc205b
pyproject-hooks==1.3.3 \
--hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b \
--hash=sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43
pysocks==1.7.1 \
--hash=sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299 \
--hash=sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5 \
--hash=sha256:3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0
pytest==9.2.0 \
--hash=sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 \
--hash=sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b
pytest-timeout==2.4.0 \
--hash=sha256:7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a \
--hash=sha256:c42667e5cdadb151aeb5b26d114aff6bdf5a907f176a007a30b940d3d865b5c2
pytest-xdist==3.8.0 \
--hash=sha256:202ca578cfeb7370784a8c33d6d05bc6e13b4f25b5053c30a152269fd10f0b88 \
--hash=sha256:7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
ruff==0.17.6 \
--hash=sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac \
--hash=sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b \
--hash=sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d \
--hash=sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0 \
--hash=sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c \
--hash=sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582 \
--hash=sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30 \
--hash=sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b \
--hash=sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d \
--hash=sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c \
--hash=sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5 \
--hash=sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4 \
--hash=sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173 \
--hash=sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128 \
--hash=sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb \
--hash=sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0 \
--hash=sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45 \
--hash=sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf
service-identity==24.2.0 \
--hash=sha256:6b047fbd8a84fd0bb0d55ebce4031e400562b9196e1e0d3e0fe2b8a59f6d4a85 \
--hash=sha256:b8683ba13f0d39c6cd5d625d2c5f65421d6d707b013b375c355751557cbe8e09
typing-extensions==4.16.0 \
--hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \
--hash=sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5
tzdata==2026.6 \
--hash=sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec \
--hash=sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d
urllib3==2.8.0 \
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 \
--hash=sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63
uv==0.13.10 \
--hash=sha256:19a76fd50a6a2bba38ee088d8336566856569be08196865f98132a08806581fc \
--hash=sha256:2a9ff188b442419c7aadebc445fcc1f287b25f99af50fa6d563b90cc0047b7cf \
--hash=sha256:30e75714a9cff3aa56281c7bf533a4e93cb5bdfcc0325d3aae54b9106460bd63 \
--hash=sha256:3bf1c1b13cac2533a342ca16b1c5f41347cd399404c9477a04ff79c5f7cb4dea \
--hash=sha256:50bee2a59ea9422b493aabc0cde9288f58fbcf6e8d688c30c4ecd8309459cac1 \
--hash=sha256:5bcf77c50760146ff7b41022ab7aeb1954d42dd47b89fad36b43a1a8a43da994 \
--hash=sha256:771a749b34477501092c9fe6d5e52f45cef944d875b0f2e2c989047a2ee647ab \
--hash=sha256:7cc9c41b43d583e34c781fd3446405b06e9c5fa2db468ce2a534d353db6429e5 \
--hash=sha256:7fa025c4b0f33b9a5357252e1be058d94157e13bfb8ae45d7e27cfce3759c65d \
--hash=sha256:8b0a15613aae9a3e1c134bb5ee706583af0addced7eb1add992f8b1b3e3a92a0 \
--hash=sha256:a52ee170c00d4de1d42026c4dbb00c5d7f327edcf2b2bddeecd0cfb169868ac7 \
--hash=sha256:a9636b4430a9b8a37ecc4d85111d1fd2560ef616edf5301b84f474073bf89e2f \
--hash=sha256:bf7174b00c88879d4a1019b51256bbdb2dd61c55c7dc896031e16d090e380ce6 \
--hash=sha256:c85a2ecb62d09d61904f5405b525fcc51f971d081f8508a881fa2f9bae7543a7 \
--hash=sha256:d87b9cf8165f2b3cc596e856b5bf794da9cfad6d1b110ca9d87eed42a15b3684 \
--hash=sha256:e52a1af7f97b717572f9e2bd69e54eb253b2c88a705500e35811c21106c439d4 \
--hash=sha256:e89dd26ea831dde70639ba0a798fa04a4c7c0226fd2b241da86218bfa370e495 \
--hash=sha256:ee3bca6523ed93c3ae0d1a90c2733be307f5f7cc5287c746214e93a3bae0da13 \
--hash=sha256:ee403b6bbcfda1bc7db269be5c40c1624df27b3b838d3f8a416648e00e2de5d4
websockets==17.4 \
--hash=sha256:00ad98e4bb0df7a6711c645eec16d5a9fdf99f0692bd4f5b6cb85a68677ba8df \
--hash=sha256:0132e3cbd3f5cfc1ec77588961b302d72a02e2603b82c2c23fd5fb59dc4fa206 \
--hash=sha256:023dc13bdc42a55e152acc81c39c90ec6cc4159ed17d23c6d73460fa2a73ab16 \
--hash=sha256:02f380df26de14999ecace203fe1396ac14d1c6132afc7924eb6f8c8b646c69d \
--hash=sha256:03ddf4eb76ced8725dcbb000ff60b0fb8d7330ed011f6dc725a1925c5fe02051 \
--hash=sha256:043945a43873c7c11a3f75238d475c95f902e967de329eb8763704546cfaa6b6 \
--hash=sha256:046ed16d3d83d64594e4a40655fef061ccf36059d8c30a01feca8a9481fe13b8 \
--hash=sha256:06ea46717553cdd10f2682126cf7a66e91c8ed17b6969f4a95e94b4e01d06188 \
--hash=sha256:09d3939b70df0c8ad2da145ebd50978bccaee1d565e838b0e7921a34d38571eb \
--hash=sha256:0a57b99f2e28922b5a2434317580fd23fdf118caff4c5b752f5452836426205a \
--hash=sha256:0c22a9c6b2349204f56123dd0ca7779e989d68e336d0dc02ad823485d44925de \
--hash=sha256:0dcce83837328e6795225ead920d3aa8d867cc9d6922aa558b0e9111599fdbb9 \
--hash=sha256:0e51546a3bedadd80dfa5c2efaed840ac51b8632d8db7f9f502175f5349382a9 \
--hash=sha256:156221ad7638b5abccefd6f798916bf3f8ffd6ac51480eb4ba5b05df914ccbf3 \
--hash=sha256:16550e24ac22c27e0a728100d8de196b5f054bab6748ef9f0b168fb8b3c32e35 \
--hash=sha256:18d3710becc612ec6f0229425bd6495133dfcbf30f7b6569585acc8ed2f1b452 \
--hash=sha256:1962f3bfde085af18878f1bb1aafb300c9a6ac33da886d0b0d97e33c9ce7a222 \
--hash=sha256:203e42eb77e06f85778a908b34c5ad032f34e98a68ef33920d6685c1e65a9420 \
--hash=sha256:2103982762460a764a7ef0021443bb471f46d45ecc6858276e4fe699ebac6b94 \
--hash=sha256:25eb661d8ba7e2b85ebb4e7a1bb9f6a3280910ed10b84330a7abfb5ed32d2764 \
--hash=sha256:29b615c2d5dd883f89c107a782681b73a7aa8b2bd894130310e45eb09b143913 \
--hash=sha256:2a9cb5bbfc33b4ebd3c8d3714d6e09805437f60a14977774e4bd11b5ace46c23 \
--hash=sha256:2b23dacf7a8a88afe92f77bcdbf4cf043a84692bac2f2da02f4011c687e19b48 \
--hash=sha256:2fd562372d4afaf18d1c7f1c68e39bd32818bb16d5f57f778a4a4ed88eedcaae \
--hash=sha256:32110d954d9d0e51f36edb0396673bf4d35193a0a80ba7013bf7f7d58a33ca07 \
--hash=sha256:332b88022d0acd47c44158bcd43f47f14eaddcd979247f242b1a33291c45cdd1 \
--hash=sha256:361f9a21a33191d5287e7a75f508fc3b9bf47aaffb0241198d6b7be3384f294e \
--hash=sha256:37ed7782972545e67d97ef9a172e9499d25459b1e32cb99d1c2a30c572f2441b \
--hash=sha256:3acc45494c08a4d27375a2c28474537f68910219f42624a08011221b04623d04 \
--hash=sha256:3b76837cd051d8875913f3934b27205f7a592f78b8a4f4a1f3abc36a2420c5bc \
--hash=sha256:3b78b39377630a70aa2198e5f03be416e690364a046b1d8af80a9263733083d0 \
--hash=sha256:3d27153a0413696767b98b5d96173a2a7e27cbfca02000a6069cea7b977765a7 \
--hash=sha256:3d512e3a6c528c42ce220ed9c3caff83c6fdcd98a1b98249f08ccfc66ad111b1 \
--hash=sha256:4073ab7cefe5a2e7dc368c1f01eb27716dc8ea8f1c69e9b7725ebce05aa53cf7 \
--hash=sha256:42d7a6e818214336cf7af9a3aae5c6923f94f09fa07ac5aab98268ba2a98a6d5 \
--hash=sha256:4441d655a53185ef1b01b1d42ad9b3a96b905110a9219043e3fdaec855ba3b6e \
--hash=sha256:47beedf07a706140b50786457e082497ee6b5970c41e49bcd1572ee3f4c73f80 \
--hash=sha256:48c83103f82fce36191a9e3a8a80731d4340e2da544eae8c5aaaf6a45280e7d0 \
--hash=sha256:4b79ea31cf277c72d2307c6cb8bd32a2c151959e80a2f24fa85df620c5f2860c \
--hash=sha256:4c792e6cce24d08f92199d907785c9e64f74c357deeed3dbaf7d699ed5930b64 \
--hash=sha256:4d2636a5b61c69e32db0e74b57073dd4a66f1ad195e9398c5f01bba41090deea \
--hash=sha256:4fb2db1f649b6464711846b5bb9c1611bd906ce939d9460cbd1fa419552cd6c3 \
--hash=sha256:506623128d7a55b726a5a46e4c9a8eae4c9dd0f04ff60b041fe7df85b9d034fe \
--hash=sha256:51adfc30f467077293a6695d8149bcef501c0728386f3a491054f835dadb60b2 \
--hash=sha256:52c31d123f5adf14dec694c2a4036bf42c523df7cefc641d31cd05653de56e49 \
--hash=sha256:5830f94a7190a33e55d06d89242ea951ee2009c3a27fc31538f3ac9386b27edd \
--hash=sha256:5cec3e7fbc911ff4fcf43b24aaf1b96906381ad36030f42897def3ff4b78729e \
--hash=sha256:5da7f7f1ecf866186f195f7ecc374c915e1838496b86f2f3b41da27c798a25c3 \
--hash=sha256:5ec906bb21b35e66cfdcc2ea0133f249f52b7d89e3e45ec8d2bd2d84a0255d7d \
--hash=sha256:5f772007dfba8941873dbd276b6a6845428cc740888b5c6c37bf483b1ea34b42 \
--hash=sha256:648adde345cfd13335342e23cfe94871c7f7f55a43fb254f3b95acb071072968 \
--hash=sha256:6531540aa63e6864cb0615a3a5da70ae03191334507852a5385320bb7916df3f \
--hash=sha256:6597a1f7413189b4bc58437babcdf39b79da416e5c477ae98323a88ecc108188 \
--hash=sha256:6686d29eaafddeeab9e48af92103dc0d26161035faa4be083b8b488f1ab47219 \
--hash=sha256:679eef0123861ca381dd8fd9bdc1920e87636ac55eae6cff875c53dcb05fbcf8 \
--hash=sha256:6afc32a7a1a40b071070419537df3559d26907086556769683fa97b7b6e90fd5 \
--hash=sha256:6b061ea7ca94966af7cd7a87cb189ff15972c103244611a2b1e8408c04f1dbe6 \
--hash=sha256:6cf4c002268da5c11cae9083aec71ac943bce9d95e0f83c8bf9a95a3ce421fbb \
--hash=sha256:6e6558efbb256b532c9f06a21ba42bcac729718e365c505819f181f25e5c0eca \
--hash=sha256:6fd8cac4907fec8302726d49e6969acfffaf720bc39b1cee23f473b81f4dce01 \
--hash=sha256:70293c25d79d1f084fdd665894481547575e429d2a75e8d72caec2f6b6b07af8 \
--hash=sha256:71f76bb8e59be847330b8a8d3753f85397677e128f9f9692c215f8cf721cefc7 \
--hash=sha256:725be1aff55f1c873a79cea0f612df9dff21a9d2c2e05783665b824b8aa7c24e \
--hash=sha256:72d0a731eccf482d5661c6711abfcd5921f3dbfbbb0789061e1918ef4bc89c70 \
--hash=sha256:7390e060f830b3d132f484b21ac2783a2d227b682ef62bb8146e1c1b4ca0e45a \
--hash=sha256:73b00645316121105274fd266ed54a20e6514650126d399cdea39876ab1e7b04 \
--hash=sha256:74e46409666c358b93fce0d8c6f4cb107d8dd7cba1302a38d49adf6fa8193c7e \
--hash=sha256:75b32cf33ea40f945f226f97bc1d43151e1a5adff21f420b5e63c468b1a28114 \
--hash=sha256:769e4f7b090e10cae4c082e3e39b9458ec2444505df84953c16c0468b16539c4 \
--hash=sha256:7849a096d6fdba3f2bdf849eb89f2d233a24400c92faa3efb25fa8dc615b706c \
--hash=sha256:799c5a23126c9589cb10b6c6b54f9087246940dad20cd74bf3f06fc9ae3bbab5 \
--hash=sha256:7a7e9321822ca59ba56fa8744c3e3f01ef74d547aafe0d383d000d7a4d11eb79 \
--hash=sha256:7b23db4b469d9e051ac74d96db9bf61e27c9054de64f8263fefa32bf72867ba1 \
--hash=sha256:7b4ee34acefa9ba1333f02b817982f1e4127f6f9b975017a707c4e738d7f9fb9 \
--hash=sha256:829bcaa90be8737c132d9515d6a466e8528e3b3d050d3f3466f36ea94d3beb48 \
--hash=sha256:8588edf317fbe4f16a949bc5a6ccdd22b6e6fd5b4745d128bc40bccf31024ce5 \
--hash=sha256:868744c68e9342768888c7326604da2228c19bb6946aa46b5f9e1ac32ea8d40b \
--hash=sha256:88ba8a439b2bad97bb69c38db5bf0ec16a061ee834cf0f244089186ee803e899 \
--hash=sha256:8b45d40f07081b377f0b837ddbfba4a9ab4a89a7b569d3c095436564e767a27b \
--hash=sha256:8c00c5c49f80a588a2c4f99d519d2abed4ce26cdca11273041bc8b7e60af60de \
--hash=sha256:8c51ac7b31578a7275650f580aac985940985b6d2e57247ac6d5e07f2c936cd6 \
--hash=sha256:8d148b4b295224d3a19e7bd9f02ebe7344de254b3b2c4d0628ce42ade0bca119 \
--hash=sha256:8f32a6cb0b101170abc2d8053af1473a2a29ef2a06d7130994ee8455a50f5dbf \
--hash=sha256:8fd30d217a4275107667fe1d4f601e2d50c797d0727148cfbb384536d65f04d3 \
--hash=sha256:927d602fb8fb595a69e6b1ae998a6ec19851d0fb9391759456e6425090996647 \
--hash=sha256:94622cf24e80d03054ceb69a06a86c950e12fe993ed06b933f7895232cacbc3e \
--hash=sha256:954d43574f72be244b65f0fa61e2f814214b024f2ec849f487aa2f553f7c6e71 \
--hash=sha256:98f16db5e79f2605194c0f899d0532005bb12269e698bf96f62a5635bcf33010 \
--hash=sha256:9a4e95d56994a45ac76541853796720436ffe462957d0b1b89e87ff3d3b1627e \
--hash=sha256:9ae1429ee9e52b139167ed0169757806a27ed7307e942e8c62037a9184e9843b \
--hash=sha256:9e282f35ece8895b9fa5af406fc6a4cb42f01e1009525cf46641de584781c83b \
--hash=sha256:9ff89e36451a19775e7556d95ebfa4a0b24b84cc87565d6b5d0ec8ea82bf3f2c \
--hash=sha256:a0457561e8a87a6a3b509e21c35084d7d207ced262139de3f738e9676a476bbd \
--hash=sha256:a50bd9b44dd9b7b845802030b4d88610c01c7f95571b4cbd3a1aeec17a34c9fd \
--hash=sha256:a703f23ca15a51251fc94f1774683f5aa511588a7ad6bbb83960cdb2a4dcd978 \
--hash=sha256:a920e99155d75d1b1c08172da8aaa7200e7b30871fb628d1631d7891a333e30e \
--hash=sha256:a9b0026538719f7a532998d84640ab2e91ca1a051ce4b8d924fdcb607307e921 \
--hash=sha256:ab9e4bd60796866c578e3afa0a17c98636887827a39c2e238a61989c18fd8e7b \
--hash=sha256:accb5e9492b9bc9c9aeec5b72ea8f2ddcbefc6143d1c626fba960ecbdc89807e \
--hash=sha256:ad2e9e152bec6c4f7e4cdb4adcea6b708400090eec04bfe5ee5b30d368ffd721 \
--hash=sha256:adc30e5d064c9e33049e825408fa4e952f4e8a0cf4c329dc2ded72e1bb5bae08 \
--hash=sha256:b529ad6c81ad21db2f4e3d6e33db78ce3b9f272066b438b5d673361f9282898d \
--hash=sha256:b6c7f91520c29420639925fd1cecceac9ca07366b50c09ea24eac1cd116b4866 \
--hash=sha256:b7ea61af293a153f2d67430038cf0efc10140caa623f2bdf5a9f5a457ff20f57 \
--hash=sha256:b8451f31ae24620cc9372acd2728d87922f2bb0cae3fa57aed68b152844cdf08 \
--hash=sha256:bbb6bed49f083e2ec8ae0bb21c00c7c5171ab8e08a8b008c61a43fc6c944fdac \
--hash=sha256:bc581579885728bb54ef15000295c20e6a64a200b1b73d5cfca71879a3eb3e1f \
--hash=sha256:bcad49104711f88b2b7c3ba166de172857d837248205e541b044a552558fecc3 \
--hash=sha256:bfc86dff091104eec770c29ea1831dbe191968a70aa2d8ae8eda3240d863970a \
--hash=sha256:c00f0c45851a2c61efffd03dde8fb4d594026b5cc18196c94e15460f1225f2ed \
--hash=sha256:c0cc2cb47face4dae64bd70a9268dbebddb3e48c1b48cf6d7b6ac1471609fd88 \
--hash=sha256:c2db7b9e2d726f7e051bedb67abcf460b84b11437b2f9fdacda7e6931dace85b \
--hash=sha256:c44776f82b04e623eb9e1b81fcd17ac6e9808ae1ba5cdf8edce1f7c869a95a9b \
--hash=sha256:c564d1e6531611bf87078c28780456ecc75459dcca189629fff2fe7c020d8e67 \
--hash=sha256:c568e72f5425a74616daeb824afe28da460cbeea036432f41c6af5380b83300d \
--hash=sha256:c5e970d3996c597186c9dbb6e77a8048737a834ac03cb13186a54999e0e1c31e \
--hash=sha256:c634053459278cf31fb404ddb5ecd38124e4609e8b609166da621edc2d5796db \
--hash=sha256:c63c0d7832956d5f3bb77888b93c854569d13f806289ff75c43926d25c6e5fd2 \
--hash=sha256:c6bd2c9781915592b209160d0f017d4c7c82ad53075e6b0c24d2a89299e7f9e9 \
--hash=sha256:c74954409ea5789f7a60daa5f94580c00ad0b60b20751c47b35c4784877b5057 \
--hash=sha256:c7a56140fcbf4662cb263754a754c651a16fe2196cae1fd232d18f89acd30c83 \
--hash=sha256:c7b996c02de5e032cb63dc65482b73693b7ecaa586654126be2749ddea239c40 \
--hash=sha256:c7f66a53e9b7ec831abb15e3d9b6cee8f52d6a24cd0a374786bf46c3ec218bc6 \
--hash=sha256:c8052c3058c402d53602583da5ddcf1a15a63ab1efe0222f47c7be59944e6463 \
--hash=sha256:c9f8fdb7bbefc4907c2bb3593f810f2b67a2d5329e1d38724a1aa3d763cf63eb \
--hash=sha256:cbdf4b42f4514422051889424fd03bc269be8c5d751bf39ec29ad761590bd10d \
--hash=sha256:cc0cd4065a65ac98f3e2742ee9f314da9d224db49b07dc17d3a20cef0d79658d \
--hash=sha256:cebad8f4796248b91fc2168515e507e5cb6b663a32befd09f3b1e7920acdcb1a \
--hash=sha256:cf99debb17227a50620aee16647bb33a0387f5fa5418d628666c0f05745e0d2a \
--hash=sha256:cfbbba4597f19ad717f79fd3f2a67ae7efae647bd6a61e14554e1b5ad242a5bf \
--hash=sha256:d0acd8191c0e5a61d1c27bfa33b6ec8431982299f5d71c02129aa4f16f182ad0 \
--hash=sha256:d0b6a9bd86f865ebc9d847a1eb0a655a0e2b447cbcde743dda97c4298415cc0b \
--hash=sha256:d0f943b53bb1d7389d72a5380078670e5fcc34a1328142148b72d20fd82031c7 \
--hash=sha256:d48795c7d64ca1c42e3d61fcc6478cb15a19b6ad3f9c882bc8d8dee49d4a420f \
--hash=sha256:d8255971f6789cf0cb365e3e22b9b166eba978548a26241eaa5b7af0440d885a \
--hash=sha256:ddab54dc0ec46ed09ef9ac131252cb5740ed21fbe6fc145f3c6fed0b575a8f15 \
--hash=sha256:dde9cd67f18803949ebf96de8aba12b8ec5ee3115e34c75a2db85a3b0a6c20d5 \
--hash=sha256:de29795f23833cdfb68ba45c8a5cc0ec49778ea5deb670188f4465bba5930d25 \
--hash=sha256:e0feb03a338f8f5e819ae23a73aabb7b46fd3b73f15f7df782dd12d99e2b02ad \
--hash=sha256:e30550965c78223439815dbdf40c93eb8931dfbf12427110dcfcaeebef76feb6 \
--hash=sha256:e3e80cad85ba68c07c1e8d4ccc9cf51e63bf6a73d6bf631640be947bd72b6b63 \
--hash=sha256:e4beaef2f4796558e738e15ca0b8802e35f419a9fa374a978e41706f43c48b26 \
--hash=sha256:e6d2a185ec4ff0478089305abd833da3a9fda8803eb77325b89ebeae5585a3b7 \
--hash=sha256:ed7fe197b8bb66eef4f62c052e33752d456d2fdda74805469d4bd954950ab339 \
--hash=sha256:ee48728a07566c32e097d267f4d4d01b85123c9ae748a42da02185b908cbedc4 \
--hash=sha256:ee6c4e0085bff5f6621bf9c53452584dcb91ebd993ce841e1f4061ac12b6b556 \
--hash=sha256:ef03fb4b3685df0ed9dc6a074a090f030345cad2c23c61818da3e08e693a9caa \
--hash=sha256:f01a680d4b66fd15cc7513fae55c673cc8cc340d41340305b7f9a782abdbefed \
--hash=sha256:f0494d3d97502e270282cc6a1f8648cd7335b4fe8d5c452006e5b7f9d62b8892 \
--hash=sha256:f24bed98595b9d854da8d6debaf82754abf3e8fe63ec90505ef560566814df7e \
--hash=sha256:f42671900e0b602d05a074c52fd3d757c2f8e5c4f73f771794dae1aa4aea5f0e \
--hash=sha256:f5b1d315a615cec81a79e2ce3a94221dc5c23e7fd4012897085d3b5e5a5638d0 \
--hash=sha256:f5f06f59e19aa0770aaf651ce91c196fa620b35aed49a7e6c36e7335f3f83db7 \
--hash=sha256:fcac44d917672ad6257ad64b80b5168306f168a78cab5c0612e4c699caed18cf
+34
View File
@@ -0,0 +1,34 @@
{
"playwright": "1.61.0",
"platforms": {
"ubuntu24.04-x64": [
{
"path": "builds/firefox/1532/firefox-ubuntu-24.04.zip",
"sha256": "8f3c97b95caf84cec1e83acdbee5079156cce338fc21bf2f4bc6afe3eec616c0",
"size": 110001368
},
{
"path": "builds/ffmpeg/1011/ffmpeg-linux.zip",
"sha256": "ebc74fc5b94830176a3c2914ae96bd8bc7f6a91f4f33890230f84a172ee61ccc",
"size": 2376500
}
],
"win64": [
{
"path": "builds/firefox/1532/firefox-win64.zip",
"sha256": "c02daa45e8af1164cba27301f076a877d9419f0d40b51b9fab4fe415daf6f77f",
"size": 122449192
},
{
"path": "builds/ffmpeg/1011/ffmpeg-win64.zip",
"sha256": "8d08827c019ad36e7b9d49d3648447d884534cb2acf200e71c715f6dd834cc50",
"size": 1411741
},
{
"path": "builds/winldd/1007/winldd-win64.zip",
"sha256": "0069f0d11d4ad6df068a068c003d22fe7dbec192a47bba64b2e115e9c8ce41d8",
"size": 128684
}
]
}
}
+9
View File
@@ -0,0 +1,9 @@
# The PUBLISHED SET, the control side of the A/B oracles (scripts/ci_published_set.py): the last published invisible-playwright and the invisible-core it pins (its seal pins the engine). Written by `python scripts/ci_published_set.py resolve --write`; .github/workflows/published-set.yml keeps it equal to the index.
# wrapper-requires: greenlet<4.0.0,>=3.1.1 | psutil>=5.9 | pyee<14,>=13
# core-requires: maxminddb>=2.2 | platformdirs>=4 | psutil>=5.9 | requests[socks]>=2.31 | tzdata>=2024.1
invisible-core==70.83.0 \
--hash=sha256:1dff040e41f5aba5aa07e086328ca436291fddbd31514d1bc9a9dbfc4ba7fb6a \
--hash=sha256:f7144262686adf54a4a1c85a8d17f76b31dc4ddcfbd6636d777c5c39963d3293
invisible-playwright==0.60.0 \
--hash=sha256:00509578944ff0d742761d4d5f19fcde21b7657197fa24ab0718e076ebdf9aa6 \
--hash=sha256:7285f5756ad2031087d12f339c2e89b76bdb953449c9151c0edc11a58d96d9c6
+26 -22
View File
@@ -1,32 +1,36 @@
[
{"id": "wrapper.e2e.udp", "giro": "G2", "os": ["linux", "windows"], "min_tests": 44, "exact": true, "tests": ["tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_declared_host_network_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all"], "marker": "e2e", "needs_root": false, "note": "Needs the candidate binary (STEALTHFOX_E2E_BINARY) and the engine that carries the UDP line. 57 = 1+7+6+1+21 from the five files + 21 from the 10 UDP-line tests of test_webrtc_realness.py (parametrized). The chain by name is here in its variant with the lab's exit on loopback (127.0.0.2) and the pref `media.peerconnection.ice.loopback`, on Linux and Windows: the exit of the lab is loopback, and a loopback mapped address is thrown away by nICEr unless the ICE context allows it. The variant without the pref (an exit that is not loopback) is the suite wrapper.e2e.udp.exit, Linux only; the address added to the interface of the Windows runner is work of the release after firefox-63. The preload_newtab test (2) is here: seen green on Linux as root (Docker) and on Windows 10 runs of 10 (windows-2022, round 5 engine); it reads the engine's own process log."},
{"id": "wrapper.e2e.udp.exit", "giro": "G2", "os": ["linux"], "min_tests": 7, "exact": true, "tests": ["tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_before_the_tick", "tests/test_a_proxy_that_cannot_carry_udp_leaks_nothing_direct_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux only, and not collected on Windows: the exit of the lab is a documentation address (198.51.100.9) added to lo with `ip addr add`, which needs root and iproute2; a mapped address in 127/8 would be thrown away by nICEr as bogus (stun_client_ctx.cpp nr_stun_transport_addr_check) and the pref that allows it is off in a product. The page reads a srflx equal to the gateway exit and the relay of the TURN server, the TURN name resolved by the DoH through the proxy, in the tick of 2 s. On the Windows runner of GitHub (administrator, the network of the runner) it could run too: not yet. A skipped test would turn the verdict red, hence a suite of its own. Its twin with the lab's exit on loopback and the pref stays in wrapper.e2e.udp on both systems, so that Windows keeps the walk of the chain by name.", "linux_only": "The lab's exit is a documentation address the host must hold besides its loopback (nICEr throws away a mapped address in 127/8). Linux holds it on lo as root; Windows takes no extra address on its loopback pseudo-interface, and adding it to the runner's adapter took the runner off the network (runs 43314251547 and 43334169682 died in the test step). A Windows twin waits for a way that leaves the runner's network alone."},
{"id": "wrapper.e2e.udp.sandbox", "giro": "G2", "os": ["linux"], "min_tests": 13, "exact": true, "tests": ["tests/test_the_socket_process_is_sandboxed_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_a_gateway_without_udp_resolves_the_ice_name_then_ends_in_701"], "marker": "e2e", "needs_root": false, "note": "The browser WITH its sandbox, run by a normal user, as on any Linux that allows user namespaces. On the Ubuntu 24.04 runner AppArmor refuses them to a user, so every other non-root suite runs a browser WITHOUT the sandbox of its socket and content processes; the gate turns the restriction off for this leg (sysctl kernel.apparmor_restrict_unprivileged_userns=0) and the first test fails unless the socket and a tab process have a seccomp filter (Seccomp: 2). The three situations of the UDP line: A (a proxy that carries UDP: the srflx born through the relay), B (no proxy: the gather is real), C (a proxy with no UDP: the ICE server name goes by DoH through the proxy and the gather ends in 701). No root and no resolver trap needed.", "linux_only": "It reads the seccomp filter of the socket and tab processes in /proc. The Windows twin reads the sandbox token of the same processes (integrity level, restrictions) and needs a measurement of the retail Firefox's tokens first; until then Linux only."},
{"id": "wrapper.e2e.web", "giro": "G2", "os": ["linux", "windows"], "min_tests": 27, "exact": true, "tests": ["tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_http3_through_the_proxy_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The networkidle e2e with routes and the HTTP/3 e2e, split from wrapper.e2e.udp (about 260 s of 500 on Linux; the whole suite did not fit the 15 minutes of Windows)."},
{"id": "wrapper.e2e.udp.sandbox", "giro": "G2", "os": ["linux"], "min_tests": 13, "exact": true, "tests": ["tests/test_the_socket_process_is_sandboxed_e2e.py", "tests/test_webrtc_realness.py::test_the_gather_is_real_without_a_proxy", "tests/test_webrtc_realness.py::test_a_gateway_with_coherent_udp_gives_the_page_a_srflx_born_through_its_relay", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_a_gateway_without_udp_resolves_the_ice_name_then_ends_in_701"], "marker": "e2e", "needs_root": false, "note": "The browser WITH its sandbox, run by a normal user, as on any Linux that allows user namespaces. On the Ubuntu 24.04 runner AppArmor refuses them to a user, so every other non-root suite runs a browser WITHOUT the sandbox of its socket and content processes; the gate turns the restriction off for this leg (sysctl kernel.apparmor_restrict_unprivileged_userns=0) and the first test fails unless the socket and a tab process have a seccomp filter (Seccomp: 2). The three situations of the UDP line: A (a proxy that carries UDP: the srflx born through the relay), B (no proxy: the gather is real), C (a proxy with no UDP: the ICE server name goes by DoH through the proxy and the gather ends in 701). No root and no resolver trap needed.", "linux_only": "It reads the seccomp filter of the socket and tab processes in /proc. The Windows twin reads the sandbox token of the same processes (integrity level, restrictions) and needs a measurement of the retail Firefox's tokens first; until then Linux only.", "needs_userns": true},
{"id": "wrapper.e2e.web", "giro": "G2", "os": ["linux", "windows"], "min_tests": 27, "exact": true, "tests": ["tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_http3_through_the_proxy_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The networkidle e2e with routes and the HTTP/3 e2e, split from wrapper.e2e.udp (about 260 s of 500 on Linux; the whole suite did not fit the 15 minutes of Windows).", "moz_log": "nsHttp:5,neqo_http3:5"},
{"id": "wrapper.e2e.doh", "giro": "G2", "os": ["linux", "windows"], "min_tests": 19, "exact": true, "tests": ["tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_ice_names_by_the_context_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Linux needs root: the resolver trap of the file (ResolverTrap) points /etc/resolv.conf at a counting resolver on port 53. Su Windows il resolver trap non gira: l'asserzione sul resolver di sistema è l'unica omessa. Run it without xdist (port 53 is one per host). On the Linux leg the gate exports INVPW_REQUIRE_TRAP=1: a trap that cannot run or bind port 53 is a failure, not a skipped assertion."},
{"id": "wrapper.e2e.context.egress", "giro": "G2", "os": ["linux", "windows"], "min_tests": 14, "exact": true, "tests": ["tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "Taken from the minimal-engine port (branch tests/minimal-port) unchanged but for the removed engine gate: 12 = 6 kinds of page work (hints, image/fetch/WebSocket/EventSource, WebRTC STUN and TURN-udp by name, geolocation, a service worker with push, a page still loading when its context closes) x 2 schemes (no proxy at launch and a gateway on the context; a launch gateway and a different one on the context), and 2 = the TURN server named over TCP in those two schemes. EXPECTED RED on the published firefox-63: the 2 TURN-by-name cases (the lookup of the TCP socket takes user context 0; fixed by commits ac0214bff4 and 058edd6cc6 of firefox-64). The 12 have not run on any engine yet. Like wrapper.e2e.doh: the Linux leg runs as root for the resolver trap (INVPW_REQUIRE_TRAP=1); on Windows the DoH log and the gateway's CONNECTs are the sink."},
{"id": "wrapper.e2e.context.sink", "giro": "G2", "os": ["linux", "windows"], "min_tests": 36, "exact": true, "tests": ["tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The behavioural half of the class gate 'nothing of a context leaves but through its proxy', with a witness at an address of this host (no root, no address on lo) and the engine's own resolver log as the native-lookup sink. 35 = 31 + the 4 OCSP cases; the 31 are 19 probes (fetch, WebSocket, stun, turn over UDP, turn and turns over TCP, each by name, by IP and by a .local name, behind SOCKS5 and behind an HTTP proxy where the road differs) + 3 controls (the same probe by IP with no proxy IS heard by the witness) + 1 control of the native sink. + 4 PeerConnections built from a torn-down window (a detached iframe, a closed popup; behind SOCKS5 and behind HTTP; defect B3: EXPECTED RED on firefox-63, green on firefox-64) + 2 controls of them (the same PeerConnection from an attached iframe, green on both). + 2 cases of two contexts alive at once (each with its own proxy and DoH, a TURN server over TCP by a different name in each; behind SOCKS5 EXPECTED RED on firefox-63 like turn_tcp-name-socks5, behind HTTP green on both). EXPECTED RED on firefox-63: turn_tcp-name-socks5, turns_tcp-name-socks5 (user context 0, fixed in firefox-64) and the three .local cases fetch-local-socks5, stun-local-socks5, stun-local-http (audit B4, also red on firefox-64 until decided). The Linux leg runs as root so the resolver trap is a second sink. Windows reads the same engine log (its getaddrinfo lines are in the parent process file under the sandbox: run 43574494194), with the no-proxy native control as its positive control. THE OCSP CASES (4): a TLS page whose leaf, signed by a lab CA the engine trusts (put in the profile by the engine's xpcshell, no ignore_https_errors), names its OCSP responder by a NAME (ocsp-<nonce>.lab.test) and by an IP; a context behind the gateway loads it and the request must go through the gateway, never be looked up natively, in user context 0, or reach the responder (2 cases, EXPECTED RED on firefox-63, green on firefox-64); the same page in a context with no proxy IS asked of the responder (control); a page of an issuer the engine does not trust makes no OCSP request (negative control). THE CLOSED CONTEXT CASE (1, gated firefox-65): a beacon sent on pagehide as a proxied context closes, to a name never looked up, is resolved over the DoH through the context's gateway after the close; on firefox-64 it went to the machine's resolver every time (hunt 43733181674)."},
{"id": "wrapper.e2e.realness", "giro": "G2", "os": ["linux", "windows"], "min_tests": 32, "exact": true, "tests": ["tests/test_realness_behind_a_declared_exit_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The realness check without a real proxy: six declared exits, the values a page reads, and the roads. Linux runs as root without xdist like the DoH suite (the resolver trap); on Windows the trap does not exist and the assertion on the system resolver is the only one omitted."},
{"id": "wrapper.unit.udp", "giro": "G1", "os": ["linux", "windows"], "min_tests": 263, "exact": true, "tests": ["tests/test_doh_session_prefs_unit.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_the_doh_e2e_launch_on_a_virtual_display.py", "tests/test_the_egress_sink_helpers.py", "tests/test_the_exit_of_a_context_is_discovered_through_its_own_gateway.py", "tests/test_the_fake_doh_answers.py", "tests/test_the_fake_doh_delays_and_refuses.py", "tests/test_the_h3_line_helpers.py", "tests/test_the_host_address_helper.py", "tests/test_the_http_proxy_helper_asks_for_credentials.py", "tests/test_the_lab_ca_and_its_ocsp_leaf.py", "tests/test_the_leak_watcher_sees_a_direct_connection.py", "tests/test_the_network_declaration_reaches_the_engine.py", "tests/test_the_realness_helpers.py", "tests/test_the_resolver_trap_counts_its_own_users.py", "tests/test_the_resolver_trap_is_required_by_the_gate.py", "tests/test_the_server_says_nothing_about_the_launch_counter.py", "tests/test_the_udp_bench_survives_what_a_loaded_machine_does_to_it.py", "tests/test_the_udp_chain_helper.py", "tests/test_the_witness_hears_a_direct_send.py", "tests/test_the_witness_picks_a_port_both_sockets_bind.py"], "marker": "unit", "needs_root": false, "note": "The leak watcher file defines exactly one of its two resolver-trap tests per host (7 everywhere), so no test is skipped. `exact`: min_tests is raised by hand when a test is added. The sink of the egress gate (tests/test_the_egress_sink_helpers.py, 20): the engine's log (the same on Linux and Windows) and the witness read on known inputs, and a blind log that must raise, never answer 'nothing'. The lab CA of its OCSP case (tests/test_the_lab_ca_and_its_ocsp_leaf.py, 17; tests/test_the_fake_doh_answers.py +1, the DoH serving a lab-CA leaf): the leaf's AIA, trusted and untrusted issuers, the responder, the xpcshell step."},
{"id": "wrapper.e2e.page", "giro": "G2", "os": ["linux", "windows"], "min_tests": 130, "exact": true, "tests": ["tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py"], "marker": "e2e", "needs_root": false, "note": "130 = 126 + the 4 of test_a_drag_keeps_its_buttons_pressed_e2e.py (a drag reaches the page with the button it holds: event.buttons is 1 on every mousemove of a left drag, 2 on a right one, 0 after the release; with and without humanize). The 126 before it: 116 + the 9 of test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py (four browsers in one process, one closes: the loop is never seen inside a step of the close, the removal of the profile is held still and reached on a thread of the reaper while the close has returned, the other three keep answering; one control holds the loop on purpose, the other leaves it late in its selector and must not be charged). 116 = 100 + the 16 of test_a_page_that_moves_on_e2e.py (a navigation the page overtook with location.replace ends; the engine fix 860ef8a6d9 is proved by it; 2 of them the strict networkidle cases, a document still arriving that moves). 100 counted at the collection; was 96 = 10+32+16+34+4 before the popup tests of 6200bc2). A page is handed over when the engine says Page.ready; a popup reaches the client (link, noopener, window.open; own site and another; with and without a route; in-process and over launch_server) as Playwright's does; a superseded route. Needs the candidate binary, and the stock Playwright client of the dev extra."},
{"id": "wrapper.e2e.realness", "giro": "G2", "os": ["linux", "windows"], "min_tests": 31, "exact": true, "tests": ["tests/test_realness_behind_a_declared_exit_e2e.py"], "marker": "e2e", "needs_root": ["linux"], "note": "The realness check without a real proxy: six declared exits, the values a page reads, and the roads. Linux runs as root without xdist like the DoH suite (the resolver trap); on Windows the trap does not exist and the assertion on the system resolver is the only one omitted."},
{"id": "wrapper.unit.udp", "giro": "G1", "os": ["linux", "windows"], "min_tests": 282, "exact": true, "tests": ["tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "tests/test_doh_session_prefs_unit.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_preload_newtab_is_written_only_when_asked.py", "tests/test_the_doh_e2e_launch_on_a_virtual_display.py", "tests/test_the_egress_sink_helpers.py", "tests/test_the_exit_of_a_context_is_discovered_through_its_own_gateway.py", "tests/test_the_fake_doh_answers.py", "tests/test_the_fake_doh_delays_and_refuses.py", "tests/test_the_h3_line_helpers.py", "tests/test_the_host_address_helper.py", "tests/test_the_http_proxy_helper_asks_for_credentials.py", "tests/test_the_lab_ca_and_its_ocsp_leaf.py", "tests/test_the_leak_watcher_sees_a_direct_connection.py", "tests/test_the_network_declaration_reaches_the_engine.py", "tests/test_the_realness_helpers.py", "tests/test_the_resolver_trap_counts_its_own_users.py", "tests/test_the_resolver_trap_is_required_by_the_gate.py", "tests/test_the_server_says_nothing_about_the_launch_counter.py", "tests/test_the_udp_bench_survives_what_a_loaded_machine_does_to_it.py", "tests/test_the_udp_chain_helper.py", "tests/test_the_witness_hears_a_direct_send.py", "tests/test_the_witness_picks_a_port_both_sockets_bind.py"], "marker": "unit", "needs_root": false, "note": "The leak watcher file defines exactly one of its two resolver-trap tests per host (7 everywhere), so no test is skipped. `exact`: min_tests is raised by hand when a test is added. The sink of the egress gate (tests/test_the_egress_sink_helpers.py, 20): the engine's log (the same on Linux and Windows) and the witness read on known inputs, and a blind log that must raise, never answer 'nothing'. The lab CA of its OCSP case (tests/test_the_lab_ca_and_its_ocsp_leaf.py, 17; tests/test_the_fake_doh_answers.py +1, the DoH serving a lab-CA leaf): the leaf's AIA, trusted and untrusted issuers, the responder, the xpcshell step."},
{"id": "wrapper.e2e.page", "giro": "G2", "os": ["linux", "windows"], "min_tests": 130, "exact": true, "tests": ["tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py"], "marker": "e2e", "needs_root": false, "note": "130 = 126 + the 4 of test_a_drag_keeps_its_buttons_pressed_e2e.py (a drag reaches the page with the button it holds: event.buttons is 1 on every mousemove of a left drag, 2 on a right one, 0 after the release; with and without humanize). The 126 before it: 116 + the 9 of test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py (four browsers in one process, one closes: the loop is never seen inside a step of the close, the removal of the profile is held still and reached on a thread of the reaper while the close has returned, the other three keep answering; one control holds the loop on purpose, the other leaves it late in its selector and must not be charged). 116 = 100 + the 16 of test_a_page_that_moves_on_e2e.py (a navigation the page overtook with location.replace ends; the engine fix 860ef8a6d9 is proved by it; 2 of them the strict networkidle cases, a document still arriving that moves). 100 counted at the collection; was 96 = 10+32+16+34+4 before the popup tests of 6200bc2). A page is handed over when the engine says Page.ready; a popup reaches the client (link, noopener, window.open; own site and another; with and without a route; in-process and over launch_server) as Playwright's does; a superseded route. Needs the candidate binary, and the stock Playwright client of the dev extra.", "moz_log": "DocumentChannel:5,ProcessIsolation:5,nsDocShell:4,DocLoader:4", "juggler_trace": true},
{"id": "wrapper.unit.page", "giro": "G1", "os": ["linux", "windows"], "min_tests": 72, "exact": true, "tests": ["tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_page_number_follows_the_call.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_the_hand_over_of_a_popup_holds_under_concurrency.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py"], "marker": "unit", "needs_root": false, "note": "72 = 44 + 3+9+5+1+10 of the popup hand-over (24 counted at the collection before; was 20 = 3+8+1+8 before 6200bc2). The page dispatcher's wait for Page.ready and what it hands over; the drive gate goes through the core (the engine waits for the session's road)."},
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 9, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped. 9 = those 3 + the 6 families of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py (from firefox-66, engine_at_least): a screenshot draws the text of Arial, Times New Roman, Consolas and Segoe UI, with accents, the typographic apostrophe, the euro sign, Chinese, Arabic and Russian, and of MS PGothic (face 2 of msgothic5_32.ttc: Japanese and Latin) and NSimSun (face 1 of simsun.ttc: Chinese), two faces that are not the first of their collection, with the same bytes as the content process drew them in a canvas (an SVG image with a foreignObject of the same markup), cut from the same page.screenshot, on both systems and with no threshold. EXPECTED RED on every engine that rebuilds the text in the parent with another font than the bundle (Linux: fontconfig answers DejaVu Sans), and skipped, hence red here, on an engine older than firefox-66. It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence."},
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 4 = 3 + 1. Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY)."},
{"id": "wrapper.e2e.compositing", "giro": "G2", "os": ["linux", "windows"], "min_tests": 9, "exact": true, "tests": ["tests/test_software_compositing_is_declared_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The engine DECLARES software compositing on every machine (core: the compositing entries of zoom.stealth.gfx.feature_status carry the VM decision, and on Windows gfx.webrender.software=true, gfx.webrender.software.d3d11=false). 3 = (1) the compositor read from a privileged context is 'WebRender (Software)' on Windows and on Linux (windowUtils.layerManagerType of each window: Troubleshoot.snapshot().graphics throws on this engine, `ext is null`, so it is not the route); (2) the GPU process uses under 1.5 s of CPU on the fixed 10-scene loop of one browser (Windows runner: 0.32 s declared, 2.7-4.2 s not, runs 43652292533 and 43642744101; on Linux it is held to the bound if a GPU process exists); (3) the 86 keys of the page-bytes probe plus the canvas 2D scenes (drawImage scaled with smoothing off/low/medium/high, text with linear/radial/conic gradients) equal tests/data/page_bytes_<os>.json, PNGs on decoded pixels. EXPECTED RED on the core 64.71.0 (tests 1 and 2 on Windows). The reference of Windows holds the 75 stable keys and 6 of the 11 PNG keys of run 43652292533; the five other PNG keys and the new canvas keys, and all of Linux, are written from the first run on the engine of the reference (the failure of test 3 prints RECORD-BEGIN ... RECORD-END with the entries to merge): a reference that is not complete is red, never skipped. 9 = those 3 + the 6 families of tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py (from firefox-66, engine_at_least): a screenshot draws the text of Arial, Times New Roman, Consolas and Segoe UI, with accents, the typographic apostrophe, the euro sign, Chinese, Arabic and Russian, and of MS PGothic (face 2 of msgothic5_32.ttc: Japanese and Latin) and NSimSun (face 1 of simsun.ttc: Chinese), two faces that are not the first of their collection, with the same bytes as the content process drew them in a canvas (an SVG image with a foreignObject of the same markup), cut from the same page.screenshot, on both systems and with no threshold. EXPECTED RED on every engine that rebuilds the text in the parent with another font than the bundle (Linux: fontconfig answers DejaVu Sans), and skipped, hence red here, on an engine older than firefox-66. It saves the screenshot, the two boxes and a result.json under RUNNER_TEMP/invpw-evidence.", "runner_image": {"windows": "windows-2022"}},
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 7, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4: every step as stock, and every page left only once its noise is done), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 7 = 3 + 4 (the last two: a `load` that takes 20 s is a step that succeeds, and a `load` that never comes ends in an error that names the wait and the page). Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY).", "stock_firefox": true, "extra_steps": ["fakeweb_profiles"]},
{"id": "wrapper.e2e.stock_twin.dnd", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_a_drag_from_the_top_into_a_frame_of_another_site_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of the real drag from the top into a frame of another site (4 scales): the same steps first on Playwright's own Firefox (stock_firefox), headed, driven by the stock Playwright client, and second on ours; the verdict is 'the same as the reference' (tests/_stock_twin.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.select", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_a_select_dropdown_opens_at_its_element_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of the select dropdown (4 scales), measured from chrome scope against RETAIL Firefox 159 driven by Marionette alone, headed (the leg sets INVPW_RETAIL_FIREFOX to its firefox.exe), the reference first and ours second; the verdict is 'the same as the reference' (tests/_stock_twin.py, tests/_retail_reference.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.tooltip", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_a_tooltip_opens_at_the_pointer_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of the tooltip (4 scales), measured from chrome scope against RETAIL Firefox 159 driven by Marionette alone, headed (the leg sets INVPW_RETAIL_FIREFOX to its firefox.exe), the reference first and ours second; the verdict is 'the same as the reference' (tests/_stock_twin.py, tests/_retail_reference.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.stock_twin.intersection", "giro": "G2", "os": ["linux", "windows"], "min_tests": 8, "exact": true, "tests": ["tests/test_intersection_and_lazy_loading_in_a_frame_of_another_site_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Split from the row wrapper.e2e.stock_twin, which ran past the 25-minute limit of a leg: one file, one leg. The twin of what the IntersectionObserver of a scrolled frame of another site reads (8 steps, 4 scales) and of when a lazy frame is requested (4 distances, 4 scales): the same steps first on Playwright's own Firefox (stock_firefox), headed, driven by the stock Playwright client, and second on ours; the verdict is 'the same as the reference' (tests/_stock_twin.py). Each record keeps the page's and the chrome's devicePixelRatio and the real scale of the screen. The file is in no whole-suite row: the references are installed only for this row's legs.", "stock_firefox": true},
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 3353, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_network.py", "tests/test_ab_oracle.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_host_gate_ab.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_poison_host.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_held_request_of_the_journey_starts_after_the_load.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_every_wire_method_is_served_or_refused.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reacLine truncated
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 3354, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_network.py", "tests/test_ab_oracle.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_host_gate_ab.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_poison_host.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_held_request_of_the_journey_starts_after_the_load.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_every_wire_method_is_served_or_refused.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/tesLine truncated
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode)."},
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 415, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_Line truncated
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 411, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 564 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapLine truncated
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 309, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict)."},
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 299, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 286, "exact": true, "tests": ["tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 273, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 270, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
{"id": "wrapper.e2e.suite.windows.control_a", "giro": "G2", "os": ["windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_control_a_selects_all_in_a_field_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "The keyboard shortcut Control+A selects all in a field (5 ways to press it x an input and a textarea, in-process and served to the stock client), alone on its own Windows runner (windows-latest), as e2e.yml runs it on the published engine: the Windows keyboard of a real user is what it needs. The same file is in one of wrapper.e2e.suite.windows.1..4 and in wrapper.e2e.suite.linux.1."},
{"id": "wrapper.e2e.ab_oracle", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_oracle_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Same seed, same bytes: the engine published as firefox-68 against the candidate, on one machine, with the same core and wrapper, after the control: the published engine against ITSELF (the A/A; a difference is a broken control, exit 2, and the A/B is not run). On a pull request (no candidate: INVPW_BINARY_PATH is the published engine, no INVISIBLE_SEAL_FILE) the A/A is the whole test, on the first two seeds of the candidate set (all five when the pull request changes a file of this oracle: the step of e2e.yml that runs scripts/ci_ab_pr_seeds.py exports AB_ORACLE_PR_SEEDS), and saves both dumps and the diff under $AB_ORACLE_OUT or $RUNNER_TEMP/invpw-evidence/ab-oracle. scripts/ci_ab_oracle.py runs the host gate's dump (scripts/ci_host_gate.py dump: the persona seeds of ci/persona-seeds.json, each at its own DPR with nothing pinned, the whole page of scripts/host_gate; the `candidate` set of 5 seeds that reach every webgl renderer and every DPR, or with AB_ORACLE_SEED_SET=final and AB_ORACLE_SHARD=i/n the 20 seeds that reach every value of every dimension split over n jobs) twice, once with the firefox-68 binary (the release's seal.json, then the core's own download.ensure_binary under that seal: the archive's sha256 is checked against the seal) and once with the candidate binary of the leg under its own seal, and compares every leaf of every visit: the only differences allowed are the `noise` entries of scripts/host_gate/exceptions.json and the diag. keys; anything else is red with the leaf, the two values and the seed; fewer leaves than the host gate's reference holds (16439 per visit; a DPR the reference does not record is held to the least of those it does) is red. The files (dump-68.json, dump-68-again.json, diff-a-a.json and, with a candidate, dump-candidate.json and diff.json) are the artifact ab-oracle-<os> of the leg. 1 = the one test; the comparator's own cases (51, the A/A's among them) are in tests/test_ab_oracle.py, the persona seeds' (15) in tests/test_persona_cover.py, in the rows of the whole unit suite. Needs the engine's binary (INVPW_BINARY_PATH) and, for the A/B, the candidate's seal (INVISIBLE_SEAL_FILE) and the network (the release assets of firefox-68). The engine of the candidate must accept the core of the leg and the 68 engine must accept it too: a core that declares something the published engine refuses is a red of this suite, not of the engine."},
{"id": "wrapper.e2e.ab_network", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_network_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Network A/B oracle: the P4 journey, HTTPS h1/h2 (ClientHello, h2 frames, header order), HTTP/3 (transport parameters, H3 SETTINGS), WebRTC through the coherent SOCKS5 lab gateway, DNS through the fake DoH, and an idle launch; transcripts compared leaf by leaf, direct connections red on either side. A/A first (the published engine twice: a difference is a broken control; ci/ab-network-volatile.json holds the leaves the A/A proved volatile, and may only shrink), then the published engine against the candidate. Without a candidate (a PR's e2e) the A/A alone, on the first seed (all five when the pull request changes a file of this oracle: AB_NETWORK_PR_SEEDS), in jobs of its own in e2e.yml on Linux and on Windows (the shared e2e jobs leave this file out)."},
{"id": "wrapper.e2e.ab_host", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Host A/B oracle: the whole TRACE of a closed run, from the launch to the exit of the browser, after the same journey. Compared: the processes by kind (the parent, -contentproc type, sandboxingKind, isForBrowser, the helpers by what they ran) with their count, except for the kinds of type tab whose count follows the idle time (only their presence counts), and the SET of host paths the tree touched, identical with no exception; what is ours (the package, the profile and temp dirs of the launch, the run cache, its own shared memory) leaves the comparison as a class. Linux: strace of the whole tree. Windows: the process-creation audit (event 4688, with the command line) and an ETW file trace of Kernel-File, which need an administrator. It has jobs of its own in e2e.yml on Linux and on Windows (a measurement shares the machine with no other browser), and its footprints keep the lifecycle of the tree (who started and ended when, how) and how the close ended. Each engine run starts with a discarded warm-up launch whose trace is kept and listed apart (what only the warm-up did, with the process that did it); only the tree of the launch is compared (a Windows service's paths are counted by process name and left out), and a path or a kind that differs names the processes to blame. A/A first, then the published engine against the candidate; the one declared difference (Linux glxtest, gone on the 69) is in ci/ab-host-expected.json, applied by kind, a list that may only shrink. There is no list of noise. Without a candidate (a PR e2e) the A/A alone, on the first two seeds (all five when the pull request changes a file of this oracle: AB_HOST_PR_SEEDS)."},
{"id": "wrapper.e2e.ab_host_crash", "giro": "G2", "os": ["linux"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_crash_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "A signal sent to the parent of the browser with os.kill, the core the kernel writes and gdb reads, and the signal line of strace exist on Linux only: Windows has no counterpart of this test. What a Windows launch that did not end with 0 leaves (the `.extra` files and the minidump names, read from the crash folders) is held by the unit tests of the recorder with fake launches, and by every Windows leg of the three oracles, which are red on any parent that does not end with 0.", "note": "The recorder of the host oracle, tested on a launch that dies on purpose: scripts/ci_ab_host.py crash-probe launches the engine once under the oracle's stand-in (strace of the tree, cores enabled, a crash watcher), sends SIGSEGV to the browser's parent with os.kill and closes it as the oracle closes its launches; the test passes when the oracle reports RED (exit 1, `FAIL the parent process exited with code ...: seed N, launch crash`) and the artifact (RUNNER_TEMP/invpw-evidence/ab-host-crash) holds the signal line of the strace log (strace-signals.txt, strace-tail.txt), the core run through gdb (gdb-core.*.txt: `thread apply all bt`, the MOZ_CRASH reason, `info sharedlibrary`), the build ids and what the collectors did not find (said.txt). It fails when the oracle says green for a launch that died, when the evidence is missing and when the probe did not run; the red of the probe does not make the job red. It runs in the job of the host oracle on Linux (e2e-host: strace, gdb and elfutils installed, kernel.core_pattern pointed at INVPW_CORE_DIR), after the A/A, and is left out of the shared e2e job (OWN_JOB_FILES)."}
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 4469, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py", "tests/test_a_handle_action_walks_like_a_selector_action.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_marionette_session_is_asked_after_the_first_window.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_popup_under_the_declared_viewport_is_not_pinned.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_host_aa_stable.py", "tests/test_ab_network.py", "tests/test_ab_network_turn_credential.py", "tests/test_ab_network_turn_deallocation.py", "tests/test_ab_network_webrtc_evidence.py", "tests/test_ab_oracle.py", "tests/test_ab_oracle_declared_differences.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_an_expired_popupshown_wait_fails_the_e2e_test_that_launched_the_browser.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_host_gate_ab.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_linux_legs_read_no_mirror.py", "tests/test_ci_poison_host.py", "tests/test_ci_published_set.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_windows_temp_is_on_d.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_action_is_pinned_by_commit_sha.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_held_request_of_the_journey_starts_after_the_load.py",Line truncated
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 4481, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_file_chooser_is_never_dropped_in_silence.py", "tests/test_a_frame_tap_needs_a_context_with_touch.py", "tests/test_a_gil_free_thread_dump_kills_a_busy_process_and_the_stack_watchdog_does_not.py", "tests/test_a_handle_action_walks_like_a_selector_action.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_marionette_session_is_asked_after_the_first_window.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_popup_under_the_declared_viewport_is_not_pinned.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page.py", "tests/test_a_screenshot_sends_its_scale_to_the_engine.py", "tests/test_a_served_browser_keeps_the_udp_verdicts_of_its_proxies.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_streamed_upload_is_staged_in_the_session.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_test_that_is_not_e2e_never_leaves_the_machine.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_ab_host.py", "tests/test_ab_host_aa_stable.py", "tests/test_ab_network.py", "tests/test_ab_network_turn_credential.py", "tests/test_ab_network_turn_deallocation.py", "tests/test_ab_network_webrtc_evidence.py", "tests/test_ab_oracle.py", "tests/test_ab_oracle_declared_differences.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_an_expired_popupshown_wait_fails_the_e2e_test_that_launched_the_browser.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_host_gate_ab.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_linux_legs_read_no_mirror.py", "tests/test_ci_poison_host.py", "tests/test_ci_published_set.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_windows_temp_is_on_d.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_action_is_pinned_by_commit_sha.py", "tests/test_every_argument_reaches_the_page_as_playwright_sends_it.py", "tests/test_every_held_request_of_the_journey_starts_after_the_load.Line truncated
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode).", "core_dumps": "invpw-cores"},
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 447, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_throuLine truncated
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 450, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_press_on_an_open_select_follows_windows_rollup_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_select_dropdown_stays_open_after_the_release_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_no_popup_is_left_when_a_page_closes_e2e.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 564 s of estimated wall time, 4 brLine truncated
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 367, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_popup_reads_the_retail_sizes_of_a_maximized_main_window_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict).", "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 332, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_screenshot_honours_its_scale_e2e.py", "tests/test_a_screenshot_refuses_what_would_touch_the_page_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 321, "exact": true, "tests": ["tests/test_a_file_chooser_reaches_every_client_e2e.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_press_on_an_open_select_follows_windows_rollup_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_select_dropdown_stays_open_after_the_release_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_element_handle_serves_every_method_of_the_client_e2e.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_every_argument_reaches_the_page_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_no_popup_is_left_when_a_page_closes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the teLine truncated
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 278, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.4", "giro": "G2", "os": ["windows"], "min_tests": 326, "exact": true, "tests": ["tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_frame_reads_only_declared_origins_while_it_loads_e2e.py", "tests/test_a_handle_action_walks_like_a_selector_action_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_popup_moves_and_resizes_as_declared_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_popup_reads_the_retail_sizes_of_a_maximized_main_window_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_exslt_date_time_through_an_imported_stylesheet_is_in_the_declared_zone_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_injected_node_surface.py", "tests/test_input_reaches_the_top_and_a_frame_of_another_site_at_every_scale_e2e.py", "tests/test_juggler_connection.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_oop_frame_element.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_scroll_into_view.py", "tests/test_shadow_trusted_input.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_maximized_window_frames_and_popups_read_retail_e2e.py", "tests/test_the_parent_methods_of_the_window_origin_are_not_exposed_to_a_page_e2e.py", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 4 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
{"id": "wrapper.e2e.suite.windows.control_a", "giro": "G2", "os": ["windows"], "min_tests": 20, "exact": true, "tests": ["tests/test_control_a_selects_all_in_a_field_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "The keyboard shortcut Control+A selects all in a field (5 ways to press it x an input and a textarea, in-process and served to the stock client), alone on its own Windows runner (windows-latest), as e2e.yml runs it on the published engine: the Windows keyboard of a real user is what it needs. The same file is in one of wrapper.e2e.suite.windows.1..4 and in wrapper.e2e.suite.linux.1.", "run": "suite_run"},
{"id": "wrapper.e2e.ab_oracle", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_oracle_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Same seed, same bytes: the engine of the published set (the last published engine, with its own core and wrapper) against the candidate (with core_ref and wrapper_ref), on one machine, after the control: the published engine against ITSELF (the A/A; a difference is a broken control, exit 2, and the A/B is not run). On a pull request (no candidate: INVPW_BINARY_PATH is the published engine, no INVISIBLE_SEAL_FILE) the A/A is the whole test, on the first two seeds of the candidate set (all five when the pull request changes a file of this oracle: the step of e2e.yml that runs scripts/ci_ab_pr_seeds.py exports AB_ORACLE_PR_SEEDS), and saves both dumps and the diff under $AB_ORACLE_OUT or $RUNNER_TEMP/invpw-evidence/ab-oracle. scripts/ci_ab_oracle.py runs the host gate's dump (scripts/ci_host_gate.py dump: the persona seeds of ci/persona-seeds.json, each at its own DPR with nothing pinned, the whole page of scripts/host_gate; the `candidate` set of 5 seeds that reach every webgl renderer and every DPR, or with AB_ORACLE_SEED_SET=final and AB_ORACLE_SHARD=i/n the 20 seeds that reach every value of every dimension split over n jobs) twice, once with the published engine (fetched by the published set's own core under its own seal, which checks the archive's sha256, and dumped in that set's venv) and once with the candidate binary of the leg under its own seal, and compares every leaf of every visit: the only differences allowed are the `noise` entries of scripts/host_gate/exceptions.json and the diag. keys; anything else is red with the leaf, the two values and the seed; fewer leaves than the host gate's reference holds (16439 per visit; a DPR the reference does not record is held to the least of those it does) is red. The files (dump-<N>.json, dump-<N>-again.json for the tag of the published set, diff-a-a.json and, with a candidate, dump-candidate.json and diff.json) are the artifact ab-oracle-<os> of the leg. 1 = the one test; the comparator's own cases (51, the A/A's among them) are in tests/test_ab_oracle.py, the persona seeds' (15) in tests/test_persona_cover.py, in the rows of the whole unit suite. Needs the engine's binary (INVPW_BINARY_PATH) and, for the A/B, the candidate's seal (INVISIBLE_SEAL_FILE) and the network (the release assets of the published engine, and INVPW_PUBLISHED_PYTHON). Each engine runs with the core it was built for: a core that declares less than the published engine requires is no longer a red of this suite (it was: engine candidate 5, every A/B a broken control). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "timeout_minutes": 50, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"], "artifact": "ab-oracle"},
{"id": "wrapper.e2e.ab_network", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_network_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Network A/B oracle: the P4 journey, HTTPS h1/h2 (ClientHello, h2 frames, header order), HTTP/3 (transport parameters, H3 SETTINGS), WebRTC through the coherent SOCKS5 lab gateway, DNS through the fake DoH, and an idle launch; transcripts compared leaf by leaf, direct connections red on either side. A/A first (the published engine twice: a difference is a broken control; ci/ab-network-volatile.json holds the leaves the A/A proved volatile, and may only shrink), then the published engine against the candidate. Without a candidate (a PR's e2e) the A/A alone, on the first seed (all five when the pull request changes a file of this oracle: AB_NETWORK_PR_SEEDS), in jobs of its own in e2e.yml on Linux and on Windows (the shared e2e jobs leave this file out). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "timeout_minutes": 75, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]},
{"id": "wrapper.e2e.ab_host", "giro": "G2", "os": ["linux", "windows"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_e2e.py"], "marker": "e2e", "needs_root": false, "note": "Host A/B oracle: the whole TRACE of a closed run, from the launch to the exit of the browser, after the same journey. Compared: the processes by kind (the parent, -contentproc type, sandboxingKind, isForBrowser, the helpers by what they ran) with their count, except for the kinds of type tab whose count follows the idle time (only their presence counts), and the host paths the tree touched, judged by one rule (red if and only if a path is in all the measured launches of one engine and in no launch of the other, the long launches included; every other path that differs is listed in not-judged.json, not judged); what is ours (the package, the profile and temp dirs of the launch, the run cache, its own shared memory) leaves the comparison as a class. Linux: strace of the whole tree. Windows: the process-creation audit (event 4688, with the command line) and an ETW file trace of Kernel-File, which need an administrator. It has jobs of its own in e2e.yml on Linux and on Windows (a measurement shares the machine with no other browser), and its footprints keep the lifecycle of the tree (who started and ended when, how) and how the close ended. Each engine run starts with a discarded warm-up launch whose trace is kept and listed apart (what only the warm-up did, with the process that did it); only the tree of the launch is compared (a Windows service's paths are counted by process name and left out), and a path or a kind that differs names the processes to blame. A/A first, then the published engine against the candidate; the one declared difference (Linux glxtest, gone on the 69) is in ci/ab-host-expected.json, applied by kind, a list that may only shrink. There is no list of noise. Without a candidate (a PR e2e) the A/A alone, on the first two seeds (all five when the pull request changes a file of this oracle: AB_HOST_PR_SEEDS). THE CONTROL IS THE PUBLISHED SET, as a user installs it: the last invisible-playwright on the index, the invisible-core it pins exactly and the engine that core's seal pins, in a venv of their own (ci/py-lock/published.txt, installed by hash from the run's wheelhouse; scripts/ci_published_set.py; INVPW_PUBLISHED_PYTHON is its python). The candidate's side is the candidate engine with core_ref and wrapper_ref. No tag is written in a harness file.", "runner_image": {"windows": "windows-2022"}, "timeout_minutes": 50, "core_dumps": "cores", "stock_firefox": ["windows"], "location_service": ["windows"], "extra_steps": ["keep_oracle_files"]},
{"id": "wrapper.e2e.ab_host_crash", "giro": "G2", "os": ["linux"], "min_tests": 1, "exact": true, "tests": ["tests/test_ab_host_crash_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "A signal sent to the parent of the browser with os.kill, the core the kernel writes and gdb reads, and the signal line of strace exist on Linux only: Windows has no counterpart of this test. What a Windows launch that did not end with 0 leaves (the `.extra` files and the minidump names, read from the crash folders) is held by the unit tests of the recorder with fake launches, and by every Windows leg of the three oracles, which are red on any parent that does not end with 0.", "note": "The recorder of the host oracle, tested on a launch that dies on purpose: scripts/ci_ab_host.py crash-probe launches the engine once under the oracle's stand-in (strace of the tree, cores enabled, a crash watcher), sends SIGSEGV to the browser's parent with os.kill and closes it as the oracle closes its launches; the test passes when the oracle reports RED (exit 1, `FAIL the parent process exited with code ...: seed N, launch crash`) and the artifact (RUNNER_TEMP/invpw-evidence/ab-host-crash) holds the signal line of the strace log (strace-signals.txt, strace-tail.txt), the core run through gdb (gdb-core.*.txt: `thread apply all bt`, the MOZ_CRASH reason, `info sharedlibrary`), the build ids and what the collectors did not find (said.txt). It fails when the oracle says green for a launch that died, when the evidence is missing and when the probe did not run; the red of the probe does not make the job red. It runs in the job of the host oracle on Linux (e2e-host: strace, gdb and elfutils installed, kernel.core_pattern pointed at INVPW_CORE_DIR), after the A/A, and is left out of the shared e2e job (OWN_JOB_FILES).", "timeout_minutes": 35, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]}
]
+6 -1
View File
@@ -8,5 +8,10 @@
{"file": "tests/unit/test_canvas_text_refs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 7, "wrapper.unit.all.windows": 7}},
{"file": "tests/unit/test_compare_canvas_text_runs.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
{"file": "tests/unit/test_fontconfig_criterion.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 5, "wrapper.unit.all.windows": 5}},
{"file": "tests/unit/test_theme_refusal_drop.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}}
{"file": "tests/unit/test_theme_refusal_drop.py", "reason": "feature cancelled with the 69 backlog (21/11)", "date": "2026-11-21", "tests": {"wrapper.unit.all.linux": 3, "wrapper.unit.all.windows": 3}},
{"nodeid": "tests/test_detectors_e2e.py::test_the_headless_detector_sees_no_headless_and_no_proxy_tell", "suite": "wrapper.e2e.suite.linux.1", "count": 1, "from_min_tests": 449, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.suite.linux.1", "count": 1, "from_min_tests": 449, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_detectors_e2e.py::test_the_headless_detector_sees_no_headless_and_no_proxy_tell", "suite": "wrapper.e2e.suite.windows.1", "count": 1, "from_min_tests": 333, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.suite.windows.4", "count": 1, "from_min_tests": 274, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"},
{"nodeid": "tests/test_realness_behind_a_declared_exit_e2e.py::test_the_vendored_detection_page_finds_nothing_behind_the_gateway", "suite": "wrapper.e2e.realness", "count": 1, "from_min_tests": 32, "reason": "removed with the vendored bundle whose licence notice cannot ship without a studied system's name (pm, 27/11)", "decided_by": "pm", "date": "2026-11-27"}
]
+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "invisible_playwright"
version = "0.58.1"
version = "0.61.0"
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
readme = "README.md"
requires-python = ">=3.11"
@@ -69,7 +69,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==68.80.0",
"invisible_core==71.85.0",
# ⛔ playwright is NO LONGER a dependency: since the full fork, the Python
# client lives in src/invisible_playwright/_pw/ and its server in
# src/invisible_playwright/_juggler/ (no Node driver). Reintroducing it would not visibly
+783 -361
View File
File diff suppressed because it is too large. Load diff
+657 -82
View File
File diff suppressed because it is too large. Load diff
+229 -75
View File
@@ -3,17 +3,19 @@
A page reads the same values from two engines that differ only by the work of one
release. This runs the host gate's dump (scripts/ci_host_gate.py dump: the page in
scripts/host_gate, whole APIs) twice on the SAME machine, with the same core and the same
wrapper, over the persona seeds (ci/persona-seeds.json, computed by scripts/persona_cover.py
scripts/host_gate, whole APIs) twice on the SAME machine, each engine with ITS OWN core and wrapper
(the published engine with the published set, the candidate with core_ref and wrapper_ref), over the persona seeds (ci/persona-seeds.json, computed by scripts/persona_cover.py
from the prefs the core emits: the `candidate` set, 5 seeds that reach every webgl renderer
and every DPR, or the `final` set, 20 seeds that reach every value of every dimension). Each
seed runs at its OWN DPR (nothing is pinned):
1. with the published engine (firefox-68 by default): its seal and its archive are
downloaded the way the core downloads an engine (the release's seal.json, then
invisible_core.download.ensure_binary under that seal, which checks the sha256 of
the archive against the seal and the engine against the seal);
2. with the candidate binary the gate already holds, under its own seal.
1. with the published engine: the one the PUBLISHED SET carries (scripts/ci_published_set.py:
the last wrapper on the index, the core it pins, the engine that core's seal pins). The
set's venv fetches its own engine the way a user's core does (ensure_binary under its
own seal, which checks the sha256 of the archive and the engine against the seal) and
the dump runs in that venv: the engine is launched by the core it was built for;
2. with the candidate binary the gate already holds, under its own seal, in the venv of
the job (core_ref, wrapper_ref).
The dump also reads what the host gate's retail comparison leaves alone, the ab. leaves (ci_host_gate.is_ab): ab.poison on every seed (zone, language, colour scheme, a
canary font and the audio context, which scripts/ci_poison_host.py holds to the declared identity on a poisoned host) and, on seeds 0 and 63, the extra visit of every realm and
@@ -27,8 +29,15 @@ the two values and the seed. It is also red when a visit is missing on one side,
visit compares fewer leaves than MIN_LEAVES says: a page that dumped less than the host gate's
own reference would pass anything.
DECLARED DIFFERENCES. ci/ab-oracle-expected.json (format ab-oracle-expected/1) lists, one row per os x seed x dpr x leaf, the differences between the published engine and the candidate that a
release is known to make, each with the two values and the reason. They are applied to the A/B only, never to the A/A (the engine against itself has none). A difference is allowed only
when a row matches it exactly: the same os (the leg's), seed, dpr and leaf, and both values. Any other difference is red, and so is a row that does not show in the run (its os, a visit the
run made, and no matching difference): it is STALE and the verdict says "remove it". The rows say what the published engine reads and what the candidate reads, never a tag: when the published set
moves to the release that holds the candidate's work, the two sides agree on those leaves, every row is stale, and the stale check forces them out. A row for a visit this run did not make (another
shard, another seed set) is not judged here.
python ci_ab_oracle.py run <candidate-firefox> --candidate-seal gate.seal.json \\
--leg linux-x86_64 --out ab-oracle [--engine-tag firefox-68] [--seed-set candidate|final] [--shard i/n]
--leg linux-x86_64 --out ab-oracle [--engine-tag <the set's tag>] [--seed-set candidate|final] [--shard i/n]
python ci_ab_oracle.py run --published-binary <firefox> --leg linux-x86_64 --out ab-oracle --limit 2 (the A/A alone)
python ci_ab_oracle.py compare ab-oracle [--a-a] [--seed-set ...] [--shard i/n] (again, from the dumps)
@@ -83,11 +92,21 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ci_crash_evidence as crash # noqa: E402
import ci_host_gate as gate # noqa: E402
import ci_published_set as published_set # noqa: E402
import persona_cover as personas # noqa: E402
FORMAT = "ab-oracle/1"
#: The engine the candidate is held to: the last one published.
ENGINE_TAG = "firefox-68"
EXPECTED_FORMAT = "ab-oracle-expected/1"
EXPECTED_FILE = Path(__file__).resolve().parents[1] / "ci" / "ab-oracle-expected.json"
#: What a row of the file has, and nothing else.
EXPECTED_KEYS = ("id", "os", "seed", "dpr", "leaf", "published", "candidate", "reason")
#: The legs the gate runs, and the os a row names for each.
LEG_OS = {"linux-x86_64": "linux", "win-x86_64": "windows"}
#: The control side is the PUBLISHED SET (scripts/ci_published_set.py): the wrapper the index published last, the core that wrapper pins, and the engine that core's seal pins, in a venv
#: of their own. The variable names that venv's python; the job sets it (or the oracle's test makes the venv from the run's wheelhouse). No tag is written in this file: the engine the
#: candidate is held to is the one the set carries, so a new release is the new baseline.
PUBLISHED_PYTHON_ENV = "INVPW_PUBLISHED_PYTHON"
SET_SCRIPT = Path(__file__).resolve().parent / "ci_published_set.py"
CANDIDATE = "candidate"
#: What the host gate's own reference holds per visit (non-diag leaves at each DPR, today).
#: A visit that compares fewer leaves than this is red. Moves by hand with the reference
@@ -192,8 +211,68 @@ def tab_crashes(leaves: dict) -> list:
return [(launch, f.get("error"), f.get("step")) for (_second, launch), f in sorted(found.items())]
def os_of_leg(leg: str) -> str:
"""The os a row of the declared differences names for this leg ("linux-x86_64" is linux, "win-x86_64" is windows); any other leg is refused."""
if leg not in LEG_OS:
raise SystemExit("--leg is one of %s, not %r: the declared differences are per os" % ("/".join(sorted(LEG_OS)), leg))
return LEG_OS[leg]
def load_expected(path: Path | None = None) -> list:
"""The rows of ci/ab-oracle-expected.json (EXPECTED_FILE when no path is given). Refused: another format, a row that does not have exactly EXPECTED_KEYS, an os that is not
linux or windows, an empty reason, two rows with one id or with one (os, seed, dpr, leaf)."""
path = Path(path or EXPECTED_FILE)
document = json.loads(path.read_text(encoding="utf-8"))
if document.get("format") != EXPECTED_FORMAT:
raise SystemExit("%s is not an %s file" % (path, EXPECTED_FORMAT))
rows, ids, places = document["differences"], set(), set()
for row in rows:
if sorted(row) != sorted(EXPECTED_KEYS):
raise SystemExit("%s: the row %r has the keys %s, it must have exactly %s" % (path, row.get("id"), sorted(row), sorted(EXPECTED_KEYS)))
if row["os"] not in LEG_OS.values():
raise SystemExit("%s: the row %r names the os %r, it is linux or windows" % (path, row["id"], row["os"]))
if not str(row["reason"]).strip():
raise SystemExit("%s: the row %r has no reason" % (path, row["id"]))
place = (row["os"], row["seed"], row["dpr"], row["leaf"])
if row["id"] in ids or place in places:
raise SystemExit("%s: the row %r is declared twice (by id, or by os, seed, dpr and leaf)" % (path, row["id"]))
ids.add(row["id"])
places.add(place)
return rows
def _same_value(a, b) -> bool:
"""Equal as JSON says it (1 is not true, a list is its elements in order)."""
return json.dumps(a, sort_keys=True) == json.dumps(b, sort_keys=True)
def declared_covers(entry: dict, os_name: str, diff: dict) -> bool:
"""A row covers a difference only when os, seed, dpr, leaf and BOTH values are the row's."""
return (entry["os"] == os_name and entry["seed"] == diff["seed"] and entry["dpr"] == diff["dpr"] and entry["leaf"] == diff["leaf"]
and _same_value(entry["published"], diff["a"]) and _same_value(entry["candidate"], diff["b"]))
def apply_declared(differences: list, declared: list, os_name: str, seen: set, expected) -> tuple:
"""(the differences no row covers, the differences the rows cover with the id of the row, the stale rows).
A row is judged only when it names this os and a visit this run asked for and both sides have (`seen`); it is stale when no difference of the run is exactly its own."""
left, covered, stale = list(differences), [], []
for entry in declared:
visit = (entry["dpr"], entry["seed"])
if entry["os"] != os_name or visit not in expected or visit not in seen:
continue
hit = [d for d in left if declared_covers(entry, os_name, d)]
if not hit:
stale.append(entry)
for d in hit:
left.remove(d)
covered.append(dict(d, id=entry["id"]))
return left, covered, stale
def compare_visits(a: dict, b: dict, noise: list, min_leaves: dict | None = None,
expected: tuple | None = None, relaunch: tuple | None = None) -> dict:
expected: tuple | None = None, relaunch: tuple | None = None,
declared: list | None = None, os_name: str | None = None) -> dict:
"""a and b map (dpr, seed) to the items of that visit (as the dump returns them).
Returns the report: {"verdict": "green"|"red", "problems": [str], "differences":
@@ -202,7 +281,12 @@ def compare_visits(a: dict, b: dict, noise: list, min_leaves: dict | None = None
fewest leaves a visit of that dpr may compare; `expected` is the visits both sides must have
(default: every seed at every DPR of the host gate). `relaunch` is the visits that were launched twice on one profile (default: those of RELAUNCH_SEED among the expected ones): each side must have the
second launch's leaves (prefix `relaunch.`) in them, as many as the floor, counted apart (report["relaunch"]), and a side must not have them in a visit that
was not asked to."""
was not asked to.
`declared` is the rows of ci/ab-oracle-expected.json, applied only with the `os_name` of the leg: the A/B passes them, the A/A never does. A difference that a row covers exactly
is not a problem and is listed in report["declared"] with the row's id; a row that this run does not show is a problem (stale) and its id is in report["stale"]."""
if declared and os_name is None:
raise ValueError("declared differences are per os: say which (os_name)")
min_leaves = MIN_LEAVES if min_leaves is None else min_leaves
if expected is None:
expected = tuple((dpr, seed) for dpr in gate.DPRS for seed in gate.SEEDS)
@@ -262,10 +346,14 @@ def compare_visits(a: dict, b: dict, noise: list, min_leaves: dict | None = None
" (the %d leaves of this visit that the tab could not read, or that only the other side has, are not compared)" % cascade[visit_name(c["dpr"], c["seed"])]
if visit_name(c["dpr"], c["seed"]) in cascade else "") for c in crashes]
problems = tab_lines + problems # the tab crash is the first line of the verdict, before anything it caused
covered, stale = [], []
if declared:
differences, covered, stale = apply_declared(differences, declared, os_name, {k for k in a if k in b}, expected)
problems += ["the declared difference %r (%s) does not show in this run: it is stale, remove it" % (e["id"], e["reason"]) for e in stale]
for d in differences:
problems.append("seed %d dpr %s %s: %s" % (d["seed"], d["dpr"], d["leaf"], d["what"]))
return {"verdict": "red" if problems else "green", "problems": problems, "differences": differences, "tab_crashes": crashes,
"compared": compared, "relaunch": relaunched, "excused": excused}
"compared": compared, "relaunch": relaunched, "excused": excused, "declared": covered, "stale": [e["id"] for e in stale]}
# -
@@ -292,8 +380,9 @@ def unpack(document: dict) -> dict:
def judge(published: dict, candidate: dict, noise: list, extra_problems=(), expected: tuple | None = None,
relaunch: tuple | None = None) -> dict:
report = compare_visits(published, candidate, noise, expected=expected, relaunch=relaunch)
relaunch: tuple | None = None, declared: list | None = None, os_name: str | None = None) -> dict:
"""The verdict on two sets of visits. `declared` and `os_name` are the A/B's: the rows of ci/ab-oracle-expected.json and the os of the leg; the A/A is judged without them."""
report = compare_visits(published, candidate, noise, expected=expected, relaunch=relaunch, declared=declared, os_name=os_name)
if extra_problems:
crashed = [x for x in report["problems"] if x.startswith(TAB_CRASH)] # a tab that died is named before the exit code of the dump it left
report["problems"] = crashed + list(extra_problems) + report["problems"][len(crashed):]
@@ -312,6 +401,11 @@ def print_report(report: dict, published: str, other: str = CANDIDATE, title: st
report["excused"]))
if report.get("relaunch"):
print("second launch on a reused profile, leaves per visit: %s" % ", ".join("%s %d" % kv for kv in sorted(report["relaunch"].items())))
if report.get("declared"):
print("%d differences declared in ci/ab-oracle-expected.json (the A/B only), each one exactly as its row says:" % len(report["declared"]))
for d in report["declared"]:
print("DECLARED %s seed %d dpr %s leaf %s: %s | %s" % (d["id"], d["seed"], d["dpr"], d["leaf"],
json.dumps(d["a"], sort_keys=True)[:80], json.dumps(d["b"], sort_keys=True)[:80]))
for d in report["differences"][:PRINT_LIMIT]:
print("DIFF seed %d dpr %s leaf %s: %s %s | %s %s" % (d["seed"], d["dpr"], d["leaf"], published,
json.dumps(d["a"], sort_keys=True)[:160],
@@ -327,35 +421,68 @@ def print_report(report: dict, published: str, other: str = CANDIDATE, title: st
# -
# The run: two dumps, one per engine, as subprocesses (the seal a process runs under is read at import).
def fetch_published(tag: str, work: Path) -> tuple:
"""(binary, seal path) of the published engine `tag`, fetched the way the core fetches an engine."""
os.environ.setdefault("INVISIBLE_CORE_AUTOFIX", "off")
os.environ.setdefault("INVISIBLE_CORE_PIN", "allow")
from invisible_core import download
from invisible_core.constants import RELEASE_URL_TEMPLATE
from invisible_core.seal import load_seal
def published_python() -> str:
"""The python of the published set's venv (INVPW_PUBLISHED_PYTHON). RuntimeError when there is none: a candidate held to a control that is not the published set is
the broken control this file used to run (the candidate's core with the published engine, which refuses a launch whose declarations that core does not emit)."""
python = os.environ.get(PUBLISHED_PYTHON_ENV)
if not python or not Path(python).is_file():
raise RuntimeError("%s names no python (%r): the control side of an A/B is the PUBLISHED SET in a venv of its own (scripts/ci_published_set.py install --house <the "
"run's wheelhouse> --venv <dir>, then export the python it prints), never the core and the wrapper of the candidate" % (PUBLISHED_PYTHON_ENV, python))
return python
owner, repo = download._parse_owner_repo(RELEASE_URL_TEMPLATE)
seal_path = work / ("seal-%s.json" % tag)
sources = download.release_asset_urls(owner, repo, tag, "seal.json",
RELEASE_URL_TEMPLATE.format(tag=tag, asset="seal.json"))
download._download_file(sources, seal_path)
seal = load_seal(seal_path)
if seal.tag != tag or seal.is_local:
raise SystemExit("the seal of the release %s says tag %r (local: %s)" % (tag, seal.tag, seal.is_local))
print("published engine %s: %s" % (tag, seal.describe()))
def set_command(python: str, *argv: str) -> list:
"""`python scripts/ci_published_set.py <argv>`, run BY the set's python: stdlib and its own invisible_core."""
return [python, str(SET_SCRIPT)] + list(argv)
def default_tag() -> str:
"""The tag of the engine the control side runs: the one the seal of the published set's core names; without a set (a pull request, whose engine IS the published one and
runs under the core the wrapper pins) the seal of the core of this process."""
python = os.environ.get(PUBLISHED_PYTHON_ENV)
if python and Path(python).is_file():
done = subprocess.run(set_command(python, "tag"), capture_output=True, text=True, env=published_set.clean_env(), timeout=120)
if done.returncode != 0:
raise RuntimeError("the published set's core names no seal tag: %s" % (done.stderr or done.stdout)[-600:])
return done.stdout.strip().splitlines()[-1]
from invisible_core.seal import active_seal
return active_seal().tag
def fetch_published(tag: str | None, work: Path) -> tuple:
"""(binary, None, python) of the published set: the engine its own core fetches under its own seal, and the python that is its venv's. `tag`, when given, is held
to the seal of the set (a label that names another engine than the one the set carries is a wrong control, said here)."""
python = published_python()
done = subprocess.run(set_command(python, "fetch", "--work", str(work)), capture_output=True, text=True, env=published_set.clean_env(), timeout=DUMP_TIMEOUT_S)
if done.returncode != 0:
raise RuntimeError("the published set could not fetch its engine (exit %s): %s" % (done.returncode, (done.stderr or done.stdout)[-800:]))
fetched = json.loads(done.stdout.strip().splitlines()[-1])
if tag and fetched["tag"] != tag:
raise RuntimeError("the control is labelled %s but the published set carries %s" % (tag, fetched["tag"]))
print("published engine %s: %s (core and wrapper of the published set, %s)" % (fetched["tag"], fetched["describe"], python))
sys.stdout.flush()
# the engine store of this fetch only: the dumps that follow run under the environment they were given
before = os.environ.get(download.ENGINE_DIR_ENV)
os.environ[download.ENGINE_DIR_ENV] = str(work / "engines")
try:
binary = download.ensure_binary(seal=seal)
finally:
if before is None:
os.environ.pop(download.ENGINE_DIR_ENV, None)
else:
os.environ[download.ENGINE_DIR_ENV] = before
return str(binary), seal_path
return fetched["binary"], None, python
def process_env(seal, python: str | None = None) -> dict:
"""The environment of a process that runs ONE engine: no autofix, no browser logging, and the seal of that engine. With `python` (the published set's venv) the process is the
set's: nothing of the candidate's job that could make it import another core or run another seal reaches it, and the core's pin check stays ON (a set whose wrapper and
core do not agree is refused, as it is on a user's machine). Without it (the candidate, or a pull request's published engine) it is as it always was."""
if python:
env = published_set.clean_env({"INVISIBLE_CORE_AUTOFIX": "off"})
else:
env = dict(os.environ, INVISIBLE_CORE_AUTOFIX="off", INVISIBLE_CORE_PIN="allow")
if seal: # None: the engine runs under the seal of the core it is launched with (the published set's, a pull request's published engine)
env["INVISIBLE_SEAL_FILE"] = str(seal)
for name in ("MOZ_LOG", "MOZ_LOG_FILE"): # the e2e legs log the engine; a run is as the host gate's
env.pop(name, None)
return env
def split_published(published: tuple) -> tuple:
"""(binary, seal, python or None) of a `published` tuple: two items (a binary given, run in this process's environment) or three (the published set)."""
return (published[0], published[1], published[2] if len(published) > 2 else None)
def own_cache_env(env: dict, folder: str, platform: str | None = None) -> dict:
@@ -381,27 +508,44 @@ def own_cache_env(env: dict, folder: str, platform: str | None = None) -> dict:
return out
def dump_with_exits(name: str, exe: str, seal_file, leg: str, visits, target: Path, out: Path) -> tuple:
def visits_complete(rc, target: Path, expected) -> tuple:
"""`(True, [])` when the dump ended with 0 and every visit of `expected` ([(dpr, seed)]) has its result in `target` and none of them lost its tab; else `(False, [what is missing])`.
This is where a run learns that its measurements are all there: the A/A's verdict on a known Mozilla defect depends on it (a crash that cost a measurement stays red)."""
missing = [] if rc == 0 else ["the dump process ended with %s" % (rc,)]
try:
got = read_visits(target) if target.is_dir() else {}
except (OSError, ValueError, KeyError, TypeError) as exc:
got = {}
missing.append("the dumps of %s cannot be read (%s: %s)" % (target.name, type(exc).__name__, exc))
missing += ["no dump of %s" % visit_name(*key) for key in expected if key not in got]
for key in expected:
if key in got and tab_crashes(comparable(got[key])):
missing.append("the tab of %s died: its leaves are not all there" % visit_name(*key))
return not missing, missing
def dump_with_exits(name: str, exe: str, seal_file, leg: str, visits, target: Path, out: Path, python: str | None = None, notes: list | None = None, control: bool = False) -> tuple:
"""The dump of one engine run as `run_dump` makes it, with the folder where its probe writes how each browser ended (`<out>/crash/<name>`, named to the dump process by
AB_CRASH_DIR): `(rc or "timeout", the red lines of the launches that did not end with 0, or that nobody saw)`. A dump process whose probe wrote nothing is red: an oracle
that does not see how its browsers end does not see them."""
that does not see how its browsers end does not see them.
`control` is the A/A's: a core a browser left while its parent ended with 0 is then judged against the known Mozilla defects (ci/mozilla-defects.json), with the run's measurements
complete only when every visit has its result (`visits_complete`); a crash that matches is a line of `notes` and not a red line. Any other dump judges no core: every core is red."""
crash_dir = out / "crash" / name
try:
with crash.environment(**{crash.CRASH_DIR_ENV: crash_dir}):
rc = run_dump(exe, Path(seal_file) if seal_file else None, leg, target, visits)
rc = run_dump(exe, Path(seal_file) if seal_file else None, leg, target, visits, **({"python": python} if python else {}))
except subprocess.TimeoutExpired:
rc = "timeout"
return rc, crash.exits_of_run(crash_dir, name, windows=leg.startswith("win"), needed=(rc == 0))
complete, missing = visits_complete(rc, target, visits) if control else (None, [])
return rc, crash.exits_of_run(crash_dir, name, windows=leg.startswith("win"), needed=(rc == 0), notes=notes, measurements_complete=complete, missing=missing, binary=exe)
def run_dump(binary: str, seal: Path | None, leg: str, out: Path, visits: list | None = None) -> int:
"""The host gate's dump of `visits` ([(dpr, seed)], each seed at its own DPR) as a subprocess; None is the host gate's own grid."""
env = dict(os.environ, INVISIBLE_CORE_AUTOFIX="off", INVISIBLE_CORE_PIN="allow")
if seal is not None: # None: the engine runs under the seal of the core it is launched with (a pull request's published engine)
env["INVISIBLE_SEAL_FILE"] = str(seal)
for name in ("MOZ_LOG", "MOZ_LOG_FILE"): # the e2e legs log the engine; a dump runs as the host gate's does
env.pop(name, None)
cmd = [sys.executable, str(Path(gate.__file__)), "dump", binary, "--leg", leg, "--out", str(out)]
def run_dump(binary: str, seal: Path | None, leg: str, out: Path, visits: list | None = None, python: str | None = None) -> int:
"""The host gate's dump of `visits` ([(dpr, seed)], each seed at its own DPR) as a subprocess; None is the host gate's own grid. `python` is the published set's: the
dump of the control side runs in the venv that holds the published core and wrapper, never in the candidate's."""
env = process_env(seal, python)
cmd = [python or sys.executable, str(Path(gate.__file__)), "dump", binary, "--leg", leg, "--out", str(out)]
if visits is not None:
if relaunch_visits(visits):
cmd += ["--relaunch-seed", str(RELAUNCH_SEED)]
@@ -419,13 +563,13 @@ def run(candidate: str, candidate_seal: Path, leg: str, out: Path, engine_tag: s
started = time.time()
problems, dumps = [], {}
try:
binary, seal = published or fetch_published(engine_tag, work)
for name, exe, seal_file in ((engine_tag, binary, seal), (CANDIDATE, candidate, candidate_seal)):
binary, seal, python = split_published(published or fetch_published(engine_tag, work))
for name, exe, seal_file, side_python in ((engine_tag, binary, seal, python), (CANDIDATE, candidate, candidate_seal, None)):
target = work / name
print("=== dump with %s: %s (seal %s), seeds %s"
% (name, exe, seal_file, " ".join("%d@%s" % (seed, dpr) for dpr, seed in visits)))
sys.stdout.flush()
rc, exits = dump_with_exits(name, exe, seal_file, leg, visits, target, out)
rc, exits = dump_with_exits(name, exe, seal_file, leg, visits, target, out, side_python)
if rc != 0:
problems.append("the dump with %s ended with %s" % (name, rc))
problems += exits
@@ -441,7 +585,7 @@ def run(candidate: str, candidate_seal: Path, leg: str, out: Path, engine_tag: s
finally:
shutil.rmtree(work, ignore_errors=True)
noise = gate.load_exceptions().get("noise", [])
report = judge(dumps[engine_tag], dumps[CANDIDATE], noise, problems, expected=tuple(visits))
report = judge(dumps[engine_tag], dumps[CANDIDATE], noise, problems, expected=tuple(visits), declared=load_expected(), os_name=os_of_leg(leg))
report.update(format=FORMAT, engine=engine_tag, leg=leg, seconds=round(time.time() - started),
visits=["%d@%s" % (seed, dpr) for dpr, seed in visits])
write_json(out / "diff.json", report)
@@ -454,13 +598,14 @@ def again_name(engine_tag: str) -> str:
return dump_name(engine_tag)[:-len(".json")] + "-again.json"
def _dump_visits(name: str, exe: str, seal_file, leg: str, visits: list, work: Path, out: Path, file_name: str) -> tuple:
"""One engine's dump of `visits`: ({(dpr, seed): items}, problems); the packed dump is written to out/file_name."""
def _dump_visits(name: str, exe: str, seal_file, leg: str, visits: list, work: Path, out: Path, file_name: str, python: str | None = None,
notes: list | None = None, control: bool = False) -> tuple:
"""One engine's dump of `visits`: ({(dpr, seed): items}, problems); the packed dump is written to out/file_name. `control` (the A/A's dumps) and `notes` are `dump_with_exits`'."""
target = work / name
print("=== dump with %s: %s (seal %s), seeds %s"
% (name, exe, seal_file or "of the core", " ".join("%d@%s" % (seed, dpr) for dpr, seed in visits)))
sys.stdout.flush()
rc, exits = dump_with_exits(name, exe, seal_file, leg, visits, target, out)
rc, exits = dump_with_exits(name, exe, seal_file, leg, visits, target, out, python, notes, control)
problems = ([] if rc == 0 else ["the dump with %s ended with %s" % (name, rc)]) + exits
dumped = read_visits(target) if target.is_dir() else {}
write_json(out / file_name, pack(name, dumped))
@@ -472,7 +617,8 @@ def run_ab(leg: str, out: Path, engine_tag: str, published: tuple | None = None,
"""The A/A (the published engine twice), then, with a candidate, the A/B against the first dump. 0 green, 1 a finding,
2 a broken control (the A/A differs, or a dump of it did not run: the A/B is not run) .
`published` is (binary, seal or None); without it the engine is fetched the way the core fetches one."""
`published` is (binary, seal or None) of a binary the caller gave, run in this process's environment, or (binary, None, python) of the published set; without it the
set the job made (INVPW_PUBLISHED_PYTHON) fetches its own engine."""
visits = select_visits() if visits is None else visits
expected = tuple(visits)
out.mkdir(parents=True, exist_ok=True)
@@ -480,20 +626,24 @@ def run_ab(leg: str, out: Path, engine_tag: str, published: tuple | None = None,
started = time.time()
noise = gate.load_exceptions().get("noise", [])
asked = ["%d@%s" % (seed, dpr) for dpr, seed in visits]
notes: list = [] # the cores of the A/A that the list of known Mozilla defects names: said, not red
try:
try:
binary, seal = published or fetch_published(engine_tag, work)
first, p1 = _dump_visits(engine_tag, binary, seal, leg, visits, work, out, dump_name(engine_tag))
again, p2 = _dump_visits(engine_tag + "-again", binary, seal, leg, visits, work, out, again_name(engine_tag))
binary, seal, python = split_published(published or fetch_published(engine_tag, work))
first, p1 = _dump_visits(engine_tag, binary, seal, leg, visits, work, out, dump_name(engine_tag), notes=notes, control=True, **({"python": python} if python else {}))
again, p2 = _dump_visits(engine_tag + "-again", binary, seal, leg, visits, work, out, again_name(engine_tag), notes=notes, control=True,
**({"python": python} if python else {}))
problems = p1 + p2
except SystemExit:
raise
except Exception as e: # noqa: BLE001 - a run that could not get its engine is red and says why
first, again, problems = {}, {}, ["%s: %s" % (type(e).__name__, str(e)[:500])]
control = judge(first, again, noise, problems, expected=expected)
control.update(format=FORMAT, engine=engine_tag, leg=leg, control=True, seconds=round(time.time() - started), visits=asked)
control.update(format=FORMAT, engine=engine_tag, leg=leg, control=True, seconds=round(time.time() - started), visits=asked, known_defects=notes)
write_json(out / "diff-a-a.json", control)
print_report(control, engine_tag, engine_tag + "-again", "AB ORACLE A/A")
for note in notes:
print("NOTE " + note)
if control["verdict"] != "green":
print("BROKEN CONTROL: the published engine differs from itself (or did not run twice), so what is compared is not stable: "
"the A/B is not run, and the candidate is not judged")
@@ -501,7 +651,7 @@ def run_ab(leg: str, out: Path, engine_tag: str, published: tuple | None = None,
if candidate is None:
return 0
cand, pc = _dump_visits(CANDIDATE, candidate, candidate_seal, leg, visits, work, out, "dump-%s.json" % CANDIDATE)
report = judge(first, cand, noise, pc, expected=expected)
report = judge(first, cand, noise, pc, expected=expected, declared=load_expected(), os_name=os_of_leg(leg))
report.update(format=FORMAT, engine=engine_tag, leg=leg, seconds=round(time.time() - started), visits=asked)
write_json(out / "diff.json", report)
print_report(report, engine_tag)
@@ -521,8 +671,8 @@ def run_clean(leg: str, out: Path, engine_tag: str, visits: list, published: tup
out.mkdir(parents=True, exist_ok=True)
work = Path(tempfile.mkdtemp(prefix="ab-oracle-clean-"))
try:
binary, seal = published or fetch_published(engine_tag, work)
_, problems = _dump_visits(engine_tag + "-clean", binary, seal, leg, visits, work, out, clean_name(engine_tag))
binary, seal, python = split_published(published or fetch_published(engine_tag, work))
_, problems = _dump_visits(engine_tag + "-clean", binary, seal, leg, visits, work, out, clean_name(engine_tag), **({"python": python} if python else {}))
except SystemExit:
raise
except Exception as e: # noqa: BLE001 - said, not raised: this is a by-product
@@ -534,7 +684,8 @@ def run_clean(leg: str, out: Path, engine_tag: str, visits: list, published: tup
return 1 if problems else 0
def recompare(directory: Path, engine_tag: str, visits: list | None = None, a_a: bool = False) -> int:
def recompare(directory: Path, engine_tag: str, visits: list | None = None, a_a: bool = False, leg: str | None = None) -> int:
"""`leg` (default: the os this runs on) says which rows of the declared differences apply to the A/B; the A/A takes none."""
visits = select_visits() if visits is None else visits
published = unpack(json.loads((directory / dump_name(engine_tag)).read_text(encoding="utf-8")))
if a_a:
@@ -545,7 +696,8 @@ def recompare(directory: Path, engine_tag: str, visits: list | None = None, a_a:
print_report(report, engine_tag, engine_tag + "-again", "AB ORACLE A/A")
return 0 if report["verdict"] == "green" else 2
candidate = unpack(json.loads((directory / ("dump-%s.json" % CANDIDATE)).read_text(encoding="utf-8")))
report = judge(published, candidate, gate.load_exceptions().get("noise", []), expected=tuple(visits))
leg = leg or ("win-x86_64" if sys.platform == "win32" else "linux-x86_64")
report = judge(published, candidate, gate.load_exceptions().get("noise", []), expected=tuple(visits), declared=load_expected(), os_name=os_of_leg(leg))
report.update(format=FORMAT, engine=engine_tag, visits=["%d@%s" % (seed, dpr) for dpr, seed in visits])
write_json(directory / "diff.json", report)
print_report(report, engine_tag)
@@ -568,7 +720,7 @@ def main(argv=None) -> int:
help="the candidate's seal (default: INVISIBLE_SEAL_FILE)")
r.add_argument("--leg", required=True)
r.add_argument("--out", type=Path, required=True)
r.add_argument("--engine-tag", default=ENGINE_TAG)
r.add_argument("--engine-tag", default=None, help="the label of the control side (default: the tag the published set's seal names)")
r.add_argument("--seed-set", choices=SEED_SETS, default=SEED_SET,
help="the persona seeds to visit (ci/persona-seeds.json), each at its own DPR")
r.add_argument("--shard", help="i/n: every n-th seed of the set from the i-th (the final set over n jobs)")
@@ -580,17 +732,18 @@ def main(argv=None) -> int:
k = sub.add_parser("clean", help="the published engine's dump on this (clean) machine, for the poisoned run's by-product")
k.add_argument("--leg", required=True)
k.add_argument("--out", type=Path, required=True)
k.add_argument("--engine-tag", default=ENGINE_TAG)
k.add_argument("--engine-tag", default=None, help="the label of the control side (default: the tag the published set's seal names)")
k.add_argument("--seed-set", choices=SEED_SETS, default=SEED_SET)
k.add_argument("--shard")
k.add_argument("--limit", type=int)
c = sub.add_parser("compare")
c.add_argument("directory", type=Path)
c.add_argument("--engine-tag", default=ENGINE_TAG)
c.add_argument("--engine-tag", default=None, help="the label of the control side (default: the tag the published set's seal names)")
c.add_argument("--seed-set", choices=SEED_SETS, default=SEED_SET)
c.add_argument("--shard")
c.add_argument("--limit", type=int)
c.add_argument("--a-a", action="store_true", help="compare the two dumps of the published engine (the control)")
c.add_argument("--leg", help="the leg the dumps are of, which says the os of the declared differences (default: this machine's)")
args = ap.parse_args(argv)
if args.cmd == "touched":
import ci_ab_pr_seeds as pr
@@ -598,10 +751,11 @@ def main(argv=None) -> int:
sys.stdout.reconfigure(newline="\n") # the line goes to $GITHUB_OUTPUT: a carriage return would be part of the value
print("touched=%s" % ("true" if touched(pr.changed_files(args.base)) else "false"))
return 0
args.engine_tag = args.engine_tag or default_tag()
if args.cmd == "clean":
return run_clean(args.leg, args.out, args.engine_tag, select_visits(args.seed_set, args.shard, limit=args.limit))
if args.cmd == "compare":
return recompare(args.directory, args.engine_tag, select_visits(args.seed_set, args.shard, limit=args.limit), args.a_a)
return recompare(args.directory, args.engine_tag, select_visits(args.seed_set, args.shard, limit=args.limit), args.a_a, args.leg)
if args.published_seal and not args.published_binary:
ap.error("--published-seal goes with --published-binary")
if args.candidate:
+2 -2
View File
@@ -28,10 +28,10 @@ ROOT = Path(__file__).resolve().parent.parent
SHARED = ("scripts/ci_ab_oracle.py", "scripts/ci_crash_evidence.py", "scripts/ci_ab_pr_seeds.py", "scripts/persona_cover.py", "ci/persona-seeds.json")
#: variable -> (oracle, seeds by default on a pull request that does not touch it, the files of the oracle: exact paths or fnmatch patterns).
ORACLES = {
"AB_ORACLE_PR_SEEDS": ("page", 2, SHARED + ("scripts/ci_host_gate.py", "scripts/ci_poison_host.py", "scripts/host_gate/*", "tests/test_ab_oracle*", "tests/test_ci_host_gate*",
"AB_ORACLE_PR_SEEDS": ("page", 2, SHARED + ("scripts/ci_host_gate.py", "scripts/ci_poison_host.py", "scripts/host_gate/*", "ci/ab-oracle-expected.json", "tests/test_ab_oracle*", "tests/test_ci_host_gate*",
"tests/test_ci_poison_host.py")),
"AB_NETWORK_PR_SEEDS": ("network", 1, SHARED + ("scripts/ci_ab_network.py", "ci/ab-network-volatile.json", "tests/test_ab_network*")),
"AB_HOST_PR_SEEDS": ("host", 2, SHARED + ("scripts/ci_ab_host.py", "tests/_strace_stand_in.py", "ci/ab-host-expected.json", "tests/test_ab_host*")),
"AB_HOST_PR_SEEDS": ("host", 2, SHARED + ("scripts/ci_ab_host.py", "tests/_strace_stand_in.py", "tests/_ab_host_declared.py", "ci/ab-host-expected.json", "tests/test_ab_host*")),
}
FALLBACK_SEEDS = 5
+505 -9
View File
@@ -12,7 +12,7 @@ evidence: run 45030727459 had a firefox-68 parent die with -11 (SIGSEGV) in a no
minidump list. Whatever a collector does not find is SAID (`said`), never left silent.
* `LaunchProbe`: the observer the page and network oracles use. They launch through the wrapper, which keeps the browser's process inside the core's `Connection`;
the probe wraps `Connection.__init__` and `Connection.close` (it reads the code after the close the launch already makes, and a watcher thread of the same
crash folders the host oracle's bare launch reads), so nothing about the launch changes: same environment, same prefs, same durations, same launch count.
crash folders that the host oracle's launches read too), so nothing about the launch changes: same environment, same prefs, same durations, same launch count.
Three more things the probe keeps, in EVERY launch and not only in a bad one:
* what the browser wrote (`stderr/<launch>.txt` in the crash folder): the core reads the browser's stdout and stderr (one pipe) through `ProcessOutput`, one reader for the whole life of
@@ -117,9 +117,18 @@ def exit_problem(code, windows: bool | None = None, **who) -> str | None:
return "the parent process exited with code %s: %s" % (describe_exit(code, windows), where or "launch not named")
def exit_problems(launches, run: str, windows: bool | None = None, side: str | None = None) -> list:
"""The red lines of the launches a probe recorded (`LaunchProbe.launches`, or the `launches` of an exits file) for the run `run`."""
def exit_problems(launches, run: str, windows: bool | None = None, side: str | None = None, notes: list | None = None,
measurements_complete: bool | None = None, missing=(), binary: str | None = None, judge=None) -> list:
"""The red lines of the launches a probe recorded (`LaunchProbe.launches`, or the `launches` of an exits file) for the run `run`.
A launch whose parent ended with 0 and that left cores is judged against the known Mozilla defects when the caller says whether its measurements are complete
(`measurements_complete` True or False; `missing` names what is not there): every core is a crash record (`crash_record`), and the list's matcher (`defects_judge`,
the engine of `binary` for the version) rules on all of them at once. A launch whose crashes all match a defect and whose measurements are complete is not red: a
line `known Mozilla defect D<n> (<bug or not filed>): <why>: <who>` goes into `notes`. Any other result is the red line below plus the lines of the verdict. A caller that
does not know (`measurements_complete` None) judges nothing: its cores are red as ever. A launch whose parent did not end with 0, a minidump and a core with no record are
never excused."""
out = []
judges: list = []
for launch in launches or []:
who = {"run": run, "side": side or side_of(run)}
label = launch.get("label") or {}
@@ -132,12 +141,25 @@ def exit_problems(launches, run: str, windows: bool | None = None, side: str | N
out.append(line)
elif launch.get("cores") or launch.get("dmp"):
# the parent ended with 0 and a process of the browser left a core or a minidump: a content process died (the parent does not say so)
where = ", ".join("%s %s" % kv for kv in who.items() if kv[1] not in (None, ""))
line = "a process of the browser crashed while the parent ended with 0: %s left %s" % (
", ".join("%s %s" % kv for kv in who.items() if kv[1] not in (None, "")),
where,
" and ".join(x for x in ("core " + ", ".join(launch["cores"]) if launch.get("cores") else "", "minidump " + ", ".join(launch["dmp"]) if launch.get("dmp") else "") if x))
if launch.get("evidence"):
line += " (evidence: %s)" % launch["evidence"]
out.append(line)
if measurements_complete is None or not launch.get("cores") or launch.get("dmp"):
out.append(line)
continue
if not judges:
judges.append(judge if judge is not None else defects_judge(binary))
excused, lines = _judge_launch(judges[0], launch, measurements_complete, missing)
if excused:
for found in lines:
if notes is not None:
notes.append("known Mozilla defect %s: %s" % (found[len("MATCHED "):], where))
else:
out.append(line)
out.extend(lines)
return out
@@ -155,7 +177,270 @@ def parent_exit_problems(lifecycle, root_code, **who) -> list:
# -
# What a crash leaves: the folders, the files, the cores (the bare launch's collectors of scripts/ci_ab_host.py live here and are reused by every launch).
# Known Mozilla defects: a core of a crash that the list names is reported by its D<n>, never silently.
#
# The crash-record parser of this section (process_type, function_name, crashing_thread, reason_of, thread_name, phase_of, crash_record) moves to
# the core in S1, next to the matcher, and is fetched by sha like it; the series' gtest_run then uses the same one. Until then this is the wrapper's copy.
#: The matcher is the core's main `scripts/ci_mozilla_defects.py`: the judge is never the branch being judged. A caller that has it on disk names its path here; otherwise it is fetched once
#: per process from the core's main (the sha is resolved with `git ls-remote` and printed).
MATCHER_ENV = "MOZILLA_DEFECTS_CHECKER"
CORE_REPO = "oss-invisible/core"
MATCHER_PATH_IN_CORE = "scripts/ci_mozilla_defects.py"
MATCHER_API = ("load", "problems", "verdict")
#: The wrapper's own list of known Mozilla defects, next to the scripts that run: the list of the wrapper under test. It is read from the wrapper's
#: main once main holds it (after the engine release that carries the first row), so that a branch cannot excuse its own crash.
DEFECTS_LIST = Path(__file__).resolve().parent.parent / "ci" / "mozilla-defects.json"
FETCH_TIMEOUT_S = 60
#: The process types a Firefox child is started as (`-contentproc ... <type>`).
CHILD_TYPES = ("tab", "gpu", "rdd", "socket", "utility", "forkserver", "vr", "inference", "gmplugin")
#: The kernel keeps 80 bytes of a process's arguments with the NUL: a `Core was generated by` line of 79 visible characters or more is cut.
CUT_LINE = 79
#: The shortest prefix of a flag that names it: `back` is the start of `backgroundtask`, the one Firefox flag that begins with it.
FLAG_PREFIX_MIN = 4
_HEADER = re.compile(r"Core was generated by `([^']*)'")
_THREAD_HEADER = re.compile(r"^Thread (\d+) \((.*)\):\s*$")
_CURRENT_THREAD = re.compile(r"\[Current thread is (\d+) ")
_FRAME = re.compile(r"^#\d+\s+(.*)$")
_REASON_LINE = re.compile(r'^0x[0-9a-fA-F]+(?: <[^>]*>)?:\s+"(.*)"\s*$')
_CORE_NAME = re.compile(r"^core\.(.+)\.(\d+)\.(\d+)$")
_SHA = re.compile(r"^[0-9a-f]{40}$")
_FETCHED: dict = {}
def process_type(text: str) -> str | None:
"""The process type of the crashed process, from gdb's `Core was generated by` line; None when the line cannot say.
`-backgroundtask` (one or two dashes) gives `backgroundtask`. `-contentproc` gives its last token when that is a whole child type (`tab`, `gpu`, ...) and the line is not cut.
A line with neither flag and not cut is the `parent`. A cut line (the kernel keeps 80 bytes of the arguments with the NUL, so 79 visible characters or more) whose last token,
without its leading dashes, is a prefix of `backgroundtask` of at least 4 characters gives `backgroundtask` (no other Firefox flag begins with `back`); anything else cut gives None."""
found = _HEADER.search(text or "")
if not found:
return None
line = found.group(1)
tokens = line.split()[1:]
cut = len(line) >= CUT_LINE
if any(t in ("-backgroundtask", "--backgroundtask") for t in tokens):
return "backgroundtask"
if any(t in ("-contentproc", "--contentproc") for t in tokens):
return tokens[-1] if not cut and tokens[-1] in CHILD_TYPES else None
if not cut:
return "parent"
last = tokens[-1].lstrip("-") if tokens else ""
return "backgroundtask" if len(last) >= FLAG_PREFIX_MIN and "backgroundtask".startswith(last) else None
def function_name(frame: str) -> str:
"""The function of a gdb frame line (after `#N `): `0x.. in ns::f<T> (args) at file:7` is `ns::f<T>`; `?? () from lib` is `??`; `<signal handler called>` is itself."""
text = re.sub(r"^0x[0-9a-fA-F]+ in ", "", frame.strip())
depth = 0
for i, ch in enumerate(text):
depth += ch == "<"
depth -= ch == ">" and depth > 0
if ch == " " and depth == 0 and text[i + 1:i + 2] == "(":
return text[:i]
cut = text.find(" (")
text = text[:cut] if cut > 0 else text
return text.split(" from ")[0].split(" at ")[0].strip()
def crashing_thread(text: str) -> tuple:
"""(the name gdb quotes in the header of the crashing thread or None, the function names of its frames top first or None): the thread `[Current thread is N` names, found in the
`thread apply all bt` blocks."""
current = _CURRENT_THREAD.search(text or "")
if not current:
return None, None
name, frames, inside = None, [], False
for line in text.splitlines():
head = _THREAD_HEADER.match(line)
if head:
inside = head.group(1) == current.group(1)
if inside:
quoted = re.search(r'"([^"]+)"\s*$', head.group(2))
name, frames = (quoted.group(1) if quoted else None), []
continue
frame = _FRAME.match(line) if inside else None
if frame:
frames.append(function_name(frame.group(1)))
return name, frames or None
def reason_of(text: str) -> str | None:
"""The MOZ_CRASH text: the quoted string of the line `x/s *(char**)&gMozCrashReason` prints (`0x...:<tab>"MOZ_CRASH(...)"`), else None."""
for line in (text or "").splitlines():
found = _REASON_LINE.match(line)
if found and found.group(1):
return found.group(1)
return None
def core_name_parts(name: str) -> tuple:
"""(%e, %p, %t) of a core named by the job's `core.%e.%p.%t`: the crashing thread's name, the pid and the time as text; (None, None, None) for any other name."""
found = _CORE_NAME.match(name or "")
return found.groups() if found else (None, None, None)
def thread_name(text: str, core_name: str) -> str | None:
"""The name of the crashing thread without Mozilla's instance number: the name gdb quotes in the thread's header when it does, else %e of the core's name; then a trailing run of
decimal digits is dropped. Mozilla names a thread of a process with its instance number appended (the broker thread `FSBroker` is `FSBroker14298`), so the name a row holds is
the name without it. None when no name is known or nothing is left."""
name = crashing_thread(text)[0] or core_name_parts(core_name)[0]
name = re.sub(r"\d+$", "", name or "")
return name or None
def phase_of(core_name: str, mtime: float | None, closing_at: float | None) -> str | None:
"""`exit` when the core was written at or after the moment the launch began to close the browser, `run` when before; None when either moment cannot be known.
The core's time is %t of its name (whole seconds: a core of the second the close began is an exit), else the file's mtime."""
if closing_at is None:
return None
stamp = core_name_parts(core_name)[2]
if stamp is not None:
return "exit" if int(stamp) + 1 > closing_at else "run"
if mtime is None:
return None
return "exit" if mtime >= closing_at else "run"
def crash_record(text: str, core_name: str, mtime: float | None = None, closing_at: float | None = None) -> dict:
"""The record the matcher takes for one core: {process, phase, thread, frames, reason}; a field the evidence cannot give is left out, so a row that names it cannot match.
`text` is gdb's text of the core (`gdb_report`), `core_name` the core's file name, `mtime` its modification time, `closing_at` the moment the launch began to close."""
frames = crashing_thread(text)[1]
out = {"process": process_type(text), "phase": phase_of(core_name, mtime, closing_at), "thread": thread_name(text, core_name), "frames": frames, "reason": reason_of(text)}
return {key: value for key, value in out.items() if value is not None}
class DefectsUnavailable(Exception):
"""The matcher of known Mozilla defects cannot be had: every crash stays red and the message says why."""
def _download_matcher(run, urlopen, say) -> Path:
"""The matcher of the core's main, written to a temporary file: main's sha is resolved with `git ls-remote`, then that exact file is downloaded."""
try:
done = run(["git", "ls-remote", "https://github.com/%s" % CORE_REPO, "refs/heads/main"], capture_output=True, text=True, timeout=FETCH_TIMEOUT_S, check=False)
except (OSError, subprocess.SubprocessError) as exc:
raise DefectsUnavailable("main of %s cannot be resolved (%s: %s)" % (CORE_REPO, type(exc).__name__, exc)) from exc
words = (done.stdout or "").split()
if done.returncode != 0 or not words or not _SHA.match(words[0]):
raise DefectsUnavailable("main of %s cannot be resolved (git ls-remote exited %s: %s)" % (CORE_REPO, done.returncode, ((done.stdout or "") + (done.stderr or "")).strip()[:200]))
sha = words[0]
url = "https://raw.githubusercontent.com/%s/%s/%s" % (CORE_REPO, sha, MATCHER_PATH_IN_CORE)
if urlopen is None:
import urllib.request
urlopen = urllib.request.urlopen
try:
with urlopen(url, timeout=FETCH_TIMEOUT_S) as response:
data = response.read()
path = Path(tempfile.mkdtemp(prefix="mozilla-defects-checker-")) / Path(MATCHER_PATH_IN_CORE).name
path.write_bytes(data)
except Exception as exc: # noqa: BLE001 - whatever the download does, the judge is not available
raise DefectsUnavailable("%s cannot be downloaded (%s: %s)" % (url, type(exc).__name__, exc)) from exc
say("known Mozilla defects: the matcher is %s of %s main, sha %s" % (MATCHER_PATH_IN_CORE, CORE_REPO, sha))
return path
def matcher_path(environ=None, run=subprocess.run, urlopen=None, say=print) -> Path:
"""Where the matcher is: `$MOZILLA_DEFECTS_CHECKER` when set, else the core's main fetched once per process. DefectsUnavailable when it cannot be had."""
env = os.environ if environ is None else environ
if env.get(MATCHER_ENV):
return Path(env[MATCHER_ENV])
if "result" not in _FETCHED:
try:
_FETCHED["result"] = _download_matcher(run, urlopen, say)
except DefectsUnavailable as exc:
_FETCHED["result"] = exc
if isinstance(_FETCHED["result"], Exception):
raise _FETCHED["result"]
return _FETCHED["result"]
def load_matcher(path):
"""The matcher module imported by path; DefectsUnavailable when it is not a file, does not import or lacks `load`, `problems` or `verdict`."""
import importlib.util
if not Path(path).is_file():
raise DefectsUnavailable("the matcher %s does not exist" % path)
try:
spec = importlib.util.spec_from_file_location("ci_mozilla_defects_of_the_core", str(path))
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
except Exception as exc: # noqa: BLE001 - whatever the file does, the judge is not available
raise DefectsUnavailable("the matcher %s cannot be imported (%s: %s)" % (path, type(exc).__name__, exc)) from exc
lacking = [name for name in MATCHER_API if not callable(getattr(module, name, None))]
if lacking:
raise DefectsUnavailable("the matcher %s has no %s: it is not the matcher of known Mozilla defects" % (path, ", ".join(lacking)))
return module
def engine_version(binary) -> str:
"""The `Version=` of the `application.ini` beside the browser binary (159.0); DefectsUnavailable when there is none."""
if not binary:
raise DefectsUnavailable("the browser binary is not known, so the engine version is not known")
ini = Path(binary).parent / "application.ini"
try:
text = ini.read_text(encoding="utf-8", errors="replace")
except OSError as exc:
raise DefectsUnavailable("%s cannot be read (%s): the engine version is not known" % (ini, exc)) from exc
found = re.search(r"^Version=(\S+)\s*$", text, re.M)
if not found:
raise DefectsUnavailable("%s has no Version= line: the engine version is not known" % ini)
return found.group(1)
class DefectsJudge:
"""The matcher, the wrapper's list of known defects and the engine's version, ready to rule on the crashes of one launch; or, with `why`, the reason it is not available (then
every crash is red)."""
def __init__(self, module=None, rows=None, version: str = "", why: str = "") -> None:
self.module, self.rows, self.version, self.why = module, rows, version, why
def verdict(self, records: list, measurements_complete: bool) -> tuple:
"""(red, lines) as the matcher's `verdict` gives them; without a matcher, red and the reason."""
if self.module is None:
return True, ["known Mozilla defects: not judged, every crash stays red: %s" % self.why]
try:
red, lines = self.module.verdict(self.rows, self.version, records, measurements_complete)
except Exception as exc: # noqa: BLE001 - a crash that cannot be judged stays red
return True, ["known Mozilla defects: the matcher cannot rule (%s: %s): the crash stays red" % (type(exc).__name__, exc)]
return bool(red), [str(line) for line in lines]
def defects_judge(binary, environ=None, list_path=None, run=subprocess.run, urlopen=None, say=print) -> DefectsJudge:
"""The judge for the engine whose browser binary is `binary`. Closed: no matcher, a matcher without the API, a list that cannot be read or no engine version is a judge
that keeps every crash red and says why."""
try:
module = load_matcher(matcher_path(environ, run, urlopen, say))
path = Path(list_path) if list_path else DEFECTS_LIST
try:
rows = module.load(path)
except Exception as exc: # noqa: BLE001
raise DefectsUnavailable("the list of known defects %s cannot be read (%s)" % (path, exc)) from exc
version = engine_version(binary)
try:
module.problems([], version)
except Exception as exc: # noqa: BLE001
raise DefectsUnavailable("the matcher cannot use the engine version %s (%s)" % (version, exc)) from exc
except DefectsUnavailable as exc:
return DefectsJudge(why=str(exc))
return DefectsJudge(module, rows, version)
def _judge_launch(judge, launch: dict, measurements_complete: bool, missing=()) -> tuple:
"""(excused, lines) of one launch that left cores. The records are the probe's (`launch["crash_records"]`, one per core name); a core with no record is not judged and stays red."""
names = list(dict.fromkeys(launch.get("cores") or []))
by_core = {c.get("core"): c.get("record") for c in launch.get("crash_records") or [] if isinstance(c, dict)}
absent = [n for n in names if not isinstance(by_core.get(n), dict)]
if absent:
return False, ["known Mozilla defects: no crash record for core %s: the crash stays red" % ", ".join(absent)]
red, lines = judge.verdict([by_core[n] for n in names], bool(measurements_complete))
if not measurements_complete and missing:
lines = list(lines) + ["measurement missing: %s" % "; ".join(str(m) for m in missing)]
return (not red), lines
# -
# What a crash leaves: the folders, the files, the cores (the collectors that scripts/ci_ab_host.py and the probe's launches share live here).
def crash_report_dirs(profile_dir, windows: bool) -> list:
"""The folders a crash leaves its `.dmp` and `.extra` in: the profile's `minidumps` and the `Crash Reports/pending` of the user's application data."""
@@ -570,6 +855,7 @@ class LaunchProbe:
probe._began(conn)
def close(conn, *args, **kwargs):
probe._closing(conn)
try:
return original_close(conn, *args, **kwargs)
finally:
@@ -620,6 +906,16 @@ class LaunchProbe:
except Exception: # noqa: BLE001 - a probe never breaks a launch
pass
def _closing(self, conn) -> None:
"""The launch begins to close the browser (before the close it already makes runs): the moment is the line between a core of the run and a core of the exit."""
try:
with self._lock:
state = self._open.get(id(conn))
if state is not None:
state.setdefault("closing", self.clock())
except Exception: # noqa: BLE001 - a probe never breaks a launch
pass
def _core_folders(self) -> list:
if self.core_folders is not None:
return list(self.core_folders() if callable(self.core_folders) else self.core_folders)
@@ -644,6 +940,8 @@ class LaunchProbe:
# EVERY launch: what the browser wrote is saved, and the cores since it began (a content process can die and the parent still end with 0)
self._save_output(conn, entry)
entry["cores"], entry["dmp"] = [c.name for c in cores], dmp
if state.get("closing") is not None:
entry["closing_at"] = state["closing"]
if not cores:
entry["core_said"] = core_said(folders, kernel_core_pattern(), self.windows)
if entry["returncode"] != 0 or cores or dmp:
@@ -654,11 +952,29 @@ class LaunchProbe:
write_crash_files(crash, self.crash_dir / name)
entry["evidence"] = "%s/%s" % (self.crash_dir.name, name)
entry["said"] = crash["said"]
if cores:
entry["crash_records"] = self._crash_records(cores, crash, entry.get("closing_at"))
except Exception as e: # noqa: BLE001 - what could not be collected is said
entry["probe_error"] = "%s: %s" % (type(e).__name__, e)
with self._lock:
self.launches.append(entry)
@staticmethod
def _crash_records(cores, crash: dict, closing_at) -> list:
"""One record per core name (`crash_record`), from the text gdb gave of that core and the core's own name and time: what `exit_problems` judges."""
texts = (crash.get("cores") or {}).get("backtraces") or {}
records, done = [], set()
for core in cores:
if core.name in done:
continue
done.add(core.name)
try:
mtime = core.stat().st_mtime
except OSError:
mtime = None
records.append({"core": core.name, "record": crash_record(texts.get(core.name, ""), core.name, mtime, closing_at)})
return records
# -
# What the browsers wrote.
@@ -759,6 +1075,184 @@ def mark(**label) -> None:
PROBE.set_label(**label)
#: The file Glean's database writes on its first write, in the profile of a launch (the folder `db` is born when the database is opened, the file at the first write).
GLEAN_DB = Path("datareporting", "glean", "db", "data.safe.bin")
#: A safety net, not a measurement: the file is there at about +8 s in normal sessions, stock and ours (run 43649596941).
GLEAN_LIMIT_S = 60.0
class GleanNotReady(Exception):
"""Glean had not initialised (no database file in the profile) when the launch was to close."""
def wait_for_glean(profile: Path | None, limit_s: float = GLEAN_LIMIT_S, period: float = 0.25, sleep=time.sleep, now=time.monotonic) -> float:
"""The seconds waited until `GLEAN_DB` exists in `profile`, read again every `period` seconds; `GleanNotReady` when `limit_s` is over or the profile is not known.
Why: a session that closes before Glean has initialised normally makes Glean start inside the shutdown, where its `glean.init` thread can die with the panic "No database
found" and the parent exits with -11 (Mozilla's race, the same in the retail browser; the network A/A, Linux, run 45121964904). The oracles close only after this. It only
reads: nothing is written in the profile, and no preference of the browser changes."""
if profile is None:
raise GleanNotReady("Glean did not initialise in %g s: no %s in the profile of the launch: the profile of the launch is not known (the close would make it start inside the "
"shutdown, where it can crash: run 45121964904)" % (limit_s, GLEAN_DB.as_posix()))
target = Path(profile) / GLEAN_DB
start = now()
while not target.is_file():
waited = now() - start
if waited >= limit_s:
raise GleanNotReady("Glean did not initialise in %g s: no %s in the profile %s (the close would make it start inside the shutdown, where it can crash: run 45121964904)"
% (limit_s, GLEAN_DB.as_posix(), profile))
sleep(period)
return now() - start
#: Where a profile keeps what Glean and the data reporting policy write; its listing before the close is kept with the evidence of the launch (`save_datareporting`).
DATAREPORTING_DIR = "datareporting"
def datareporting_listing(profile) -> list:
"""The lines of the list of `<profile>/datareporting/`: `<path relative to it><TAB><size in bytes>` (a folder ends with `/` and has `-`), sorted. A line that starts with `# `
says what could not be read: the list never raises."""
if profile is None:
return ["# the profile of the launch is not known"]
root = Path(profile) / DATAREPORTING_DIR
if not root.is_dir():
return ["# %s is not a folder in the profile %s" % (DATAREPORTING_DIR, profile)]
rows, problems = [], []
for folder, names, files in os.walk(root, onerror=lambda e: problems.append("# cannot read %s: %s" % (getattr(e, "filename", "?"), e))):
base = Path(folder)
for name in names:
rows.append("%s/\t-" % (base / name).relative_to(root).as_posix())
for name in files:
path = base / name
try:
size = str(path.stat().st_size)
except OSError as exc:
size = "?"
problems.append("# cannot read the size of %s: %s" % (path.relative_to(root).as_posix(), exc))
rows.append("%s\t%s" % (path.relative_to(root).as_posix(), size))
return problems + sorted(rows)
def save_datareporting(profile) -> str | None:
"""Writes the list of `<profile>/datareporting/` of the launch the probe sees now, to `<crash dir>/datareporting/<NN>-<seed>-<launch>.tsv` (NN: the number of the launch, the
one of its file in `stderr/`), and returns the path as the evidence names it. None when no probe is installed or it has no folder. What it could not read is in the file; it
never raises. It is evidence for the next time a launch dies: it is not in the leaves that are compared."""
probe = PROBE
if probe is None or probe.crash_dir is None:
return None
try:
with probe._lock:
records = list(probe.records)
number = getattr(records[-1], "n", len(records)) if records else 0
name = "%02d-%s.tsv" % (number, _safe("-".join(str(v) for v in probe.label.values()) or "launch"))
folder = probe.crash_dir / DATAREPORTING_DIR
folder.mkdir(parents=True, exist_ok=True)
head = ["# launch %d: %s" % (number, ", ".join("%s %s" % kv for kv in probe.label.items()) or "not named"), "# path (relative to datareporting/)<TAB>size in bytes"]
(folder / name).write_text("\n".join(head + datareporting_listing(profile)) + "\n", encoding="utf-8", newline="\n")
return "%s/%s/%s" % (probe.crash_dir.name, DATAREPORTING_DIR, name)
except Exception: # noqa: BLE001 - the evidence never breaks a launch
return None
#: The line an oracle writes when it begins a launch (`launch_line`), and what reads it back (`last_launch`): the process that runs the oracle names, when the oracle does not end in
#: time, the launch that was alive.
LAUNCH_LINE = re.compile(r"^=== launch (?P<launch>\S+) seed (?P<seed>-?\d+) of (?P<label>.*?) began at (?P<at>\S+)\s*$", re.M)
def launch_line(seed, launch: str, label: str, at=None) -> str:
"""`=== launch <launch> seed <seed> of <label> began at <iso, UTC>`: what an oracle prints when `mark` names a launch."""
import datetime
at = at or datetime.datetime.now(datetime.timezone.utc)
return "=== launch %s seed %s of %s began at %s" % (launch, seed, label or "?", at.isoformat(timespec="seconds"))
def last_launch(text: str, now=None) -> dict | None:
"""The last launch line of `text` as {launch, seed, label, at, alive_s} (alive_s: seconds from `at` to `now`, None when `at` does not read), or None when there is none."""
import datetime
found = None
for found in LAUNCH_LINE.finditer(text or ""):
pass
if found is None:
return None
item = found.groupdict()
try:
began = datetime.datetime.fromisoformat(item["at"])
item["alive_s"] = ((now or datetime.datetime.now(datetime.timezone.utc)) - began).total_seconds()
except (ValueError, TypeError):
item["alive_s"] = None
return item
def kill_tree(pid: int) -> None:
"""Kills `pid` and everything that descends from it. With psutil the descendants are listed first (a parent that dies hides its children) and all are killed; without it
Windows has `taskkill /T /F` and Linux the process group (the child was started in its own session, `run_tree`)."""
try:
import psutil
except ImportError:
psutil = None
if psutil is not None:
try:
root = psutil.Process(pid)
victims = root.children(recursive=True) + [root]
except psutil.NoSuchProcess:
victims = []
for victim in victims:
with contextlib.suppress(psutil.Error):
victim.kill()
elif sys.platform == "win32":
subprocess.run(["taskkill", "/PID", str(pid), "/T", "/F"], capture_output=True, check=False)
if sys.platform != "win32":
import signal
with contextlib.suppress(OSError):
os.killpg(pid, signal.SIGKILL) # the group of the child, which is its own (start_new_session)
class TreeRun:
"""What `run_tree` saw: the code (None when the time ran out), the text of stdout and stderr, how long it ran and the launch line the oracle wrote last."""
def __init__(self, returncode, stdout: str, stderr: str, seconds: float, timed_out: bool) -> None:
self.returncode, self.stdout, self.stderr, self.seconds, self.timed_out = returncode, stdout, stderr, seconds, timed_out
self.launch = last_launch(stdout)
def timeout_message(self, who: str, limit_s: float) -> str:
"""The red of a run that did not end: the launch that was alive and for how long."""
if self.launch is None:
alive = "no launch had begun"
else:
alive = "the launch %s of seed %s (%s) was alive for %s s" % (self.launch["launch"], self.launch["seed"], self.launch["label"],
"%d" % self.launch["alive_s"] if self.launch["alive_s"] is not None else "?")
return "%s did not end within %d s: %s; its tree was killed" % (who, limit_s, alive)
def run_tree(command, out_dir, timeout_s: float, env=None, cwd=None, poll: float = 0.2) -> TreeRun:
"""Runs `command` with its output in FILES under `out_dir` (never a pipe), and at `timeout_s` kills the whole tree.
Why not `subprocess.run(capture_output=True, timeout=...)`: at the timeout it kills the child alone. The firefox that the child launched holds the write end of the pipe,
`communicate()` does not return until it exits, and the test went on to a pytest timeout 120 s later (run 45121964904, Windows, job.log 546-557). With files nothing waits
for a grandchild, and `kill_tree` ends them all."""
out_dir = Path(out_dir)
out_dir.mkdir(parents=True, exist_ok=True)
out_path, err_path = out_dir / "run-tree.stdout", out_dir / "run-tree.stderr"
start = time.monotonic()
with open(out_path, "wb") as out, open(err_path, "wb") as err:
extra = {"start_new_session": True} if sys.platform != "win32" else {}
child = subprocess.Popen(list(command), stdout=out, stderr=err, stdin=subprocess.DEVNULL, env=env, cwd=cwd, **extra)
timed_out = False
while child.poll() is None:
if time.monotonic() - start >= timeout_s:
timed_out = True
kill_tree(child.pid)
break
time.sleep(poll)
child.wait()
seconds = time.monotonic() - start
read = lambda path: path.read_bytes().decode("utf-8", "replace") # noqa: E731
return TreeRun(None if timed_out else child.returncode, read(out_path), read(err_path), seconds, timed_out)
def read_exits(path) -> dict | None:
"""The document a probe wrote, or None when there is none."""
try:
@@ -768,9 +1262,11 @@ def read_exits(path) -> dict | None:
return document if document.get("format") == FORMAT else None
def exits_of_run(crash_dir, run: str, windows: bool | None = None, needed: bool = True) -> list:
def exits_of_run(crash_dir, run: str, windows: bool | None = None, needed: bool = True, notes: list | None = None, measurements_complete: bool | None = None,
missing=(), binary: str | None = None) -> list:
"""The red lines of the launches a run process recorded in `crash_dir/exits.json`. No file, or no launch in it, is red when the run was to make some: an oracle
that did not see how its browsers ended did not see them."""
that did not see how its browsers ended did not see them. `notes`, `measurements_complete`, `missing` and `binary` are `exit_problems`': the cores of the launches are judged against
the known Mozilla defects only when the caller says whether the run's measurements are complete."""
if not crash_dir:
return []
document = read_exits(Path(crash_dir) / "exits.json")
@@ -778,7 +1274,7 @@ def exits_of_run(crash_dir, run: str, windows: bool | None = None, needed: bool
return ["the run %s left no record of how its browsers ended (%s/exits.json): the probe did not see them" % (run, Path(crash_dir).name)] if needed else []
if not document["launches"] and needed:
return ["the run %s recorded no launch in %s/exits.json: the probe did not see a browser" % (run, Path(crash_dir).name)]
problems = exit_problems(document["launches"], run, windows)
problems = exit_problems(document["launches"], run, windows, notes=notes, measurements_complete=measurements_complete, missing=missing, binary=binary)
if document.get("stderr_said"):
problems.append("the run %s could not save what its browsers wrote: %s" % (run, document["stderr_said"]))
for launch in document["launches"]:
+135
View File
@@ -0,0 +1,135 @@
#!/usr/bin/env python3
"""Writes ci/py-lock/playwright-browsers.json: the sha256 of every archive of Playwright's own Firefox that the engine series' gate installs (ci-03).
The rows of the gate that compare the engine with the stock Firefox install it from Playwright's CDN. A third-party download is checked by a hash pinned in a
repository, so the archives are pinned HERE, at the wrapper_ref the gate selects, for the Playwright of scripts/playwright_pin.txt: what
`python -m playwright install --dry-run firefox` lists on each platform (Firefox, FFmpeg, and winldd on Windows), each downloaded once and hashed.
python scripts/ci_playwright_browsers.py [--python python] [--out ci/py-lock/playwright-browsers.json]
The interpreter must have the pinned Playwright installed (the dry-run is what names the archives, so a different version names different ones). The output is
sorted by platform, entries in the order the dry-run lists them, LF, two-space indent, so the same input gives the same bytes.
tests/test_the_playwright_browsers_pin_follows_the_pin.py reads the committed file with `problems`, offline.
"""
from __future__ import annotations
import argparse
import hashlib
import json
import os
import re
import subprocess
import sys
import urllib.request
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
OUT_PATH = ROOT / "ci" / "py-lock" / "playwright-browsers.json"
PLAYWRIGHT_PIN = ROOT / "scripts" / "playwright_pin.txt"
#: The CDN the dry-run is asked to name (the gate downloads from the same host).
DOWNLOAD_HOST = "https://cdn.playwright.dev/dbazure/download/playwright"
#: platform name in the file -> PLAYWRIGHT_HOST_PLATFORM_OVERRIDE of the dry-run.
PLATFORMS = {"ubuntu24.04-x64": "ubuntu24.04-x64", "win64": "win64"}
#: The archive kinds the dry-run lists for each platform (the first path segment after builds/).
KINDS = {"ubuntu24.04-x64": ["firefox", "ffmpeg"], "win64": ["firefox", "ffmpeg", "winldd"]}
PATH_RE = re.compile(r"^builds/([a-z0-9_-]+)/[0-9]+/[A-Za-z0-9._-]+\.zip$")
SHA_RE = re.compile(r"^[0-9a-f]{64}$")
def problems(data: object, pin: str) -> list:
"""What is wrong with a parsed playwright-browsers.json, given the Playwright pin; an empty list when it is sound."""
out = []
if not isinstance(data, dict) or set(data) != {"playwright", "platforms"}:
return ["the file is not an object with exactly `playwright` and `platforms`"]
if data["playwright"] != pin.strip():
out.append("playwright is %r but scripts/playwright_pin.txt pins %r: regenerate with scripts/ci_playwright_browsers.py" % (data["playwright"], pin.strip()))
platforms = data["platforms"]
if not isinstance(platforms, dict) or set(platforms) != set(PLATFORMS):
return out + ["platforms are %r, expected %r" % (sorted(platforms) if isinstance(platforms, dict) else platforms, sorted(PLATFORMS))]
for name in sorted(PLATFORMS):
entries = platforms[name]
if not isinstance(entries, list):
out.append("%s: not a list" % name)
continue
kinds = []
for e in entries:
path = e.get("path") if isinstance(e, dict) else None
m = PATH_RE.match(path) if isinstance(path, str) else None
if not m:
out.append("%s: %r is not a relative `builds/<kind>/<revision>/<archive>.zip` path" % (name, path))
continue
kinds.append(m.group(1))
if not isinstance(e.get("sha256"), str) or not SHA_RE.match(e["sha256"]):
out.append("%s: %s has no 64-hex sha256" % (name, path))
if "size" in e and not (isinstance(e["size"], int) and not isinstance(e["size"], bool) and e["size"] > 0):
out.append("%s: %s has a size that is not a positive integer" % (name, path))
if set(e) - {"path", "sha256", "size"}:
out.append("%s: %s has unknown fields %s" % (name, path, sorted(set(e) - {"path", "sha256", "size"})))
if sorted(kinds) != sorted(KINDS[name]):
out.append("%s: the archives are %s, the dry-run lists %s" % (name, sorted(kinds), sorted(KINDS[name])))
return out
def installed_version(py: str) -> str:
return subprocess.run([py, "-c", "import importlib.metadata as m; print(m.version('playwright'))"], capture_output=True, text=True, check=True).stdout.strip()
def dry_run_paths(py: str, platform: str) -> list:
env = dict(os.environ, PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=PLATFORMS[platform], PLAYWRIGHT_DOWNLOAD_HOST=DOWNLOAD_HOST)
dry = subprocess.run([py, "-m", "playwright", "install", "--dry-run", "firefox"], capture_output=True, text=True, env=env, check=True).stdout
urls = re.findall(r"Download url:\s+(\S+)", dry)
prefix = DOWNLOAD_HOST + "/"
bad = [u for u in urls if not u.startswith(prefix)]
if bad or not urls:
raise SystemExit("%s: the dry-run names %r, not archives of %s" % (platform, bad or urls, DOWNLOAD_HOST))
return [u[len(prefix):] for u in urls]
def fetch_hash(path: str) -> tuple:
h, size = hashlib.sha256(), 0
with urllib.request.urlopen(DOWNLOAD_HOST + "/" + path, timeout=300) as r:
while chunk := r.read(1 << 20):
h.update(chunk)
size += len(chunk)
return h.hexdigest(), size
def render(data: object) -> str:
"""The bytes of the file for a parsed content: two-space indent, LF, one trailing newline (the same content always gives the same bytes)."""
return json.dumps(data, indent=2) + "\n"
def build(py: str, pin: str) -> str:
version = installed_version(py)
if version != pin.strip():
raise SystemExit("the interpreter has playwright %s, scripts/playwright_pin.txt pins %s: install the pinned one" % (version, pin.strip()))
platforms = {}
for name in sorted(PLATFORMS):
entries = []
for path in dry_run_paths(py, name):
sha, size = fetch_hash(path)
entries.append({"path": path, "sha256": sha, "size": size})
print(name, path, size, sha, flush=True)
platforms[name] = entries
data = {"playwright": version, "platforms": platforms}
bad = problems(data, pin)
if bad:
raise SystemExit("the generated file is not sound: " + "; ".join(bad))
return render(data)
def main(argv=None) -> int:
ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
ap.add_argument("--python", default=sys.executable, help="interpreter with the pinned playwright installed (default: this one)")
ap.add_argument("--out", default=str(OUT_PATH))
a = ap.parse_args(argv)
text = build(a.python, PLAYWRIGHT_PIN.read_text(encoding="utf-8"))
Path(a.out).write_text(text, encoding="utf-8", newline="\n")
print("%s written" % Path(a.out).name)
return 0
if __name__ == "__main__":
sys.exit(main())
+17 -7
View File
@@ -248,8 +248,15 @@ def dump_findings(dump: dict, wants: Callable = declared) -> list:
# the same seeds. Every leaf that differs is a host dependency the published engine ALREADY has: not a failure of the candidate and never red,
# a finding, kept in a file of its own and summarised in the job's summary.
CLEAN_FILE = "poison-clean-68.json"
DEPENDENCE_FILE = "poison-host-dependence-68.json"
def clean_file(engine_tag: str) -> str:
"""poison-clean-70.json for firefox-70: the published engine's dump on the clean runner (ci_ab_oracle.clean_name). The tag is the one the published set carries."""
return "poison-clean-%s.json" % engine_tag.rsplit("-", 1)[-1]
def dependence_file(engine_tag: str) -> str:
return "poison-host-dependence-%s.json" % engine_tag.rsplit("-", 1)[-1]
DEPENDENCE_FORMAT = "poison-host-dependence/1"
CLIP = 300
@@ -305,14 +312,17 @@ def dependence_markdown(report: dict | None) -> str:
return "\n".join(lines + [""])
def write_dependence(out: Path, summary: Path | None = None) -> dict | None:
"""Write DEPENDENCE_FILE in `out` from CLEAN_FILE and dump-68.json there, and the markdown to `summary` (the job's $GITHUB_STEP_SUMMARY).
Returns the report, or None when there is no clean dump. Never a verdict."""
clean, poisoned = out / CLEAN_FILE, out / "dump-68.json"
def write_dependence(out: Path, summary: Path | None = None, engine_tag: str | None = None) -> dict | None:
"""Write the dependence file in `out` from the clean dump and the published engine's dump there (named for `engine_tag`, by default the tag the published set carries),
and the markdown to `summary` (the job's $GITHUB_STEP_SUMMARY). Returns the report, or None when there is no clean dump. Never a verdict."""
import ci_ab_oracle as oracle
engine_tag = engine_tag or oracle.default_tag()
clean, poisoned = out / clean_file(engine_tag), out / oracle.dump_name(engine_tag)
report = None
if clean.is_file() and poisoned.is_file():
report = host_dependence(json.loads(clean.read_text(encoding="utf-8")), json.loads(poisoned.read_text(encoding="utf-8")))
(out / DEPENDENCE_FILE).write_text(json.dumps(report, sort_keys=True, ensure_ascii=False), encoding="utf-8")
(out / dependence_file(engine_tag)).write_text(json.dumps(report, sort_keys=True, ensure_ascii=False), encoding="utf-8")
text = dependence_markdown(report)
if summary:
with open(summary, "a", encoding="utf-8", newline="\n") as f:
+442
View File
@@ -0,0 +1,442 @@
#!/usr/bin/env python3
"""The PUBLISHED SET: the control side of every A/B oracle, exactly as a user installs it.
An A/B oracle holds a candidate against the engine published before it. That engine is not a binary alone: it is launched by the core that declares the prefs it
requires (the engine refuses a launch whose declarations are not the ones it was built for), and that core is the one the published wrapper pins. So the control
side is a SET, and nothing in it is chosen by hand: the last published `invisible-playwright` on PyPI pins its core exactly, and that core's seal pins its engine.
ci/py-lock/published.txt the set as a lock (ci-03): the wrapper and the core it pins, each at an exact version with the sha256 of EVERY file of that
version on the index, and the requirements each declares (the headers), which the gate's own lock must satisfy.
python scripts/ci_published_set.py resolve [--write] reads PyPI (the only command that does), prints the lock, or writes it
python scripts/ci_published_set.py check PyPI's last release against the committed lock: red when they differ (.github/workflows/published-set.yml)
python scripts/ci_published_set.py install --house DIR --venv DIR [--lock FILE]
OFFLINE and hash-checked: a venv of its own with the gate's third-party lock (DIR/lock.txt), then the two wheels of the set by their hashes
(`--no-deps`, from DIR/published: the wheelhouse of the run, whose job downloaded the files this lock names there). Prints the venv's python.
DIR itself holds the candidate's wheels of the same two packages (built from core_ref and wrapper_ref, and at an equal version with the SAME
file names): the set never takes a file of invisible-core or invisible-playwright from DIR, only from DIR/published.
python scripts/ci_published_set.py verify --python PY what that python imports is the lock's set, from its own venv and from nowhere else
python scripts/ci_published_set.py fetch --work DIR (run BY the set's python) fetches the engine the way a user's core does: its own seal
python scripts/ci_published_set.py tag (run BY the set's python) the tag its seal names
Exit codes: 0 green, 1 red (a finding), 2 the command could not run.
The candidate's side is untouched: its core is core_ref's, its wrapper is wrapper_ref's, its engine is the candidate.
"""
from __future__ import annotations
import argparse
import base64
import hashlib
import json
import os
import re
import subprocess
import sys
import urllib.request
import zipfile
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
LOCK_PATH = ROOT / "ci" / "py-lock" / "published.txt"
GATE_LOCK_PATH = ROOT / "ci" / "py-lock" / "gate.txt"
#: Where the wheelhouse of the run keeps the two wheels of the published set (the wheelhouse's own folder holds the candidate's wheels of the same names).
PUBLISHED_DIR = "published"
#: What install writes in the venv: which wheel of each package it installed (file name, sha256) and the digest of every file of the package as that wheel holds it. verify reads it
#: and holds it to the lock and to the disk: the lock and the candidate's lock can name the same package at the same version, so a version says nothing of WHICH file is installed.
RECORD_FILE = "published-set.json"
RECORD_FORMAT = "published-set-installed/1"
WRAPPER = "invisible-playwright"
CORE = "invisible-core"
INDEX = "https://pypi.org/pypi"
HASH_RE = re.compile(r"^--hash=sha256:([0-9a-f]{64})$")
PIN_RE = re.compile(r"^([A-Za-z0-9][A-Za-z0-9._-]*)==([0-9][A-Za-z0-9.!+_-]*)$")
HEADER = ("The PUBLISHED SET, the control side of the A/B oracles (scripts/ci_published_set.py): the last published invisible-playwright and the invisible-core it pins "
"(its seal pins the engine). Written by `python scripts/ci_published_set.py resolve --write`; .github/workflows/published-set.yml keeps it equal to the index.")
#: What a process of the published set must not inherit from the candidate's job: anything that makes its python import another wrapper or another core, or run
#: another engine's seal. The set is what its venv holds, as it is on a user's machine.
SET_LEAKS = ("PYTHONPATH", "PYTHONHOME", "PYTHONSTARTUP", "PYTHONUSERBASE", "VIRTUAL_ENV", "INVISIBLE_SEAL_FILE", "INVISIBLE_CORE_PIN", "INVISIBLE_CORE_AUTOFIX",
"INVISIBLE_PLAYWRIGHT_ENGINE_DIR")
def norm(name: str) -> str:
return re.sub(r"[-_.]+", "-", name).lower()
# -
# The lock: text <-> parts (pure, no network)
def _release_parts(release: dict, name: str) -> tuple:
"""(version, [sha256 of every file], [requirements without extras]) of a PyPI release document (`/pypi/<name>/<version>/json`)."""
info = release.get("info") or {}
if norm(info.get("name") or "") != norm(name):
raise ValueError("the document is of %r, not %s" % (info.get("name"), name))
files = [f for f in release.get("urls") or [] if not f.get("yanked")]
hashes = sorted({(f.get("digests") or {}).get("sha256", "") for f in files})
if not files or not all(re.fullmatch(r"[0-9a-f]{64}", h) for h in hashes):
raise ValueError("%s %s has no file with a sha256 on the index" % (name, info.get("version")))
if not any(f.get("packagetype") == "bdist_wheel" for f in files):
raise ValueError("%s %s has no wheel on the index" % (name, info.get("version")))
requires = [r for r in (info.get("requires_dist") or []) if "extra ==" not in r]
return info["version"], hashes, requires
def core_pin_of(requires: list) -> str:
"""The version of `invisible-core==X` among the requirements of the wrapper; ValueError when there is not exactly one exact pin."""
pins = []
for r in requires:
m = re.fullmatch(r"\s*invisible[-_.]core\s*==\s*([0-9][A-Za-z0-9.!+_-]*)\s*(?:;.*)?", r)
if m:
pins.append(m.group(1))
if len(pins) != 1:
raise ValueError("the published wrapper does not pin invisible-core exactly once with `==` (it declares %s)" % (requires or "nothing"))
return pins[0]
def lock_text(wrapper_release: dict, core_release: dict) -> str:
version, hashes, requires = _release_parts(wrapper_release, WRAPPER)
core_version, core_hashes, core_requires = _release_parts(core_release, CORE)
pin = core_pin_of(requires)
if pin != core_version:
raise ValueError("%s %s pins invisible-core==%s but the core document is of %s" % (WRAPPER, version, pin, core_version))
others = [r for r in requires if not re.match(r"\s*invisible[-_.]core\b", r, re.I)]
out = ["# " + HEADER,
"# wrapper-requires: " + " | ".join(sorted(others)),
"# core-requires: " + " | ".join(sorted(core_requires))]
for name, v, hs in ((CORE, core_version, core_hashes), (WRAPPER, version, hashes)):
out.append("%s==%s \\" % (name, v))
out.append(" \\\n".join(" --hash=sha256:" + h for h in hs))
return "\n".join(out) + "\n"
def parse_lock(text: str) -> dict:
"""{"wrapper": (version, hashes), "core": (version, hashes), "wrapper_requires": [...], "core_requires": [...]}; ValueError names what is wrong.
Every entry is `name==version` with at least one sha256: no range, no URL, no entry without a hash."""
meta, entries, current = {}, {}, None
joined = text.replace("\\\n", " ")
for raw in joined.splitlines():
line = raw.strip()
if not line:
continue
m = re.match(r"^#\s*(wrapper-requires|core-requires):\s*(.*)$", line)
if m:
meta[m.group(1)] = [r.strip() for r in m.group(2).split(" | ") if r.strip()]
continue
if line.startswith("#"):
continue
parts = line.split()
pin = PIN_RE.match(parts[0])
if not pin:
raise ValueError("a line that is not `name==version --hash=sha256:...`: %r" % line[:80])
hashes = []
for p in parts[1:]:
h = HASH_RE.match(p)
if not h:
raise ValueError("%s: %r is not a --hash=sha256:<64 hex>" % (parts[0], p[:40]))
hashes.append(h.group(1))
if not hashes:
raise ValueError("%s has no hash: an entry without a hash is an unchecked install" % parts[0])
current = norm(pin.group(1))
if current in entries:
raise ValueError("%s is listed twice" % current)
entries[current] = (pin.group(2), sorted(hashes))
if sorted(entries) != sorted([CORE, WRAPPER]):
raise ValueError("the lock holds %s, it must hold exactly %s and %s" % (sorted(entries), CORE, WRAPPER))
for key in ("wrapper-requires", "core-requires"):
if key not in meta:
raise ValueError("the header line `# %s:` is missing" % key)
return {"wrapper": entries[WRAPPER], "core": entries[CORE], "wrapper_requires": meta["wrapper-requires"], "core_requires": meta["core-requires"]}
def locked_versions(gate_text: str) -> dict:
"""{normalized name: version} of the pinned entries of a lock (ci/py-lock/gate.txt)."""
out = {}
for line in gate_text.replace("\\\n", " ").splitlines():
m = PIN_RE.match(line.split()[0]) if line.strip() and not line.lstrip().startswith("#") else None
if m:
out[norm(re.sub(r"\[.*\]", "", m.group(1)))] = m.group(2)
return out
def problems_of_lock(parsed: dict, gate_text: str) -> list:
"""What makes the set not installable, offline, over the gate's lock: the wrapper's pin of the core is not the core in the lock, or a requirement of either is
not met by the third-party package the gate's lock holds (the venv of the set is the gate's lock plus these two wheels, `--no-deps`)."""
from packaging.requirements import Requirement # the gate lock installs it (pytest needs it); resolve/check do not come here
problems = []
try:
pin = core_pin_of(parsed["wrapper_requires"] + ["%s==%s" % (CORE, parsed["core"][0])])
if pin != parsed["core"][0]:
problems.append("the lock names core %s" % parsed["core"][0])
except ValueError as e:
problems.append(str(e))
held = locked_versions(gate_text)
for owner, requires in (("the published wrapper", parsed["wrapper_requires"]), ("the published core", parsed["core_requires"])):
for text in requires:
req = Requirement(text)
if req.marker is not None and not req.marker.evaluate({"extra": ""}):
continue
version = held.get(norm(req.name))
if version is None:
problems.append("%s requires %s: the gate's lock (ci/py-lock/gate.txt) does not hold it, so the set cannot be installed offline" % (owner, text))
elif not req.specifier.contains(version, prereleases=True):
problems.append("%s requires %s: the gate's lock holds %s==%s" % (owner, text, req.name, version))
return problems
# -
# The index (the only network here)
def fetch_json(url: str) -> dict:
request = urllib.request.Request(url, headers={"User-Agent": "ci-published-set"})
with urllib.request.urlopen(request, timeout=60) as response: # noqa: S310 - the index of the package, https
return json.loads(response.read().decode("utf-8"))
def resolve(get=fetch_json) -> str:
"""The lock of the last published set: PyPI's latest release of the wrapper, and the core that wrapper pins."""
latest = get("%s/%s/json" % (INDEX, WRAPPER))
version = (latest.get("info") or {}).get("version")
if not version:
raise ValueError("the index names no latest version of %s" % WRAPPER)
wrapper = get("%s/%s/%s/json" % (INDEX, WRAPPER, version))
pin = core_pin_of(_release_parts(wrapper, WRAPPER)[2])
return lock_text(wrapper, get("%s/%s/%s/json" % (INDEX, CORE, pin)))
def check(get=fetch_json, path: Path = LOCK_PATH) -> list:
"""[] when the committed lock is the index's last release; else the lines that say how it differs (and how to fix it)."""
committed = path.read_text(encoding="utf-8") if path.is_file() else ""
try:
wanted = resolve(get)
except (ValueError, OSError) as e:
return ["the index could not be read or is not what a release is: %s" % e]
if committed == wanted:
return []
old = parse_lock(committed) if committed else None
new = parse_lock(wanted)
now = "%s %s + %s %s" % (WRAPPER, new["wrapper"][0], CORE, new["core"][0])
was = "%s %s + %s %s" % (WRAPPER, old["wrapper"][0], CORE, old["core"][0]) if old else "nothing"
return ["%s holds %s but the index's last release is %s. Fix: python scripts/ci_published_set.py resolve --write, and commit it. "
"Rule: the control side of an A/B is the last published set" % (path.name, was, now)]
# -
# The venv of the set (offline) and what it must be
def venv_python(venv: Path) -> Path:
return venv / ("Scripts/python.exe" if os.name == "nt" else "bin/python")
def clean_env(extra: dict | None = None) -> dict:
env = {k: v for k, v in os.environ.items() if k not in SET_LEAKS}
env.update(extra or {})
return env
def install(house: Path, venv: Path, lock: Path = LOCK_PATH, run=subprocess.run) -> Path:
"""A venv of its own: the gate's third-party lock from the wheelhouse (`house/lock.txt`, the lock of the run), then the two wheels of the set by their hashes, from
`house/published` ONLY. Offline: `--no-index` and `--require-hashes` on both; the two are installed `--no-deps` because the first step holds everything they need.
The wheelhouse's own folder holds the candidate's wheels of invisible-core and invisible-playwright, built from core_ref and wrapper_ref; at an equal version they have
the file names of the published ones, so the published ones live in their own folder and are the only place the second step looks: a wheel of ours taken from the wheelhouse
would be the candidate's core in the control's venv, or a hash refused. pip never sees the wheelhouse's folder and `published/` in one call: with two `--find-links` it takes
the first local file of a name and fails on a hash mismatch, it does not choose by hash. Then `pip check` over the venv: red, with what pip reports, when a requirement of
the two wheels is not met."""
parse_lock(lock.read_text(encoding="utf-8")) # a lock that does not read is no install
house_lock = house / "lock.txt"
if not house_lock.is_file():
raise FileNotFoundError("the wheelhouse %s has no lock.txt (the gate's lock): it is not a py-deps wheelhouse" % house)
published = house / PUBLISHED_DIR
if not published.is_dir():
raise FileNotFoundError("the wheelhouse %s has no %s/ folder: the two wheels of the published set (the files ci/py-lock/published.txt names) are kept there, "
"apart from the candidate's wheels of the same names" % (house, PUBLISHED_DIR))
parsed = parse_lock(lock.read_text(encoding="utf-8"))
chosen = {name: published_wheel(published, name, *parsed[key]) for key, name in (("core", CORE), ("wrapper", WRAPPER))}
run([sys.executable, "-m", "venv", str(venv)], check=True)
python = str(venv_python(venv))
base = [python, "-m", "pip", "install", "--quiet", "--no-index", "--require-hashes"]
run(base + ["--find-links", str(house), "-r", str(house_lock)], check=True, env=clean_env())
run(base + ["--find-links", str(published), "--no-deps", "-r", str(lock)], check=True, env=clean_env())
# `--no-deps` installs the two wheels without looking at what they declare: pip check does, over the whole venv (the third-party lock and the two wheels).
checked = run([python, "-m", "pip", "check"], capture_output=True, text=True, env=clean_env())
if checked.returncode != 0:
raise RuntimeError("pip check of the published set's venv %s is red (the requirements of the published wheels are not met by the wheelhouse's dependencies): %s"
% (venv, (checked.stdout + checked.stderr).strip()[-1500:]))
write_record(venv, chosen)
return venv_python(venv)
def file_digest(data: bytes) -> str:
"""The digest of a file as a wheel's RECORD writes it: `sha256=<urlsafe base64, no padding>`."""
return "sha256=" + base64.urlsafe_b64encode(hashlib.sha256(data).digest()).rstrip(b"=").decode()
def published_wheel(published: Path, name: str, version: str, hashes: list) -> tuple:
"""(path, sha256) of the wheel of `name` `version` in `published` whose sha256 is one the lock holds. FileNotFoundError names what was there and what the lock holds."""
stem = name.replace("-", "_").lower() + "-" + version + "-"
seen = []
for path in sorted(published.glob("*.whl")):
if path.name.lower().startswith(stem):
sha = hashlib.sha256(path.read_bytes()).hexdigest()
if sha in hashes:
return path, sha
seen.append("%s sha256 %s" % (path.name, sha))
raise FileNotFoundError("%s %s: no wheel in %s has a sha256 the lock (ci/py-lock/published.txt) holds (%s); there %s"
% (name, version, published, ", ".join(hashes), "is " + "; ".join(seen) if seen else "is none of that name"))
def package_digests(wheel: Path, package: str) -> dict:
"""{path: digest} of every file of the package `package` in the wheel, taken from the bytes of the wheel (its RECORD is not believed)."""
with zipfile.ZipFile(wheel) as z:
return {n: file_digest(z.read(n)) for n in sorted(z.namelist()) if n.startswith(package + "/") and not n.endswith("/")}
def write_record(venv: Path, chosen: dict) -> Path:
"""`chosen` is {distribution: (wheel path, sha256)}: what was installed into `venv`, written where verify reads it."""
packages = {name: {"wheel": path.name, "sha256": sha, "files": package_digests(path, name.replace("-", "_"))} for name, (path, sha) in chosen.items()}
target = Path(venv) / RECORD_FILE
Path(venv).mkdir(parents=True, exist_ok=True)
target.write_text(json.dumps({"format": RECORD_FORMAT, "packages": packages}, sort_keys=True, indent=1) + "\n", encoding="utf-8", newline="\n")
return target
def installed_problems(prefix: str, parsed: dict, site_files: dict) -> list:
"""What the record of the venv `prefix` says was installed, against the lock and against the disk. `site_files` is {distribution: the folder that holds its package}.
A package the record names with a sha256 the lock does not hold is red, naming the file and both hashes; so is a file of the package that is not, byte for byte, the wheel's."""
path = Path(prefix) / RECORD_FILE
if not path.is_file():
return ["%s has no %s: nothing says which wheel of invisible-core and invisible-playwright was installed (install writes it); the same version can be a "
"different file (the candidate's wheels have the names of the published ones)" % (prefix, RECORD_FILE)]
record = json.loads(path.read_text(encoding="utf-8"))
problems = []
for key, name in (("core", CORE), ("wrapper", WRAPPER)):
entry = (record.get("packages") or {}).get(name)
if not entry:
problems.append("%s: the record of the venv does not name the wheel it installed" % name)
continue
lock_hashes = parsed[key][1]
if entry["sha256"] not in lock_hashes:
problems.append("%s: the file installed is %s with sha256 %s, and ci/py-lock/published.txt holds %s (the published set is %s %s)"
% (name, entry["wheel"], entry["sha256"], ", ".join(lock_hashes), name, parsed[key][0]))
for rel, digest in sorted(entry["files"].items()):
target = Path(site_files[name]) / rel
actual = file_digest(target.read_bytes()) if target.is_file() else "missing"
if actual != digest:
problems.append("%s: %s on disk is %s, the wheel %s (sha256 %s) holds %s" % (name, rel, actual, entry["wheel"], entry["sha256"], digest))
break
return problems
IDENTITY_CODE = """
import importlib.metadata as md, json, sys
import invisible_core, invisible_playwright
from invisible_core.seal import active_seal
seal = active_seal()
print(json.dumps({"prefix": sys.prefix, "core": md.version("invisible-core"), "core_version": invisible_core.__version__, "core_file": invisible_core.__file__,
"wrapper": md.version("invisible-playwright"), "wrapper_file": invisible_playwright.__file__, "seal_tag": seal.tag, "seal_local": seal.is_local}))
"""
def identity(python: str, run=subprocess.run) -> dict:
"""What `python` is when it imports the set: versions, files and the tag of the seal its core carries (read in isolated mode, with no variable of the job)."""
done = run([python, "-I", "-c", IDENTITY_CODE], capture_output=True, text=True, env=clean_env(), timeout=120)
if done.returncode != 0:
raise RuntimeError("%s could not import the published set (exit %s): %s" % (python, done.returncode, (done.stderr or done.stdout)[-800:]))
return json.loads(done.stdout.strip().splitlines()[-1])
def verify(python: str, lock: Path = LOCK_PATH, run=subprocess.run) -> list:
"""[] when `python` runs the lock's wrapper and the lock's core, both from its own prefix, under the seal its core was published with, and the files they are made of
are the wheels the lock's sha256 name (read from the record install wrote and from the disk, never assumed from the version)."""
parsed = parse_lock(lock.read_text(encoding="utf-8"))
ident = identity(python, run)
problems = []
if ident["wrapper"] != parsed["wrapper"][0] or not ident["wrapper_file"].startswith(ident["prefix"]):
problems.append("the wrapper it runs is %s from %s, the set says %s from its own venv" % (ident["wrapper"], ident["wrapper_file"], parsed["wrapper"][0]))
if ident["core"] != parsed["core"][0] or ident["core_version"] != parsed["core"][0] or not ident["core_file"].startswith(ident["prefix"]):
problems.append("the core it runs is %s (reports %s) from %s, the set says %s from its own venv"
% (ident["core"], ident["core_version"], ident["core_file"], parsed["core"][0]))
if ident["seal_local"]:
problems.append("its core runs under a local seal: a published core carries a release seal")
problems += installed_problems(ident["prefix"], parsed, {CORE: str(Path(ident["core_file"]).parent.parent), WRAPPER: str(Path(ident["wrapper_file"]).parent.parent)})
return problems
# -
# What the set's own python does (the commands below are run BY it: they import the published core)
def fetch(work: Path) -> dict:
"""The engine of the core this python has, fetched the way a user's core fetches it: its own seal, its own download, its own verification."""
from invisible_core import download
from invisible_core.seal import active_seal
work = Path(work)
os.environ[download.ENGINE_DIR_ENV] = str(work / "engines")
seal = active_seal()
binary = download.ensure_binary()
return {"binary": str(binary), "tag": seal.tag, "describe": seal.describe()}
def main(argv=None) -> int:
ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
sub = ap.add_subparsers(dest="cmd", required=True)
r = sub.add_parser("resolve")
r.add_argument("--write", action="store_true")
sub.add_parser("check")
i = sub.add_parser("install")
i.add_argument("--house", type=Path, required=True)
i.add_argument("--venv", type=Path, required=True)
i.add_argument("--lock", type=Path, default=LOCK_PATH)
v = sub.add_parser("verify")
v.add_argument("--python", required=True)
v.add_argument("--lock", type=Path, default=LOCK_PATH)
f = sub.add_parser("fetch")
f.add_argument("--work", type=Path, required=True)
sub.add_parser("tag")
args = ap.parse_args(argv)
try:
if args.cmd == "resolve":
text = resolve()
if args.write:
LOCK_PATH.write_text(text, encoding="utf-8", newline="\n")
print("wrote %s" % LOCK_PATH)
else:
sys.stdout.write(text)
return 0
if args.cmd == "check":
problems = check()
print("\n".join("FAIL " + p for p in problems) if problems else "OK the committed published set is the index's last release")
return 1 if problems else 0
if args.cmd == "install":
python = install(args.house, args.venv, args.lock)
problems = verify(str(python), args.lock)
for name, entry in sorted(json.loads((args.venv / RECORD_FILE).read_text(encoding="utf-8"))["packages"].items()):
print("installed %s: %s sha256 %s" % (name, entry["wheel"], entry["sha256"]), file=sys.stderr)
if problems:
print("\n".join("FAIL " + p for p in problems))
return 1
print(python)
return 0
if args.cmd == "verify":
problems = verify(args.python, args.lock)
print("\n".join("FAIL " + p for p in problems) if problems else "OK")
return 1 if problems else 0
if args.cmd == "fetch":
print(json.dumps(fetch(args.work)))
return 0
if args.cmd == "tag":
from invisible_core.seal import active_seal
print(active_seal().tag)
return 0
except (ValueError, OSError, RuntimeError, subprocess.CalledProcessError) as e:
print("ERROR %s: %s" % (type(e).__name__, e))
return 2
return 2
if __name__ == "__main__":
sys.exit(main())
+208
View File
@@ -0,0 +1,208 @@
#!/usr/bin/env python3
"""Writes ci/py-lock/gate.in from its sources and compiles ci/py-lock/gate.txt, the lock of the `gate` environment (ci-03).
The engine series' gate installs the wrapper's environment from a wheelhouse resolved once per image, Python and lock, offline: no unpinned `pip install`
anywhere. The lock of that environment lives HERE, because what it must cover is declared here and is read at the wrapper_ref the gate selects. It holds every
THIRD-PARTY distribution the gate installs from the wrapper:
* the wrapper's dependencies (`[project].dependencies` of pyproject.toml, without `invisible_core`, which is built as a wheel of ours) and its `dev` extra;
* the dependencies of the core the wrapper pins (`invisible_core==X`: the `[project].dependencies` of the core's pyproject.toml at the tag vX);
* playwright at scripts/playwright_pin.txt (the stock client the gate drives the engine with) and cryptography at CRYPTOGRAPHY (the lab's PKI);
* the installer the install-from-index job needs beside pytest (HARNESS: `uv`, which the release test installs the package with and the wait asks), so that
job installs its test harness from this lock and from nothing else (tests/test_the_install_job_has_every_module_its_tests_import.py).
One command regenerates both files after a dependency change or a bump of the core pin:
python scripts/ci_py_lock.py --core-pyproject <pyproject.toml of the core at the tag vX> [--exclude-newer 2026-11-25T00:00:00Z] [--uv uv]
The resolver is the series' (`uv pip compile --universal --generate-hashes --no-build`, every file of every version hashed), so the same input gives the same
bytes there and here. tests/test_the_gate_lock_follows_the_sources.py reads the committed files with this module, offline.
"""
from __future__ import annotations
import argparse
import hashlib
import re
import subprocess
import sys
import tempfile
import tomllib
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
LOCK_DIR = ROOT / "ci" / "py-lock"
IN_PATH = LOCK_DIR / "gate.in"
TXT_PATH = LOCK_DIR / "gate.txt"
PYPROJECT = ROOT / "pyproject.toml"
PLAYWRIGHT_PIN = ROOT / "scripts" / "playwright_pin.txt"
#: What the lab's PKI needs, as the series' gate installs it today.
CRYPTOGRAPHY = "cryptography==44.0.3"
#: Installers the install-from-index job (user-install.yml) needs and no dependency of the wrapper brings: the README's way in (`uv`) and the wait on the index.
HARNESS = ["uv>=0.5"]
#: The floor of the lock: the Python the unit job judges; `--universal` covers every Linux and Windows wheel of every Python from it.
PYTHON_VERSION = "3.11"
DEFAULT_EXCLUDE_NEWER = "2026-11-25T00:00:00Z"
#: The separator of the core's requirements in a header line (a requirement can contain commas).
SEP = " | "
HASH_RE = re.compile(r"^--hash=sha256:[0-9a-f]{64}$")
PIN_RE = re.compile(r"^([A-Za-z0-9][A-Za-z0-9._-]*(?:\[[A-Za-z0-9,._-]+\])?)==([A-Za-z0-9][A-Za-z0-9.!+_-]*)(?: ; (.+))?$")
CORE_PIN_RE = re.compile(r"^invisible[-_]core==([0-9][0-9A-Za-z.!+_-]*)$")
def norm(name: str) -> str:
return re.sub(r"[-_.]+", "-", name).lower()
def base_name(requirement: str) -> str:
return norm(re.split(r"[\[<>=!~ ;]", requirement, maxsplit=1)[0])
def sha256_text(text: str) -> str:
"""sha256 of the text with LF line ends: the bytes the index stores, whatever a Windows checkout did to them."""
return hashlib.sha256(text.replace("\r\n", "\n").encode("utf-8")).hexdigest()
def read_in(text: str) -> dict:
"""The input file: `# key: value` header lines, then one requirement per line."""
meta, reqs = {}, []
for line in text.replace("\r\n", "\n").splitlines():
line = line.strip()
if not line:
continue
m = re.match(r"^#\s*([a-z-]+):\s*(.*)$", line)
if m:
meta[m.group(1)] = m.group(2).strip()
elif not line.startswith("#"):
reqs.append(line)
return {"meta": meta, "requirements": reqs}
def parse_lock(text: str) -> list:
"""[(name, version, marker, [hashes])] of a lock. A line that is not `name==version [; marker]` with hashes under it is an error: a range, a URL, an
editable, an index option, an entry with no hash."""
entries, current = [], None
for lineno, raw in enumerate(text.replace("\r\n", "\n").splitlines(), 1):
line = raw.rstrip()
if not line.strip() or line.lstrip().startswith("#"):
continue
body = line.strip()
if body.endswith("\\"):
body = body[:-1].rstrip()
if body.startswith("--hash="):
if current is None or not HASH_RE.match(body):
raise ValueError("line %d: a hash that is not sha256:<64 hex>, or none to hold it: %r" % (lineno, body))
current[3].append(body.split(":", 1)[1])
continue
m = PIN_RE.match(body)
if not m or line[0] in " \t":
raise ValueError("line %d: not `name==version`: %r" % (lineno, body))
current = (m.group(1), m.group(2), m.group(3) or "", [])
entries.append(current)
for name, version, _, hashes in entries:
if not hashes:
raise ValueError("%s==%s has no --hash" % (name, version))
return entries
# ── the sources ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
def wrapper_sources(pyproject_text: str) -> dict:
"""What pyproject.toml declares: the core pin, the other dependencies, the dev extra."""
project = tomllib.loads(pyproject_text)["project"]
pins = [d for d in project["dependencies"] if CORE_PIN_RE.match(d.strip())]
if len(pins) != 1:
raise SystemExit("pyproject.toml must carry exactly one `invisible_core==X` pin, found %r" % pins)
return {
"core_version": CORE_PIN_RE.match(pins[0].strip()).group(1),
"dependencies": [d for d in project["dependencies"] if d != pins[0]],
"dev": list(project["optional-dependencies"]["dev"]),
}
def core_dependencies(core_pyproject_text: str) -> list:
return list(tomllib.loads(core_pyproject_text)["project"]["dependencies"])
def expected_requirements(pyproject_text: str, core_requires: list, playwright_pin: str) -> list:
"""The requirements the lock must cover, in the order the input prints them."""
src = wrapper_sources(pyproject_text)
reqs = set(src["dependencies"]) | set(src["dev"]) | set(core_requires) | set(HARNESS) | {"playwright==%s" % playwright_pin.strip(), CRYPTOGRAPHY}
return sorted(reqs, key=lambda r: (base_name(r), r))
def make_in(pyproject_text: str, core_pyproject_text: str, playwright_pin: str, exclude_newer: str) -> str:
src = wrapper_sources(pyproject_text)
core_requires = core_dependencies(core_pyproject_text)
head = [
"# Input of the gate lock; `python scripts/ci_py_lock.py` writes it and gate.txt from the sources below. Wrapper-owned (ci-03), read at the wrapper_ref.",
"# python-version: %s" % PYTHON_VERSION,
"# exclude-newer: %s" % exclude_newer,
"# wrapper: pyproject.toml sha256 %s (at generation); its dependencies without invisible_core, and its `dev` extra" % sha256_text(pyproject_text),
"# core: invisible_core==%s, tag v%s, pyproject.toml sha256 %s (at generation); the core is a wheel of ours, only what it depends on is locked" % (
src["core_version"], src["core_version"], sha256_text(core_pyproject_text)),
"# core-requires: %s" % SEP.join(core_requires),
"# playwright: %s from scripts/playwright_pin.txt (the stock client the gate drives the engine with)" % playwright_pin.strip(),
"# cryptography: %s (the lab's PKI)" % CRYPTOGRAPHY.split("==")[1],
"# harness: %s (the installers of the install-from-index job)" % SEP.join(HARNESS),
]
return "\n".join(head + expected_requirements(pyproject_text, core_requires, playwright_pin)) + "\n"
# ── the lock ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
def lock_header(in_text: str, meta: dict) -> str:
return "\n".join([
"# Generated by `python scripts/ci_py_lock.py`: do not edit. Wrapper-owned (ci-03).",
"# input: ci/py-lock/gate.in sha256 %s" % sha256_text(in_text),
"# resolver: uv pip compile --universal --generate-hashes --no-build --python-version %s --exclude-newer %s" % (meta["python-version"], meta["exclude-newer"]),
"# Every file of each version is hashed (Linux and Windows wheels of every Python from %s, and the sdist): one lock for every OS." % meta["python-version"],
"# A consumer installs it with: pip install --no-index --find-links <wheelhouse> --require-hashes -r <this file>",
]) + "\n"
def normalise(raw: str, header: str) -> str:
"""What uv printed (no header, no annotations) as a lock: entries by name, hashes sorted, the given header. Same input, same bytes."""
entries = sorted(parse_lock(raw), key=lambda e: (norm(e[0]), e[1], e[2]))
lines = [header.rstrip("\n")]
for name, version, marker, hashes in entries:
lines.append("%s==%s%s \\" % (name, version, (" ; " + marker) if marker else ""))
hs = sorted(set(hashes))
lines += [" --hash=sha256:%s%s" % (h, " \\" if i < len(hs) - 1 else "") for i, h in enumerate(hs)]
return "\n".join(lines) + "\n"
def compile_lock(in_text: str, uv: str = "uv") -> str:
parsed = read_in(in_text)
meta = parsed["meta"]
with tempfile.TemporaryDirectory() as tmp:
src = Path(tmp) / "in.txt"
src.write_text("\n".join(parsed["requirements"]) + "\n", encoding="utf-8")
out = subprocess.run([uv, "pip", "compile", str(src), "--universal", "--generate-hashes", "--no-build", "--no-header", "--no-annotate", "--quiet",
"--python-version", meta["python-version"], "--exclude-newer", meta["exclude-newer"]],
check=True, capture_output=True, text=True).stdout
return normalise(out, lock_header(in_text, meta))
def main(argv=None) -> int:
ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
ap.add_argument("--core-pyproject", required=True, help="pyproject.toml of the core at the tag of the pin (invisible_core==X -> tag vX)")
ap.add_argument("--exclude-newer", default=None, help="ignore releases newer than this (default: the one of the committed gate.in, else %s)" % DEFAULT_EXCLUDE_NEWER)
ap.add_argument("--uv", default="uv", help="the uv executable")
a = ap.parse_args(argv)
exclude = a.exclude_newer
if exclude is None:
exclude = read_in(IN_PATH.read_text(encoding="utf-8"))["meta"].get("exclude-newer") if IN_PATH.exists() else None
in_text = make_in(PYPROJECT.read_text(encoding="utf-8"), Path(a.core_pyproject).read_text(encoding="utf-8"),
PLAYWRIGHT_PIN.read_text(encoding="utf-8"), exclude or DEFAULT_EXCLUDE_NEWER)
LOCK_DIR.mkdir(parents=True, exist_ok=True)
IN_PATH.write_text(in_text, encoding="utf-8", newline="\n")
txt = compile_lock(in_text, a.uv)
TXT_PATH.write_text(txt, encoding="utf-8", newline="\n")
print("ci/py-lock/gate.in and gate.txt written (%d direct requirements, %d locked distributions)" % (len(read_in(in_text)["requirements"]), len(parse_lock(txt))))
return 0
if __name__ == "__main__":
sys.exit(main())
+177 -16
View File
@@ -24,6 +24,11 @@ pytest wrote and fails on every one of them.
The one exception is `retired-tests.json` NEXT TO main's list (read from main, never from the judged branch): a file it names that
no longer exists in the checkout may leave the rows, and the minimum of a row may go down by the tests main counted for it in that
row (`tests: {row id: n}`), and by no more. A retired file still on disk, or any other lost test, stays red.
The same file may also retire single tests whose file stays: {"nodeid": "<file>::<test>", "suite": <row id>, "count": n, "reason",
"decided_by", "date", "from_min_tests"}. The minimum of that row may go down by the sum of the `count` of its entries and by no more, and
only for a nodeid whose file the row of main lists, and only while main's minimum of that row still equals `from_min_tests` (once the removal
is on main and its floor is lower, the entry is inert); a declared nodeid that the judged leg still collects is red, and so is any test that
goes without an entry.
What the file of main is can be said only by the gate, which checks main out (a failed download is not
"main has no list"): the file exists -> it is compared; it does not exist and the gate passed
--main-has-no-list (main was checked out and has no such file) -> passed, declared; it does not exist
@@ -44,6 +49,23 @@ The list is validated by all three commands (a malformed one is exit 2, with the
row `os` a non-empty subset of {linux, windows}, `tests` a non-empty list of unique strings, `min_tests` an integer > 0,
`exact` a bool, `marker` a string, `needs_root` a bool or a list of the row's OSes.
Optional fields of a row, read by the gate to build the leg of the row (absent = the plain behaviour; a field that is
present with a wrong type or value is a malformed list, exit 2, naming the row and the field; a name that is not listed
here is ignored as it always was):
runner_image object OS -> runner image name, only OSes of the row, e.g. {"windows": "windows-2022"}
(default: ubuntu-24.04 on Linux, windows-latest on Windows)
timeout_minutes integer 1..360, the timeout of the job (default 25)
needs_userns bool or list of the row's OSes: user namespaces for a normal user (the sandbox suite)
core_dumps false, "cores" or "invpw-cores" (Linux only): where the kernel writes the cores of a crashed
browser, $RUNNER_TEMP/cores or $RUNNER_TEMP/invpw-cores
stock_firefox bool or list of the row's OSes: Playwright's own Firefox is installed for the leg
location_service bool or list of the row's OSes: the Windows location service is turned on
run "pytest" (default) or "suite_run" (scripts/ci_suite_run.py, two passes)
extra_steps list of names from the closed set {fakeweb_profiles, keep_oracle_files}
moz_log string of MOZ_LOG modules appended to the suite's MOZ_LOG, no space
juggler_trace bool: the Juggler's own trace is kept with the result
artifact name of the artifact that keeps the oracle files (default: the suite id)
A required entry of "tests" is a file (at least one test of it must exist and EVERY one collected must pass) or a node
id `tests/x.py::name` (that test must pass; a parametrized test is matched on the name before `[`, and every one of its
parameters must pass).
@@ -69,6 +91,12 @@ import xml.etree.ElementTree as ET
from pathlib import Path
OSES = ("linux", "windows")
#: The optional row fields of the form "bool or a list of the row's OSes" (besides needs_root).
OS_FLAGS = ("needs_userns", "stock_firefox", "location_service")
CORE_DUMPS = ("cores", "invpw-cores")
RUN_MODES = ("pytest", "suite_run")
#: The closed set of the extra steps a row may ask of the gate (a name here is a step the gate knows how to run).
EXTRA_STEPS = ("fakeweb_profiles", "keep_oracle_files")
class Usage(Exception):
@@ -122,14 +150,70 @@ def validate_list(data):
problems.append("%s: exact must be true or false, not %r" % (where, row.get("exact")))
if not isinstance(row.get("marker"), str) or not row.get("marker").strip():
problems.append("%s: marker must be a non-empty string, not %r" % (where, row.get("marker")))
root = row.get("needs_root", False)
if not isinstance(root, bool):
if not (isinstance(root, list) and all(isinstance(o, str) for o in root) and set(root) <= set(OSES)
and (not oses_ok or set(root) <= set(oses))):
problems.append("%s: needs_root must be a bool or a list of the OSes of the row, not %r" % (where, root))
for name in ("needs_root",) + OS_FLAGS:
if name in row or name == "needs_root":
value = row.get(name, False)
if not _is_os_flag(value, oses, oses_ok):
problems.append("%s: %s must be a bool or a list of the OSes of the row, not %r" % (where, name, value))
problems.extend(_row_field_problems(row, where, oses, oses_ok))
return problems
def _is_os_flag(value, oses, oses_ok):
"""A bool, or a list of OSes that are all OSes of the row."""
if isinstance(value, bool):
return True
return (isinstance(value, list) and all(isinstance(o, str) for o in value) and set(value) <= set(OSES)
and (not oses_ok or set(value) <= set(oses)))
def _row_field_problems(row, where, oses, oses_ok):
"""The optional fields of a row that tell the gate how to build the leg (see the docstring): absent is the plain
behaviour; a field that is present with a value outside its type or its closed set is a problem, named."""
out = []
if "runner_image" in row:
image = row["runner_image"]
if not (isinstance(image, dict) and image and all(isinstance(k, str) and isinstance(v, str) and v.strip()
for k, v in image.items())):
out.append("%s: runner_image must be a non-empty object of OS -> image name, not %r" % (where, image))
else:
wrong = sorted(k for k in image if k not in OSES or (oses_ok and k not in oses))
if wrong:
out.append("%s: runner_image names an OS the row does not have: %s" % (where, ", ".join(wrong)))
if "timeout_minutes" in row:
minutes = row["timeout_minutes"]
if not _is_int(minutes) or not 0 < minutes <= 360:
out.append("%s: timeout_minutes must be an integer between 1 and 360, not %r" % (where, minutes))
if "core_dumps" in row:
dumps = row["core_dumps"]
if dumps is not False and dumps not in CORE_DUMPS:
out.append("%s: core_dumps must be false or one of %s, not %r" % (where, "/".join(CORE_DUMPS), dumps))
elif dumps is not False and oses_ok and "linux" not in oses:
out.append("%s: core_dumps is a Linux setting and the row has no linux leg" % where)
if "run" in row and (row["run"] not in RUN_MODES):
out.append("%s: run must be one of %s, not %r" % (where, "/".join(RUN_MODES), row["run"]))
if "extra_steps" in row:
steps = row["extra_steps"]
if not (isinstance(steps, list) and all(isinstance(x, str) for x in steps) and len(set(steps)) == len(steps)):
out.append("%s: extra_steps must be a list of distinct names, not %r" % (where, steps))
else:
unknown = sorted(set(steps) - set(EXTRA_STEPS))
if unknown:
out.append("%s: extra_steps names %s, outside the closed set %s"
% (where, ", ".join(unknown), ", ".join(EXTRA_STEPS)))
if "moz_log" in row:
modules = row["moz_log"]
if not (isinstance(modules, str) and modules and not any(c.isspace() for c in modules)):
out.append("%s: moz_log must be a non-empty string of MOZ_LOG modules with no space, not %r" % (where, modules))
if "juggler_trace" in row and not isinstance(row["juggler_trace"], bool):
out.append("%s: juggler_trace must be true or false, not %r" % (where, row["juggler_trace"]))
if "artifact" in row:
name = row["artifact"]
if not (isinstance(name, str) and name and all(c.isalnum() or c in "._-" for c in name)):
out.append("%s: artifact must be a non-empty name of letters, digits, '.', '_' and '-', not %r" % (where, name))
return out
def _read_json_list(path):
try:
return json.loads(Path(path).read_text(encoding="utf-8"))
@@ -254,17 +338,25 @@ def _int(value):
RETIRED_NAME = "retired-tests.json"
def validate_retired(data):
"""-> the reasons why `data` is not a well-formed list of retired files (empty if it is). An entry: the file, why it went, the date, and
for each row id the number of tests the file had in that row on main (counted with the row's marker)."""
def validate_retired(data, suite_ids=None):
"""-> the reasons why `data` is not a well-formed list of retired tests (empty if it is). Two kinds of entry, in one list:
a FILE that is gone ({file, reason, date, tests: {row id: number of tests the file had in that row on main, counted with the row's marker}}), and
a single TEST whose file stays ({nodeid: "<file>::<test>", suite: row id, count > 0, reason, decided_by, date, from_min_tests: the minimum of
the row on main when the entry was written, an integer >= count, the same for every entry of a suite}). `suite_ids`, when given, are the row
ids of main's list: the suite of a nodeid entry must be one of them."""
if not isinstance(data, list):
return ["the retired list must be a JSON list"]
problems, seen = [], set()
problems, seen, seen_nodes, froms = [], set(), set(), {}
for i, e in enumerate(data):
where = "retired entry %d" % i
if not isinstance(e, dict):
problems.append("%s is not an object" % where)
continue
if "nodeid" in e or "suite" in e:
problems += _validate_retired_node(e, where, suite_ids, seen_nodes)
if isinstance(e.get("suite"), str) and _is_int(e.get("from_min_tests")):
froms.setdefault(e["suite"], set()).add(e["from_min_tests"])
continue
f = e.get("file")
if not isinstance(f, str) or not f.strip():
problems.append("%s has no file" % where)
@@ -279,12 +371,44 @@ def validate_retired(data):
counts = e.get("tests")
if not (isinstance(counts, dict) and counts and all(isinstance(k, str) and _is_int(v) and v > 0 for k, v in counts.items())):
problems.append("%s: tests must be {row id: number of tests of the file in that row (> 0)}" % where)
for suite, values in sorted(froms.items()):
if len(values) > 1:
problems.append("the retired tests of %s disagree on from_min_tests (%s): one suite, one floor of main" % (suite, sorted(values)))
return problems
def _validate_retired_node(e, where, suite_ids, seen):
problems = []
nid, suite = e.get("nodeid"), e.get("suite")
if "file" in e or "tests" in e:
problems.append("%s: an entry is a retired file (file, tests) or a retired test (nodeid, suite, count), not both" % where)
parts = nid.split("::", 1) if isinstance(nid, str) else []
if len(parts) != 2 or not parts[0].strip() or not parts[1].strip():
problems.append("%s: nodeid must be \"<file>::<test>\"" % where)
else:
where = "retired test %s" % nid
if not isinstance(suite, str) or not suite.strip():
problems.append("%s: suite must be a non-empty string (the id of a row)" % where)
elif suite_ids is not None and suite not in suite_ids:
problems.append("%s: the suite %s is not a row of main's required list" % (where, suite))
if isinstance(nid, str) and isinstance(suite, str):
if (nid, suite) in seen:
problems.append("%s: appears more than once for the suite %s" % (where, suite))
seen.add((nid, suite))
if not _is_int(e.get("count")) or e.get("count") < 1:
problems.append("%s: count must be an integer >= 1 (the tests the suite loses)" % where)
for key in ("reason", "decided_by", "date"):
if not isinstance(e.get(key), str) or not e.get(key).strip():
problems.append("%s: %s must be a non-empty string" % (where, key))
frm = e.get("from_min_tests")
if not _is_int(frm) or frm < 1 or (_is_int(e.get("count")) and frm < e["count"]):
problems.append("%s: from_min_tests must be an integer >= count (the minimum of the suite on main when the entry was written)" % where)
return problems
def retired_of_main(main_required):
"""The retired files of main: ``ci/retired-tests.json`` next to main's list, read from main and never from the judged branch. It may not
exist (main older than the format): nothing is retired. A malformed one is a problem, never an empty list. -> (entries, problems)."""
"""The retired files and tests of main: ``ci/retired-tests.json`` next to main's list, read from main and never from the judged branch. It may
not exist (main older than the format): nothing is retired. A malformed one is a problem, never an empty list. -> (entries, problems)."""
path = Path(main_required).with_name(RETIRED_NAME)
if not path.is_file():
return [], []
@@ -292,22 +416,55 @@ def retired_of_main(main_required):
data = json.loads(path.read_text(encoding="utf-8"))
except (OSError, ValueError) as exc:
return [], ["the retired list of main %s cannot be read: %s" % (path, exc)]
bad = validate_retired(data)
try:
rows = json.loads(Path(main_required).read_text(encoding="utf-8"))
suite_ids = {r.get("id") for r in rows if isinstance(r, dict)} if isinstance(rows, list) else None
except (OSError, ValueError):
suite_ids = None # the list of main itself is read (and refused) by the caller
bad = validate_retired(data, suite_ids)
if bad:
return [], ["the retired list of main %s is malformed: %s" % (path, "; ".join(bad))]
return data, []
def against_main(current, main, retired=(), exists=os.path.exists):
def _retired_tests_of(row, retired, collected, judged):
"""-> (the number of tests the row may lose because main retired them one by one, problems). An entry counts only if the file of its nodeid is
in the row of main (a nodeid that the row does not run is not a test the row loses). The judge has the junit of the leg it judges and only
counts of main, so a declared nodeid that the judged leg still collects is red (and counts for nothing), and the nodeid of another row is taken
on its count, the leg of that row checking it. An entry counts only while the minimum of the row on main is still its `from_min_tests`: once
the removal is on main the floor is lower and the entry is inert (it allows nothing and asks nothing)."""
allowed, problems = 0, []
listed = row.get("tests", [])
for e in retired:
if not (isinstance(e, dict) and isinstance(e.get("nodeid"), str) and e.get("suite") == row.get("id")):
continue
nid = e["nodeid"]
if _int(row.get("min_tests")) != e.get("from_min_tests"):
continue
if nid not in listed and nid.split("::", 1)[0] not in listed:
continue
if collected is not None and judged == row.get("id") and any(n == nid or _base(n) == nid for n in collected):
problems.append("the test %s is declared retired for %s, but the suite still collects it: it did not leave" % (nid, row.get("id")))
continue
allowed += _int(e.get("count"))
return allowed, problems
def against_main(current, main, retired=(), exists=os.path.exists, collected=None, judged=None):
"""The list only grows: every suite of main is still here, with no lower minimum, no exact turned off, no lost
test or OS and the same marker. `main` is read leniently (it may be older than the current format).
The one way a test leaves a row is `retired` (the list of MAIN, never of the branch): a file that main retired and that no longer exists
(`exists`, in the checkout judged) is not a lost test, and the minimum of the row may go down by exactly the tests main counted for that file
in that row (``tests[row id]``), and by no more. A retired file that is still on disk is not excused: it must stay in its rows."""
in that row (``tests[row id]``), and by no more. A retired file that is still on disk is not excused: it must stay in its rows.
The other way is a single retired test (``nodeid``, ``suite``, ``count``) whose file stays in the row: the minimum of the suite may go down by
the ``count`` of its entries, and by no more. ``collected`` (the node ids of the junit of the judged leg) and ``judged`` (that leg's suite) let
the judge see that a declared nodeid is gone from the leg; of the collection of main it has only the count."""
problems = []
if not isinstance(main, list):
return ["the list of main is not a JSON list: it cannot be compared"]
retired = list(retired)
gone = {e["file"]: e["tests"] for e in retired if isinstance(e, dict) and isinstance(e.get("file"), str)
and isinstance(e.get("tests"), dict) and not exists(e["file"])}
by_id = {s.get("id"): s for s in current if isinstance(s, dict)}
@@ -323,10 +480,13 @@ def against_main(current, main, retired=(), exists=os.path.exists):
excused = [t for t in lost if t in gone]
lost = [t for t in lost if t not in gone]
allowed = sum(_int(gone[t].get(sid)) for t in excused)
by_test, why = _retired_tests_of(old, retired, collected, judged)
allowed += by_test
problems += why
if _int(new.get("min_tests")) < _int(old.get("min_tests")) - allowed:
problems.append("the minimum of %s went down: %s on main, %s here%s"
% (sid, old.get("min_tests"), new.get("min_tests"),
" (retired files account for %d of it)" % allowed if allowed else ""))
" (retired files and tests account for %d of it)" % allowed if allowed else ""))
if old.get("exact") is True and new.get("exact") is not True:
problems.append("the suite %s is no longer exact, as it is on main" % sid)
if lost:
@@ -468,7 +628,8 @@ def cmd_judge(ns):
try:
retired, retired_problems = retired_of_main(ns.main_required)
problems += retired_problems
problems += against_main(suites, _read_json_list(ns.main_required), retired)
problems += against_main(suites, _read_json_list(ns.main_required), retired,
collected={n for n, _o in cases}, judged=ns.suite)
except Usage as exc:
problems.append(str(exc))
elif ns.main_has_no_list:
+122
View File
@@ -0,0 +1,122 @@
r"""Read the full user-mode dumps Windows Error Reporting left for a python.exe that died, and say what each one holds (CI evidence, no debugger needed).
The Windows e2e jobs set ``HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\python.exe`` (full dump, folder ``<evidence>/dumps/python``)
before their tests; when a pytest-xdist worker dies from an unhandled exception ("node down: Not properly terminated", "Windows fatal exception: access violation")
WER writes ``python.exe.<pid>.dmp`` there and the evidence artifact carries it. This script runs after the tests (``if: always()``): it lists every dump with its size
and reads the header of the MINIDUMP file, with ``struct`` only, to name what a debugger would name first: the thread that raised, the exception code, the faulting
address and the module that holds it (with the offset in it), plus the access that failed for an access violation. The summary goes to stdout and to
``summary.txt`` beside the dumps. It never fails the job: no dump is the normal case.
Format of the file: https://learn.microsoft.com/windows/win32/api/minidumpapiset/ (MINIDUMP_HEADER, MINIDUMP_DIRECTORY, MINIDUMP_EXCEPTION_STREAM,
MINIDUMP_MODULE). Dump types and the LocalDumps key: https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps
"""
from __future__ import annotations
import shutil
import struct
import sys
import time
from pathlib import Path
SIGNATURE = b"MDMP"
MODULE_LIST_STREAM = 4
EXCEPTION_STREAM = 6
MODULE_SIZE = 108 # sizeof(MINIDUMP_MODULE)
EXCEPTION_NAMES = {
0xC0000005: "EXCEPTION_ACCESS_VIOLATION",
0xC0000374: "STATUS_HEAP_CORRUPTION",
0xC0000409: "STATUS_STACK_BUFFER_OVERRUN (fail fast)",
0xC00000FD: "EXCEPTION_STACK_OVERFLOW",
0xC000001D: "EXCEPTION_ILLEGAL_INSTRUCTION",
0xC0000094: "EXCEPTION_INT_DIVIDE_BY_ZERO",
0xC0000026: "STATUS_INVALID_DISPOSITION",
0xC0000096: "EXCEPTION_PRIV_INSTRUCTION",
0xC0000006: "EXCEPTION_IN_PAGE_ERROR",
0x80000003: "EXCEPTION_BREAKPOINT",
0xE06D7363: "C++ exception",
}
ACCESS = {0: "read", 1: "write", 8: "execute (DEP)"}
def read_dump(path: Path) -> dict:
"""The facts of one minidump: thread id, exception code and address, the module holding the address. Raises ValueError on a file that is not a minidump."""
with open(path, "rb") as f:
head = f.read(32)
if len(head) < 32 or head[:4] != SIGNATURE:
raise ValueError("not a minidump (no MDMP signature)")
_sig, _version, n_streams, dir_rva = struct.unpack_from("<4sIII", head, 0)
f.seek(dir_rva)
directory = [struct.unpack("<III", f.read(12)) for _ in range(n_streams)]
out: dict = {"streams": n_streams}
modules: list[tuple[int, int, str]] = []
for kind, size, rva in directory:
if kind == MODULE_LIST_STREAM:
f.seek(rva)
(count,) = struct.unpack("<I", f.read(4))
records = f.read(count * MODULE_SIZE)
for i in range(count):
base, image_size, _cs, _ts, name_rva = struct.unpack_from("<QIIII", records, i * MODULE_SIZE)
here = f.tell()
f.seek(name_rva)
(nbytes,) = struct.unpack("<I", f.read(4))
name = f.read(nbytes).decode("utf-16-le", "replace")
f.seek(here)
modules.append((base, image_size, name))
elif kind == EXCEPTION_STREAM:
f.seek(rva)
raw = f.read(8 + 8 + 8 + 8 + 8 + 15 * 8)
tid, _pad, code, flags, _chain, address, n_params, _pad2 = struct.unpack_from("<IIIIQQII", raw, 0)
params = struct.unpack_from("<15Q", raw, 8 + 32)
out.update(thread_id=tid, code=code, flags=flags, address=address, params=list(params[:n_params]))
out["module_count"] = len(modules)
if "address" in out:
for base, image_size, name in modules:
if base <= out["address"] < base + image_size:
out["module"] = name
out["offset"] = out["address"] - base
break
return out
def describe(path: Path) -> str:
size = path.stat().st_size
head = "%s: %.1f MB" % (path.name, size / 1e6)
try:
d = read_dump(path)
except (ValueError, OSError, struct.error) as e:
return "%s, unreadable header: %s" % (head, e)
if "code" not in d:
return "%s, %d modules, no exception stream (a dump taken on request, not on a fault)" % (head, d["module_count"])
name = EXCEPTION_NAMES.get(d["code"], "unknown")
lines = [
head,
" exception 0x%08X %s on thread %d" % (d["code"], name, d["thread_id"]),
" at 0x%016X in %s" % (d["address"], ("%s+0x%X" % (d["module"], d["offset"])) if "module" in d else "no module of the dump (JIT or freed code)"),
]
p = d["params"]
if d["code"] in (0xC0000005, 0xC0000006) and len(p) >= 2:
lines.append(" failed access: %s of 0x%016X" % (ACCESS.get(p[0], str(p[0])), p[1]))
return "\n".join(lines)
def summarize(folder: Path) -> str:
dumps = sorted(folder.glob("*.dmp")) if folder.is_dir() else []
cdb = shutil.which("cdb") or shutil.which("windbg")
lines = ["WER dumps of python.exe in %s: %d" % (folder, len(dumps)), "debugger on the runner: %s" % (cdb or "none (the header reader above is all there is)")]
for p in dumps:
lines.append(describe(p) + "\n written %s" % time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(p.stat().st_mtime)))
return "\n".join(lines) + "\n"
def main(argv: list[str]) -> int:
folder = Path(argv[1]) if len(argv) > 1 else Path(".")
text = summarize(folder)
sys.stdout.write(text)
if folder.is_dir():
(folder / "summary.txt").write_text(text, encoding="utf-8", newline="\n")
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv))
+227
View File
@@ -0,0 +1,227 @@
#!/usr/bin/env python3
"""Extracts, from Mozilla's own sources at a release tag, the names a chrome-scope script of a test may call, into ci/mozilla-chrome-api.json.
A twin of the retail Firefox runs chrome JS (through Marionette) on a Firefox that is NOT ours. A call to a name that this Firefox does not have fails there only, at the run:
``win.windowUtils.sendMouseEvent`` is not in Firefox 159 (its chrome input is ``Window.synthesizeMouseEvent``), and nothing red said so before the twins ran. The names are therefore read
from the source of the release the twins use, never typed:
* ``dom/interfaces/base/nsIDOMWindowUtils.idl``: the methods, attributes and constants of ``nsIDOMWindowUtils`` (what ``win.windowUtils.<name>`` reaches);
* ``dom/webidl/Window.webidl``: the members of ``interface Window`` and ``partial interface Window`` (with the parameter types and whether the member is ``ChromeOnly``), and every
dictionary with its fields, parents included (what the options of ``win.synthesizeMouseEvent`` may carry).
The same two files of OUR engine tree are read the same way, and what they carry that Mozilla's do not is written apart, under ``ours``: ``jugglerSendMouseEvent``, the fields of the
latency line. A call to one of those from code that runs on retail Firefox is red (tests/test_the_chrome_calls_of_the_tests_exist_in_firefox.py).
The file records, for every source, its path, the tag or commit and the sha256 of the bytes read. The wrapper's CI has no Firefox source, so the test reads the committed file and this
module's functions are tested on a small sample (tests/test_the_extractor_of_the_chrome_names_reads_idl_and_webidl.py). One command regenerates the file:
python scripts/extract_mozilla_chrome_api.py --mozilla-repo <git repository with the Mozilla tag> --tag FIREFOX_159_0_RELEASE --ours-repo <our engine tree> --ours-ref <commit> --write
"""
from __future__ import annotations
import argparse
import hashlib
import json
import re
import subprocess
import sys
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
ROOT = Path(__file__).resolve().parent.parent
DATA_PATH = ROOT / "ci" / "mozilla-chrome-api.json"
WINDOW_UTILS_IDL = "dom/interfaces/base/nsIDOMWindowUtils.idl"
WINDOW_WEBIDL = "dom/webidl/Window.webidl"
SOURCES = (WINDOW_UTILS_IDL, WINDOW_WEBIDL)
_BLOCK_COMMENT = re.compile(r"/\*.*?\*/", re.S)
_LINE_COMMENT = re.compile(r"//[^\n]*")
_LEADING_ATTRS = re.compile(r"^\s*(?:\[[^\]]*\]\s*)*")
_WORD = re.compile(r"[A-Za-z_]\w*")
def strip_comments(text: str) -> str:
"""The text without comments and without preprocessor lines."""
text = _BLOCK_COMMENT.sub(" ", text)
text = _LINE_COMMENT.sub("", text)
return "\n".join(line for line in text.splitlines() if not line.lstrip().startswith("#"))
def _bodies(text: str, header: "re.Pattern[str]") -> List[Tuple[re.Match, str]]:
"""Every ``header { body }`` of ``text`` (braces matched), with the header's match."""
out: List[Tuple[re.Match, str]] = []
for m in header.finditer(text):
depth, i = 1, m.end()
while i < len(text) and depth:
depth += {"{": 1, "}": -1}.get(text[i], 0)
i += 1
out.append((m, text[m.end():i - 1]))
return out
def _statements(body: str) -> List[str]:
"""The ``;``-terminated statements at the top level of ``body`` (a nested ``{}`` or ``()`` does not end one)."""
out, depth, cur = [], 0, []
for ch in body:
if ch in "{(":
depth += 1
elif ch in "})":
depth -= 1
if ch == ";" and depth == 0:
out.append("".join(cur).strip())
cur = []
else:
cur.append(ch)
return [s for s in out if s]
def _split_params(text: str) -> List[str]:
out, depth, cur = [], 0, []
for ch in text:
if ch in "<([":
depth += 1
elif ch in ">)]":
depth -= 1
if ch == "," and depth == 0:
out.append("".join(cur).strip())
cur = []
else:
cur.append(ch)
tail = "".join(cur).strip()
return out + [tail] if tail else out
def _params(signature: str) -> List[List[str]]:
"""``[[name, type], ...]`` of the parameters of the call in ``signature`` (``optional`` and defaults dropped, ``in`` of the IDL dropped)."""
start = signature.index("(")
depth, i = 0, start
while i < len(signature):
depth += {"(": 1, ")": -1}.get(signature[i], 0)
if depth == 0:
break
i += 1
out = []
for raw in _split_params(signature[start + 1:i]):
raw = re.sub(r"\[[^\]]*\]", " ", raw.split("=")[0])
words = [w for w in raw.replace("<", " < ").replace(">", " > ").split() if w not in ("optional", "in", "out", "inout", "required")]
text = " ".join(words).replace(" < ", "<").replace(" > ", ">").replace(" ,", ",")
if not text:
continue
m = re.search(r"(\w+)$", text)
out.append([m.group(1), text[:m.start()].strip()])
return out
def window_utils(idl_text: str) -> Dict[str, List[str]]:
"""The methods, attributes and constants of ``nsIDOMWindowUtils`` in the text of its IDL file."""
text = strip_comments(idl_text)
methods, attributes, constants = set(), set(), set()
for _m, body in _bodies(text, re.compile(r"interface\s+nsIDOMWindowUtils\b[^{;]*\{")):
for statement in _statements(body):
rest = _LEADING_ATTRS.sub("", statement).strip()
if rest.startswith("const "):
constants.add(_WORD.findall(rest.split("=")[0])[-1])
elif re.search(r"\battribute\b", rest):
attributes.add(_WORD.findall(rest.split("=")[0])[-1])
elif "(" in rest:
methods.add(_WORD.findall(rest.split("(")[0])[-1])
return {"methods": sorted(methods), "attributes": sorted(attributes), "constants": sorted(constants)}
def window(webidl_text: str) -> Dict[str, Any]:
"""The members of ``Window`` (``interface`` and ``partial interface``) and every dictionary, parents folded in, from the text of a WebIDL file."""
text = strip_comments(webidl_text)
methods: Dict[str, Dict[str, Any]] = {}
attributes: Dict[str, Dict[str, Any]] = {}
for _m, body in _bodies(text, re.compile(r"(?:partial\s+)?interface\s+Window\b[^{;]*\{")):
for statement in _statements(body):
attrs = re.match(r"^\s*((?:\[[^\]]*\]\s*)*)", statement).group(1)
rest = _LEADING_ATTRS.sub("", statement).strip()
chrome_only = bool(re.search(r"\bChromeOnly\b", attrs))
if re.search(r"\battribute\b", rest):
attributes[_WORD.findall(rest.split("=")[0])[-1]] = {"chrome_only": chrome_only}
elif "(" in rest and not rest.startswith("constructor"):
name = _WORD.findall(rest.split("(")[0])[-1]
methods[name] = {"chrome_only": chrome_only, "params": _params(rest)}
own: Dict[str, Tuple[Optional[str], List[str]]] = {}
for m, body in _bodies(text, re.compile(r"dictionary\s+(\w+)\s*(?::\s*(\w+))?\s*\{")):
fields = []
for statement in _statements(body):
rest = _LEADING_ATTRS.sub("", statement.split("=")[0]).strip()
if rest:
fields.append(_WORD.findall(rest)[-1])
own[m.group(1)] = (m.group(2), fields)
def flat(name: str) -> List[str]:
parent, fields = own[name]
return sorted(set(fields) | (set(flat(parent)) if parent in own else set()))
return {
"methods": {k: methods[k] for k in sorted(methods)},
"attributes": {k: attributes[k] for k in sorted(attributes)},
"dictionaries": {k: flat(k) for k in sorted(own)},
}
def extract(idl_text: str, webidl_text: str) -> Dict[str, Any]:
return {"window_utils": window_utils(idl_text), "window": window(webidl_text)}
def only_in_ours(mozilla: Dict[str, Any], ours: Dict[str, Any]) -> Dict[str, Any]:
"""What the extraction of our tree carries and Mozilla's does not."""
out: Dict[str, Any] = {"window_utils": {}, "window": {"methods": [], "attributes": [], "dictionaries": {}}}
for kind in ("methods", "attributes", "constants"):
out["window_utils"][kind] = sorted(set(ours["window_utils"][kind]) - set(mozilla["window_utils"][kind]))
for kind in ("methods", "attributes"):
out["window"][kind] = sorted(set(ours["window"][kind]) - set(mozilla["window"][kind]))
for name, fields in ours["window"]["dictionaries"].items():
extra = sorted(set(fields) - set(mozilla["window"]["dictionaries"].get(name, [])))
if extra:
out["window"]["dictionaries"][name] = extra
return out
def _git_show(repo: Path, ref: str, path: str) -> bytes:
return subprocess.run(["git", "-C", str(repo), "show", "%s:%s" % (ref, path)], check=True, capture_output=True).stdout
def _read_source(repo: Path, ref: str) -> Tuple[Dict[str, Any], Dict[str, Any]]:
blobs = {path: _git_show(repo, ref, path) for path in SOURCES}
parsed = extract(blobs[WINDOW_UTILS_IDL].decode("utf-8"), blobs[WINDOW_WEBIDL].decode("utf-8"))
sources = [{"path": path, "sha256": hashlib.sha256(blobs[path]).hexdigest()} for path in SOURCES]
commit = subprocess.run(["git", "-C", str(repo), "rev-parse", "%s^{commit}" % ref], check=True, capture_output=True, text=True).stdout.strip()
return parsed, {"ref": ref, "commit": commit, "files": sources}
def build(mozilla_repo: Path, tag: str, ours_repo: Path, ours_ref: str) -> Dict[str, Any]:
mozilla, mozilla_source = _read_source(mozilla_repo, tag)
ours, ours_source = _read_source(ours_repo, ours_ref)
return {
"about": "Names a chrome-scope script of a test may call on the retail Firefox of the twins, extracted by scripts/extract_mozilla_chrome_api.py. Never edited by hand.",
"mozilla": dict(mozilla_source, **mozilla),
"ours": dict(ours_source, **only_in_ours(mozilla, ours)),
}
def main(argv: Optional[List[str]] = None) -> int:
ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
ap.add_argument("--mozilla-repo", type=Path, required=True)
ap.add_argument("--tag", required=True)
ap.add_argument("--ours-repo", type=Path, required=True)
ap.add_argument("--ours-ref", required=True)
ap.add_argument("--write", action="store_true", help="write ci/mozilla-chrome-api.json; without it the file is compared and the exit is 1 when it differs")
args = ap.parse_args(argv)
data = build(args.mozilla_repo, args.tag, args.ours_repo, args.ours_ref)
text = json.dumps(data, indent=2, sort_keys=True) + "\n"
if args.write:
DATA_PATH.write_text(text, encoding="utf-8", newline="\n")
print("wrote %s" % DATA_PATH)
return 0
same = DATA_PATH.read_text(encoding="utf-8") == text
print("%s %s" % (DATA_PATH, "is what the sources give" if same else "DIFFERS from what the sources give: regenerate it with --write"))
return 0 if same else 1
if __name__ == "__main__":
sys.exit(main())
+43 -6
View File
@@ -10,7 +10,9 @@ seeds. This computes them from the prefs themselves, never from a list of the ta
is a seed dimension);
* every pref whose value differs between two seeds must belong to a DIMENSION below (a group of prefs read
together: the renderer, the screen panel, the audio chain...) or be named in EXCLUDED with its reason. A pref
that varies and is in neither is an error, so a new pref of a later core cannot go uncovered unnoticed;
that varies and is in neither is an error, so a new pref of a later core cannot go uncovered unnoticed. A pref that
is a function of a dimension (the bar of a maximized window is of the panel) is in DERIVED instead: it is checked to
take one value per value of its dimension, and it is no part of the stored features;
* a dimension's value for a seed is the joint value of its prefs; the reachable values of a dimension are the
ones some seed in range produces.
@@ -56,7 +58,7 @@ DIMENSIONS = {
"gfx_feature_status": (P + "gfx.feature_status",),
"screen_panel": (P + "screen.width", P + "screen.height", P + "screen.avail_device_width",
P + "screen.avail_device_height", "layout.css.devPixelsPerPx"),
"dpr": ("layout.css.devPixelsPerPx", P + "screen.frame_border", P + "screen.maximized_ui", P + "screen.popup_ui"),
"dpr": ("layout.css.devPixelsPerPx", P + "screen.frame_border", P + "screen.popup_ui", P + "screen.popup_client_top"),
"cores": (P + "hw_concurrency",),
"audio": (P + "audio.sample_rate", P + "audio.output_latency_ms", P + "audio.max_channel_count"),
"codecs": ("media.av1.enabled", "media.encoder.webm.enabled", "media.mp4.enabled", "media.webm.enabled",
@@ -73,6 +75,22 @@ EXCLUDED = {
P + "media.enumeration_ms": "the time of the first enumerateDevices(): a draw from its own stream, hundreds of values, "
"no class of seeds to cover",
}
#: Prefs that are a function of a dimension: {pref: the dimension}. They are not part of the dimension's value (so the
#: stored features do not depend on which core emits them) and compute() CHECKS that, across the seeds, each takes exactly
#: one value per value of its dimension, like the webgl prefs per renderer. A derived pref the core does not emit at all is
#: fine: it is the pref of a core that comes later than the one in use (or earlier than the one that added it), and the pair
#: of cores must give the same file. maximized_ui is of the panel because the core declares the bar from the work area's
#: height as well as from the scale (declared_maximized_ui: compact when the work area is short in CSS px).
#: The screen's size in device pixels is of the panel too: the core declares it as the whole panel (device_width and
#: device_height of ScreenProfile, invisible_core/_fpforge/profile.py:121 and :126; the prefs, invisible_core/prefs.py:1293-1294)
#: and the work area as the screen minus the taskbar (profile.py:131-145). So, from the panel's own prefs, the width is
#: avail_device_width and the height is avail_device_height plus the taskbar in device pixels. The test compares the prefs with
#: the core's own ScreenProfile for each seed: no copy of the taskbar or of the formula lives here.
DERIVED = {
P + "screen.maximized_ui": "screen_panel",
P + "screen.device_width": "screen_panel",
P + "screen.device_height": "screen_panel",
}
#: What the candidate run visits: the smallest set that reaches every one of these dimensions' values.
CANDIDATE_DIMENSIONS = ("webgl_renderer", "dpr")
WEBGL = P + "webgl."
@@ -106,6 +124,7 @@ def seed_features(seed: int) -> tuple:
features["gfx_device"] = profile.gpu.device or "<none>"
webgl = {k: json.dumps(v, sort_keys=True) for k, v in prefs.items() if k.startswith(WEBGL)}
features["_webgl"] = hashlib.sha256(json.dumps(webgl, sort_keys=True).encode()).hexdigest()[:12]
features["_derived"] = {k: json.dumps(prefs.get(k, "<absent>"), sort_keys=True) for k in DERIVED}
return features, {k: json.dumps(v, sort_keys=True) for k, v in prefs.items()}
@@ -125,11 +144,25 @@ def _range(bounds: tuple) -> tuple:
return features, seen
def check_derived(features: dict) -> None:
"""Raises when a DERIVED pref takes two values within one value of its dimension. features: {seed: {dimension: value,
"_derived": {pref: value}}}. A pref no seed has is skipped (a core that does not emit it)."""
for pref, dim in DERIVED.items():
seen = {}
for seed in sorted(features):
value = features[seed]["_derived"][pref]
if seen.setdefault(features[seed][dim], (value, seed))[0] != value:
first = seen[features[seed][dim]]
raise SystemExit("the derived pref %s is not a function of the dimension %s (seed %d: %s, seed %d: %s, "
"both with %s): it belongs to a wider dimension" % (
pref, dim, first[1], first[0], seed, value, features[seed][dim]))
def compute(max_seed: int = MAX_SEED, workers: int | None = None) -> dict:
"""The features of every seed 0..max_seed-1: {seed: {dimension: value}} (the dimensions of ALL_DIMENSIONS).
Raises when a pref varies across the seeds and is in no dimension and not in EXCLUDED, or when the webgl prefs are
not a function of the renderer."""
Raises when a pref varies across the seeds and is in no dimension and not in EXCLUDED or DERIVED, when a DERIVED
pref is not a function of its dimension, or when the webgl prefs are not a function of the renderer."""
workers = workers or max(1, min(os.cpu_count() or 1, 8))
step = max(1, -(-max_seed // (workers * 4)))
bounds = [(lo, min(lo + step, max_seed)) for lo in range(0, max_seed, step)]
@@ -145,10 +178,12 @@ def compute(max_seed: int = MAX_SEED, workers: int | None = None) -> dict:
seen.setdefault(k, set()).update(vs)
covered = {k for keys in DIMENSIONS.values() for k in keys}
varying = sorted(k for k, vs in seen.items() if len(vs) > 1)
loose = [k for k in varying if k not in covered and k not in EXCLUDED and not k.startswith(WEBGL)]
loose = [k for k in varying if k not in covered and k not in EXCLUDED and k not in DERIVED and not k.startswith(WEBGL)]
if loose:
raise SystemExit("prefs that vary across seeds and belong to no dimension and are not excluded: %s\n"
"add each to a DIMENSION or to EXCLUDED (with the reason) in scripts/persona_cover.py" % loose)
"add each to a DIMENSION, to DERIVED (a function of one) or to EXCLUDED (with the reason) in "
"scripts/persona_cover.py" % loose)
check_derived(features)
byrenderer = {}
for seed in sorted(features):
f = features[seed]
@@ -156,6 +191,8 @@ def compute(max_seed: int = MAX_SEED, workers: int | None = None) -> dict:
raise SystemExit("the webgl prefs are not a function of the renderer (seed %d, %s): split the dimension"
% (seed, f["webgl_renderer"]))
del f["_webgl"]
for f in features.values():
del f["_derived"]
stale = [k for k in EXCLUDED if k not in seen or len(seen[k]) < 2]
if stale:
raise SystemExit("excluded prefs that no longer vary: %s: remove them from EXCLUDED" % stale)
+25 -4
View File
@@ -10,6 +10,12 @@ red when our engine does not idle where stock does. Profile P4: a user journey o
(tests/fakeweb/journey_site.py); stock Firefox runs first, then our engine, and the verdict compares every step field by
field (ok, url, title, marker, cookies, history length, open pages, idle, the step's own values). --repetitions is the
number of walks (P4: default 1). The stock client drives both.
The bound of a P2 wait: a P2 page is finite (MAX_DELAY_MS, 3000 ms, is its longest response) and networkidle needs 500 ms of quiet,
so the 10 s default is a cap with margin, never to be read as a cause. A stock cell that does not idle is a broken control or, by
pages.json `stock_firefox_may_lose` (a request the page itself aborts, which stock may never report the end of), stock unsettled:
not red, and ours is then judged against the outcome the page declares. The report keeps `stock_unsettled`, `platform` and the
`stock_unsettled_rate` per pattern, so the rate per platform can be followed across runs from the artifacts.
"""
from __future__ import annotations
@@ -101,16 +107,31 @@ def main(argv=None):
if args.no_stock: # stock is what pages.json says it is
stock = [dict(c, idle=declared.get(c["pattern"], "idle") == "idle") for c in candidate]
fails, broken = profile_p2.verdict(candidate, stock, declared)
report = {"profile": args.profile, "patterns": patterns, "repetitions": args.repetitions,
"candidate": candidate, "stock": stock, "fails": fails, "broken_control": broken}
may_lose = pages.get("stock_firefox_may_lose", {})
fails, broken, unsettled = profile_p2.verdict(candidate, stock, declared, may_lose)
return finish_p2(args, patterns, candidate, stock, fails, broken, unsettled, may_lose)
def finish_p2(args, patterns, candidate, stock, fails, broken, unsettled, may_lose):
"""The report of a P2 run (written to --out), the lines printed, and the exit code: 1 on a fail or a broken control, never on unsettled alone."""
by_key = {(c["round"], c["pattern"], c["canary"], c["after"]): c for c in stock}
unsettled_cells = [{"round": key[0], "pattern": key[1], "in_flight": [r.get("url") for r in by_key[key].get("in_flight") or []]}
for key, _err in unsettled]
rate = {pattern: {"unsettled": sum(1 for u in unsettled_cells if u["pattern"] == pattern),
"rounds": sum(1 for c in stock if c["pattern"] == pattern and not c["canary"])}
for pattern in may_lose}
report = {"profile": args.profile, "patterns": patterns, "repetitions": args.repetitions, "platform": sys.platform,
"candidate": candidate, "stock": stock, "fails": fails, "broken_control": broken,
"stock_unsettled": unsettled_cells, "stock_unsettled_rate": rate}
if args.out:
pathlib.Path(args.out).write_text(json.dumps(report, indent=1), encoding="utf-8")
for key, err in fails:
print("FAIL round %d %s%s: %s" % (key[0], key[1], " (canary after %s)" % key[3] if key[2] else "", err))
for key, err in broken:
print("BROKEN CONTROL stock did not idle on %s round %d: %s" % (key[1], key[0], err))
print("cells: %d, fails: %d, broken controls: %d" % (len(candidate), len(fails), len(broken)))
for cell in unsettled_cells:
print("STOCK UNSETTLED %s round %d: %s (pages.json stock_firefox_may_lose)" % (cell["pattern"], cell["round"], ", ".join(map(str, cell["in_flight"]))))
print("cells: %d, fails: %d, broken controls: %d, stock unsettled: %d" % (len(candidate), len(fails), len(broken), len(unsettled_cells)))
return 1 if (fails or broken) else 0
@@ -109,6 +109,57 @@ class ExpectNotMet(ProtocolException):
self.log = list(log or [])
class Deferred:
"""An answer that comes LATER: what a command returns when it has to wait for something long and must not hold the worker that
took it.
⛔ THE TRANSPORT'S WORKERS ARE FEW (`InProcessTransport.WORKERS` is 4, the remote server's 8) and shared by every command of a
client. A command that waits (a proxied `newContext` waits for the final UDP verdict of its proxy: ~11 s for a first endpoint)
held one for the whole wait, and four of them left no worker for a `page.evaluate`. A command that answers LATER hands its work to a
thread of its own (started by the server's one starter, like the engine reader's adoptions) and returns this object at once; the
worker is free, and the transport posts the reply when the work ends, the way a worker posts it (`begin`). Nothing else changes:
the object that answers is still the one the client addressed, and the reply is still the one with the client's id.
The work runs in the context the call had (`contextvars`: the call's log, the remote server's client), and the thread ends with
the work. It is counted by the server, and `Server.shutdown` waits for it (bounded) after the engine's connection is closed, so
a session that ends leaves none behind."""
def __init__(self, server: "Server", work: Callable[[], Any]) -> None:
self._server = server
self._work = work
self._context = contextvars.copy_context()
#: Set when the work has ended and its answer has been handed over (or when it could never begin).
self.finished = threading.Event()
def begin(self, done: Callable[[Any, Optional[BaseException]], None]) -> None:
"""Run the work on its own thread and hand `done(result, failure)` its end. Called by the worker that took the command: it
returns at once (the thread is only queued to the starter)."""
server = self._server
def run() -> None:
try:
try:
result = self._context.run(self._work)
except Exception as failure: # noqa: BLE001 - the client is told, as for a command answered at once
done(None, failure)
else:
done(result, None)
finally:
server._deferred_ended(self)
def could_not_begin(why: str) -> None:
try:
done(None, ProtocolException("the answer could not be started: %s" % why))
finally:
server._deferred_ended(self)
if not server._deferred_begun(self):
self.finished.set() # the session is ending: there is nobody to answer
return
server.thread_starter.start_built(
threading.Thread(target=run, name="invpw-answer-later", daemon=True), could_not_begin)
class CallLog:
"""What one call did, line by line: the log Playwright's server keeps per
call (its progress, `metadata.log`) and sends with a failure, where the
@@ -229,6 +280,8 @@ class Dispatcher:
# ── routing ─────────────────────────────────────────────────────────────
def call(self, method: str, params: Dict) -> Any:
name = self.METHODS.get(method)
if name is not None and self.answers_later(method, params):
return self.server.later(lambda: getattr(self, name)(params))
if name is None:
# ⛔ NAME THE FEATURE, not just the missing method. "Page has no
# method X" reads like a bug in this package; "X is part of HAR,
@@ -245,6 +298,12 @@ class Dispatcher:
return getattr(self, name)(params)
def answers_later(self, method: str, params: Dict) -> bool:
"""Whether this call waits for something long and must be answered from a thread of its own (`Deferred`), not by the worker
that took it. Nothing does, unless an object says so."""
return False
class Server:
"""The guid registry, and the entry point the transport calls."""
@@ -281,6 +340,8 @@ class Server:
self._starter: Optional[ThreadStarter] = None
self._starter_lock = threading.Lock()
self._is_shut_down = False
#: The answers that are being worked out on a thread of their own (`later`), until each ends.
self._deferred: set = set()
#: Why a thread the starter was handed could not be started (the last few).
self.start_errors: list = []
@@ -302,6 +363,35 @@ class Server:
if len(self.start_errors) < 32:
self.start_errors.append(why)
#: How long `shutdown` waits for the answers still being worked out (`later`) once the engine's connection is closed: the longest wait of
#: a command (a proxy's UDP verdict ends at nICEr's schedule, ~11 s after the TCP exit is known) with a margin. Their threads are daemons:
#: past this the process is not held.
DEFERRED_WAIT_S = 15.0
def later(self, work: Callable[[], Any]) -> Deferred:
"""The answer of a command whose `work` takes long: a call returns this instead of its result and the transport posts the reply
when `work` ends (see `Deferred`). Called from the worker that took the command."""
return Deferred(self, work)
def _deferred_begun(self, deferred: Deferred) -> bool:
with self._starter_lock:
if self._is_shut_down:
return False
self._deferred.add(deferred)
return True
def _deferred_ended(self, deferred: Deferred) -> None:
with self._starter_lock:
self._deferred.discard(deferred)
deferred.finished.set()
def _wait_for_deferred(self) -> None:
deadline = time.monotonic() + self.DEFERRED_WAIT_S
with self._starter_lock:
pending = list(self._deferred)
for deferred in pending:
deferred.finished.wait(max(0.0, deadline - time.monotonic()))
def attach(self, transport: Any) -> None:
self._transport = transport
@@ -477,6 +567,9 @@ class Server:
except Exception:
pass
self._after_shutdown.clear()
# The engine's connection is closed (the hooks above): an answer still being worked out fails at its next command, and the wait
# of its own (a measurement) is the only thing left to wait for.
self._wait_for_deferred()
with self._starter_lock:
self._is_shut_down = True
starter = self._starter
@@ -215,3 +215,45 @@ def refusal(operation):
"invisible_playwright does not implement: the package covers the "
"automation core, and " + feature + " is outside it by decision, "
"not by omission. See 32-stacco-da-playwright.md section 5.4.")
#: ⛔ A PARAMETER OF A SERVED OPERATION THAT IS REFUSED, keyed by (operation, parameter), and the sentence a caller reads.
#: The operations above are refused whole; these are refused one parameter (or one value of it) at a time, and the call
#: without them is served. They are raised in `server.py` by `_refuse_parameter(operation, parameter)`, the one function
#: that reads this table, and `tests/test_every_refusal_is_declared.py` holds the two sides to each other.
#:
#: ⛔ WHY THESE FIVE. Stock Playwright honours `mask`, `style` and `animations="disabled"` by MODIFYING THE PAGE (an overlay,
#: an injected `<style>`, animations finished or cancelled) before the picture and putting it back after. This package does
#: not touch a page to photograph it, and until now it did not read them either: the call succeeded and the picture was as
#: if they had not been written, which a caller cannot see. `caret="initial"` asks for the text caret to be drawn, and the
#: engine never draws it (the capture does not set the flag that draws it), so the picture it takes is the one `"hide"`
#: asks for, which is also Playwright's default: `"hide"` and an absent `caret` are served. `omitBackground` with png is
#: Firefox's own `Not implemented` in stock (`FFPage.setBackgroundColor`), word for word; with jpeg stock does nothing and
#: neither do we.
REFUSED_PARAMETERS = {
("screenshot", "mask"):
"screenshot(mask=...) is not served: Playwright covers the masked elements by modifying the page (an overlay is "
"put on it before the picture), and this package does not touch a page to take a picture. maskColor goes with "
"mask and is refused with it. Hide the elements yourself before the screenshot (for example set their "
"visibility to hidden in your own script) and restore them after.",
("screenshot", "style"):
"screenshot(style=...) is not served: Playwright applies it by modifying the page (a <style> element is "
"injected before the picture and removed after), and this package does not touch a page to take a picture. Add "
"the style yourself with page.add_style_tag() before the screenshot and remove the element it returns after.",
("screenshot", "animations"):
'screenshot(animations="disabled") is not served: Playwright does it by modifying the page (the finite '
"animations are finished and the infinite ones cancelled), and this package does not touch a page to take a "
"picture. Wait for the animations to end, or pause them in your own script (document.getAnimations()), before "
'the screenshot. animations="allow" is what is served.',
("screenshot", "caret"):
'screenshot(caret="initial") is not served: it asks for the text caret to be drawn in the picture, and the '
'engine never draws it (the picture is the one caret="hide" asks for, which is the default of Playwright). Leave '
'caret out or pass "hide".',
("screenshot", "omitBackground"):
"Not implemented",
}
def parameter_refusal(operation, parameter):
"""The sentence for a refused (operation, parameter): `KeyError` for one that is not declared."""
return REFUSED_PARAMETERS[(operation, parameter)]
+31 -11
View File
@@ -22,9 +22,12 @@ used to answer, carried over unchanged):
* NOT `Mouse.move`: an explicit move is the caller's. (The in-process client
marks its own with `humanise`, see `_cursor._wrap_mouse_move`; a client that
does not say so is answered with exactly the point it named.)
* NOT the actions of an ElementHandle (they name a node, never a selector, and
the in-process client never walked onto them either) and NOT `dragAndDrop`,
whose travel the core's `Actions` already draws.
* `ElementHandle.click / dblclick / hover / tap / check / uncheck` (and so
`set_checked`): the same walk, onto the node the handle already names
(`act(..., element=)`: the node is not looked up again and is not disposed).
One click path is one fingerprint, so a handle click and a selector click
arrive as the same kind of stroke;
* NOT `dragAndDrop`, whose travel the core's `Actions` already draws.
HOW IT STAYS THE SAME AS THE CLIENT WAS. The stroke generator, the planners
(`_behaviour`) and the discipline events are delivered under (`Pacer`) are the
@@ -391,9 +394,14 @@ class Pointer:
# -- the probes --------------------------------------------------------
def _element_box(self, frame_id: str, selector: str) -> Tuple[Optional[str], Optional[dict]]:
def _element_box(self, frame_id: str, selector: str,
element: Optional[str] = None) -> Tuple[Optional[str], Optional[dict]]:
"""Resolve the element and its box, or (None, None). Never raises.
``element`` is a node the caller already holds (an ElementHandle's): it is
measured as it is, never looked up again from ``selector``, and it is not
ours to dispose.
Deliberately non-blocking and deliberately forgiving: this is a hint
used to aim a mouse path, never a correctness step. It resolves the
element if it is already there and gives up otherwise, so it can
@@ -401,6 +409,12 @@ class Pointer:
failing one - the action itself still does its own waiting and raises
its own errors.
"""
if element is not None:
try:
box = self.injected.bounding_box(frame_id, element)
except _PROBE_ERRORS:
return None, None # the handle's node is gone: the action meets that itself
return (element, box) if box else (None, None)
try:
handle = self.injected.query_selector(frame_id, selector)
except _PROBE_ERRORS:
@@ -442,10 +456,11 @@ class Pointer:
return False
def _choose_landing(self, frame_id: str, selector: str,
position: Optional[dict]) -> Optional[_Aim]:
position: Optional[dict],
element: Optional[str] = None) -> Optional[_Aim]:
"""Pick the point on the element this action will land on."""
hand = self.hand
handle, box = self._element_box(frame_id, selector)
handle, box = self._element_box(frame_id, selector, element)
if handle is None or box is None:
return None
try:
@@ -476,7 +491,8 @@ class Pointer:
return _Aim(box, (box["x"] + box["width"] / 2.0,
box["y"] + box["height"] / 2.0), None)
finally:
self._dispose(frame_id, handle)
if element is None: # a node the caller holds stays the caller's
self._dispose(frame_id, handle)
# -- travelling --------------------------------------------------------
@@ -582,7 +598,8 @@ class Pointer:
# -- the entry points --------------------------------------------------
def approach(self, frame_id: str, selector: str, position: Optional[dict],
trial: bool = False) -> Optional[Dict[str, float]]:
trial: bool = False,
element: Optional[str] = None) -> Optional[Dict[str, float]]:
"""Walk the pointer onto the element this action is about to touch.
Returns the `position` the action should run with, or None.
@@ -598,7 +615,7 @@ class Pointer:
hand.busy = True
hand.action += 1
try:
aim = self._choose_landing(frame_id, selector, position)
aim = self._choose_landing(frame_id, selector, position, element)
if aim is None:
return None
w, h = self._viewport()
@@ -614,9 +631,12 @@ class Pointer:
def act(self, frame_id: str, selector: str, position: Optional[dict],
timeout: Optional[float], run: Callable[[Optional[dict], Optional[float]], Any],
*, trial: bool = False) -> Any:
*, trial: bool = False, element: Optional[str] = None) -> Any:
"""Run a pointer action on an element the way a hand would.
``element`` is the object id of a node the caller already holds (an
ElementHandle): the walk aims at THAT node and `selector` is not looked up.
`run(position, timeout)` performs the plain action with those two
arguments. The approach comes first; if it chose a landing point the
action is told to click it, within a bounded slice of the caller's
@@ -626,7 +646,7 @@ class Pointer:
"""
override = None
try:
override = self.approach(frame_id, selector, position, trial)
override = self.approach(frame_id, selector, position, trial, element)
except _PROBE_ERRORS as exc: # motion never fails an action for what the engine or the page answers; a bug of ours is not that
_cursor._warn_once(
"approach-failed",
+11 -2
View File
@@ -70,7 +70,7 @@ from typing import Any, Callable, Dict, List, Optional
from urllib.parse import parse_qs, urlsplit
from . import memprobe, wire
from .dispatcher import ProtocolException
from .dispatcher import Deferred, ProtocolException
from .server import (BrowserDispatcher, BrowserTypeDispatcher, JugglerServer,
LocalUtilsDispatcher, RefusingDispatcher)
from .transport import _error_payload
@@ -450,7 +450,16 @@ class RemoteEndpoint:
except Exception as failure: # noqa: BLE001
self._reply_error(client, msg_id, failure)
else:
self._reply(client, msg_id, result)
if isinstance(result, Deferred):
# The answer comes later (see `Deferred`): this worker is free at once, the thread that works it out posts the reply.
def done(value: Any, failure: Optional[BaseException]) -> None:
if failure is not None:
self._reply_error(client, msg_id, failure)
else:
self._reply(client, msg_id, value)
result.begin(done)
else:
self._reply(client, msg_id, result)
def _dispatch(self, client: RemoteClient, message: Dict) -> Any:
guid = message.get("guid")
+180 -34
View File
@@ -47,7 +47,7 @@ from invisible_core.juggler import PageActs, popup_number
from invisible_core.juggler import connection as juggler
from invisible_core.juggler.actions import Actions
from invisible_core.juggler.deadline import Deadline
from . import _bindings, dialogs
from . import _bindings, dialogs, perimeter
from ._reaped import SessionRemoval
from ._threads import ThreadStarterLease
from .pointer import Pointer
@@ -77,7 +77,7 @@ from ._marshal import (_js_number, _as_script, _button, _caller_timeout,
# the same duplication that produced the defect, one layer down.
from invisible_core import SessionLocale, parse_proxy
from invisible_core._proxy import UDP_EXIT_VALUES
from invisible_core._udp_exit import context_proxy_command, launch_proxy_command, stun_servers
from invisible_core._udp_exit import UdpExitCache, context_proxy_command, launch_proxy_command, stun_servers
from invisible_core import write_user_js
from invisible_core.juggler import (SessionFiles, domain_matches, host_of,
@@ -676,6 +676,37 @@ def _run_callers_code(injected: InjectedScript, frame_id: str, params: Dict,
argument.release()
def _refuse_parameter(operation: str, parameter: str):
"""Refuse one parameter of a served operation with the sentence `perimeter.REFUSED_PARAMETERS` holds for it.
⛔ THE ONLY WAY A PARAMETER IS REFUSED, so that the inventory and the code cannot drift: the test of the refusals reads
every call of this function in the file and holds it to that table, both ways."""
raise ProtocolException(perimeter.parameter_refusal(operation, parameter))
def _refuse_unserved_screenshot_parameters(params: Dict) -> None:
"""⛔ WHAT STOCK DOES BY MODIFYING THE PAGE IS REFUSED, NOT IGNORED, AND BEFORE THE PAGE IS TOUCHED. `mask`, `style` and
`animations="disabled"` change the page before the picture in Playwright; this server took them without reading them, and the
picture came back as if they had not been written. `caret="initial"` asks for the text caret to be drawn, which the engine never
does. `omitBackground` with png is Firefox's own `Not implemented` (stock reaches it only for png). The sentences are
`perimeter.REFUSED_PARAMETERS`'.
⛔ THE ONE CHECK, CALLED FIRST BY THE PAGE'S SCREENSHOT AND BY THE ELEMENT'S (a locator's is the element's): the element's call
scrolls the element into view and measures it, and a call that is going to be refused must not have done either. It reads
`params` and nothing else, so calling it again with the same parameters, as the element's call does through the page's, answers
the same."""
if params.get("mask"):
_refuse_parameter("screenshot", "mask")
if params.get("style"):
_refuse_parameter("screenshot", "style")
if params.get("animations") == "disabled":
_refuse_parameter("screenshot", "animations")
if params.get("caret") == "initial":
_refuse_parameter("screenshot", "caret")
if params.get("omitBackground") and params.get("type") != "jpeg":
_refuse_parameter("screenshot", "omitBackground")
def _round_px(value: float) -> int:
"""To the nearest whole pixel, halves up (Python's `round` goes to even: 0.5 -> 0, 1.5 -> 2)."""
import math
@@ -1071,6 +1102,8 @@ class ElementHandleDispatcher(Dispatcher):
Playwright's screenshotter does: the left and top edges to the nearest
pixel, the size from the rounded right and bottom edges.
"""
# ⛔ THE REFUSAL COMES BEFORE THE SCROLL AND THE MEASURE: a call that is refused must not have moved the page.
_refuse_unserved_screenshot_parameters(params)
# An element with no layout object (display: none, detached) cannot be scrolled to: the engine says so
# with an exception of its own. For the caller that is the same answer as an empty box.
try:
@@ -1123,17 +1156,24 @@ class ElementHandleDispatcher(Dispatcher):
# `page.query_selector(...).click()` is ordinary code - and the rest keep
# reporting themselves as missing rather than being filled in for symmetry.
#
# ⛔ THEY GO THROUGH THE SAME `actions` AS THE SELECTOR VERSIONS, and that is
# the whole design. `click` here is the humanised pointer: approach, hover,
# press, release, with the hit-target check and the actionability retry. A
# second, simpler path would be quicker to write and would give this package
# two click behaviours with two fingerprints, which is the one thing it
# exists not to have.
# ⛔ THEY GO THROUGH THE SAME `actions` AND THE SAME HAND AS THE SELECTOR
# VERSIONS, and that is the whole design. The pointer actions (click,
# dblclick, hover, tap, check, uncheck) are drawn by `FrameDispatcher._by_hand`
# (`Pointer.act`): a path onto the element, a landing point of the session's
# own, and then the core's action with the hit-target check and the
# actionability retry. They used to call `actions` directly, and the core's
# approach with no client cursor is ONE `mousemove` onto the exact centre of the
# element's box and a press there: a handle click was a jump to the centre where
# the selector's was a walk, two click behaviours with two fingerprints, which
# is the one thing this package exists not to have.
#
# What differs from a selector click is exactly what SHOULD differ: the node
# is not looked up again, because a handle names one node and re-querying
# would find a different element with the same description; and the node is
# not disposed afterwards, because the caller still holds it.
# would find a different element with the same description (the hand aims at
# the handle's own object, `element=`); and the node is not disposed
# afterwards, because the caller still holds it. The keyboard and text
# actions (fill, type, press, focus, selectText, setInputFiles) have no hand to
# draw: their rhythm lives in the core's action, which both doors call.
#
# The parameter helpers are the frame's. `self.frame._timeout` rather than a
# copy: the rules for reading a timeout, a position and the pointer flags out
@@ -1151,29 +1191,37 @@ class ElementHandleDispatcher(Dispatcher):
"element_id": self.object_id,
**self.frame._act_opts(params)}
def _by_hand(self, params: Dict, run: Callable[[Any, Any], Any]) -> Any:
"""A pointer action of THIS node with the session's hand in front of it: the Frame's own (`FrameDispatcher._by_hand`, the one
walk), aimed at the handle's object and not at a selector. `run(position, timeout)` is the plain action; it takes the position
and the timeout the hand chose, and everything else from `_act_args`."""
return self.frame._by_hand(params, self.frame.frame_id, _HANDLE, run, element=self.object_id)
def op_click(self, params: Dict) -> Any:
self.frame._waiting_after(params, lambda: self.frame.actions.click(
_HANDLE, position=self.frame._position(params),
**self.frame._pointer(params), **self._act_args(params)))
pointer = self.frame._pointer(params)
self.frame._waiting_after(params, lambda: self._by_hand(
params, lambda position, timeout: self.frame.actions.click(
_HANDLE, **{**self._act_args(params), "timeout": timeout},
position=position, **pointer)))
return None
def op_hover(self, params: Dict) -> Any:
self.frame.actions.hover(_HANDLE, position=self.frame._position(params),
**self._act_args(params))
self._by_hand(params, lambda position, timeout: self.frame.actions.hover(
_HANDLE, **{**self._act_args(params), "timeout": timeout}, position=position))
return None
def op_dblclick(self, params: Dict) -> Any:
pointer = self.frame._pointer(params)
# dblclick sets its own clickCount; the caller's is not a second one.
pointer.pop("clicks", None)
self.frame.actions.dblclick(
_HANDLE, position=self.frame._position(params), **pointer,
**self._act_args(params))
self._by_hand(params, lambda position, timeout: self.frame.actions.dblclick(
_HANDLE, **{**self._act_args(params), "timeout": timeout},
position=position, **pointer))
return None
def op_tap(self, params: Dict) -> Any:
self.frame.actions.tap(_HANDLE, position=self.frame._position(params),
**self._act_args(params))
self._by_hand(params, lambda position, timeout: self.frame.actions.tap(
_HANDLE, **{**self._act_args(params), "timeout": timeout}, position=position))
return None
def op_select_text(self, params: Dict) -> Any:
@@ -1187,13 +1235,13 @@ class ElementHandleDispatcher(Dispatcher):
return None
def op_check(self, params: Dict) -> Any:
self.frame.actions.check(_HANDLE, position=self.frame._position(params),
**self._act_args(params))
self._by_hand(params, lambda position, timeout: self.frame.actions.check(
_HANDLE, **{**self._act_args(params), "timeout": timeout}, position=position))
return None
def op_uncheck(self, params: Dict) -> Any:
self.frame.actions.uncheck(_HANDLE, position=self.frame._position(params),
**self._act_args(params))
self._by_hand(params, lambda position, timeout: self.frame.actions.uncheck(
_HANDLE, **{**self._act_args(params), "timeout": timeout}, position=position))
return None
def op_fill(self, params: Dict) -> Any:
@@ -1807,7 +1855,7 @@ class FrameDispatcher(Dispatcher):
return result
def _by_hand(self, params: Dict, frame_id: str, selector: str,
run: Callable[[Any, Any], Any]) -> Any:
run: Callable[[Any, Any], Any], *, element: Optional[str] = None) -> Any:
"""Run a pointer action with the hand of the session in front of it.
⛔ THE WALK ONTO THE ELEMENT IS DRAWN HERE, once, for every client: it
@@ -1816,13 +1864,17 @@ class FrameDispatcher(Dispatcher):
`run(position, timeout)` is the plain action; with no hand (humanising
off, the engine's own expansion) it is all that happens, with the
caller's own arguments.
⛔ ONE WALK FOR EVERY DOOR. An ElementHandle's pointer actions come through
here too, with `element` the object id of the node they name: the hand then
aims at THAT node (`selector` is not looked up) and leaves it undisposed.
"""
hand = self.page.pointer
if hand is None or not hand.active:
return run(self._position(params), self._timeout(params))
return hand.act(frame_id, selector, self._position(params),
self._timeout(params), run,
trial=self._act_opts(params)["trial"])
trial=self._act_opts(params)["trial"], element=element)
def op_click(self, params: Dict) -> Any:
frame_id, selector = self.enter_frames(params["selector"])
@@ -3102,6 +3154,29 @@ def _with_trace(failure: BaseException, trace: str) -> BaseException:
return RuntimeError("%s [%s]" % (failure, trace))
#: The key of a context's `viewport` that says the size is only the one the core declares for the main window (`context_geometry`), not one
#: the user chose. The session puts it on its default context options (`_default_context_kwargs`); a viewport the user passes has no such
#: key, so it replaces the declared one whole. It travels to the engine as `isDeclaredDefault` of `Browser.setDefaultViewport`, where a popup
#: that names no size is then left to its own window; it never reaches the client (`_viewport_as_told`).
DECLARED_VIEWPORT_KEY = "isDeclaredDefault"
def declared_viewport(viewport: Dict[str, Any]) -> Dict[str, Any]:
"""`viewport` (the core's `{"width", "height"}`) marked as the declared default of the session."""
return dict(viewport, **{DECLARED_VIEWPORT_KEY: True})
def _viewport_is_declared(viewport: Optional[Dict[str, Any]]) -> bool:
return bool(viewport and viewport.get(DECLARED_VIEWPORT_KEY))
def _viewport_as_told(viewport: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]:
"""The size the client is told: the width and the height, never the mark."""
if not viewport:
return None
return {"width": viewport["width"], "height": viewport["height"]}
def _target_is_gone(error: BaseException) -> bool:
"""Whether a failed command failed because the target or its session no longer exists (the engine closed the tab under it)."""
if isinstance(error, juggler.TargetClosedError):
@@ -3370,16 +3445,22 @@ class PageDispatcher(Dispatcher):
self.actions = context.browser.actions_for_page(
session, self.lifecycle, self.injected, self.number)
#: The viewport as the client was told it (the initializer's, then
#: `setViewportSize`): the hand plans inside it.
self.viewport_size = context.options.get("viewport") or {
#: `setViewportSize`): the hand plans inside it, unless the page is not pinned (`planning_viewport`).
self.viewport_size = _viewport_as_told(context.options.get("viewport")) or {
"width": 1280, "height": 720}
#: ⛔ A POPUP THE ENGINE DID NOT PIN has no viewport of its own: its size is its window's, which can still change after its first
#: script, so the client is told none (`viewport_size` None, Playwright's meaning of a page whose viewport is not emulated) and
#: the wrapper reads the size when it needs it (`planning_viewport`). True from birth for a popup under the declared default;
#: `setViewportSize` pins the page and ends it.
self.viewport_unpinned = self._is_unpinned_popup(context, opener)
self._last_window_size: Optional[Dict[str, int]] = None
#: ⛔ THE HAND, built where the page's number and the session's seed
#: meet: one stream per page, the seed the client's cursor drew from
#: (`_cursor.page_motion_seed`). See `pointer.py`.
self.pointer = Pointer(
self.actions, self.injected, self.number,
context.browser.session_seed, context.browser.motion_budget_s,
lambda: self.viewport_size,
self.planning_viewport,
draws=context.browser.pointer_draws)
self._frames: Dict[str, Any] = {}
#: The child frames the client was told of (`frameAttached`), to tell it of the ones born before the hook was in.
@@ -3429,14 +3510,15 @@ class PageDispatcher(Dispatcher):
name=getattr(known, "name", "") or "",
load_states=sorted(getattr(known, "states", []) or []) or None,
told_commit=self._last_commit(known))
viewport = self.viewport_size
viewport = self.told_viewport()
# `pageNumber` is ours, not Playwright's: the number the page's
# rhythms are drawn under (`pointer.py` and the actions' nonce read it
# from `self.number`), told to the client so that it can name the page
# the way the server does.
initializer = {"mainFrame": self.frame.channel,
"viewportSize": viewport, "isClosed": False,
initializer = {"mainFrame": self.frame.channel, "isClosed": False,
"pageNumber": self.number}
if viewport is not None:
initializer["viewportSize"] = viewport
if opener is not None:
# ⛔ THE OPENER TRAVELS IN THE INITIALIZER, and nowhere else. The
# client resolves `page.opener()` from it and emits `popup` on the
@@ -4385,11 +4467,45 @@ class PageDispatcher(Dispatcher):
return None
# ── viewport, media, capture ────────────────────────────────────────────
@staticmethod
def _is_unpinned_popup(context: "BrowserContextDispatcher", opener: Optional["PageDispatcher"]) -> bool:
"""Whether this page is a popup the engine did not pin: the context's viewport is only the declared default."""
return opener is not None and _viewport_is_declared(context.options.get("viewport"))
def told_viewport(self) -> Optional[Dict[str, int]]:
"""The viewport the client is told (`page.viewport_size`): none for a popup the engine did not pin."""
return None if self.viewport_unpinned else self.viewport_size
def planning_viewport(self) -> Dict[str, int]:
"""The size the hand plans inside and the bounds checks use, at the time of use: the window's own for a popup the engine did not
pin (the last one read when the window cannot be read now), else the viewport the client was told."""
if not self.viewport_unpinned:
return self.viewport_size
size = self._window_size()
if size is not None:
self._last_window_size = size
return self._last_window_size or self.viewport_size
def _window_size(self) -> Optional[Dict[str, int]]:
"""The content size of this page's window, as the page reads it (`innerWidth`, `innerHeight`), or None when it cannot be read."""
try:
box = self.injected.evaluate(
self.main_frame_id,
"({width: window.innerWidth, height: window.innerHeight})")
except Exception:
return None
if (isinstance(box, dict) and isinstance(box.get("width"), (int, float))
and isinstance(box.get("height"), (int, float))
and box["width"] > 0 and box["height"] > 0):
return {"width": int(box["width"]), "height": int(box["height"])}
return None
def op_set_viewport_size(self, params: Dict) -> Any:
self.send("Page.setViewportSize", only_set(
{"viewportSize": params.get("viewportSize")}))
if params.get("viewportSize"):
self.viewport_size = params["viewportSize"]
self.viewport_unpinned = False # a size the client set pins the page
return None
def op_emulate_media(self, params: Dict) -> Any:
@@ -4458,6 +4574,10 @@ class PageDispatcher(Dispatcher):
# A clip the CALLER supplied is passed through untouched. Playwright
# documents it in page coordinates, which is what the engine wants, so
# there is nothing to translate.
# ⛔ THE REFUSALS ARE `_refuse_unserved_screenshot_parameters`, THE FIRST THING HERE AND THE FIRST THING IN THE ELEMENT'S SCREENSHOT.
# It is idempotent, so the element's call, which hands its rectangle and the caller's parameters to this one, passes it twice
# and the second pass is the same answer.
_refuse_unserved_screenshot_parameters(params)
clip = params.get("clip")
if not clip:
box = self.injected.evaluate(
@@ -5557,6 +5677,18 @@ class BrowserDispatcher(Dispatcher):
METHODS = {"newContext": "op_new_context", "close": "op_close",
"newPage": "op_new_page"}
def answers_later(self, method: str, params: Dict) -> bool:
"""A context given a SOCKS5 proxy waits for the final UDP verdict of that endpoint (the core measures it before the proxy is
declared: ~11 s for a first endpoint), so `newContext` and `newPage` with one are answered from a thread of their own (`Deferred`),
never by the transport worker that took them. The context's guid reaches the client in the reply, so nothing can name it before
its proxy is applied."""
if method not in ("newContext", "newPage"):
return False
try:
return UdpExitCache.key(params.get("proxy")) is not None
except ValueError:
return False # a proxy that cannot be read is refused at once, by the command itself
#: How long the engine's reader waits for the gate of the events before it delivers the event anyway (see `events_gate`).
GATE_WAIT_S = 5.0
#: How long a page that is being built waits for the gate before it is built without it.
@@ -5624,6 +5756,10 @@ class BrowserDispatcher(Dispatcher):
#: Where this session measures a proxy's UDP exit from (the launch's `udp_stun_servers`, "ip:port"
#: strings; None = the two public defaults): the launch and every context proxy use the same list.
self.udp_stun_servers = udp_stun_servers
#: The final UDP verdicts this served browser has measured, per proxy endpoint (the core's `UdpExitCache`, kept the way
#: the core's own `Browser` keeps one): the first context given an endpoint waits for its measurement, the later ones
#: reuse it. ONE per browser, never shared with another one, and it dies with it.
self.udp_exit_cache = UdpExitCache()
#: Chosen for this browser: the prefix of the native names of its exposed functions (see `_bindings`), and the
#: directory of its engine (set by `launch`), which says whether the engine has what they need.
self.binding_token = secrets.token_hex(6)
@@ -6410,8 +6546,10 @@ class BrowserDispatcher(Dispatcher):
# proxy. The core discovers the TCP exit through the proxy and measures the UDP beside it, once per
# proxy (cached by endpoint, a hash of the credentials and the servers), from the STUN servers the
# SESSION was launched with: this is the ONE place a context's proxy is applied, for the sync and
# async clients and for a remote one alike. A `udp` key in what the caller wrote is not read.
proxy = context_proxy_command(params["proxy"], self.udp_stun_servers)
# async clients and for a remote one alike. A `udp` key in what the caller wrote is not read. The core WAITS for
# the final verdict before it returns, and this browser's cache keeps it: only the first context given an
# endpoint pays the wait.
proxy = context_proxy_command(params["proxy"], self.udp_stun_servers, self.udp_exit_cache)
except ValueError as exc:
raise ProtocolException(
"new_context(proxy=...) cannot be applied: %s" % exc)
@@ -6474,6 +6612,10 @@ class BrowserDispatcher(Dispatcher):
# this project spends a pref on getting right.
wanted: Dict[str, Any] = {"viewportSize": {
"width": viewport["width"], "height": viewport["height"]}}
# ⛔ ONE BIT: the size is the core's declaration for the main window, not the user's. The engine pins a tab to it either way;
# a popup that names no size is pinned only to a size the user chose, as upstream does.
if _viewport_is_declared(viewport):
wanted["isDeclaredDefault"] = True
screen = params.get("screen")
if screen:
wanted["screenSize"] = {"width": screen["width"],
@@ -6846,6 +6988,10 @@ class BrowserTypeDispatcher(Dispatcher):
except BaseException:
conn.close()
raise
# The verdict the launch's geo step measured for the session's proxy is the browser's first one, as the core's `launch`
# keeps it: a context given the same endpoint does not measure it again.
if params.get("proxy"):
browser.udp_exit_cache.remember(params["proxy"], udp_exit)
browser.engine_dir = os.path.dirname(str(executable))
return {"browser": browser.channel}
+15 -1
View File
@@ -56,6 +56,7 @@ from invisible_playwright._pw._impl._helper import parse_error
from invisible_playwright._pw._impl._transport import Transport
from . import wire
from .dispatcher import Deferred
def _error_payload(failure: BaseException) -> Dict[str, str]:
@@ -222,7 +223,20 @@ class InProcessTransport(Transport):
except Exception as failure:
self.reply_error(message.get("id"), failure)
else:
self.reply(message.get("id"), result)
if isinstance(result, Deferred):
# ⛔ THE ANSWER COMES LATER: this worker goes back to the queue at once, and the reply is posted from the thread that
# works it out, the same way (`reply`/`reply_error` hand it to the loop with `call_soon_threadsafe`).
result.begin(self._reply_later(message.get("id")))
else:
self.reply(message.get("id"), result)
def _reply_later(self, msg_id: Optional[int]) -> Any:
def done(result: Any, failure: Optional[BaseException]) -> None:
if failure is not None:
self.reply_error(msg_id, failure)
else:
self.reply(msg_id, result)
return done
# ── what the server calls back ──────────────────────────────────────────
def emit_message(self, message: Dict) -> None:
+8 -2
View File
@@ -26,7 +26,8 @@ from ._cursor import (ENGINE_PYTHON,
enable_for as _enable_cursor_engine,
max_seconds_for as _cursor_max_seconds)
from ._engine import resolve_executable
from ._juggler.server import COMPOSED_PREF, MOTION_BUDGET_PREF, POINTER_PREF, SESSION_SEED_PREF, UDP_EXIT_PREF, UDP_STUN_PREF
from ._juggler.server import (COMPOSED_PREF, MOTION_BUDGET_PREF, POINTER_PREF, SESSION_SEED_PREF, UDP_EXIT_PREF, UDP_STUN_PREF,
declared_viewport)
from typing import Any, Dict, Optional
from invisible_core import compose_session_prefs, context_geometry, make_virtual_display
@@ -514,8 +515,13 @@ class CommonLaunch:
# the profile's screen is the PANEL, and until wrapper 0.28.0 the
# panel's device pixels went out here as CSS (screen.width 1920 at
# DPR 1.25).
geometry = context_geometry(self._profile)
kwargs: Dict[str, Any] = {
**context_geometry(self._profile),
**geometry,
# ⛔ THE VIEWPORT IS MARKED AS THE CORE'S, not the user's: a viewport the user passes to `new_context` / `new_page` replaces
# this one whole, mark included, so what reaches the server without the mark is a choice. A popup that names no size is
# pinned to a chosen viewport as in Playwright and left to its own window under this one (`declared_viewport`).
"viewport": declared_viewport(geometry["viewport"]),
# ⛔ device_scale_factor and color_scheme are NO LONGER passed.
# They were a second source for two facts invisible_core already
# declares (layout.css.devPixelsPerPx and, since 2026-08-24,
+23
View File
@@ -0,0 +1,23 @@
"""The row the host oracle's declared list carried while the published engine was the 68 or the 69 and the candidate no longer spawned the graphics probe.
ci/ab-host-expected.json declares what the published engine of today and the candidate differ by, which is nothing now (the published engine is the 70, which does not spawn
gfxtest either, so the row would be stale in every run). The mechanism of a declared `proc` difference (the kind and the paths only that process touched, the A/B only, the stale
check) is tested with this row, as a row of the tests' own.
"""
from __future__ import annotations
import copy
GFXTEST_ROW = {
"id": "gfxtest-69",
"os": "linux",
"category": "proc",
"name": "gfxtest",
"published": "present",
"candidate": "absent",
"reason": "the 69 no longer spawns the graphics probe gfxtest (GFX_PROBE_BINARY, widget/gtk/GfxInfo.cpp:55; commit 0e896e4ee1, the probe never reads the host); the paths only that process touched go with it",
}
def gfxtest_rows() -> list:
return [copy.deepcopy(GFXTEST_ROW)]
+97
View File
@@ -0,0 +1,97 @@
"""What the browser writes to its output, read by every e2e test that launches the engine, and the lines that fail the test.
The core reads the browser's stdout and stderr (one pipe) through ``invisible_core.juggler.connection.ProcessOutput``, one reader for the whole life of the process, and keeps the last 200 lines. Nothing in the e2e suites looked at those
lines: a line the engine writes to say that it did something it should not have done passed in silence. The check is here: while an e2e test runs, a tee in front of that reader (the bytes are the ones the reader gets, and the browser cannot
tell) matches every line against ``FAILING_LINES``; the test fails, at its teardown, naming each line it saw.
``tests/conftest.py`` installs it for every test marked ``e2e`` (``_the_browser_log_holds_no_line_that_fails_the_test``). A browser that a test starts in a child process of its own (the A/B oracles) is not seen from here: its output is
kept by ``scripts/ci_crash_evidence.py`` and judged by the oracle.
THE LINES.
* An expired wait for ``popupshown``. The engine's Juggler (``juggler/protocol/PageHandler.js``, ``_waitForPopupOfPress``) holds the release of a click until the popup its press opened (a select dropdown) says ``popupshown``, at most one
second, and when the second passes it goes on and writes ``WARNING: popup <id> did not say popupshown within <ms> ms of its press, the release goes on``. The release that goes on is one the dropdown may drop, so a click that a test saw
pass can have lost its ``mouseup``. The text here is the engine's, character for character; the id is the popup's element id (or its tag name) and the number is ``POPUP_SHOWN_WAIT_MS``.
"""
from __future__ import annotations
import re
import threading
from typing import List
import pytest
#: The lines of the browser's output that fail an e2e test, each with what it means (the message names both the line and this).
FAILING_LINES = (
(re.compile(r"WARNING: popup \S+ did not say popupshown within \d+ ms of its press, the release goes on"),
"a release waited for the popup its press opened to say popupshown, and went on without it (the engine's bound passed)"),
)
def failing(text: str) -> List[str]:
"""The lines of ``text`` that fail a test, each as ``line <- what it means``."""
found = []
for line in text.splitlines():
for pattern, meaning in FAILING_LINES:
hit = pattern.search(line)
if hit:
found.append("%s <- %s" % (hit.group(0), meaning))
return found
class Sink:
"""What the browsers of one test wrote that fails it, and the readers that were tee'd."""
def __init__(self) -> None:
self.lines: List[str] = []
self.outputs: list = []
self._lock = threading.Lock()
def add(self, text: str) -> None:
found = failing(text)
if found:
with self._lock:
self.lines.extend(found)
def fail_if_any(self, wait: float = 0.5) -> None:
"""Fail the test, naming every line, when a browser of the test wrote one. A browser that has just closed has its last lines still in the pipe: its reader is given ``wait`` seconds to reach the end."""
for output in self.outputs:
thread = getattr(output, "_thread", None)
if thread is not None and thread.is_alive():
thread.join(wait)
with self._lock:
lines = list(self.lines)
if lines:
pytest.fail("the browser's output holds %d line(s) that fail an e2e test:\n %s" % (len(lines), "\n ".join(lines)), pytrace=False)
class ScanStream:
"""The stream the core's reader reads, with every line it reads matched against ``FAILING_LINES``: the same lines in the same order to the same reader, and nothing written to the browser."""
def __init__(self, stream, sink: Sink) -> None:
self._stream, self._sink = stream, sink
def readline(self, *args):
line = self._stream.readline(*args)
if line:
try:
self._sink.add(line.decode("utf-8", "replace") if isinstance(line, bytes) else str(line))
except Exception: # noqa: BLE001 - a check never breaks a launch
pass
return line
def __getattr__(self, name):
return getattr(self._stream, name)
def install(monkeypatch, sink: Sink) -> None:
"""Put the tee in front of the reader of every browser the process launches through the core, until ``monkeypatch`` undoes it."""
from invisible_core.juggler.connection import ProcessOutput
original = ProcessOutput.__init__
def init(self, stream, *args, **kwargs):
original(self, ScanStream(stream, sink), *args, **kwargs)
sink.outputs.append(self)
monkeypatch.setattr(ProcessOutput, "__init__", init)
+187
View File
@@ -0,0 +1,187 @@
"""What the drag twin records of a drag, and how two records are compared: every drag event the page hears, in the top document and in the frame, never a number of ours.
``RECORDER_JS`` is the script both pages run: for each of ``dragstart``, ``drag``, ``dragenter``, ``dragover``, ``dragleave``, ``drop`` and ``dragend`` (heard at the document, after the
page's own handlers, so ``dataTransfer.types`` is what the page has set by then) it keeps, in ``window.__events``, the fields of ``FIELDS``:
type, at (the id of the event's target), under (the id of ``document.elementFromPoint`` at the event's client point), cx/cy (clientX/Y), sx/sy (screenX/Y), buttons, input (mozInputSource),
types (dataTransfer.types), allowed (effectAllowed), effect (dropEffect), cancelled (mozUserCancelled), source_null (whether mozSourceNode is null), trusted (isTrusted).
``record(top_events, frame_events)`` is what one browser leaves: for each document (the top one, where the drag starts and ends and a drop can land, and the frame) the events that happen once
or a few times (``once``: dragstart, dragenter, dragleave, drop, dragend, in the order the page heard them) whole, and for ``drag`` and ``dragover``, which repeat as often as the mouse moves
and as a timer fires, their count, their first and last event and the ids they were dispatched at. ``end_minus_last`` is ``dragend``'s client point less the last ``drag``'s, in the top
document.
HOW TWO RECORDS ARE COMPARED (``compare``): with stock, only what stock decides the same way on every machine and in either process model: the routing and the targets (the event sequence, the
type, the target, what is under the point), the client points, ``rel``, the data transfer's types, trusted, the input source, and, in the top document, the effects (the same process on both
sides) of every event but the one the frame's process decides (see the twin rule). In a CSS pixel for the client points (``TOLERANCES``: the point of a drag is a device pixel that crosses a process and is rounded to CSS, the tolerance the twin has always had for the
drop point); and through the relation for the screen points. ``screenX/Y`` is where the window stands on the screen: stock's is the real place of its window and ours is the declared one, so the
two are not the same number and no number of ours is the expected one. What the page reads is the same in both: where a point is on the screen relative to where the top document's first event is
(``rel``: ``screen - client`` of the event, less that of the first event of the top document). It is 0 for every event of the top document and the frame's place in it for a frame's event, in a
browser whose window stands anywhere. The absolute screen points and the origin are in the record, printed when the two differ, and not in the comparison. The count of ``dragover`` events is in
the record and not in the comparison: it is timer-driven.
THE TWIN RULE (``DECLARED``): a field that depends on stock's frame being in the top's process, or on stock's drag being Juggler's synthetic one, is in the record and NOT compared with stock; the
list says which and why, and ``recorded`` returns what differs there, for the report. Retail decides those fields, through the capture of the round ``drag`` of the core's window-geometry workflow.
They are ``buttons`` (stock's synthetic drag has no OLE loop: 0), ``drag`` at the source (count and presence: no OLE loop, no timer-driven ``drag``), the ``dragend`` point less the last ``drag``
(no ``drag`` to be less of), and in the frame ``effectAllowed``, ``dropEffect`` and ``mozSourceNode`` (stock's frame is in-process and reads the source's own DataTransfer; ours is in another
process, where Mozilla's cross-process DataTransfer starts with effectAllowed ``uninitialized`` and the dropEffect is the action, nsContentUtils FilterDropEffect).
For the drop in the frame (``kind`` ``frame``), two more fields of the TOP document depend on the frame's process, and ``comparable`` moves them out of ``top.once`` before the comparison: every top
``dragleave`` whose ``under`` is the frame (``top.into_frame``: stock's frame is in its own process model, so the top's event manager fires a leave at the body when the cursor enters the
subdocument; retail with the frame out of process has none, and ours has none) and the ``dropEffect`` of the top ``dragend`` (``top.dragend_effect``: it is the frame's drop result, which crosses
processes). In the drop in the top document (``kind`` ``top``) the record is compared whole, ``dragend``'s effect included.
"""
from __future__ import annotations
import copy
import json
from typing import Any, Dict, List, Optional, Tuple
from _stock_twin import IN_PROCESS_FRAME, SYNTHETIC_DRAG, both, split_differences
#: The events of a drag, in the order a drag starts, goes over and ends.
TYPES = ("dragstart", "drag", "dragenter", "dragover", "dragleave", "drop", "dragend")
#: Events that repeat (every mouse move, every timer tick): the record keeps their count, their first and last event.
REPEATED = ("drag", "dragover")
#: What the page keeps of each event, and so what the record has of it.
FIELDS = ("type", "at", "under", "cx", "cy", "sx", "sy", "buttons", "input", "types", "allowed", "effect", "cancelled", "source_null", "trusted")
#: A CSS pixel for a client point and for the relation of the screen point to the client one; every other number exactly.
TOLERANCES: Dict[str, float] = {"cx": 1.0, "cy": 1.0, "rel": 1.0}
#: Keys of the record that are in it and not in the comparison, and why (the count of ``drag`` and of ``dragover`` is left out in ``_comparable``: a timer fires them, so it depends on the speed of the machine).
NOT_COMPARED = {
"sx": "the real place of stock's window and the declared one of ours: compared through rel",
"sy": "the real place of stock's window and the declared one of ours: compared through rel",
"screen_origin": "screen minus client of the first event of the top document: where the window stands",
}
#: THE TWIN RULE. Stock Playwright's Firefox sets ``fission.webContentIsolationStrategy=0``: its cross-site frame is in the top's process, ours is in another process, and stock's drag is Juggler's
#: synthetic one (no OLE drag loop). A field that depends on either is RECORDED, not compared with stock: the retail capture decides it (round ``drag`` of the core's window-geometry workflow, which
#: drives a real drag on retail). Each key is a pattern of canonical paths of the record (``top.once[].buttons``; ``*`` is any run of characters), each value is the reason.
#: What is compared with stock is the routing and the targets (the event sequence, ``type``, ``at``, ``under``), the client points and ``rel``, ``types``, ``trusted`` and ``input`` (mozInputSource),
#: in both documents, and ``effectAllowed`` and ``dropEffect`` of the top document, except, in the drop in the frame, the top's leave into the frame and the top ``dragend``'s ``dropEffect``.
DECLARED: Dict[str, str] = {
# stock's synthetic Juggler drag: no OLE loop, so the mouse buttons are 0 in its events and ``drag`` never fires at the source (and the dragend point less the last drag has no drag to be less of)
"*.buttons": SYNTHETIC_DRAG,
"top.repeated.drag.*": SYNTHETIC_DRAG,
"end_minus_last*": SYNTHETIC_DRAG,
# stock's frame is in-process: it reads the source's own DataTransfer; ours is in another process, where Mozilla's cross-process DataTransfer starts with effectAllowed 'uninitialized' and
# dropEffect is the action (nsContentUtils FilterDropEffect), and mozSourceNode is not reachable
"frame.*.allowed": IN_PROCESS_FRAME,
"frame.*.effect": IN_PROCESS_FRAME,
"frame.*.source_null": IN_PROCESS_FRAME,
# the frame drop only (``comparable`` makes these keys): stock's top hears a leave at the body when the cursor enters its in-process-model subdocument, and the top dragend's dropEffect is the
# frame's drop result, which crosses processes
"top.into_frame*": IN_PROCESS_FRAME,
"top.dragend_effect*": IN_PROCESS_FRAME,
}
RECORDER_JS = """
window.__events = [];
(function () {
const name = n => n ? (n.id || n.nodeName.toLowerCase()) : null;
for (const type of %s) {
document.addEventListener(type, e => {
const dt = e.dataTransfer;
window.__events.push({
type: e.type, at: name(e.target), under: name(document.elementFromPoint(e.clientX, e.clientY)),
cx: e.clientX, cy: e.clientY, sx: e.screenX, sy: e.screenY, buttons: e.buttons, input: e.mozInputSource,
types: dt ? Array.from(dt.types) : null, allowed: dt ? dt.effectAllowed : null, effect: dt ? dt.dropEffect : null,
cancelled: dt ? dt.mozUserCancelled : null, source_null: dt ? dt.mozSourceNode === null : null, trusted: e.isTrusted,
});
});
}
})();
""" % json.dumps(list(TYPES))
READ_JS = "() => window.__events"
def read_events(document) -> List[Dict[str, Any]]:
"""The raw events a page or frame heard (``document`` is a Playwright page or frame)."""
return document.evaluate(READ_JS)
def _event(raw: Dict[str, Any], origin: Optional[List[float]]) -> Dict[str, Any]:
missing = [f for f in FIELDS if f not in raw]
if missing:
raise ValueError("a drag event the page recorded has no %s (an absent field is a difference, never an agreement): %r" % (", ".join(missing), raw))
out = {f: raw[f] for f in FIELDS}
out["rel"] = None if origin is None else [raw["sx"] - raw["cx"] - origin[0], raw["sy"] - raw["cy"] - origin[1]]
return out
def _document(events: List[Dict[str, Any]], origin: Optional[List[float]]) -> Dict[str, Any]:
once = [_event(e, origin) for e in events if e.get("type") not in REPEATED]
repeated: Dict[str, Any] = {}
for kind in REPEATED:
of_kind = [_event(e, origin) for e in events if e.get("type") == kind]
repeated[kind] = ({"count": len(of_kind), "first": of_kind[0], "last": of_kind[-1], "at": sorted({str(e["at"]) for e in of_kind})}
if of_kind else {"count": 0})
return {"once": once, "repeated": repeated}
def record(top_events: List[Dict[str, Any]], frame_events: List[Dict[str, Any]]) -> Dict[str, Any]:
"""What one browser leaves of one drag: both documents' events, the end point less the last drag point, and the origin of the screen points."""
origin = [top_events[0]["sx"] - top_events[0]["cx"], top_events[0]["sy"] - top_events[0]["cy"]] if top_events else None
top = _document(top_events, origin)
drags = [e for e in top_events if e.get("type") == "drag"]
ends = [e for e in top_events if e.get("type") == "dragend"]
last, end = (drags[-1] if drags else None), (ends[-1] if ends else None)
return {"top": top, "frame": _document(frame_events, origin),
"end_minus_last": [end["cx"] - last["cx"], end["cy"] - last["cy"]] if (end and last) else None,
"screen_origin": origin}
def read_record(page, frame) -> Dict[str, Any]:
"""The record of a drag, read from the top page and from the frame."""
return record(read_events(page), read_events(frame))
def _comparable(node: Any, key: str = "") -> Any:
if isinstance(node, dict):
return {k: _comparable(v, k) for k, v in node.items() if k not in NOT_COMPARED and not (key in REPEATED and k == "count")}
if isinstance(node, list):
return [_comparable(v, key) for v in node]
return copy.deepcopy(node)
#: The id of the frame in the top page (``f``): the ``under`` of the top's leave into it.
FRAME_ID = "f"
def comparable(record: Dict[str, Any], kind: str) -> Dict[str, Any]:
"""The record as it is compared: for the drop in the frame (``kind`` ``frame``) the top's ``dragleave`` events under the frame leave ``top.once`` for ``top.into_frame`` and the top ``dragend``'s
``effect`` leaves its event for ``top.dragend_effect``; both keys are in ``DECLARED``. For the drop in the top document (``top``) the record is unchanged."""
if kind not in ("top", "frame"):
raise ValueError("the drop is in the 'top' document or in the 'frame', not %r" % (kind,))
out = _comparable(record)
if kind == "frame":
top = out["top"]
into_frame = [e for e in top["once"] if e["type"] == "dragleave" and e["under"] == FRAME_ID]
top["once"] = [e for e in top["once"] if not (e["type"] == "dragleave" and e["under"] == FRAME_ID)]
top["into_frame"] = into_frame
top["dragend_effect"] = [e.pop("effect") for e in top["once"] if e["type"] == "dragend"]
return out
def split(stock: Dict[str, Any], ours: Dict[str, Any], kind: str, path: str = "drag") -> Tuple[List[str], List[str]]:
"""``(red, recorded)``: the differences that decide, and those of the declared fields (``DECLARED``), kept for the report. ``kind`` is where the drop ended: ``top`` or ``frame``."""
return split_differences(comparable(stock, kind), comparable(ours, kind), DECLARED, TOLERANCES, path)
def compare(stock: Dict[str, Any], ours: Dict[str, Any], kind: str, path: str = "drag") -> List[str]:
"""Every place where ours is not what stock is in a field that is compared, as ``path: stock X, ours Y``; empty when the page reads the same there."""
return split(stock, ours, kind, path)[0]
def recorded(stock: Dict[str, Any], ours: Dict[str, Any], kind: str, path: str = "drag") -> List[str]:
"""The differences in the fields of ``DECLARED``: in the report, never in the verdict."""
return split(stock, ours, kind, path)[1]
def verdict(case: str, kind: str, stock: Dict[str, Any], ours: Dict[str, Any]) -> str:
"""The message of a red drag twin, with both records whole; empty when ours is what stock is."""
differing = compare(stock, ours, kind, "%s drop" % kind)
if not differing:
return ""
return ("%s: the drag that ends in the %s of ours does not read what stock's does (every event, that drag fired at the source, dragend less the last drag):\n %s%s"
% (case, "frame of another site" if kind == "frame" else "top document", "\n ".join(differing), both(case, stock, ours)))
+6 -3
View File
@@ -9,7 +9,7 @@ test: it only listens.
A test that passed slowly may keep the evidence too: ``evidence.keep(why)`` saves what the helper holds at that moment (the same folder, a
``meta.json`` whose ``kept`` says why, judged after the fact and never a verdict). ``arm(moz_log=...)`` also starts the engine's own log
(``MOZ_LOG``, its file in the evidence), and ``note_records(name, state)`` adds a record the test keeps itself (``state.lock``,
(``MOZ_LOG``, one file per process in the evidence: ``MOZ_LOG_FILE`` carries ``%PID``), and ``note_records(name, state)`` adds a record the test keeps itself (``state.lock``,
``state.records``) as ``<name>.jsonl``.
The times written: ``t``, wall-clock seconds since the epoch (``time.time()``; the engine's own trace writes milliseconds in ``t``, its
@@ -36,8 +36,11 @@ EVIDENCE_FOLDER = "invpw-evidence"
WIRE_LIMIT = 4000
#: The engine's trace: the variable `Trace.js` of the engine reads in the parent process (off without it).
TRACE_ENV = "INVISIBLE_JUGGLER_TRACE_DIR"
#: The base name of the engine's log file in the evidence (``MOZ_LOG_FILE``; the engine adds a suffix per process).
#: The base name of the engine's log files in the evidence, and the name given to ``MOZ_LOG_FILE``: Firefox expands ``%PID`` into ``-main.<pid>`` or
#: ``-child.<pid>`` (and adds ``.moz_log``, ``ExpandLogFileName`` in ``xpcom/base/Logging.cpp``), so that every process of every session of a test writes a
#: file of its own. Without it two sessions of one test wrote the same file and the parent's one was 0 bytes.
MOZ_LOG_BASE = "engine"
MOZ_LOG_FILE_NAME = MOZ_LOG_BASE + "%PID"
class FailureEvidence:
@@ -81,7 +84,7 @@ class FailureEvidence:
if moz_log:
self.moz_log_dir.mkdir(parents=True, exist_ok=True)
self._patch.setenv("MOZ_LOG", moz_log)
self._patch.setenv("MOZ_LOG_FILE", str(self.moz_log_dir / MOZ_LOG_BASE))
self._patch.setenv("MOZ_LOG_FILE", str(self.moz_log_dir / MOZ_LOG_FILE_NAME))
self._wire = open(self.wire_path, "w", encoding="utf-8")
try:
from invisible_core.juggler import connection
+58
View File
@@ -0,0 +1,58 @@
"""A stock Playwright client that launches nothing and records what ``p.firefox.launch`` was called with, for the unit tests of the stock twins (no browser, no display)."""
from __future__ import annotations
from typing import Any, Dict, List
import _stock_twin
class _Page:
pass
class _Context:
def new_page(self) -> _Page:
return _Page()
class _Browser:
def __init__(self, events: List[str]) -> None:
self._events = events
def new_context(self, **kwargs: Any) -> _Context:
return _Context()
def close(self) -> None:
self._events.append("browser closed")
class _Firefox:
def __init__(self, launches: List[Dict[str, Any]], events: List[str], fail: bool) -> None:
self._launches, self._events, self._fail = launches, events, fail
def launch(self, **kwargs: Any) -> _Browser:
self._events.append("launch")
self._launches.append(kwargs)
if self._fail:
raise RuntimeError("the launch fails")
return _Browser(self._events)
class _Playwright:
def __init__(self, launches: List[Dict[str, Any]], events: List[str], fail: bool) -> None:
self.firefox = _Firefox(launches, events, fail)
def __enter__(self) -> "_Playwright":
return self
def __exit__(self, *exc: Any) -> bool:
return False
def install(monkeypatch, events: List[str] = None, fail: bool = False) -> List[Dict[str, Any]]:
"""``_stock_twin._on_stock`` on a client that records its launches (the keywords of each) in the list returned, and its steps in ``events``."""
launches: List[Dict[str, Any]] = []
events = [] if events is None else events
monkeypatch.setattr(_stock_twin, "stock_client", lambda: (lambda: _Playwright(launches, events, fail)))
monkeypatch.setattr(_stock_twin, "Chrome", type("FakeChrome", (), {"__init__": lambda self, page: None, "close": lambda self: None}))
return launches
+11 -1
View File
@@ -223,6 +223,11 @@ class H3Server:
#: The same peers with the port they sent from: (address, port). On a machine where a gateway's relay sends from an address of
#: this host (Windows cannot send from 127.0.0.1 to it) the address cannot tell the relay from a client that came direct; its port can.
self.quic_peer_addrs: List[Tuple[str, int]] = []
#: EVERY datagram that reached the UDP port, whether or not a QUIC handshake came out of it: (address, port) of the sender. A browser
#: that TRIES h3 sends its Initial here before anything else, so this list is the attempt itself, the one signal of "the engine tried
#: HTTP/3" that does not depend on the attempt succeeding or on how long it takes; ``quic_peers`` only has the connections that
#: negotiated an ALPN (an attempt that never completes is not in it).
self.udp_datagrams: List[Tuple[str, int]] = []
#: The paths of the requests that were answered over HTTP/3, and over TCP.
self.h3_requests: List[str] = []
self.tcp_requests: List[str] = []
@@ -314,6 +319,11 @@ class H3Server:
self._http.send_data(http_event.stream_id, PAGE, end_stream=True)
self.transmit()
class Recording(QuicServer):
def datagram_received(self, data, addr):
server.udp_datagrams.append((addr[0], addr[1]))
super().datagram_received(data, addr)
configuration = QuicConfiguration(is_client=False, alpn_protocols=H3_ALPN)
if quic_idle_timeout is not None:
configuration.idle_timeout = quic_idle_timeout
@@ -325,7 +335,7 @@ class H3Server:
asyncio.set_event_loop(self._loop)
# What ``aioquic.asyncio.serve(address, port)`` does (1.x), with the socket that already holds the number.
_transport, self._quic = self._loop.run_until_complete(self._loop.create_datagram_endpoint(
lambda: QuicServer(configuration=configuration, create_protocol=Protocol), sock=self._udp))
lambda: Recording(configuration=configuration, create_protocol=Protocol), sock=self._udp))
started.set()
try:
self._loop.run_forever()
+228
View File
@@ -0,0 +1,228 @@
"""A test that is not e2e never leaves the machine: every connection, datagram and name lookup it makes goes to this host or is refused.
The markers say it already (pyproject.toml: ``unit`` is "no network", ``integration`` is "no network"), and nothing enforced it:
``tests/unit/test_config_public.py`` composed the default prefs with no declared exit, the core asked api.ipify.org and icanhazip.com
where it leaves from, and the test failed on a machine whose network refused them. A test cannot fail for the reasons of a third party.
:func:`install` patches the four doors of the standard library that every client in the process goes through (``socket.socket.connect``,
``connect_ex`` and ``sendto``, and ``socket.getaddrinfo``): a destination on this host passes, anything else is refused with
:class:`LeftTheMachine` (a ``ConnectionRefusedError``, so the code under test sees what an offline machine shows it) AND recorded, so the test
fails at its teardown even when the code under test swallowed the refusal. The record names the test, the door and the destination.
asyncio has doors of its own, and on Windows they skip the four above: the Proactor loop connects with ``ConnectEx`` and sends datagrams with
``WSASendTo`` (``_overlapped``), never through ``socket.socket``. So the guard also patches the loop methods every asyncio client goes through, for
both loop kinds: ``BaseEventLoop.create_connection`` and ``create_datagram_endpoint`` (``remote_addr``), ``sock_connect`` and ``sock_sendto`` of the
selector and of the Proactor loop, and the Proactor datagram transport's ``sendto``.
What it cannot see, on any system: a socket made from ``_socket`` directly or used through ``_overlapped`` by hand (no library of this project
does), native code in the same process, and a child process (a subprocess has its own interpreter: the e2e are where a browser runs).
On this host: a loopback address (127/8, ::1), the unspecified address (0.0.0.0, ::, which a connect reaches on this host), a name that is
``localhost`` or ends in ``.localhost``, and an AF_UNIX path. The documentation ranges (192.0.2/24, 198.51.100/24, 203.0.113/24, 2001:db8::/32)
pass too: they are never routed, and the lab gives one of them to an interface of this host (the exit of the lab, tests/_lab_egress.py).
And the address this host sends from (its default route's, tests/_host_address.py): a relay of the tests that leaves from the address of the
host is on this host, and a datagram to it never leaves the machine.
"""
from __future__ import annotations
import ipaddress
import socket
import threading
from typing import Any, List, Optional, Sequence, Tuple
_DOCUMENTATION = tuple(ipaddress.ip_network(n) for n in ("192.0.2.0/24", "198.51.100.0/24", "203.0.113.0/24", "2001:db8::/32"))
RULE = ("a test that is not e2e never leaves the machine (pyproject.toml markers: unit and integration are 'no network'): "
"a test cannot fail for the reasons of a third party")
FIX = ("declare the value the code would ask the network for (timezone=, locale=, proxy= with a local gateway), use a server of the tests "
"on loopback (tests/_servers.py, the local_egress_echo fixture), or mark the test e2e if it is one")
#: The ONE file whose job is to ask a third party, and the hosts it may ask. Nothing else is declared, and a new entry is a decision, not a fix.
#: ``tests/test_version_is_not_taken.py`` is the version gate of a pull request: it asks the index whether the version the change proposes
#: is already published, which only the index can answer. It is skipped unless ``IPW_CHECK_VERSION`` is set, which only the ``version`` job
#: of tests.yml does. Its host is allowed for its name lookup and for the addresses that lookup answered, nothing else.
DECLARED_THIRD_PARTIES = {
"tests/test_version_is_not_taken.py": ("pypi.org",),
}
class LeftTheMachine(ConnectionRefusedError):
"""A destination outside this host, refused by the guard of the tests."""
def own_addresses() -> Tuple[str, ...]:
"""The addresses this host sends from, IPv4 and IPv6 (the source its default route picks). A UDP connect sends no packet; a family with
no route has none. Read BEFORE the doors are patched."""
found = []
for family, probe in ((socket.AF_INET, ("192.0.2.1", 9)), (socket.AF_INET6, ("2001:db8::1", 9))):
try:
with socket.socket(family, socket.SOCK_DGRAM) as s:
s.connect(probe)
found.append(s.getsockname()[0].split("%", 1)[0])
except OSError:
pass
return tuple(found)
def is_on_this_host(host: Any, own: Sequence[str] = ()) -> bool:
"""Whether ``host`` (an address, a name, or None) is on this host, the way the guard decides it; ``own`` are the addresses of this host
(:func:`own_addresses`)."""
if host is None:
return True
if isinstance(host, bytes):
host = host.decode("ascii", "replace")
host = str(host).strip("[]").split("%", 1)[0]
if host == "" or host.lower() == "localhost" or host.lower().endswith(".localhost"):
return True
try:
address = ipaddress.ip_address(host)
except ValueError:
return False # a name: resolving it is already a question to the network
if getattr(address, "ipv4_mapped", None) is not None:
address = address.ipv4_mapped
return (address.is_loopback or address.is_unspecified or any(address in net for net in _DOCUMENTATION)
or any(address == ipaddress.ip_address(mine) for mine in own))
def _destination(address: Any, own: Sequence[str] = ()) -> Optional[str]:
"""``host:port`` of a socket address that leaves the machine, or None when it does not (AF_UNIX paths and this host)."""
if not isinstance(address, tuple) or not address:
return None # an AF_UNIX path or an abstract name: this host
host = address[0]
if is_on_this_host(host, own):
return None
return "%s:%s" % (host, address[1] if len(address) > 1 else "?")
class Guard:
"""The record of one test: what it tried outside the machine. Thread-safe: a client thread of the test is recorded too."""
def __init__(self, test: str) -> None:
self.test = test
self.attempts: List[str] = []
self._lock = threading.Lock()
def refuse(self, door: str, destination: str) -> LeftTheMachine:
sentence = "%s %s" % (door, destination)
with self._lock:
if sentence not in self.attempts:
self.attempts.append(sentence)
return LeftTheMachine("WHERE: %s. WHAT: %s, outside this host, refused. FIX: %s. RULE: %s." % (self.test, sentence, FIX, RULE))
def verdict(self) -> Optional[str]:
"""The failure of the test, or None when it stayed on this host."""
if not self.attempts:
return None
return ("WHERE: %s. WHAT: the test tried to leave the machine: %s (each was refused). FIX: %s. RULE: %s."
% (self.test, "; ".join(self.attempts), FIX, RULE))
def install(monkeypatch: Any, test: str) -> Guard:
"""Patch the four doors for the duration of ``monkeypatch``; return the record of ``test``."""
guard = Guard(test)
declared_hosts = DECLARED_THIRD_PARTIES.get(test.split("::", 1)[0].replace("\\", "/"), ())
answered = set() # the addresses a lookup of a declared host answered: a connection to them is that host
own = tuple(own_addresses())
def mine():
return own + tuple(answered)
connect, connect_ex, sendto, getaddrinfo = (socket.socket.connect, socket.socket.connect_ex, socket.socket.sendto,
socket.getaddrinfo)
def guarded_connect(self, address):
where = _destination(address, mine())
if where is not None:
raise guard.refuse("connect to", where)
return connect(self, address)
def guarded_connect_ex(self, address):
where = _destination(address, mine())
if where is not None:
raise guard.refuse("connect to", where)
return connect_ex(self, address)
def guarded_sendto(self, data, *rest):
where = _destination(rest[-1] if rest else None, mine())
if where is not None:
raise guard.refuse("datagram to", where)
return sendto(self, data, *rest)
def guarded_getaddrinfo(host, *args, **kwargs):
if isinstance(host, str) and host.lower() in declared_hosts:
found = getaddrinfo(host, *args, **kwargs)
answered.update(info[4][0] for info in found)
return found
if not is_on_this_host(host, mine()):
raise guard.refuse("name lookup of", str(host))
return getaddrinfo(host, *args, **kwargs)
_install_asyncio(monkeypatch, guard, mine)
monkeypatch.setattr(socket.socket, "connect", guarded_connect)
monkeypatch.setattr(socket.socket, "connect_ex", guarded_connect_ex)
monkeypatch.setattr(socket.socket, "sendto", guarded_sendto)
monkeypatch.setattr(socket, "getaddrinfo", guarded_getaddrinfo)
return guard
def _install_asyncio(monkeypatch: Any, guard: Guard, mine: Any) -> None:
"""The asyncio doors (module docstring), for the selector loop and, where it exists, the Proactor loop."""
import asyncio.base_events as base_events
import asyncio.selector_events as selector_events
loops = [selector_events.BaseSelectorEventLoop]
datagram_transports = []
try:
import asyncio.proactor_events as proactor_events
loops.append(proactor_events.BaseProactorEventLoop)
datagram_transports.append(proactor_events._ProactorDatagramTransport)
except ImportError: # pragma: no cover - the module exists on every system; its loop runs only on Windows
pass
create_connection = base_events.BaseEventLoop.create_connection
create_datagram_endpoint = base_events.BaseEventLoop.create_datagram_endpoint
async def guarded_create_connection(self, protocol_factory, host=None, port=None, *args, **kwargs):
if host is not None and kwargs.get("sock") is None and not is_on_this_host(host, mine()):
raise guard.refuse("asyncio connect to", "%s:%s" % (host, port))
return await create_connection(self, protocol_factory, host, port, *args, **kwargs)
async def guarded_create_datagram_endpoint(self, protocol_factory, local_addr=None, remote_addr=None, **kwargs):
where = _destination(remote_addr, mine())
if where is not None:
raise guard.refuse("asyncio datagram endpoint to", where)
return await create_datagram_endpoint(self, protocol_factory, local_addr=local_addr, remote_addr=remote_addr, **kwargs)
monkeypatch.setattr(base_events.BaseEventLoop, "create_connection", guarded_create_connection)
monkeypatch.setattr(base_events.BaseEventLoop, "create_datagram_endpoint", guarded_create_datagram_endpoint)
for loop in loops:
sock_connect, sock_sendto = loop.sock_connect, loop.sock_sendto
def make(sock_connect=sock_connect, sock_sendto=sock_sendto):
async def guarded_sock_connect(self, sock, address):
where = _destination(address, mine())
if where is not None:
raise guard.refuse("asyncio connect to", where)
return await sock_connect(self, sock, address)
async def guarded_sock_sendto(self, sock, data, address):
where = _destination(address, mine())
if where is not None:
raise guard.refuse("asyncio datagram to", where)
return await sock_sendto(self, sock, data, address)
return guarded_sock_connect, guarded_sock_sendto
guarded_sock_connect, guarded_sock_sendto = make()
monkeypatch.setattr(loop, "sock_connect", guarded_sock_connect)
monkeypatch.setattr(loop, "sock_sendto", guarded_sock_sendto)
for transport in datagram_transports:
def make_sendto(sendto=transport.sendto):
def guarded_sendto(self, data, addr=None):
where = _destination(addr, mine())
if where is not None:
raise guard.refuse("asyncio datagram to", where)
return sendto(self, data, addr)
return guarded_sendto
monkeypatch.setattr(transport, "sendto", make_sendto())
+200
View File
@@ -0,0 +1,200 @@
"""Where the operating system's own cursor is while a headed browser window is on the desktop the test runs on.
A real window that appears under the OS cursor receives a native ``WM_MOUSEMOVE`` for it, and the first native move of a process always passes Gecko's
``LastMouseMoveData`` filter, so the page sees ``mousemove`` at the cursor's place with ``buttons=0``, at a moment the test does not choose. On a GitHub
Windows runner the cursor sits at (512, 384) and the headed window covers (-8, -8) to (1928, 1040): the move reached the page once in the middle of a drag
(``test_drag_motion.py::test_a_real_page_sees_a_drag_that_travelled`` saw ``mousemove 512,299 buttons=0`` after the press). The engine keeps delivering native
input to content, so the arrangement is the test's: the cursor is parked on a point of the desktop that no window of the browser covers, before the browser
starts, and a test that records pointer events checks it still is when its gesture begins.
* Windows: ``user32`` through ctypes. The windows are the visible top-level ones of the processes below the test process (the browsers it launched), seen from
the desktop the test runs on: a ``headless=True`` browser runs on a Win32 desktop of its own (``make_virtual_display``), is not enumerated here and cannot
receive the interactive cursor.
* Linux and macOS: nothing to do. The Linux e2e run under ``xvfb-run``: an X server with virtual pointer and keyboard devices (XTEST) and no physical one,
so nothing moves a pointer there; every function answers "outside" and ``park`` does nothing.
"""
from __future__ import annotations
import ctypes
import os
import sys
from typing import List, Optional, Sequence, Tuple
#: ``(left, top, right, bottom)`` as ``GetWindowRect`` gives it: ``right`` and ``bottom`` are the first pixel outside.
Rect = Tuple[int, int, int, int]
Point = Tuple[int, int]
#: How far from every window the parked cursor is, in pixels: a window is moved or grown by a border or a shadow, and the cursor must stay outside of it.
MARGIN = 8
class TheCursorIsInside(AssertionError):
"""The OS cursor is over a window of the browser while a gesture is about to start."""
class TheCursorCannotBeParked(RuntimeError):
"""No point of the desktop is free of the browser's windows, or the system did not move the cursor."""
def _inflate(rect: Rect, margin: int) -> Rect:
return (rect[0] - margin, rect[1] - margin, rect[2] + margin, rect[3] + margin)
def _contains(rect: Rect, point: Point) -> bool:
return rect[0] <= point[0] < rect[2] and rect[1] <= point[1] < rect[3]
def cursor_is_outside(window_rects: Sequence[Rect], cursor: Optional[Point] = None, margin: int = 0, *,
api: Optional["_Win32"] = None) -> bool:
"""True when ``cursor`` (read from the system when None) is outside every rectangle, ``margin`` pixels beyond its edge included.
Not Windows: True, there is no OS cursor that reaches a window."""
if cursor is None:
api = api or _api()
if api is None:
return True
cursor = api.cursor_position()
return not any(_contains(_inflate(r, margin), cursor) for r in window_rects)
def park_outside(window_rects: Sequence[Rect], screen_rect: Rect, margin: int = MARGIN) -> Point:
"""A pixel of the virtual screen that is at least ``margin`` pixels from every window rectangle: the bottom-right corner when it is free.
``screen_rect`` is ``(left, top, right, bottom)`` of the virtual screen, ``right`` and ``bottom`` exclusive (its origin is negative when a monitor lies left of or
above the primary one). The candidates are the screen's edges and the places just beyond each window's inflated edges; a free pixel exists only if one
of them is free (the free pixel can be slid left and up until it touches an edge, and it stays free), so a ``TheCursorCannotBeParked`` is exact."""
left, top, right, bottom = screen_rect
if right <= left or bottom <= top:
raise TheCursorCannotBeParked(
"park_outside: the virtual screen %r is empty. Where: the screen rectangle read from the system. What: no pixel to put the cursor on. "
"Fix: run the e2e on an interactive desktop session." % (screen_rect,))
inflated = [_inflate(r, margin) for r in window_rects]
xs = sorted({right - 1, left, *(min(max(r[2], left), right - 1) for r in inflated), *(min(max(r[0] - 1, left), right - 1) for r in inflated)},
reverse=True)
ys = sorted({bottom - 1, top, *(min(max(r[3], top), bottom - 1) for r in inflated), *(min(max(r[1] - 1, top), bottom - 1) for r in inflated)},
reverse=True)
for y in ys:
for x in xs:
if not any(_contains(r, (x, y)) for r in inflated):
return (x, y)
raise TheCursorCannotBeParked(
"park_outside: the windows %r cover every pixel of the screen %r with a margin of %d. Where: the headed browser window the test launched. What: the "
"OS cursor would be over the page whatever the point, and a native mouse move would reach it. Fix: shrink the window below the screen (the test's own "
"geometry; it is not this helper's to change) or run the test on a bigger desktop." % (list(window_rects), screen_rect, margin))
class _Win32:
"""What the desktop answers, by ``user32``. One object so a test can stand a fake in for it."""
def __init__(self) -> None:
from ctypes import wintypes
self.wintypes = wintypes
self.user32 = ctypes.WinDLL("user32", use_last_error=True)
u = self.user32
u.GetCursorPos.argtypes = (ctypes.POINTER(wintypes.POINT),)
u.GetCursorPos.restype = wintypes.BOOL
u.SetCursorPos.argtypes = (ctypes.c_int, ctypes.c_int)
u.SetCursorPos.restype = wintypes.BOOL
u.GetSystemMetrics.argtypes = (ctypes.c_int,)
u.GetSystemMetrics.restype = ctypes.c_int
u.GetWindowRect.argtypes = (wintypes.HWND, ctypes.POINTER(wintypes.RECT))
u.GetWindowRect.restype = wintypes.BOOL
u.IsWindowVisible.argtypes = (wintypes.HWND,)
u.IsWindowVisible.restype = wintypes.BOOL
u.IsIconic.argtypes = (wintypes.HWND,)
u.IsIconic.restype = wintypes.BOOL
u.GetWindowThreadProcessId.argtypes = (wintypes.HWND, ctypes.POINTER(wintypes.DWORD))
u.GetWindowThreadProcessId.restype = wintypes.DWORD
self.enum_proc = ctypes.WINFUNCTYPE(wintypes.BOOL, wintypes.HWND, wintypes.LPARAM)
u.EnumWindows.argtypes = (self.enum_proc, wintypes.LPARAM)
u.EnumWindows.restype = wintypes.BOOL
def cursor_position(self) -> Point:
point = self.wintypes.POINT()
if not self.user32.GetCursorPos(ctypes.byref(point)):
raise TheCursorCannotBeParked(
"GetCursorPos failed (error %d). Where: user32, on the desktop the test runs on. What: the OS cursor cannot be read. Fix: run the e2e on an "
"interactive desktop session (not a locked screen or a service)." % ctypes.get_last_error())
return (point.x, point.y)
def set_cursor_position(self, x: int, y: int) -> None:
self.user32.SetCursorPos(x, y)
def screen(self) -> Rect:
"""The virtual screen: ``SM_XVIRTUALSCREEN``, ``SM_YVIRTUALSCREEN``, ``SM_CXVIRTUALSCREEN``, ``SM_CYVIRTUALSCREEN``."""
x, y, w, h = (self.user32.GetSystemMetrics(n) for n in (76, 77, 78, 79))
return (x, y, x + w, y + h)
def windows_below(self, root_pid: int) -> List[Rect]:
"""The rectangles of the visible, not minimised, top-level windows of the processes below ``root_pid``."""
import psutil
try:
pids = {p.pid for p in psutil.Process(root_pid).children(recursive=True)}
except psutil.Error:
return []
found: List[Rect] = []
def each(hwnd, _):
owner = self.wintypes.DWORD()
self.user32.GetWindowThreadProcessId(hwnd, ctypes.byref(owner))
if owner.value in pids and self.user32.IsWindowVisible(hwnd) and not self.user32.IsIconic(hwnd):
rect = self.wintypes.RECT()
if self.user32.GetWindowRect(hwnd, ctypes.byref(rect)) and rect.right > rect.left and rect.bottom > rect.top:
found.append((rect.left, rect.top, rect.right, rect.bottom))
return True
self.user32.EnumWindows(self.enum_proc(each), 0)
return found
def _is_windows() -> bool:
return sys.platform == "win32"
def _api() -> Optional[_Win32]:
return _Win32() if _is_windows() else None
def browser_windows(root_pid: Optional[int] = None, *, api: Optional[_Win32] = None) -> List[Rect]:
"""The rectangles of the windows of the browsers below ``root_pid`` (the test process by default) on this desktop; empty when not Windows."""
api = api or _api()
if api is None:
return []
return api.windows_below(os.getpid() if root_pid is None else root_pid)
def park(root_pid: Optional[int] = None, *, api: Optional[_Win32] = None) -> Optional[Point]:
"""Windows: put the OS cursor on a point no window of the browsers below ``root_pid`` covers and read it back. Returns the point; None when not Windows.
Called before the browser starts there is no window yet and the point is the bottom-right corner of the virtual screen, where the engine places no window."""
api = api or _api()
if api is None:
return None
target = park_outside(api.windows_below(os.getpid() if root_pid is None else root_pid), api.screen())
api.set_cursor_position(*target)
read_back = api.cursor_position()
if read_back != target:
raise TheCursorCannotBeParked(
"SetCursorPos(%d, %d) left the cursor at %r. Where: user32, on the desktop the test runs on. What: the OS cursor cannot be moved, so a native "
"mouse move for it can reach a window of the browser mid-gesture. Fix: run the e2e on an interactive desktop session (not a locked screen "
"or a service), with no other program holding the cursor." % (target[0], target[1], read_back))
return target
def require_outside(root_pid: Optional[int] = None, *, api: Optional[_Win32] = None, margin: int = 0) -> None:
"""The precondition of a gesture a test judges by the pointer events the page records: the OS cursor is outside every window of the browsers.
Raises ``TheCursorIsInside`` otherwise, with the cursor and the windows. Not Windows: nothing."""
api = api or _api()
if api is None:
return
windows = api.windows_below(os.getpid() if root_pid is None else root_pid)
cursor = api.cursor_position()
if not cursor_is_outside(windows, cursor, margin):
raise TheCursorIsInside(
"the OS cursor is at %r, inside the browser window(s) %r, when a pointer gesture is about to start. Where: the desktop the test runs on. What: "
"a native WM_MOUSEMOVE for it passes Gecko's first-move filter and reaches the page as a mousemove with buttons=0 at a moment of the "
"system's choosing, in the middle of the gesture the test records. Fix: park the cursor outside the window before the browser starts "
"(the autouse fixture `_the_os_cursor_is_outside_the_browser_window` of tests/conftest.py does it for every e2e test on Windows)." % (cursor, windows))
+151
View File
@@ -0,0 +1,151 @@
"""What a popup twin records about each element it clicks, so that a red run says what the click and the geometry were, and a green run leaves the numbers to compare.
A twin that clicks an element and waits for a popup (the select dropdown) used to say "the dropdown did not open" and nothing about the click: where it was sent, at which scale, what the
element's box was in its document and in the window, and what the popup was doing. This module is what the twin keeps for each element, and writes:
* ``click``: the point in CSS pixels, and the point the driver sent (the unit it is in and the device point it makes: CSS times the scale the driver knows);
* ``scales``: the record of ``Driver.scales()`` (the page's and the chrome's ``devicePixelRatio`` and the real scale of the screen), once per browser;
* ``select_rect``: ``getBoundingClientRect`` of the element inside its own document, and, for an element of a frame, ``iframe_rect``: the frame element's box in the top document;
* ``mozInnerScreen``: ``window.mozInnerScreenX/Y`` of the top document and, for a frame, of the frame's document;
* ``activation_at_click`` and ``activation_after_click``: whether the window was the active one, and had the focus, when the click was sent and right after (``look_at_activation``): chrome
``Services.focus.activeWindow === win``, ``win.document.hasFocus()``, the browsing context's ``isActive`` (``win.gBrowser.selectedBrowser.browsingContext.isActive``), the top content document's
``hasFocus()`` and ``visibilityState``, and the driver's ack of the click when it has one (``last_click_ack``); a popup that does not open for a window that was not active is not a popup that is at the wrong place;
* ``popup``: the state after the click (the first look), the last look of the wait (at the deadline) and, when the popup did not reach the state, a second look (the select test: a short wait on the same condition, so that a popup that comes late is seen to come late).
A read that fails is recorded in ``errors`` and never raised: the diagnosis must not replace the finding. The record is in the message of the failure and, on a runner (``RUNNER_TEMP`` set), in
``$RUNNER_TEMP/invpw-evidence/popup-diagnostics/<case>-<browser>.json``, the folder every e2e job uploads (see ``_watchdog_log``), whatever the result.
"""
from __future__ import annotations
import json
import os
from pathlib import Path
from typing import Any, Dict, Mapping, Optional, Sequence
from _watchdog_log import EVIDENCE_FOLDER
#: The folder of this evidence inside ``$RUNNER_TEMP/invpw-evidence``.
SUBFOLDER = "popup-diagnostics"
#: The top document: the element's box, the frame element's box, the window's place on the screen. Both ids are given by the page of the twin.
TOP_GEOMETRY_JS = """(() => {
const box = id => { const e = document.getElementById(id); if (!e) { return null; } const b = e.getBoundingClientRect(); return {x: b.x, y: b.y, w: b.width, h: b.height}; };
return {select: box(%(select)s), iframe: box(%(iframe)s), mozInnerScreen: [window.mozInnerScreenX, window.mozInnerScreenY], scroll: [window.scrollX, window.scrollY]};
})()"""
#: The document of a frame: the element's box inside it and its own place on the screen.
FRAME_GEOMETRY_JS = """(() => {
const e = document.getElementById(%(select)s); const b = e ? e.getBoundingClientRect() : null;
return {select: b && {x: b.x, y: b.y, w: b.width, h: b.height}, mozInnerScreen: [window.mozInnerScreenX, window.mozInnerScreenY], scroll: [window.scrollX, window.scrollY]};
})()"""
#: Chrome scope: the window's activation and focus, and the browsing context of the selected tab. ``win`` is the most recent browser window, as every chrome script of the twins reads it.
ACTIVATION_JS = """
const win = Services.wm.getMostRecentWindow("navigator:browser");
return JSON.stringify({
active_window: Services.focus.activeWindow === win,
window_has_focus: win.document.hasFocus(),
browsing_context_is_active: win.gBrowser.selectedBrowser.browsingContext.isActive,
});
"""
#: The top content document, read through the driver (``driver.eval``): the same expression on every driver.
CONTENT_ACTIVATION_JS = """(() => ({hasFocus: document.hasFocus(), visibilityState: document.visibilityState}))()"""
def _failed(exc: BaseException) -> str:
return "%s: %s" % (type(exc).__name__, str(exc)[:300])
def look_at_geometry(driver: Any, in_frame: bool, select_id: str = "s", frame_id: str = "f") -> Dict[str, Any]:
"""The boxes and the window's place for one element, read before the click. ``driver.eval`` reads the top document, ``driver.eval_in_frame`` the frame's.
A read that fails leaves its field out and says why in ``errors``."""
ids = {"select": json.dumps(select_id), "iframe": json.dumps(frame_id)}
out: Dict[str, Any] = {"errors": {}}
top: Optional[Dict[str, Any]] = None
try:
top = driver.eval(TOP_GEOMETRY_JS % ids)
except Exception as exc: # noqa: BLE001 the diagnosis never replaces the finding
out["errors"]["top_document"] = _failed(exc)
top = top or {}
out["mozInnerScreen"] = {"top": top.get("mozInnerScreen")}
if not in_frame:
out["select_rect"] = top.get("select")
out["iframe_rect"] = None
else:
out["iframe_rect"] = top.get("iframe")
try:
inner = driver.eval_in_frame(FRAME_GEOMETRY_JS % ids)
out["select_rect"] = inner.get("select")
out["mozInnerScreen"]["frame"] = inner.get("mozInnerScreen")
except Exception as exc: # noqa: BLE001
out["errors"]["frame_document"] = _failed(exc)
out["select_rect"] = None
out["mozInnerScreen"]["frame"] = None
if not out["errors"]:
del out["errors"]
return out
def look_at_activation(driver: Any) -> Dict[str, Any]:
"""The window's activation and focus now: the chrome's (``ACTIVATION_JS``), the top content document's (``CONTENT_ACTIVATION_JS``) and the driver's ack of the click, when it keeps one
(``last_click_ack``, None otherwise). A read that fails leaves its part out and says why in ``errors``; the diagnosis never replaces the finding."""
out: Dict[str, Any] = {"errors": {}}
try:
out["chrome"] = driver.chrome.script(ACTIVATION_JS)
except Exception as exc: # noqa: BLE001
out["errors"]["chrome"] = _failed(exc)
try:
out["content"] = driver.eval(CONTENT_ACTIVATION_JS)
except Exception as exc: # noqa: BLE001
out["errors"]["content"] = _failed(exc)
out["click_ack"] = getattr(driver, "last_click_ack", None)
if not out["errors"]:
del out["errors"]
return out
def click_record(driver: Any, css: Sequence[float]) -> Dict[str, Any]:
"""The click as asked (CSS pixels) and as the driver sent it (``driver.last_click``: the point, its unit, the device point), as the driver wrote it."""
return {"css": list(css), "sent": getattr(driver, "last_click", None)}
class Diagnostics:
"""The record of one browser on one case: its scales and one entry per element."""
def __init__(self, case: str, browser: str) -> None:
self.case, self.browser = case, browser
self.scales: Optional[Dict[str, Any]] = None
self.entries: Dict[str, Dict[str, Any]] = {}
self.save_error: Optional[str] = None
def entry(self, name: str) -> Dict[str, Any]:
return self.entries.setdefault(name, {})
def record(self) -> Dict[str, Any]:
return {"case": self.case, "browser": self.browser, "scales": self.scales, "elements": self.entries}
def message(self, headline: str, name: str) -> str:
"""``headline``, then everything known about the element ``name`` and the scales, as one JSON line a reader can paste."""
body = {"case": self.case, "browser": self.browser, "element": name, "scales": self.scales, **self.entries.get(name, {})}
return "%s\n diagnostics: %s" % (headline, json.dumps(body, sort_keys=True))
def path(self, environ: Mapping[str, str]) -> Optional[Path]:
runner = environ.get("RUNNER_TEMP")
if not runner:
return None
return Path(runner) / EVIDENCE_FOLDER / SUBFOLDER / ("%s-%s.json" % (self.case, self.browser))
def save(self, environ: Optional[Mapping[str, str]] = None) -> Optional[Path]:
"""Writes the record where the jobs upload it; None off a runner. A failed write is kept in ``save_error`` and never raised: this runs while a finding may be on its way up."""
path = self.path(os.environ if environ is None else environ)
if path is None:
return None
try:
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(json.dumps(self.record(), indent=1, sort_keys=True) + "\n", encoding="utf-8")
except OSError as exc:
self.save_error = _failed(exc)
return None
return path
+6 -5
View File
@@ -20,11 +20,12 @@ from _waits import wait_until
#: position 4 (device pixels, and CSS pixels at 1.0). The screen is the one the other surface tests pin.
PIN = {"screen.width": 1920, "screen.height": 1080, "screen.dpr": 1.0}
#: A second declared window frame that no runner has: a border of 6, a popup UI of 53 above the content, a default position of 9. The declared frame at scale 1.0
#: (8, 72, 4) is the frame of a retail Windows window, so a Windows runner's own popup has it too (outer - inner = 16 x 80) and a launch with the engine off
#: cannot tell the declaration from the host there; a launch declared with ANOTHER frame can (the prefs are applied last, over the core's declaration).
OTHER_FRAME = {"zoom.stealth.screen.frame_border": 6, "zoom.stealth.screen.popup_ui": 53, "zoom.stealth.screen.popup_position": 9}
OTHER_BORDER, OTHER_POPUP_UI, OTHER_POSITION = 6, 53, 9
#: A second declared window frame that no runner has: a border of 6 and a popup UI of 53 above the content. The declared frame at scale 1.0 (8, 72) is the frame
#: of a retail Windows window, so a Windows runner's own popup has it too (outer - inner = 16 x 80) and a launch with the engine off cannot tell the declaration from
#: the host there; a launch declared with ANOTHER frame can (the prefs are applied last, over the core's declaration). The position of an unpositioned popup is not
#: declared: it is Firefox's own rule (browser.xhtml screenX/screenY = 4, the stagger, the clamp), the same under every frame.
OTHER_FRAME = {"zoom.stealth.screen.frame_border": 6, "zoom.stealth.screen.popup_ui": 53}
OTHER_BORDER, OTHER_POPUP_UI = 6, 53
READ = """() => ({iw: innerWidth, ih: innerHeight, ow: outerWidth, oh: outerHeight,
sx: screenX, sy: screenY, mx: mozInnerScreenX, my: mozInnerScreenY})"""
+319
View File
@@ -0,0 +1,319 @@
"""The retail reference of the chrome-scope twins: RETAIL Firefox 159, driven by Marionette alone (no Playwright), headed on a display of its own (the wrapper's mechanism); and one driver for it and for ours.
Playwright's own Firefox is not a reference for the popups the browser chrome opens (a select dropdown, a tooltip): nothing says its build takes ``-marionette``, and it is not the
browser a user runs. The reference of these twins is the official retail build, the one the capture rounds of RetailCaptures measured. The chrome-scope relations (the popup against its
element, the tooltip against the pointer) are read in the same way on both sides, from chrome scope through Marionette; the page and its input are driven by one small interface (``Driver``):
``goto``, ``eval`` (a JavaScript expression of the top document, as JSON), ``move``, ``click`` (the point of the top document, CSS pixels), ``wait_for_timeout`` and ``chrome``.
WHERE THE RETAIL BINARY COMES FROM. The file named by the environment variable ``INVPW_RETAIL_FIREFOX`` (the path of ``firefox.exe`` on Windows, of ``firefox`` on Linux, where the reference is Mozilla's own Linux 159 build, fetched and verified the same way
and extracted to ``<work>/extracted/firefox/firefox``): a missing variable or file is RED ("MISSING REFERENCE, reference unavailable"), never a skip. The launcher is the same on both: no ``.exe``, the display is one of its own, made as the wrapper makes ours (``_stock_twin.OwnDisplay``: ``make_virtual_display()``, an Xvfb on Linux, the desktop of the job on Windows), not the job's: the rows run pytest without xvfb-run.
The legs of the rows ``wrapper.e2e.stock_twin.select`` and ``wrapper.e2e.stock_twin.tooltip`` put it there with the mechanism the retail captures already use, in the repository oss-invisible/core: ``scripts/retail/firefox_build.py fetch
--version 159.0 --work DIR`` (it downloads ``Firefox Setup 159.0.exe`` and SHA256SUMS and SHA256SUMS.asc from archive.mozilla.org, checks the signature against the release key committed in
``captures/runner/``, checks the installer's sha256 against SHA256SUMS, extracts it with 7z and writes DIR/build.json with the path of firefox.exe).
HOW IT IS LAUNCHED (what ``scripts/retail/window_geometry/run_scale.py`` does for the captures): ``firefox -no-remote -profile <empty directory> -marionette``, with ``-remote-allow-system-access`` for the
chrome scope; the profile holds only ``user.js`` with ``marionette.port`` 0 (a free port, written to ``MarionetteActivePort``) and ``layout.css.devPixelsPerPx`` (the display scale of the case, the pref
ours and stock are launched with), and the prefs that stop the first-run pages. No policy file. The browser is closed with its whole tree when the block ends.
"""
from __future__ import annotations
import json
import os
import shutil
import subprocess
import tempfile
import time
from pathlib import Path
from typing import Any, Callable, Dict, Optional, Tuple
from _stock_twin import MARIONETTE_ARGS, SCALES_JS, BrokenControl, Chrome, OwnDisplay
from _waits import wait_until
from _window_origin import CASES, DEADLINE_S, launch_case
ENV_VARIABLE = "INVPW_RETAIL_FIREFOX"
#: What the profile of the retail browser holds besides the two prefs of the case: the first-run pages and the updater are off, nothing else.
PROFILE_PREFS = {
"marionette.port": 0,
"browser.shell.checkDefaultBrowser": False,
"browser.aboutwelcome.enabled": False,
"browser.startup.page": 0,
"browser.startup.homepage": "about:blank",
"startup.homepage_welcome_url": "",
"startup.homepage_override_url": "",
"browser.startup.homepage_override.mstone": "ignore",
"datareporting.policy.dataSubmissionPolicyBypassNotification": True,
"toolkit.telemetry.reportingpolicy.firstRun": False,
"app.update.auto": False,
"app.update.checkInstallTime": False,
"browser.tabs.warnOnClose": False,
}
PAGE_SCALES_EXPR = "({devicePixelRatio: window.devicePixelRatio, inner: [innerWidth, innerHeight], screen: [screen.width, screen.height]})"
class MissingReference(AssertionError):
"""No retail binary to compare with: red, and no finding about ours."""
def retail_executable() -> str:
path = os.environ.get(ENV_VARIABLE, "")
if not path or not Path(path).is_file():
raise MissingReference("MISSING REFERENCE, no finding about ours: %s names no retail Firefox 159 (%r). The leg of the rows wrapper.e2e.stock_twin.select and wrapper.e2e.stock_twin.tooltip installs it with "
"oss-invisible/core scripts/retail/firefox_build.py fetch --version 159.0 and sets the variable to the path of firefox.exe" % (ENV_VARIABLE, path))
return path
def _user_js(prefs: Dict[str, Any]) -> str:
return "".join("user_pref(%s, %s);\n" % (json.dumps(name), json.dumps(value)) for name, value in sorted(prefs.items()))
class Driver:
"""What a twin does with a page, on any browser. ``chrome.script(js, args)`` is chrome scope through Marionette."""
chrome: Any
#: Which browser this is, in the names of a record and of its evidence file.
kind = "driver"
#: The last ``click``, as the driver sent it: ``{"point": [x, y], "unit": ..., "device": [x, y]}`` (None before the first click).
last_click: Optional[Dict[str, Any]] = None
def goto(self, url: str) -> None:
raise NotImplementedError
def eval(self, expression: str) -> Any:
"""The value of a JavaScript expression in the top document (a JSON-able value)."""
raise NotImplementedError
def eval_in_frame(self, expression: str) -> Any:
"""The value of a JavaScript expression in the document of the first frame of the top document (a JSON-able value)."""
raise NotImplementedError
def move(self, x: float, y: float, steps: int = 1) -> None:
raise NotImplementedError
def click(self, x: float, y: float) -> None:
raise NotImplementedError
def wait_for_timeout(self, ms: int) -> None:
raise NotImplementedError
def scales(self) -> Dict[str, Any]:
"""The record of the scales: the page's (declared) and the chrome's, with the real ones of the screen."""
out = {"page": self.eval(PAGE_SCALES_EXPR)}
out.update(self.chrome.script(SCALES_JS))
return out
class PlaywrightDriver(Driver):
"""Ours: a page of the wrapper's client, and the chrome of the engine through Marionette."""
kind = "ours"
def __init__(self, page, chrome: Chrome) -> None:
self.page, self.chrome = page, chrome
def goto(self, url: str) -> None:
self.page.goto(url, wait_until="load", timeout=30000)
def eval(self, expression: str) -> Any:
return self.page.evaluate("() => (%s)" % expression)
def eval_in_frame(self, expression: str) -> Any:
frames = [frame for frame in self.page.frames if frame != self.page.main_frame]
return frames[0].evaluate("() => (%s)" % expression)
def move(self, x: float, y: float, steps: int = 1) -> None:
self.page.mouse.move(x, y, steps=steps)
def click(self, x: float, y: float) -> None:
# the client sends the point in CSS pixels of the page; the device point is that times the page's (declared) scale
try:
scale = self.page.evaluate("() => window.devicePixelRatio")
device: Optional[list] = [x * scale, y * scale]
except Exception: # noqa: BLE001 a record of the click never stops the click
device = None
self.last_click = {"point": [x, y], "unit": "CSS pixels of the page, as page.mouse.click sends them", "device": device}
self.page.mouse.click(x, y)
def wait_for_timeout(self, ms: int) -> None:
self.page.wait_for_timeout(ms)
class RetailChrome:
def __init__(self, session: "RetailSession") -> None:
self._session = session
def script(self, script: str, args: Tuple[Any, ...] = ()) -> Dict[str, Any]:
return json.loads(self._session.call("chrome", "WebDriver:ExecuteScript", {"script": script, "args": list(args)})["value"])
#: Moves and presses at a point of the browser's content, from chrome, through the widget: a point of the top document (CSS pixels) plus the content area's own place in the window. Firefox 159's chrome
#: input is ``Window.synthesizeMouseEvent`` (offsets in CSS pixels of that window, a dictionary of Mozilla's fields for the event and one for the options); ``nsIDOMWindowUtils`` has no ``sendMouseEvent``
#: in 159 (tests/test_the_chrome_calls_of_the_tests_exist_in_firefox.py reads the names from Mozilla's sources). ``inputSource: 1`` is a mouse, as a user's.
#: ``isAsyncEnabled: true`` is the field of Mozilla's SynthesizeMouseEventOptions that Mozilla's own EventUtils.js sets when a test asks for ``asyncEnabled`` (EventUtils.js, synthesizeMouse, around
#: lines 784-851, passes it as ``isAsyncEnabled``). Without it (the webidl default is false) nsContentUtils::SendMouseEvent dispatches through ``widget->DispatchEvent`` and never through APZ
#: (nsContentUtils.cpp 10552-10560 at FIREFOX_159_0_RELEASE), the event has no valid layers id, and EventStateManager::DispatchCrossProcessEvent falls back to the TOP process
#: (EventStateManager.cpp 2199): a frame in another process never gets the move or the click, and the tooltip and the select of that frame fail on retail for a reason that is the driver's.
SEND_JS = """
const [type, x, y, button, clicks] = arguments;
const win = Services.wm.getMostRecentWindow("navigator:browser");
const b = win.gBrowser.selectedBrowser.getBoundingClientRect();
win.focus();
win.synthesizeMouseEvent(type, b.left + x, b.top + y, {button, clickCount: clicks, modifiers: 0, inputSource: 1}, {ignoreRootScrollFrame: false, isDOMEventSynthesized: true, isAsyncEnabled: true});
return JSON.stringify({ok: true, at: [b.left + x, b.top + y], dpr: win.devicePixelRatio});
"""
SIZE_JS = """
const win = Services.wm.getMostRecentWindow("navigator:browser");
return JSON.stringify({outer: [win.outerWidth, win.outerHeight], inner: [win.innerWidth, win.innerHeight]});
"""
class RetailSession:
"""Retail Firefox 159 with Marionette, headed, one profile; closed with its whole tree."""
def __init__(self, executable: str, dpr: float) -> None:
self.executable, self.dpr = executable, dpr
self._context: Optional[str] = None
self._process: Optional[subprocess.Popen] = None
self._profile: Optional[str] = None
self._marionette = None
self._display: Optional[OwnDisplay] = None
def __enter__(self) -> "RetailSession":
import webfont_probe
try:
self._profile = tempfile.mkdtemp(prefix="invpw-retail-")
prefs = dict(PROFILE_PREFS)
prefs["layout.css.devPixelsPerPx"] = str(self.dpr)
Path(self._profile, "user.js").write_text(_user_js(prefs), encoding="utf-8")
self._display = OwnDisplay().__enter__()
env = self._display.environ(dict(os.environ, MOZ_REMOTE_ALLOW_SYSTEM_ACCESS="1", MOZ_CRASHREPORTER_DISABLE="1"))
self._process = subprocess.Popen([self.executable, "-no-remote", "-profile", self._profile] + MARIONETTE_ARGS + ["about:blank"], env=env,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
port = webfont_probe.marionette_active_port(Path(self._profile), timeout=120)
self._marionette = webfont_probe._Marionette(port)
self._marionette.call("WebDriver:NewSession", {"capabilities": {"alwaysMatch": {}}})
except BaseException:
self.__exit__(None, None, None)
raise
return self
def call(self, context: str, command: str, params: Dict[str, Any]) -> Any:
if self._context != context:
self._marionette.call("Marionette:SetContext", {"value": context})
self._context = context
return self._marionette.call(command, params)
def set_window_size(self, outer: Tuple[float, float]) -> Dict[str, Any]:
"""Sets the window's outer size to ``outer`` (CSS pixels of the chrome), at the origin of the screen, and reads back the sizes the chrome window answers."""
self.call("content", "WebDriver:SetWindowRect", {"x": 0, "y": 0, "width": int(outer[0]), "height": int(outer[1])})
read = SIZE_JS
out: Dict[str, Any] = {}
for _ in range(int(DEADLINE_S * 10)):
out = json.loads(self.call("chrome", "WebDriver:ExecuteScript", {"script": read, "args": []})["value"])
if out["outer"] == [outer[0], outer[1]]:
break
time.sleep(0.1)
return out
def __exit__(self, *exc) -> None:
if self._marionette is not None:
self._marionette.close()
if self._process is not None:
try:
import psutil
root = psutil.Process(self._process.pid)
for child in root.children(recursive=True):
try:
child.kill()
except psutil.Error:
pass
root.kill()
except Exception: # the process is gone already
pass
try:
self._process.wait(30)
except Exception:
pass
if self._display is not None:
self._display.__exit__(None, None, None)
self._display = None
if self._profile is not None:
shutil.rmtree(self._profile, ignore_errors=True)
class RetailDriver(Driver):
kind = "retail"
def __init__(self, session: RetailSession) -> None:
self.session = session
self.chrome = RetailChrome(session)
def goto(self, url: str) -> None:
self.session.call("content", "WebDriver:Navigate", {"url": url})
wait_until(lambda: self.eval("document.readyState") == "complete", DEADLINE_S, lambda: self.wait_for_timeout(100))
def eval(self, expression: str) -> Any:
value = self.session.call("content", "WebDriver:ExecuteScript", {"script": "return JSON.stringify(%s);" % expression, "args": []})["value"]
return json.loads(value) if value is not None else None
def eval_in_frame(self, expression: str) -> Any:
"""Through Marionette: the first frame element becomes the context of the script, and the top document is the context again when the read ends."""
found = self.session.call("content", "WebDriver:FindElement", {"using": "css selector", "value": "iframe"})["value"]
self.session.call("content", "WebDriver:SwitchToFrame", {"id": found})
try:
value = self.session.call("content", "WebDriver:ExecuteScript", {"script": "return JSON.stringify(%s);" % expression, "args": []})["value"]
finally:
self.session.call("content", "WebDriver:SwitchToParentFrame", {})
return json.loads(value) if value is not None else None
def _send(self, kind: str, x: float, y: float, button: int = 0, clicks: int = 0) -> Dict[str, Any]:
return self.chrome.script(SEND_JS, (kind, x, y, button, clicks))
def move(self, x: float, y: float, steps: int = 1) -> None:
# the pointer comes to the point in ``steps`` moves from the last one it made (a move to the point it is on makes no event, as on every browser)
last = getattr(self, "_at", (x - 1, y - 1))
for i in range(1, steps + 1):
self._send("mousemove", last[0] + (x - last[0]) * i / steps, last[1] + (y - last[1]) * i / steps)
self._at = (x, y)
def click(self, x: float, y: float) -> None:
self.move(x, y)
down = self._send("mousedown", x, y, 0, 1)
self._send("mouseup", x, y, 0, 1)
# the point goes to the window's widget in CSS pixels of the chrome (the content area's place added); the device point is that times the chrome's scale
at, scale = down.get("at"), down.get("dpr")
self.last_click = {"point": at, "unit": "CSS pixels of the chrome window, as Window.synthesizeMouseEvent takes them",
"device": [at[0] * scale, at[1] * scale] if at and scale else None}
def wait_for_timeout(self, ms: int) -> None:
time.sleep(ms / 1000.0)
def run_retail_twin(case: str, firefox_binary: str, measure: Callable[[Driver], Dict[str, Any]]) -> Tuple[Dict[str, Any], Dict[str, Any]]:
"""(retail's record, ours): the same ``measure(driver)`` on our engine and on the retail reference, one browser at a time. Needs MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 for ours.
Ours goes first, for its window: the retail window is given the SAME outer size as ours (the maximized window of the case's declared screen, as ``launch_case`` makes it, read from the
chrome window's ``outerWidth`` and ``outerHeight``), and the inner sizes both chrome windows answer are compared before anything is measured: when they differ the verdict is BROKEN CONTROL,
not a finding about ours. Both sizes are in each record (``scales.chrome_outer``, ``scales.chrome_inner``), with the size the retail window was asked (``scales.window_asked_outer``)."""
executable = retail_executable()
with launch_case(firefox_binary, case, extra_args=MARIONETTE_ARGS, extra_prefs={"marionette.port": 0}) as browser:
page = browser.new_page() # first: the window the session below waits for
chrome = Chrome(page)
try:
ours = measure(PlaywrightDriver(page, chrome))
finally:
chrome.close()
asked = ours["scales"]["chrome_outer"]
with RetailSession(executable, CASES[case][0]) as session:
got = session.set_window_size((asked[0], asked[1]))
if got.get("outer") != asked or got.get("inner") != ours["scales"]["chrome_inner"]:
raise BrokenControl("BROKEN CONTROL, no finding about ours: the retail window was asked the outer size of ours %r and answers outer %r and inner %r; ours has inner %r (case %s)"
% (asked, got.get("outer"), got.get("inner"), ours["scales"]["chrome_inner"], case))
retail = measure(RetailDriver(session))
retail["scales"]["window_asked_outer"] = asked
return retail, ours
+111
View File
@@ -0,0 +1,111 @@
"""The stack watchdog of the e2e tests: a Python thread that writes the stack of every thread of the process, holding the GIL.
``tests/conftest.py`` arms it for each e2e test and cancels it in the teardown. Once the threshold of a test is passed, and then every period until the
test ends, it appends one dump to the file it was given: ``Timeout (h:mm:ss)!`` (the time since the arming) and then, for every thread, ``Thread 0x... (most
recent call first):`` and its frames as `` File "...", line N in name``. Two identical dumps mean a stuck test, two different ones a slow test.
Why a Python thread and not ``faulthandler.dump_traceback_later``: that watchdog is a C thread, and it copies the frames of every thread WITHOUT the GIL
(``_Py_DumpTracebackThreads``, which CPython documents as "for debug purpose only ... after a segmentation fault, at fatal error") while the other threads
keep running and keep changing their frames. On Windows two full dumps of a pytest worker show it dead inside ``dump_frame`` of ``faulthandler_thread``,
reading a frame another thread was freeing. This thread takes ``sys._current_frames()`` with the GIL held, so a frame it reads cannot change under it.
One thread per process, started by the first ``arm`` and reused by every later test. It writes nothing to stdout or stderr. After ``cancel`` returns, nothing
more is written for that test: the dump is written under the lock that ``cancel`` takes.
Known limit: a thread that holds the GIL and never releases it (a C call that does not let go) keeps this thread from running, so it cannot write. That case
is pytest's ``faulthandler.enable()``, which writes only when the process dies. The 420 s limit of the run (``--timeout-method thread``) still names the test.
"""
from __future__ import annotations
import sys
import threading
import time
def _clock(seconds: float) -> str:
whole = int(seconds)
return "%d:%02d:%02d" % (whole // 3600, whole % 3600 // 60, whole % 60)
class StackWatchdog:
def __init__(self) -> None:
self._cond = threading.Condition()
self._thread: threading.Thread | None = None
self._armed = False
self._file = None
self._started = 0.0
self._period = 0.0
self._due = 0.0
@property
def thread(self) -> threading.Thread | None:
"""The one thread of the process (None until the first ``arm``)."""
return self._thread
def arm(self, nodeid: str, threshold_s: float, period_s: float | None = None, file=None) -> None:
"""From ``threshold_s`` seconds on, and then every ``period_s`` (the threshold by default), write the stacks of all threads to ``file`` until ``cancel``."""
period = threshold_s if period_s is None else period_s
with self._cond:
self._file = file
self._started = time.monotonic()
self._period = max(period, 0.0005)
self._due = self._started + threshold_s
self._armed = True
try:
file.write("\n--- %s ---\n" % nodeid)
file.flush()
except Exception:
pass
if self._thread is None or not self._thread.is_alive():
self._thread = threading.Thread(target=self._run, name="invpw-stack-watchdog", daemon=True)
self._thread.start()
self._cond.notify_all()
def cancel(self) -> None:
"""Nothing more is written for the armed test once this returns: a dump in progress finishes first, because it is written under the same lock."""
with self._cond:
self._armed = False
self._file = None
self._cond.notify_all()
def _run(self) -> None:
with self._cond:
while True:
if not self._armed:
self._cond.wait()
continue
left = self._due - time.monotonic()
if left > 0:
# Waiting lets go of the lock, so that a cancel or a new arm is never kept out by a watchdog with a short period.
self._cond.wait(left)
continue
self._write_one_dump()
self._due = time.monotonic() + self._period
def _write_one_dump(self) -> None:
mine = threading.get_ident()
names = {t.ident: t.name for t in threading.enumerate()}
out = ["Timeout (%s)!\n" % _clock(time.monotonic() - self._started)]
for ident, frame in sys._current_frames().items():
if ident == mine:
continue
name = names.get(ident)
out.append("\nThread 0x%016x%s (most recent call first):\n" % (ident, " [%s]" % name if name else ""))
while frame is not None:
out.append(' File "%s", line %d in %s\n' % (frame.f_code.co_filename, frame.f_lineno, frame.f_code.co_name))
frame = frame.f_back
try:
self._file.write("".join(out))
self._file.flush()
except Exception:
# A watchdog that fails the suite over its OWN problem is worse than the defect it is watching for.
pass
_the_watchdog = StackWatchdog()
arm = _the_watchdog.arm
cancel = _the_watchdog.cancel
def the_thread() -> threading.Thread | None:
return _the_watchdog.thread
+261
View File
@@ -0,0 +1,261 @@
"""What the stock twins share: the same steps on Playwright's own Firefox and on our engine, one browser at a time, and a record of each.
A twin test measures a relation (the dropdown of a select against its element, the drop of a real drag, what an observer reads of a scrolled frame) and its
verdict is "the same as stock Firefox with stock Playwright", never a number of ours: an expected value comes from a capture of retail or from stock in the same job.
HOW STOCK RUNS. The mechanism is the one of the fake web (``scripts/run_fakeweb.py``, ``tests/fakeweb/profile_p2.py::run_on_stock``): the stock Playwright client
(``playwright.sync_api``, imported by name: the fork's guard forbids a static import), ``p.firefox.launch()``, which starts Playwright's own Firefox build that
``python -m playwright install firefox`` put on the runner. That is a row with ``"stock_firefox": true`` of ``ci/required-suites.json``, whose leg the gate gives the
archives, checked against ``ci/py-lock/playwright-browsers.json``. Stock goes FIRST and is closed before ours starts (ci-release-18: one browser at a time). The stock
part runs in a thread of its own (a sync client keeps its loop marked as running in its thread, and ours is a sync client too).
THE SAME WINDOW. Stock is launched HEADED (``headless=False``: a real window, on a display of its own that ``OwnDisplay`` makes the way the wrapper makes ours: ``invisible_core.make_virtual_display()``, an Xvfb of 1920x1080x24 on Linux; on Windows the desktop of the job, a stock client cannot be put on another desktop), as ours is (``launch_case``: the wrapper gives the engine a display of its own, so its windows are real ones; Firefox's ``-headless`` mode is on neither, because popups, drag and drop and window geometry behave differently in it), with the display scale of the case as ``layout.css.devPixelsPerPx`` (the pref ours is launched with for the same case: the scale
is then the one of the page AND of the browser chrome) and a context viewport of the inner size retail reads at that case (``RETAIL_CASES``: the maximized window's
``innerWidth`` x ``innerHeight``). Ours is the maximized window of the same case (``_window_origin.launch_case``).
THE RECORD. Each twin saves, for each browser, what it measured with the scales that could make the two differ: ``scales.page`` (``window.devicePixelRatio`` of the page, its
inner size, ``screen.width/height``: the DECLARED ones of ours) and ``scales.chrome`` read from chrome scope through Marionette (``devicePixelRatio`` of the browser window,
the inner and outer size of the window, and the REAL scale of the screen: ``nsIScreen.contentsScaleFactor`` and ``defaultCSSScaleFactor``, ``windowUtils.displayDPI``). The failure message
prints both records whole. A stock browser that cannot be driven (no Marionette, no dropdown, no drag) is a BROKEN CONTROL: red, and the message says it is no finding about ours.
"""
from __future__ import annotations
import fnmatch
import importlib
import json
import os
import re
import sys
from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple
from invisible_core import make_virtual_display
from _popup_geometry import in_a_thread_of_its_own
from _window_origin import launch_case, scale_pref
from test_the_maximized_window_frames_and_popups_read_retail_e2e import CASES as RETAIL_CASES
MARIONETTE_ARGS = ["-marionette", "-remote-allow-system-access"]
SCALES_JS = """
const win = Services.wm.getMostRecentWindow("navigator:browser");
const screen = Cc["@mozilla.org/gfx/screenmanager;1"].getService(Ci.nsIScreenManager).primaryScreen;
return JSON.stringify({
chrome_devicePixelRatio: win.devicePixelRatio,
chrome_inner: [win.innerWidth, win.innerHeight],
chrome_outer: [win.outerWidth, win.outerHeight],
real_screen_contentsScaleFactor: screen.contentsScaleFactor,
real_screen_defaultCSSScaleFactor: screen.defaultCSSScaleFactor,
real_displayDPI: win.windowUtils.displayDPI,
});
"""
PAGE_SCALES = """() => ({devicePixelRatio: window.devicePixelRatio, inner: [innerWidth, innerHeight], screen: [screen.width, screen.height]})"""
def on_linux() -> bool:
return sys.platform.startswith("linux")
class OwnDisplay:
"""The display a browser that is not ours is launched on: the wrapper's own mechanism (``make_virtual_display``, what ``InvisiblePlaywright`` starts for ours), never the job's.
On Linux a fresh Xvfb (the core's: 1920x1080x24, access control on, its cookie in ``XAUTHORITY``), one per launch, started before the browser and stopped after it; the browser's environment
gets ``DISPLAY`` and ``XAUTHORITY`` from it and loses the Wayland variables, so a job that runs pytest without ``xvfb-run`` (the rows of the stock twins) still has a screen. On Windows there is
nothing to make: a stock client cannot spawn its browser on another desktop, so it is on the one of the job, and ``environ`` is the environment as it is."""
def __init__(self) -> None:
self._display: Any = None
def __enter__(self) -> "OwnDisplay":
if on_linux():
display = make_virtual_display()
display.start()
self._display = display
return self
def __exit__(self, *exc: Any) -> None:
display, self._display = self._display, None
if display is not None:
display.stop()
def environ(self, base: Optional[Mapping[str, str]] = None) -> Dict[str, str]:
"""``base`` (the process's environment by default) as the browser is launched with it: what the display names set, what it names ``None`` removed."""
env = dict(os.environ if base is None else base)
for name, value in (self._display.launch_env() if self._display is not None else {}).items():
if value is None:
env.pop(name, None)
else:
env[name] = value
return env
class BrokenControl(AssertionError):
"""Stock Firefox could not be driven through the steps: not a finding about ours."""
class Chrome:
"""Chrome scope of the browser below this process, through Marionette (the route of ``test_software_compositing_is_declared_e2e.py``).
``page`` is the page the browser of this launch already opened, and it is required on purpose: ``WebDriver:NewSession`` waits for the end of the browser's start-up, which only a window
ends, and the wrapper launches with ``-silent`` (no window at start-up). A session asked before the first page never gets its answer (the socket times out after 300 s). With the page
as an argument the wrong order cannot be written."""
def __init__(self, page) -> None:
if page is None:
raise TypeError("Chrome needs the page this launch opened first: Marionette's NewSession is answered only once a window exists")
import webfont_probe
self._page = page
self._m = webfont_probe._Marionette(webfont_probe.marionette_active_port())
self._m.call("WebDriver:NewSession", {"capabilities": {"alwaysMatch": {}}})
self._m.call("Marionette:SetContext", {"value": "chrome"})
def script(self, script: str, args: Tuple[Any, ...] = ()) -> Dict[str, Any]:
return json.loads(self._m.call("WebDriver:ExecuteScript", {"script": script, "args": list(args)})["value"])
def scales(self) -> Dict[str, Any]:
"""The record of the scales: the page's (declared) and the chrome's, with the real ones of the screen."""
out = {"page": self._page.evaluate(PAGE_SCALES)}
out.update(self.script(SCALES_JS))
return out
def close(self) -> None:
self._m.close()
def stock_client():
"""The stock Playwright client, imported by name."""
try:
return importlib.import_module("playwright.sync_api").sync_playwright
except ImportError as exc: # a broken environment, not a reason to skip: a skipped gate checks nothing
raise BrokenControl("the stock Playwright client is missing (%s): install the wrapper with its dev extra" % exc) from exc
def viewport(case: str) -> Dict[str, int]:
"""The inner size retail reads for the maximized window of ``case``, CSS pixels."""
maximized = RETAIL_CASES[case]["maximized"]
return {"width": int(maximized["iw"]), "height": int(maximized["ih"])}
def stock_user_prefs(case: str) -> Dict[str, Any]:
"""The user prefs stock Playwright's Firefox is launched with for ``case``: the display scale as the STRING ours is launched with (``scale_pref``), and a free Marionette port.
A number would be set with ``setIntPref`` by the Juggler of Playwright's build, and ``layout.css.devPixelsPerPx`` is a string pref: ``Browser.enable`` fails and no case launches."""
return {"layout.css.devPixelsPerPx": scale_pref(case), "marionette.port": 0}
def _on_stock(case: str, measure: Callable[[Any, Chrome], Dict[str, Any]]) -> Dict[str, Any]:
def run() -> Dict[str, Any]:
sync_playwright = stock_client()
with sync_playwright() as p, OwnDisplay() as display:
browser = p.firefox.launch(headless=False, args=MARIONETTE_ARGS, env=display.environ(),
firefox_user_prefs=stock_user_prefs(case))
chrome = None
try:
page = browser.new_context(viewport=viewport(case)).new_page()
chrome = Chrome(page)
return measure(page, chrome)
finally:
if chrome is not None:
chrome.close()
browser.close()
try:
return in_a_thread_of_its_own(run)
except BrokenControl:
raise
except Exception as exc:
raise BrokenControl("BROKEN CONTROL, no finding about ours: stock Firefox (Playwright's own build) could not be driven through the steps of %s: %s: %s"
% (case, type(exc).__name__, exc)) from exc
def _on_ours(case: str, firefox_binary: str, measure: Callable[[Any, Chrome], Dict[str, Any]]) -> Dict[str, Any]:
with launch_case(firefox_binary, case, extra_args=MARIONETTE_ARGS, extra_prefs={"marionette.port": 0}) as browser:
page = browser.new_page() # first: the window the session below waits for
chrome = Chrome(page)
try:
return measure(page, chrome)
finally:
chrome.close()
def run_twin(case: str, firefox_binary: str, measure: Callable[[Any, Chrome], Dict[str, Any]]) -> Tuple[Dict[str, Any], Dict[str, Any]]:
"""(stock's record, ours): the same ``measure(page, chrome)`` on Playwright's own Firefox first and on our engine second. Needs MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1."""
stock = _on_stock(case, measure)
ours = _on_ours(case, firefox_binary, measure)
return stock, ours
def both(case: str, stock: Dict[str, Any], ours: Dict[str, Any], reference: str = "stock") -> str:
"""The two records whole, for the message of a red twin (``reference`` names the first: stock, or retail)."""
return "\n case %s\n %s: %s\n ours: %s" % (case, reference, json.dumps(stock, sort_keys=True), json.dumps(ours, sort_keys=True))
def differences(stock: Any, ours: Any, tolerances: Dict[str, float] = None, path: str = "") -> List[str]:
"""Every place where the two records differ, as ``path: stock X, ours Y``. A number differs by more than the tolerance of its key (the last name of its path; 0 when none);
everything else must be equal."""
tolerances = tolerances or {}
out: List[str] = []
if isinstance(stock, dict) and isinstance(ours, dict):
for key in sorted(set(stock) | set(ours)):
if key not in stock or key not in ours:
out.append("%s.%s: only %s has it" % (path, key, "stock" if key in stock else "ours"))
else:
out += differences(stock[key], ours[key], tolerances, "%s.%s" % (path, key))
elif isinstance(stock, list) and isinstance(ours, list) and len(stock) == len(ours):
for i, (a, b) in enumerate(zip(stock, ours)):
out += differences(a, b, tolerances, "%s[%d]" % (path, i))
elif isinstance(stock, (int, float)) and isinstance(ours, (int, float)) and not isinstance(stock, bool) and not isinstance(ours, bool):
tolerance = tolerances.get(path.rsplit(".", 1)[-1].split("[", 1)[0], 0.0)
if abs(stock - ours) > tolerance:
out.append("%s: stock %r, ours %r (tolerance %r)" % (path, stock, ours, tolerance))
elif stock != ours:
out.append("%s: stock %r, ours %r" % (path, stock, ours))
return out
#: The two reasons a field of a stock twin's record can be left out of the comparison with stock (the retail capture of the case decides it instead).
IN_PROCESS_FRAME = "in-process frame in stock"
SYNTHETIC_DRAG = "synthetic drag in stock"
REASONS = {
IN_PROCESS_FRAME: "stock Playwright's Firefox sets fission.webContentIsolationStrategy=0, so its cross-site frame shares the top's process and ours is in another process: a field that depends on "
"the frame being in another process is not what stock reads",
SYNTHETIC_DRAG: "stock's drag is Juggler's synthetic one: no OLE drag loop, so no timer-driven drag event and no buttons held, and nothing a real drag has beyond the events themselves",
}
def canonical(path: str, root: str) -> str:
"""``path`` of a difference less its root, with every list index as ``[]``: ``drag drop.top.once[3].buttons`` is ``top.once[].buttons`` for the root ``drag drop``."""
rest = path[len(root):].lstrip(".") if path.startswith(root) else path
return re.sub(r"\[\d+\]", "[]", rest)
def leaf_paths(node: Any, prefix: str = "") -> List[str]:
"""The canonical path of every leaf of a record (what a declared field has to name to exist in it)."""
if isinstance(node, dict):
return [p for k, v in node.items() for p in leaf_paths(v, "%s.%s" % (prefix, k) if prefix else str(k))] or [prefix]
if isinstance(node, list):
return [p for v in node for p in leaf_paths(v, prefix + "[]")] or [prefix + "[]"]
return [prefix]
def stale_entries(declared: Mapping[str, str], *records: Any) -> List[str]:
"""The declared fields (a pattern of canonical paths, ``*`` for any run of characters) that name nothing in any of ``records``, and the reasons that are not one of ``REASONS``."""
paths = [p for record in records for p in leaf_paths(record)]
out = ["%s names no field of the record" % field for field in declared if not any(fnmatch.fnmatchcase(p, field) for p in paths)]
return out + ["%s has the reason %r, which is not one of %s" % (field, why, sorted(REASONS)) for field, why in declared.items() if why not in REASONS]
def split_differences(stock: Any, ours: Any, declared: Mapping[str, str], tolerances: Dict[str, float] = None, path: str = "") -> Tuple[List[str], List[str]]:
"""``(red, recorded)``: the differences of ``differences`` split by the declared list of the twin. A difference at a declared field is recorded (with its reason, for the report) and does not
decide the verdict; every other one is red. ``declared`` maps a pattern of canonical paths (``canonical``) to one of ``REASONS``."""
red: List[str] = []
recorded: List[str] = []
for difference in differences(stock, ours, tolerances, path):
where = canonical(difference.split(": ", 1)[0], path)
why = next((reason for field, reason in declared.items() if fnmatch.fnmatchcase(where, field)), None)
if why is None:
red.append(difference)
else:
recorded.append("%s [recorded, not compared: %s]" % (difference, why))
return red, recorded
+3 -4
View File
@@ -47,7 +47,7 @@ def _require_strace_can_trace(tmp: Path) -> None:
def _stand_in(binary: str, tree: Path, log: Path, pidfile: Path, syscalls: str = _SYSCALLS,
timestamps: bool = False, fd_paths: bool = False, network: bool = False, exit_status: bool = False,
core_dir: Path | None = None, cores: bool = False) -> str:
cores: bool = False) -> str:
"""A copy of the engine's directory made of links, whose executable runs
the real one under strace, in the engine's place.
@@ -66,8 +66,7 @@ def _stand_in(binary: str, tree: Path, log: Path, pidfile: Path, syscalls: str =
``fd_paths`` adds ``-y`` (scripts/ci_ab_host.py reads the paths the tree touched, and knows a socket by its inode);
``network`` adds the network calls to ``syscalls`` (scripts/ci_ab_host.py reads the netlink sockets and the public destinations);
``cores`` lets the tree dump core (``ulimit -c unlimited``) and changes nothing else: the working directory stays the launcher's, so the paths the trace reads
are the same, and where the kernel writes the core is the job's ``kernel.core_pattern``; ``core_dir`` does that and moves the working directory to that folder, where a
plain ``core`` pattern writes (the bare launch of scripts/ci_ab_host.py)."""
are the same, and where the kernel writes the core is the job's ``kernel.core_pattern`` (scripts/ci_ab_host.py)."""
if network:
syscalls = syscalls + "," + _NET_SYSCALLS
real = Path(os.path.realpath(binary))
@@ -76,7 +75,7 @@ def _stand_in(binary: str, tree: Path, log: Path, pidfile: Path, syscalls: str =
if entry.name != real.name:
(tree / entry.name).symlink_to(entry)
script = tree / real.name
cores_script = ("ulimit -c unlimited\ncd %s\n" % core_dir) if core_dir else ("ulimit -c unlimited\n" if cores else "")
cores_script = "ulimit -c unlimited\n" if cores else ""
script.write_text(
"#!/bin/sh\n"
"echo $$ > %s\n"
+70 -6
View File
@@ -93,6 +93,15 @@ def _attrs(data: bytes) -> Dict[int, bytes]:
return out
def is_deallocation(data: bytes) -> bool:
"""Whether a datagram is a TURN deallocation, by what it means (RFC 5766 section 7.1): a STUN Refresh (0x0004) whose LIFETIME (0x000D) is 0. A Refresh with a lifetime above 0, with
none, or any other message type, is not one. The one reading of it: the TURN server of the lab and the gateway of the lab both use it."""
if len(data) < 20 or struct.unpack("!I", data[4:8])[0] != MAGIC or struct.unpack("!H", data[:2])[0] != 0x0004:
return False
lifetime = _attrs(data).get(0x000D)
return lifetime is not None and len(lifetime) == 4 and struct.unpack("!I", lifetime)[0] == 0
def _attr(t: int, v: bytes) -> bytes:
return struct.pack("!HH", t, len(v)) + v + b"\x00" * (-len(v) % 4)
@@ -111,11 +120,39 @@ def _message(mtype: int, tid: bytes, attrs: bytes, key: Optional[bytes] = None)
return head + attrs + _attr(0x0008, mac)
def long_term_key(user: str) -> bytes:
"""The long-term credential key of RFC 5389 section 15.4: md5(username:realm:password)."""
return hashlib.md5(("%s:%s:%s" % (user, REALM, PASSWORD)).encode(), usedforsecurity=False).digest()
def integrity_valid(data: bytes, user: str) -> bool:
"""Whether the MESSAGE-INTEGRITY of a request is the HMAC-SHA1 under the long-term key of ``user`` (RFC 5389 section 15.4): over the message up to the
attribute, with the length field of the header set as if the message ended with that attribute (24 bytes more than what came before it). A request
with no MESSAGE-INTEGRITY, or a truncated one, is not valid."""
i = 20
while i + 4 <= len(data):
t, n = struct.unpack("!HH", data[i:i + 4])
if t == 0x0008:
if n != 20 or i + 24 > len(data):
return False
head = data[:2] + struct.pack("!H", i + 24 - 20) + data[4:20]
return hmac.compare_digest(hmac.new(long_term_key(user), head + data[20:i], hashlib.sha1).digest(), data[i + 4:i + 24])
i += 4 + ((n + 3) & ~3)
return False
class TurnServer:
"""UDP TURN server on 127.0.0.1. ``seen`` is every datagram as (source ip, source port, STUN type), in order;
``requests`` the same datagrams as (monotonic time, transaction id, STUN type, carries credentials): a retransmission has the
transaction id of the request it repeats, so the TRANSACTIONS of a road are the distinct ids (:meth:`transactions`);
``allocations`` the successful Allocates as (source ip, source port, username, time)."""
``allocations`` the successful Allocates as (source ip, source port, username, time); ``deallocations`` the requests that END an allocation as (source ip, source
port, transaction id, time, index in ``allocations`` of the allocation they end, or None when that source has none): a deallocation is recognised by what it means, a
Refresh (0x0004) whose LIFETIME (0x000D) is 0 (RFC 5766 section 7.1), not by its type: a Refresh with a lifetime above 0 keeps the allocation and is not one. The server
answers it as it answers any Refresh; a retransmission is another datagram of the same transaction (:meth:`deallocation_transactions`).
A request that carries USERNAME is checked: its MESSAGE-INTEGRITY must be the HMAC under the long-term key of that user (``PASSWORD``).
A missing or wrong one is answered 401 with the realm and the nonce, makes no allocation, and is written in ``refused`` as
(source ip, source port, username, transaction id, time): a client with the wrong password never gets a relay here, as on a real server."""
def __init__(self) -> None:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
@@ -124,6 +161,8 @@ class TurnServer:
self.seen: List[Tuple[str, int, int]] = []
self.allocations: List[Tuple[str, int, str, float]] = []
self.requests: List[Tuple[float, bytes, int, bool]] = []
self.deallocations: List[Tuple[str, int, bytes, float, Optional[int]]] = []
self.refused: List[Tuple[str, int, str, bytes, float]] = []
self._closed = False
threading.Thread(target=self._serve, daemon=True).start()
@@ -135,6 +174,17 @@ class TurnServer:
first.setdefault(request[1], request)
return sorted(first.values(), key=lambda r: r[0])
def deallocation_transactions(self) -> List[Tuple[str, int, bytes, float, Optional[int]]]:
"""The first datagram of each deallocation transaction, in order: a retransmission of it is not another deallocation."""
first: Dict[bytes, Tuple[str, int, bytes, float, Optional[int]]] = {}
for record in list(self.deallocations):
first.setdefault(record[2], record)
return sorted(first.values(), key=lambda r: r[3])
def deallocation_tids(self) -> set:
"""The transaction ids (bytes) of every deallocation received: what ties its datagrams on the wire to the server's record of it."""
return {record[2] for record in list(self.deallocations)}
def close(self) -> None:
self._closed = True
self.sock.close()
@@ -148,26 +198,40 @@ class TurnServer:
if len(data) < 20 or struct.unpack("!I", data[4:8])[0] != MAGIC:
continue
mtype, tid = struct.unpack("!H", data[:2])[0], data[8:20]
self.seen.append((src[0], src[1], mtype))
attrs = _attrs(data)
if is_deallocation(data): # recorded BEFORE the request: whoever reads `requests` already knows which of them it ended
held = [i for i, a in enumerate(self.allocations) if a[:2] == (src[0], src[1])]
self.deallocations.append((src[0], src[1], tid, time.monotonic(), held[-1] if held else None))
self.seen.append((src[0], src[1], mtype))
self.requests.append((time.monotonic(), tid, mtype, 0x0008 in attrs and 0x0006 in attrs))
user_raw = attrs.get(0x0006)
if mtype in (0x0003, 0x0004, 0x0008, 0x0009) and user_raw is not None:
user = user_raw.decode(errors="replace")
if not integrity_valid(data, user): # the wrong password, or no MESSAGE-INTEGRITY: 401, no allocation
self.refused.append((src[0], src[1], user, tid, time.monotonic()))
self.sock.sendto(_message(mtype | 0x0110, tid, self._unauthorized()), src)
continue
if mtype == 0x0003: # Allocate
if 0x0008 not in attrs or 0x0006 not in attrs: # no credentials: 401 with a realm and a nonce
err = _attr(0x0009, b"\x00\x00\x04\x01Unauthorized") + _attr(0x0014, REALM.encode()) + _attr(0x0015, NONCE.encode())
self.sock.sendto(_message(0x0113, tid, err), src)
self.sock.sendto(_message(0x0113, tid, self._unauthorized()), src)
continue
user = attrs[0x0006].decode(errors="replace")
key = hashlib.md5(("%s:%s:%s" % (user, REALM, PASSWORD)).encode(), usedforsecurity=False).digest()
key = long_term_key(user)
body = (_attr(0x0016, _xor_addr(*RELAYED)) + _attr(0x0020, _xor_addr(src[0], src[1])) +
_attr(0x000D, struct.pack("!I", 600)))
self.allocations.append((src[0], src[1], user, time.monotonic()))
self.sock.sendto(_message(0x0103, tid, body, key), src)
elif mtype in (0x0004, 0x0008, 0x0009): # Refresh, CreatePermission, ChannelBind
user = attrs.get(0x0006, b"").decode(errors="replace")
key = hashlib.md5(("%s:%s:%s" % (user, REALM, PASSWORD)).encode(), usedforsecurity=False).digest()
key = long_term_key(user)
body = _attr(0x000D, struct.pack("!I", 600)) if mtype == 0x0004 else b""
self.sock.sendto(_message(mtype | 0x0100, tid, body, key), src)
@staticmethod
def _unauthorized() -> bytes:
"""The attributes of a 401: ERROR-CODE, the realm and the nonce of the long-term credential."""
return _attr(0x0009, b"\x00\x00\x04\x01Unauthorized") + _attr(0x0014, REALM.encode()) + _attr(0x0015, NONCE.encode())
# ── the gateway ────────────────────────────────────────────────────────────────
+45 -20
View File
@@ -12,12 +12,7 @@ Nothing here opens a browser; the unit test ``test_the_udp_line_helpers.py`` hol
from __future__ import annotations
import ipaddress
from typing import Any, Callable, Dict, List, Optional, Sequence
#: How much slower than the first visit a later visit may load, in milliseconds, on the roads where UDP does not work. A
#: retail Firefox on a network that drops UDP loads the later visits as fast as the first (15 of 15 sessions, h2/h2/h2): an h3
#: attempt that waits for a timeout before it falls back to h2 would be seconds.
LOAD_MARGIN_MS = 1500
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple
#: The visits of one page in one context, by kind of road. With NO proxy and the native DNS the retail is measured in loopback
#: and is exact: h2, h3, h3 over three visits. BEHIND A PROXY the names are resolved by DoH, the browser learns the Alt-Svc
@@ -162,7 +157,7 @@ def expected_protocols(road: str) -> str:
return ("h2 on the first visit, then h3 from a later visit on and h3 on every one after it, within %d visits "
"(retail with DoH and UDP free: h2/h2/h3 in 9 of 15, h2/h2/h2 in 4, h2/h3/h3 in 2, and h3 first in 3 of 15 in the "
"third run when the DNS answer carries the HTTPS record; this fixture has none: h2 first)" % visits)
return "h2 on every one of %d visits, as fast as the first (retail with UDP dropped: h2/h2/h2 in 15 of 15)" % visits
return "h2 on every one of %d visits, with no attempt at h3 (retail with UDP dropped: h2/h2/h2 in 15 of 15)" % visits
def no_https_record(host: str, doh: Any = None) -> List[str]:
@@ -185,27 +180,62 @@ def no_https_record(host: str, doh: Any = None) -> List[str]:
return problems
def judge_visits(road: str, protocols: Sequence[str], walls_ms: Sequence[float]) -> List[str]:
def relay_activity(gateway: Any) -> Tuple[int, int]:
"""What a SOCKS5 gateway of the tests has been asked for so far, as ``(UDP ASSOCIATE requests, datagrams its relay carried)``: the
requests answered or refused, the datagrams of every association. Taken twice (before the first visit, which is after the core's own
measurement of the gateway, and after the last), the difference is what the ENGINE asked of the relay while it visited the page."""
return int(gateway.associates), len(gateway.datagrams)
def h3_attempts(server: Any, gateway: Any = None, before: Optional[Tuple[int, int]] = None) -> List[str]:
"""What the test server (and, behind a SOCKS5 gateway, the gateway) says about a TRY at HTTP/3, as sentences; an empty list when nothing tried.
Behind a SOCKS5 gateway that is not coherent the engine does not carry UDP (nsSOCKSUDPIOLayer.cpp, ``StealthPutSocksUdpLayer``: the socket of an
HTTP/3 connection gets a layer that is ``Blocked``, no association is asked for): an engine that tried would ask the gateway for a UDP
ASSOCIATE (a refused one is a request too) or send a datagram to its relay, whether or not the datagram goes on to the server.
``gateway`` and ``before`` (:func:`relay_activity` taken before the first visit) add those two to the answer.
A retail Firefox on a network that drops UDP (and behind an HTTP proxy, which has no UDP at all) never tries HTTP/3: it reads h2 and
nothing is sent to the h3 port the Alt-Svc announces. An engine that TRIES sends its QUIC Initial there first, and then waits for
an answer that does not come before it falls back to h2: the wait is the tell, and the datagram is the attempt. The attempt is
read where it is born, as a datagram that reached the UDP port of ``server`` (``H3Server.udp_datagrams``, every datagram, with
or without a handshake), never as a duration: how long a fallback takes is the speed of the machine, whether it was tried is the engine."""
problems: List[str] = []
seen = list(getattr(server, "udp_datagrams", ()))
if seen:
problems.append("%d UDP datagrams reached the h3 port %s of the server, from %s: the engine tried HTTP/3 (and, where nothing answers, "
"waits for a timeout before the fallback to h2)" % (len(seen), getattr(server, "port", "?"), sorted(set(seen))))
if gateway is not None:
if before is None:
raise ValueError("a gateway is judged against what it had been asked before the first visit (relay_activity)")
associates, datagrams = (now - was for now, was in zip(relay_activity(gateway), before))
if associates:
problems.append("the engine asked the gateway for %d UDP ASSOCIATE while it visited the page: it tried to carry UDP (HTTP/3) "
"through a gateway that was not measured coherent" % associates)
if datagrams:
problems.append("%d datagrams went into the relay of the gateway while the page was visited: the engine tried HTTP/3 "
"through a gateway that was not measured coherent" % datagrams)
return problems
def judge_visits(road: str, protocols: Sequence[str]) -> List[str]:
"""What is wrong with the visits of one page on ``road``, as sentences; an empty list when nothing is.
``protocols`` is the ``nextHopProtocol`` of each visit and ``walls_ms`` the time ``page.goto`` took to the load event;
both have :func:`visits_for` entries. The rules, from the retail:
``protocols`` is the ``nextHopProtocol`` of each visit, :func:`visits_for` entries. No duration is judged: that an h3 attempt
waited for a timeout is read as the attempt itself (:func:`h3_attempts`). The rules, from the retail:
* ``direct``: exactly h2, h3, h3.
* ``socks5_coherent``: the first visit is h2 (the fixture is reached by an address: no HTTPS record exists, so nothing
tells the browser about h3 before the first connection; the retail itself reads h3 first when the DNS answer carries
the record, so this is a rule of the fixture, checked with :func:`no_https_record`); every later visit is h2 or h3, but once one is h3 all the following are (h3 never goes back to h2); and at
least one visit is h3 (it is NOT required at the second: h2/h2/h3 is the commonest retail sequence).
* the roads where UDP is dropped: h2 on every visit, and no visit loads more than :data:`LOAD_MARGIN_MS` slower than the
first (a fallback that waits for a timeout is a tell)."""
* the roads where UDP is dropped: h2 on every visit (and no attempt at h3: :func:`h3_attempts`, read by the test)."""
problems: List[str] = []
protocols, walls_ms = list(protocols), list(walls_ms)
protocols = list(protocols)
visits = visits_for(road)
said = "a retail Firefox reads %s on this road" % expected_protocols(road)
if len(protocols) != visits:
problems.append("%d protocols for %d visits: %s" % (len(protocols), visits, protocols))
if len(walls_ms) != visits:
problems.append("%d load times for %d visits: %s" % (len(walls_ms), visits, walls_ms))
if protocols and protocols[0] == "h3":
problems.append("visit 1 read h3: in this fixture nothing had told the browser yet that the server speaks h3 (no "
"name, no HTTPS record): something told it, or the fixture changed")
@@ -221,9 +251,4 @@ def judge_visits(road: str, protocols: Sequence[str], walls_ms: Sequence[float])
problems.append("the protocols of the %d visits are %s, %s" % (visits, protocols, said))
elif protocols != ["h2"] * visits:
problems.append("the protocols of the %d visits are %s, %s" % (visits, protocols, said))
if len(walls_ms) == visits and road in _H2_ROADS:
for number in range(2, visits + 1):
if walls_ms[number - 1] > walls_ms[0] + LOAD_MARGIN_MS:
problems.append("visit %d loaded in %d ms against %d ms for visit 1 (more than %d ms slower): an h3 attempt "
"that waited for a timeout before the fallback" % (number, walls_ms[number - 1], walls_ms[0], LOAD_MARGIN_MS))
return problems
+23
View File
@@ -0,0 +1,23 @@
"""Where the e2e stack watchdog (``tests/_stack_watchdog.py``, armed by ``tests/conftest.py``) writes its stacks."""
from __future__ import annotations
import os
from typing import Mapping
#: The folder under ``$RUNNER_TEMP`` that every e2e job uploads whatever the result ("Keep what the tests saved", ``invpw-evidence-*``).
EVIDENCE_FOLDER = "invpw-evidence"
LOG_NAME = "e2e-watchdog.log"
def default_log_path(environ: Mapping[str, str], tempdir: str) -> str:
"""The file the stacks go to.
``INVPW_TEST_WATCHDOG_FILE`` when it is set (the workflows of the wrapper name their own file). On a runner (``RUNNER_TEMP`` set) the evidence folder, which the gate uploads with
the result of the leg, so that the stack of a hung test is in the artifact of the run that hung. Elsewhere ``invpw-e2e-watchdog.log`` in the temporary folder."""
named = environ.get("INVPW_TEST_WATCHDOG_FILE")
if named:
return named
runner = environ.get("RUNNER_TEMP")
if runner:
return os.path.join(runner, EVIDENCE_FOLDER, "watchdog", LOG_NAME)
return os.path.join(tempdir, "invpw-e2e-watchdog.log")
+27
View File
@@ -0,0 +1,27 @@
"""What a test that cannot get a WebGL context writes down, so that the red says why (a pure helper, no browser).
A page asks for a context and gets ``null``: the page learns nothing more unless it listens for ``webglcontextcreationerror`` on the canvas
before it asks (``statusMessage``). The probe of the test returns an object with ``unavailable: true`` and what it heard instead of ``null``;
``split_probe`` turns that into the old ``None`` (so that the assertion stays as it was) and the record of the attempt, and ``unavailable_message``
is the sentence of the assertion with both attempts appended.
"""
from __future__ import annotations
from typing import Any, Optional, Tuple
#: The pause, in milliseconds, between the first attempt and the second one (a diagnostic: the verdict is the first attempt's).
SECOND_ATTEMPT_AFTER_MS = 2000
UNAVAILABLE = "webgl is unavailable: a WebGL canvas cannot be read"
def split_probe(result: Any) -> Tuple[Optional[Any], Optional[dict]]:
"""``(got, first)``: ``got`` is what the test reads (``None`` when there was no context, exactly as the old probe returned), ``first`` the
record of the failed attempt (``None`` when a context was made)."""
if isinstance(result, dict) and result.get("unavailable") is True:
return None, result
return result, None
def unavailable_message(first: Optional[dict], second: Any) -> str:
"""The message of the assertion: the old sentence, then what the first attempt and the second one (2 s later) reported."""
return "%s | first: %r; second after 2 s: %r" % (UNAVAILABLE, first, second)
+56
View File
@@ -0,0 +1,56 @@
"""Every pytest process of a Windows job that keeps WER dumps lets Windows Error Reporting see its crash: the bit SEM_NOGPFAULTERRORBOX of its error mode is cleared.
A process whose error mode carries SEM_NOGPFAULTERRORBOX (0x0002) never invokes Windows Error Reporting when it dies from an unhandled exception, so the
LocalDumps key of python.exe that e2e.yml sets (a full dump into ``$RUNNER_TEMP/invpw-evidence/dumps/python``) is never read: the pytest controllers of the
runner are born with 0x0003 (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX), and every child inherits the mode of its parent, so every xdist worker is born
with it too and a worker that crashes leaves no dump.
https://learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode
``clear_for_wer_dumps()``: tests/conftest.py calls it in ``pytest_configure``, which the controller and every xdist worker run. It acts only when ALL of this
holds, so nothing changes on a developer's machine, on Linux, or in a job that did not set LocalDumps:
* the system is Windows;
* ``$INVPW_WER_DUMPS`` (the one variable the "Windows Error Reporting keeps a full dump..." step of each Windows job of e2e.yml exports to ``$GITHUB_ENV``) names an
existing folder: the folder the dumps go to.
It clears bit 0x0002 and keeps every other bit of the mode, and appends one line to ``error-mode.log`` in the parent of that folder (``invpw-evidence/dumps``, inside the evidence the job
uploads): ``pid <n> error mode born 0x<hex>, now 0x<hex>``, so the evidence shows the bit was cleared in every process. It writes nothing to stdout or stderr, and it
never raises: a failure is a line of that log, not a failed test.
"""
from __future__ import annotations
import os
import sys
from pathlib import Path
#: The variable the Windows jobs export: the folder LocalDumps of python.exe writes to.
ENV_VAR = "INVPW_WER_DUMPS"
LOG_NAME = "error-mode.log"
#: SEM_NOGPFAULTERRORBOX: the process is not reported to Windows Error Reporting.
SEM_NOGPFAULTERRORBOX = 0x0002
def clear_for_wer_dumps(environ=None) -> None:
environ = os.environ if environ is None else environ
if sys.platform != "win32":
return
folder = environ.get(ENV_VAR)
if not folder or not os.path.isdir(folder):
return
log = Path(folder).resolve().parent / LOG_NAME
try:
import ctypes
kernel32 = ctypes.WinDLL("kernel32")
kernel32.GetErrorMode.restype = ctypes.c_uint
kernel32.SetErrorMode.argtypes = [ctypes.c_uint]
kernel32.SetErrorMode.restype = ctypes.c_uint
born = kernel32.GetErrorMode()
kernel32.SetErrorMode(born & ~SEM_NOGPFAULTERRORBOX)
line = "pid %d error mode born 0x%04x, now 0x%04x\n" % (os.getpid(), born, kernel32.GetErrorMode())
except Exception as exc: # best effort: the evidence says what went wrong, the test run goes on
line = "pid %d error mode not cleared: %s: %s\n" % (os.getpid(), type(exc).__name__, exc)
try:
with open(log, "a", encoding="utf-8") as handle:
handle.write(line)
except OSError:
pass
+78
View File
@@ -0,0 +1,78 @@
"""What the window-origin e2e files share: the four display cases, a browser pinned to one of them, and waits on a reading of a page.
The four cases are the ones of the window tests against retail (``test_the_maximized_window_frames_and_popups_read_retail_e2e.py``): scale 1.0, 1.25 and 1.5
on a 1920x1080 panel (device pixels) and 2.0 on a 1600x1200 one. The engine declares the window, so the page reads the same on Linux and on Windows.
Waits are CONDITIONS with a deadline (``_waits``), never a pause; ``observe`` is the one bounded look at a value that must NOT change, and it says so.
"""
from __future__ import annotations
import time
from typing import Any, Callable, Dict, List, Tuple
from _waits import wait_until
#: The deadline of a wait for something that must happen, in seconds.
DEADLINE_S = 30
#: Floats of a page (``mozInnerScreenY`` 72.667 is 72.6666...).
FLOAT = 0.001
#: case id -> (display scale, panel in device pixels).
CASES: Dict[str, Tuple[float, Tuple[int, int]]] = {
"1920x1080-dpr1.0": (1.0, (1920, 1080)),
"1920x1080-dpr1.25": (1.25, (1920, 1080)),
"1920x1080-dpr1.5": (1.5, (1920, 1080)),
"1600x1200-dpr2.0": (2.0, (1600, 1200)),
}
def scale_pref(case: str) -> str:
"""``layout.css.devPixelsPerPx`` of a case, as the core declares it for ours (``str(profile.screen.dpr)``: "1.0", "1.25", "1.5", "2.0").
The pref is a STRING pref of Firefox. A client that sends a number (stock Playwright puts a number through ``Browser.enable`` as ``setIntPref``) makes the browser refuse
the launch with NS_ERROR_UNEXPECTED, so every browser that is not ours gets the scale in this form, from here."""
return str(CASES[case][0])
def launch_case(firefox_binary: str, case: str, **extra: Any):
"""The product on one case: seed 42, the panel and the scale pinned, headless, no humanizing. ``extra`` is for the keywords a test needs on top
(``extra_args``, ``extra_prefs``)."""
from invisible_playwright import InvisiblePlaywright
dpr, panel = CASES[case]
pin = {"screen.width": panel[0], "screen.height": panel[1], "screen.dpr": dpr}
return InvisiblePlaywright(seed=42, pin=pin, binary_path=firefox_binary, headless=True, humanize=False, **extra)
def settled(page, read: Callable[[], Any], seconds: float = DEADLINE_S) -> Any:
"""``read()`` once two looks in a row, 100 ms apart, give the same value (or the last one at the deadline: a window that never settles is red where
the caller's assertion names what was read)."""
seen: Dict[str, Any] = {"now": None, "before": None}
def look() -> bool:
seen["before"], seen["now"] = seen["now"], read()
return seen["now"] == seen["before"]
wait_until(look, seconds, lambda: page.wait_for_timeout(100))
return seen["now"]
def wait_for(page, condition: Callable[[], Any], seconds: float = DEADLINE_S) -> bool:
"""Until ``condition()`` is true, reading the client's events between two looks; False at the deadline."""
return wait_until(condition, seconds, lambda: page.wait_for_timeout(100))
def observe(page, read: Callable[[], Any], seconds: float) -> List[Any]:
"""The distinct values ``read()`` gives over ``seconds``, in the order they were seen (the first look is always taken).
The ONE bounded look of these files: for a value that must stay as it is (a window after ``resizeBy(0, 0)``, a frame that must not have loaded yet).
A change that comes later than ``seconds`` is not seen; a change inside it always is, so the check can be late to catch a bug and never red for nothing."""
values: List[Any] = []
end = time.monotonic() + seconds
while True:
value = read()
if not values or values[-1] != value:
values.append(value)
if time.monotonic() >= end:
return values
page.wait_for_timeout(100)
+47 -7
View File
@@ -363,10 +363,12 @@ class Http1Parser:
def serve_http1(sock: Any, responder: Callable[[Dict[str, Any]], Tuple[int, List[Tuple[str, str]], bytes]],
on_request: Callable[[Dict[str, Any]], None], alt_svc: Optional[str] = None, close_after_response: bool = False) -> None:
on_request: Callable[[Dict[str, Any]], None], alt_svc: Optional[str] = None, close_after_response: bool = False,
on_answered: Optional[Callable[[Dict[str, Any]], None]] = None) -> None:
"""Serve the requests of a connection (a TLS socket, or a plain one) until the peer closes: each request is handed to ``on_request`` and answered by
``responder(request) -> (status, headers, body)``. With ``close_after_response`` the answer says ``Connection: close`` and the connection ends after it: the client
needs a new connection for its next request, and by then it has read the session ticket the server sent with the first answer."""
needs a new connection for its next request, and by then it has read the session ticket the server sent with the first answer. ``on_answered(request)`` is called once the
whole answer (head and body) has been handed to the socket, in the same thread and before the next request is read: the moment a client can have all of it."""
parser = Http1Parser()
while True:
data = sock.recv(65536)
@@ -383,6 +385,8 @@ def serve_http1(sock: Any, responder: Callable[[Dict[str, Any]], Tuple[int, List
if close_after_response:
lines.append("Connection: close")
sock.sendall(("\r\n".join(lines) + "\r\n\r\n").encode("latin-1") + body)
if on_answered is not None:
on_answered(request)
if close_after_response:
return
@@ -476,7 +480,8 @@ class H2Connection:
"""The server side of one HTTP/2 connection, with a tap on the frames. ``serve(sock)`` blocks until the peer closes. Each request is recorded as
``{"stream", "pseudo_order": [":method", ...], "header_names": [...], "headers": [[name, value], ...], "end_stream"}`` and answered by ``responder``."""
def __init__(self, responder: Callable[[Dict[str, Any]], Tuple[int, List[Tuple[str, str]], bytes]], alt_svc: Optional[str] = None) -> None:
def __init__(self, responder: Callable[[Dict[str, Any]], Tuple[int, List[Tuple[str, str]], bytes]], alt_svc: Optional[str] = None,
clock: Callable[[], float] = time.monotonic) -> None:
import h2.config
import h2.connection
@@ -488,6 +493,9 @@ class H2Connection:
self.tap = FrameTap()
self.requests: List[Dict[str, Any]] = []
self._bodies: Dict[int, int] = {}
#: ``clock()`` is stamped on a request as ``written_t`` once its whole answer (headers, body, end of stream) has been written to the socket; the answers waiting for that are here.
self._clock = clock
self._unwritten: List[Dict[str, Any]] = []
def summary(self) -> Dict[str, Any]:
return dict(summarize_frames(self.tap.frames), requests=list(self.requests))
@@ -525,6 +533,9 @@ class H2Connection:
out = self.conn.data_to_send()
if out:
sock.sendall(out)
for request in self._unwritten:
request["written_t"] = round(self._clock(), 3)
self._unwritten.clear()
def _request(self, event: Any) -> None:
headers = [[_text(n), _text(v)] for n, v in event.headers]
@@ -537,6 +548,7 @@ class H2Connection:
if request is None:
return
request["answered"] = True
self._unwritten.append(request)
fields = {n: v for n, v in request["headers"]}
status, headers, body = self.responder({"method": fields.get(":method", ""), "target": fields.get(":path", ""), "headers": request["headers"],
"scheme": "https", "protocol": "h2", "body_length": self._bodies.get(stream_id, 0)})
@@ -687,11 +699,20 @@ class WireServer:
record["alpn"] = tls.selected_alpn_protocol() or "http/1.1"
tls.settimeout(60)
if record["alpn"] == "h2":
record["h2"] = connection = H2Connection(self.responder, self.alt_svc)
record["h2"] = connection = H2Connection(self.responder, self.alt_svc, clock=self._now)
connection.serve(tls)
else:
record["http1"] = []
serve_http1(tls, self.responder, lambda r: record["http1"].append(dict(r, phase=self.phase(), t=self._now())), self.alt_svc, self.close_after_response)
arrived: List[Dict[str, Any]] = [] # the request being answered: a connection serves one at a time, and the mark goes on the record kept for it
def on_request(r: Dict[str, Any]) -> None:
arrived[:] = [dict(r, phase=self.phase(), t=self._now())]
record["http1"].append(arrived[0])
def on_answered(_request: Dict[str, Any]) -> None:
arrived[0]["written_t"] = self._now()
serve_http1(tls, self.responder, on_request, self.alt_svc, self.close_after_response, on_answered)
except (ssl.SSLError, OSError, ConnectionError, NotAClientHello, TimeoutError) as exc:
record["error"] = "%s: %s" % (type(exc).__name__, exc)
finally:
@@ -740,10 +761,11 @@ class WireServer:
if isinstance(http_event, HeadersReceived):
headers = [[_text(n), _text(v)] for n, v in http_event.headers]
self._record["h3_settings"] = h3_settings(self._http.received_settings)
self._record["requests"].append({
request = {
"stream": http_event.stream_id, "pseudo_order": [n for n, _v in headers if n.startswith(":")],
"header_names": [n for n, _v in headers if not n.startswith(":")], "headers": headers,
"phase": server.phase()})
"phase": server.phase(), "t": server._now()}
self._record["requests"].append(request)
fields = dict(headers)
status, out, body = server.responder({"method": fields.get(":method", ""), "target": fields.get(":path", ""), "headers": headers,
"scheme": "https", "protocol": "h3", "body_length": 0})
@@ -752,6 +774,7 @@ class WireServer:
[(b"content-length", str(len(body)).encode())])
self._http.send_data(http_event.stream_id, body, end_stream=True)
self.transmit()
request["written_t"] = server._now() # the datagrams that carry the whole answer have left the socket
configuration = QuicConfiguration(is_client=False, alpn_protocols=H3_ALPN)
configuration.load_cert_chain(str(certificate), str(key))
@@ -779,6 +802,23 @@ class WireServer:
raise RuntimeError("the QUIC server did not start")
# --- what a test or the oracle reads --------------------------------------------------------------------------------------------------
def answered_at(self, path: str) -> Optional[float]:
"""When the server finished WRITING the answer to a request for ``path`` (the query is not part of it), whatever the transport it rode: seconds since the server started
(the scale of ``t``), or None while no such request has been answered in full. A request that has arrived but whose answer is not all written is not answered: the mark is
stamped after the last byte (HTTP/1.1, HTTP/2) or the last datagram (HTTP/3) is handed to the socket, in the one place that writes it."""
with self._lock:
connections = list(self.connections)
quic = list(self.quic)
marks: List[float] = []
for c in connections:
requests = [(r["target"], r) for r in list(c.get("http1") or [])]
if "h2" in c:
requests += [(dict(r["headers"]).get(":path", ""), r) for r in list(c["h2"].requests)]
marks += [r["written_t"] for target, r in requests if target.split("?")[0] == path and "written_t" in r]
for q in quic:
marks += [r["written_t"] for r in list(q["requests"]) if dict(r["headers"]).get(":path", "").split("?")[0] == path and "written_t" in r]
return min(marks) if marks else None
def snapshot(self) -> Dict[str, Any]:
with self._lock:
connections = list(self.connections)
+294 -23
View File
@@ -1,18 +1,41 @@
"""What X itself says about two toplevels of a private display: which one is above, where they are, and what visibility X sends the lower one.
"""What X itself says about two toplevels of a private display: which one is above, where they are, what visibility X sends the lower one, and whether the
pointer or the focus moved while it was covered.
The occlusion e2e test (``test_window_occlusion_e2e.py``) judges a page's ``document.visibilityState`` after a second session's window has covered the first
one. On Linux the engine turns a window ``OCCLUDED`` only on a ``VisibilityNotify`` with ``FullyObscured`` of its toplevel (``nsWindow::OnVisibilityNotifyEvent``,
The occlusion e2e test (``test_window_occlusion_e2e.py``) judges a page's ``document.visibilityState`` after a window has covered the first session's one. On
Linux the engine turns a window ``OCCLUDED`` only on a ``VisibilityNotify`` with ``FullyObscured`` of its toplevel (``nsWindow::OnVisibilityNotifyEvent``,
connected to the shell's ``visibility-notify-event``, ``widget/gtk/nsWindow.cpp``): whether X sent that event is the ground truth the verdict rests on, and the
test reads it without the engine, through a connection of its own to the same display (libX11, as ``_os_focus.XFocus``, whose connection and window lookup this
reuses):
reuses).
* ``watch``: ``XSelectInput(VisibilityChangeMask)`` on the covered toplevel, before the cover is mapped. Every client that selects the mask gets its own copy of
the event, so the engine's own selection is untouched;
The cover on Linux is a window of the test's own (``cover_window``): an override-redirect ``InputOutput`` window on the private display, larger than the covered
toplevel on every side (``COVER_MARGIN``, inside the screen when it fits), mapped and raised, and never given the input focus (nothing calls ``XSetInputFocus``).
It is not a second Firefox session's window, as it was before. Why the arrangement must not move the pointer: the private Xvfb has no window manager, so the
focus is ``PointerRoot`` and GDK treats the toplevel under the pointer as the focused one. Any window mapped over the pointer makes the pointer leave the covered
toplevel; GDK turns that crossing into a GTK focus-out (``OnContainerFocusOutEvent``, then a ``leave notify``) and GTK draws a window that loses the focus
(``nsWindow::OnExposeEvent``, ``NotifyOcclusionState(VISIBLE)``). When X delivered ``PartiallyObscured`` and ``FullyObscured`` close to that crossing, the draw
ran 0.4 to 15 ms AFTER the ``FullyObscured`` and turned the window ``VISIBLE`` again before the posted visibility update ran, so the page never recorded
``hidden`` (hunt run 45603211231, 58 reds of 1294; shard 1 it-0014: ``VisibilityNotify state 1`` at 54.355670, ``OnContainerFocusOutEvent`` at 54.355752,
``state 2`` at 54.356290, ``OnExposeEvent`` with ``mIsFullyOccluded 0`` at 54.359166). That is Mozilla's behaviour, in retail too. The first reading, that the
focus moved to a second session's window and X sent a ``FocusOut``, was refuted by run 45620136865: 458 reds of 463 with an X cover over the pointer, and no
``FocusOut`` in 40 iterations of the old arrangement; the trigger is the pointer crossing. So the test warps the pointer to the bottom-right pixel of the
root (computed from the root's geometry) before any session starts, the cover keeps the pointer outside it, and ``pointer_or_focus_moved`` judges that no
crossing and no focus event reached the covered toplevel and that the pointer, read back once, is outside both rectangles.
* ``warp_pointer_to_the_corner``: ``XWarpPointer`` through this connection to ``(width - 1, height - 1)`` of the root, then ``XSync``;
* ``watch``: ``XSelectInput(VisibilityChangeMask | FocusChangeMask | EnterWindowMask | LeaveWindowMask)`` on the covered toplevel, before the cover is mapped.
Every client that selects a mask gets its own copy of the events, so the engine's own selection is untouched. The ``EnterNotify``, ``LeaveNotify``,
``FocusIn`` and ``FocusOut`` events are kept with their time, mode and detail;
* ``cover_window``: reads the pointer (``XQueryPointer`` of the root), creates, maps and raises the cover (``cover_rectangle`` gives its rectangle, the pointer
outside it); ``destroy_window`` destroys it;
* ``raise_and_read``: ``XRaiseWindow`` of the covering toplevel, then ONE read-back of the stacking (``XQueryTree`` of the root, bottom to top: no window
manager reparents the toplevels) and of the two geometries (``XGetWindowAttributes``, relative to the root);
* ``drain``: the ``VisibilityNotify`` events that arrived, with the time since ``watch`` (evidence only, never a verdict).
* ``read_pointer_back``: ONE ``XQueryPointer`` right after the cover is up, kept in the record with whether the pointer lies outside both rectangles;
* ``drain``: the visibility, crossing and focus events that arrived, with the time since ``watch`` (evidence, and the precondition);
* ``shrink_by_one``: ``XResizeWindow`` of the covered toplevel, one pixel narrower, the cover left above it and larger: a draw of a window that stays
covered (see ``control_sees_hidden``).
The pure parts (``visibility_of``, ``arrangement``, ``VisibilityRecord``) are tested without a display in ``test_the_x_record_of_the_occlusion_test.py``.
The pure parts (``visibility_of``, ``focus_of``, ``crossing_of``, ``cover_rectangle``, ``arrangement``, ``VisibilityRecord``, ``pointer_or_focus_moved``,
``control_sees_hidden``, ``product_stays_visible``) are tested without a display in ``test_the_x_record_of_the_occlusion_test.py``.
"""
from __future__ import annotations
@@ -25,6 +48,25 @@ from _os_focus import XFocus, _XWindowAttributes
#: ``VisibilityNotify`` (``X.h``) and ``VisibilityChangeMask`` (bit 16 of the event mask).
VISIBILITY_NOTIFY = 15
VISIBILITY_CHANGE_MASK = 1 << 16
#: ``FocusIn`` and ``FocusOut`` (``X.h``) and ``FocusChangeMask`` (bit 21 of the event mask).
FOCUS_IN, FOCUS_OUT = 9, 10
FOCUS_CHANGE_MASK = 1 << 21
#: The ``mode`` and the ``detail`` of a focus event (``X.h``).
FOCUS_MODES = {0: "NotifyNormal", 1: "NotifyGrab", 2: "NotifyUngrab", 3: "NotifyWhileGrabbed"}
FOCUS_DETAILS = {0: "NotifyAncestor", 1: "NotifyVirtual", 2: "NotifyInferior", 3: "NotifyNonlinear", 4: "NotifyNonlinearVirtual", 5: "NotifyPointer",
6: "NotifyPointerRoot", 7: "NotifyDetailNone"}
FOCUS_NAMES = {FOCUS_IN: "FocusIn", FOCUS_OUT: "FocusOut"}
#: ``EnterNotify`` and ``LeaveNotify`` (``X.h``), ``EnterWindowMask`` (bit 4) and ``LeaveWindowMask`` (bit 5); their ``mode`` and ``detail`` read as the focus ones.
ENTER_NOTIFY, LEAVE_NOTIFY = 7, 8
ENTER_WINDOW_MASK, LEAVE_WINDOW_MASK = 1 << 4, 1 << 5
CROSSING_NAMES = {ENTER_NOTIFY: "EnterNotify", LEAVE_NOTIFY: "LeaveNotify"}
#: What ``watch`` selects on the covered toplevel.
WATCH_MASK = VISIBILITY_CHANGE_MASK | FOCUS_CHANGE_MASK | ENTER_WINDOW_MASK | LEAVE_WINDOW_MASK
#: ``CWBackPixel`` and ``CWOverrideRedirect`` of ``XChangeWindowAttributes``, the margin the cover has on every side of the covered toplevel (pixels) and its
#: background pixel.
CW_BACK_PIXEL, CW_OVERRIDE_REDIRECT = 1 << 1, 1 << 9
COVER_MARGIN = 32
COVER_BACKGROUND = 0x303030
#: The ``state`` of a ``VisibilityNotify``.
STATES = {0: "Unobscured", 1: "PartiallyObscured", 2: "FullyObscured"}
FULLY_OBSCURED = "FullyObscured"
@@ -32,14 +74,52 @@ FULLY_OBSCURED = "FullyObscured"
MAP_STATES = {0: "IsUnmapped", 1: "IsUnviewable", 2: "IsViewable"}
def control_sees_hidden(changes: Sequence[str], not_before: int = 1) -> bool:
"""The verdict of the control half (tracking enabled): the page recorded ``hidden`` among its ``visibilitychange`` events at or after index ``not_before``.
``changes`` is the list the page records (``document.visibilityState`` at the start, then one entry per ``visibilitychange``); ``not_before`` is the length
that list had at the last look made BEFORE X's ``FullyObscured`` showed up (1: the start), so a ``hidden`` at an index below it cannot be its effect.
Not the final state: Firefox's ``nsWindow::OnExposeEvent`` calls ``NotifyOcclusionState(VISIBLE)`` on every draw of the window's container, and a
draw that comes after the ``FullyObscured`` turns the window ``VISIBLE`` again while X, whose state has not changed, says nothing more. The page then
reads ``visible`` at the end of a run in which the engine did make it ``hidden``: ``visible, hidden, visible``.
"""
return "hidden" in list(changes)[max(not_before, 0):]
def product_stays_visible(changes: Sequence[str]) -> bool:
"""The verdict of the product half (tracking off): the page never turned ``hidden`` and got no ``visibilitychange`` at all."""
return list(changes) == ["visible"]
class XVisibilityEvent(ctypes.Structure):
_fields_ = [("type", ctypes.c_int), ("serial", ctypes.c_ulong), ("send_event", ctypes.c_int), ("display", ctypes.c_void_p),
("window", ctypes.c_ulong), ("state", ctypes.c_int)]
class XFocusChangeEvent(ctypes.Structure):
_fields_ = [("type", ctypes.c_int), ("serial", ctypes.c_ulong), ("send_event", ctypes.c_int), ("display", ctypes.c_void_p),
("window", ctypes.c_ulong), ("mode", ctypes.c_int), ("detail", ctypes.c_int)]
class XCrossingEvent(ctypes.Structure):
_fields_ = [("type", ctypes.c_int), ("serial", ctypes.c_ulong), ("send_event", ctypes.c_int), ("display", ctypes.c_void_p),
("window", ctypes.c_ulong), ("root", ctypes.c_ulong), ("subwindow", ctypes.c_ulong), ("time", ctypes.c_ulong),
("x", ctypes.c_int), ("y", ctypes.c_int), ("x_root", ctypes.c_int), ("y_root", ctypes.c_int), ("mode", ctypes.c_int),
("detail", ctypes.c_int), ("same_screen", ctypes.c_int), ("focus", ctypes.c_int), ("state", ctypes.c_uint)]
class XSetWindowAttributes(ctypes.Structure):
_fields_ = [("background_pixmap", ctypes.c_ulong), ("background_pixel", ctypes.c_ulong), ("border_pixmap", ctypes.c_ulong), ("border_pixel", ctypes.c_ulong),
("bit_gravity", ctypes.c_int), ("win_gravity", ctypes.c_int), ("backing_store", ctypes.c_int), ("backing_planes", ctypes.c_ulong),
("backing_pixel", ctypes.c_ulong), ("save_under", ctypes.c_int), ("event_mask", ctypes.c_long), ("do_not_propagate_mask", ctypes.c_long),
("override_redirect", ctypes.c_int), ("colormap", ctypes.c_ulong), ("cursor", ctypes.c_ulong)]
class XEvent(ctypes.Union):
"""Xlib's ``XEvent``: the type, the visibility member, and the padding of 24 longs that gives the union its size."""
_fields_ = [("type", ctypes.c_int), ("xvisibility", XVisibilityEvent), ("pad", ctypes.c_long * 24)]
"""Xlib's ``XEvent``: the type, the visibility, focus and crossing members, and the padding of 24 longs that gives the union its size."""
_fields_ = [("type", ctypes.c_int), ("xvisibility", XVisibilityEvent), ("xfocus", XFocusChangeEvent), ("xcrossing", XCrossingEvent),
("pad", ctypes.c_long * 24)]
def visibility_of(event: XEvent) -> Optional[Tuple[int, str]]:
@@ -50,12 +130,69 @@ def visibility_of(event: XEvent) -> Optional[Tuple[int, str]]:
return int(event.xvisibility.window), STATES.get(state, "state %d" % state)
def focus_of(event: XEvent) -> Optional[Tuple[int, str, str, str]]:
"""(window, ``FocusIn`` or ``FocusOut``, mode name, detail name) of a focus event; None for any other event."""
if event.type not in FOCUS_NAMES:
return None
focus = event.xfocus
return (int(focus.window), FOCUS_NAMES[event.type], FOCUS_MODES.get(focus.mode, "mode %d" % focus.mode),
FOCUS_DETAILS.get(focus.detail, "detail %d" % focus.detail))
def crossing_of(event: XEvent) -> Optional[Tuple[int, str, str, str, int, int]]:
"""(window, ``EnterNotify`` or ``LeaveNotify``, mode name, detail name, x_root, y_root) of a crossing event; None for any other event."""
if event.type not in CROSSING_NAMES:
return None
crossing = event.xcrossing
return (int(crossing.window), CROSSING_NAMES[event.type], FOCUS_MODES.get(crossing.mode, "mode %d" % crossing.mode),
FOCUS_DETAILS.get(crossing.detail, "detail %d" % crossing.detail), int(crossing.x_root), int(crossing.y_root))
def corner_of(screen: Dict[str, int]) -> Tuple[int, int]:
"""The point the pointer is warped to: the bottom-right pixel of the root, from its read-back geometry (never a fixed number)."""
return (int(screen["width"]) - 1, int(screen["height"]) - 1)
def point_in(point: Tuple[int, int], rectangle: Tuple[int, int, int, int]) -> bool:
"""Whether ``point`` is a pixel of ``rectangle`` (left, top, right, bottom; the right and bottom edges are outside, as in X)."""
return rectangle[0] <= point[0] < rectangle[2] and rectangle[1] <= point[1] < rectangle[3]
def outer(geometry: Dict[str, int]) -> Tuple[int, int, int, int]:
"""(left, top, right, bottom) of a window with its border, from ``x``, ``y``, ``width``, ``height``, ``border``."""
border = geometry.get("border", 0)
return (geometry["x"], geometry["y"], geometry["x"] + geometry["width"] + 2 * border, geometry["y"] + geometry["height"] + 2 * border)
def cover_rectangle(covered: Dict[str, int], screen: Dict[str, int], margin: int = COVER_MARGIN,
pointer: Optional[Tuple[int, int]] = None) -> Tuple[int, int, int, int]:
"""(x, y, width, height) of the cover: the covered toplevel's rectangle with its border (``outer``) and ``margin`` pixels more on every side, kept inside
the screen (``screen``: ``width`` and ``height`` of the root) where that fits; a side that the screen cuts is the covered window's own side, so the cover
always contains the covered rectangle.
With a ``pointer`` (x, y in root coordinates) the cover also leaves that pixel outside it: on the side where the margin would include the pointer, the
margin shrinks until the pointer is outside (never below the covered rectangle). A pointer inside the covered rectangle itself has no such side: an
AssertionError "arrangement: the pointer is inside the covered window, no free point on the screen"."""
left, top, right, bottom = outer(covered)
inner = (left, top, right, bottom)
if pointer is not None and point_in(pointer, inner):
raise AssertionError("arrangement: the pointer is inside the covered window, no free point on the screen: pointer %r, covered %r" % (tuple(pointer), inner))
left, top = max(left - margin, min(0, left)), max(top - margin, min(0, top))
right, bottom = min(right + margin, max(screen["width"], right)), min(bottom + margin, max(screen["height"], bottom))
if pointer is not None and point_in(pointer, (left, top, right, bottom)):
px, py = pointer
il, it, ir, ib = inner
if px >= ir:
right = px
elif px < il:
left = px + 1
elif py >= ib:
bottom = py
else:
top = py + 1
return (left, top, right - left, bottom - top)
def arrangement(stacking: Sequence[int], covered: int, cover: int, geometries: Dict[int, Optional[Dict[str, int]]]) -> Dict[str, object]:
"""What the read-back says: ``ok`` when the cover is above the covered toplevel among the root's children (``stacking``, bottom to top) and the
covered one's rectangle lies inside the cover's; with the positions and the two rectangles that decided it."""
@@ -71,62 +208,151 @@ def arrangement(stacking: Sequence[int], covered: int, cover: int, geometries: D
class VisibilityRecord:
"""The ``VisibilityNotify`` events of one watched window, each with the seconds since the watch began; events of other windows are not kept."""
"""The ``VisibilityNotify``, crossing (``EnterNotify``, ``LeaveNotify``) and focus (``FocusIn``, ``FocusOut``) events of one watched window, each with the
seconds since the watch began; events of other windows are not kept."""
def __init__(self, window: int) -> None:
self.window = window
self.events: List[Dict[str, object]] = []
self.focus: List[Dict[str, object]] = []
self.crossings: List[Dict[str, object]] = []
#: The pointer read back once after the cover was up (``XVisibility.read_pointer_back``), or None.
self.pointer: Optional[Dict[str, object]] = None
def add(self, window: int, state: str, since: float) -> None:
if window == self.window:
self.events.append({"state": state, "t": round(since, 4)})
def add_focus(self, window: int, kind: str, mode: str, detail: str, since: float) -> None:
if window == self.window:
self.focus.append({"event": kind, "mode": mode, "detail": detail, "t": round(since, 4)})
def add_crossing(self, window: int, kind: str, mode: str, detail: str, since: float, x_root: int = 0, y_root: int = 0) -> None:
if window == self.window:
self.crossings.append({"event": kind, "mode": mode, "detail": detail, "t": round(since, 4), "at": [x_root, y_root]})
def first(self, state: str = FULLY_OBSCURED) -> Optional[Dict[str, object]]:
return next((event for event in self.events if event["state"] == state), None)
def focus_out(self) -> Optional[Dict[str, object]]:
"""The first ``FocusOut`` the watched window got, or None."""
return next((event for event in self.focus if event["event"] == "FocusOut"), None)
def line(self) -> str:
"""One line: the states X sent, in order, with their times."""
"""One line: the states X sent, in order, with their times, then the crossings and the focus events (none: nothing is said of them)."""
if not self.events:
return "X sent window 0x%x no VisibilityNotify" % self.window
return "X sent window 0x%x: %s" % (self.window, ", ".join("%s at +%.3f s" % (event["state"], event["t"]) for event in self.events))
seen = "X sent window 0x%x no VisibilityNotify" % self.window
else:
seen = "X sent window 0x%x: %s" % (self.window, ", ".join("%s at +%.3f s" % (event["state"], event["t"]) for event in self.events))
if self.crossings:
seen += "; pointer: %s" % ", ".join("%s at +%.3f s (%s, %s)" % (event["event"], event["t"], event["mode"], event["detail"]) for event in self.crossings)
if self.focus:
seen += "; focus: %s" % ", ".join("%s at +%.3f s (%s, %s)" % (event["event"], event["t"], event["mode"], event["detail"]) for event in self.focus)
return seen
def as_dict(self) -> Dict[str, object]:
first = self.first()
first, out = self.first(), self.focus_out()
return {"window": "0x%x" % self.window, "events": list(self.events), "fully obscured arrived": first is not None,
"fully obscured at": first["t"] if first else None}
"fully obscured at": first["t"] if first else None, "focus events": list(self.focus), "focus out arrived": out is not None,
"focus out at": out["t"] if out else None, "crossings": list(self.crossings), "pointer read back": self.pointer}
def pointer_or_focus_moved(record: Optional[VisibilityRecord]) -> str:
"""The judgement of the precondition: '' when the covered toplevel got no ``EnterNotify``, ``LeaveNotify``, ``FocusIn`` or ``FocusOut`` since the watch began
and the pointer, read back once after the cover was up, lies outside both rectangles; else the message of the red, which starts with "arrangement: the
covering moved the pointer or the focus" and carries the X record. A pointer crossing is turned by GDK into a GTK focus-out and that makes GTK draw the
window (``nsWindow::OnExposeEvent``, ``NotifyOcclusionState(VISIBLE)``) at a moment the test does not control, so a run that had one proves nothing about
the verdict. A record with no pointer read back is not judged on the pointer (the test asserts that the read-back was made)."""
if record is None:
return ""
reasons = []
if record.crossings:
first = record.crossings[0]
reasons.append("the covered toplevel got %s at +%.3f s after the watch began (%d crossing event(s))" % (first["event"], first["t"], len(record.crossings)))
if record.focus:
first = record.focus[0]
reasons.append("the covered toplevel got %s at +%.3f s after the watch began (%d focus event(s))" % (first["event"], first["t"], len(record.focus)))
pointer = record.pointer
if pointer is not None and not (pointer.get("outside covered") and pointer.get("outside cover")):
reasons.append("the pointer read back at %r is inside the covered rectangle (outside: %s) or the cover's (outside: %s)" % (
pointer.get("at"), pointer.get("outside covered"), pointer.get("outside cover")))
if not reasons:
return ""
return ("arrangement: the covering moved the pointer or the focus: %s, so the page may have been drawn again after X's FullyObscured and the run proves "
"nothing about the engine; %s" % ("; ".join(reasons), record.line()))
class XVisibility(XFocus):
"""A test's own connection to the display: watches the visibility of one toplevel, raises another and reads the two back."""
"""A test's own connection to the display: watches the visibility and the focus events of one toplevel, covers it with a window of its own, raises that
window and reads the two back."""
def __init__(self, display: str) -> None:
super().__init__(display)
x11 = self.x11
x11.XSelectInput.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.c_long)
x11.XCreateSimpleWindow.restype = ctypes.c_ulong
x11.XCreateSimpleWindow.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.c_int, ctypes.c_int, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,
ctypes.c_ulong, ctypes.c_ulong)
x11.XChangeWindowAttributes.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.c_ulong, ctypes.POINTER(XSetWindowAttributes))
x11.XMapWindow.argtypes = (ctypes.c_void_p, ctypes.c_ulong)
x11.XDestroyWindow.argtypes = (ctypes.c_void_p, ctypes.c_ulong)
x11.XRaiseWindow.argtypes = (ctypes.c_void_p, ctypes.c_ulong)
x11.XWarpPointer.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.c_ulong, ctypes.c_int, ctypes.c_int, ctypes.c_uint, ctypes.c_uint, ctypes.c_int,
ctypes.c_int)
x11.XQueryPointer.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.POINTER(ctypes.c_ulong), ctypes.POINTER(ctypes.c_ulong),
ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int),
ctypes.POINTER(ctypes.c_uint))
x11.XResizeWindow.argtypes = (ctypes.c_void_p, ctypes.c_ulong, ctypes.c_uint, ctypes.c_uint)
x11.XPending.argtypes = (ctypes.c_void_p,)
x11.XNextEvent.argtypes = (ctypes.c_void_p, ctypes.POINTER(XEvent))
self.record: Optional[VisibilityRecord] = None
self.started = 0.0
#: Where ``warp_pointer_to_the_corner`` put the pointer, and the root geometry it was computed from.
self.warped: Optional[Dict[str, object]] = None
def query_pointer(self) -> Tuple[int, int]:
"""The pointer's position in root coordinates (``XQueryPointer`` of the root)."""
root, child = ctypes.c_ulong(), ctypes.c_ulong()
root_x, root_y, win_x, win_y, mask = ctypes.c_int(), ctypes.c_int(), ctypes.c_int(), ctypes.c_int(), ctypes.c_uint()
self.x11.XQueryPointer(self.connection, self.root, ctypes.byref(root), ctypes.byref(child), ctypes.byref(root_x), ctypes.byref(root_y),
ctypes.byref(win_x), ctypes.byref(win_y), ctypes.byref(mask))
return (int(root_x.value), int(root_y.value))
def warp_pointer_to_the_corner(self) -> Tuple[int, int]:
"""Before any session starts: ``XWarpPointer`` through this connection to the bottom-right pixel of the root (``corner_of`` its read-back geometry), then
``XSync``. No toplevel exists yet, so none gets a crossing from it; the pointer is read back and kept in ``warped``."""
screen = self.geometry(self.root)
assert screen, "arrangement: the geometry of the root could not be read"
x, y = corner_of(screen)
self.x11.XWarpPointer(self.connection, 0, self.root, 0, 0, 0, 0, x, y)
self.x11.XSync(self.connection, False)
self.warped = {"to": [x, y], "root": [screen["width"], screen["height"]], "read back": list(self.query_pointer())}
return (x, y)
def drain(self) -> Optional[VisibilityRecord]:
"""Reads every event that arrived (none blocks: ``XPending`` first) into the record of the watched window."""
"""Reads every event that arrived (none blocks: ``XPending`` first) into the record of the watched window: visibility, crossing and focus events."""
self.x11.XSync(self.connection, False)
event = XEvent()
while self.x11.XPending(self.connection) > 0:
self.x11.XNextEvent(self.connection, ctypes.byref(event))
seen = visibility_of(event)
if seen and self.record is not None:
self.record.add(seen[0], seen[1], time.monotonic() - self.started)
seen, focus, crossing = visibility_of(event), focus_of(event), crossing_of(event)
if self.record is not None:
if crossing:
self.record.add_crossing(crossing[0], crossing[1], crossing[2], crossing[3], time.monotonic() - self.started, crossing[4], crossing[5])
if seen:
self.record.add(seen[0], seen[1], time.monotonic() - self.started)
if focus:
self.record.add_focus(focus[0], focus[1], focus[2], focus[3], time.monotonic() - self.started)
return self.record
def watch(self, window: int) -> VisibilityRecord:
"""From now on, the ``VisibilityNotify`` events of ``window``; what was queued before (an earlier window's) is read and dropped first."""
"""From now on, the ``VisibilityNotify``, ``EnterNotify``/``LeaveNotify`` and ``FocusIn``/``FocusOut`` events of ``window``; what was queued before (an
earlier window's) is read and dropped first."""
self.record = None
self.drain()
self.record = VisibilityRecord(window)
self.started = time.monotonic()
self.x11.XSelectInput(self.connection, window, VISIBILITY_CHANGE_MASK)
self.x11.XSelectInput(self.connection, window, WATCH_MASK)
self.x11.XSync(self.connection, False)
return self.record
@@ -148,6 +374,42 @@ class XVisibility(XFocus):
return {"x": attributes.x, "y": attributes.y, "width": attributes.width, "height": attributes.height, "border": attributes.border_width,
"map state": MAP_STATES.get(attributes.map_state, attributes.map_state), "override redirect": bool(attributes.override_redirect)}
def cover_window(self, covered: int, margin: int = COVER_MARGIN) -> int:
"""The cover: an override-redirect ``InputOutput`` window of this connection, covering ``covered`` with ``margin`` pixels more on every side (inside the
screen where it fits, the pointer, read with ``XQueryPointer``, outside it: ``cover_rectangle``), mapped and raised, the requests flushed. An
override-redirect window is not managed, and nothing here asks for the input focus (no ``XSetInputFocus``). No event is selected on it. The pointer
inside the covered window is an AssertionError "arrangement: the pointer is inside the covered window, no free point on the screen"."""
inner, screen = self.geometry(covered), self.geometry(self.root)
assert inner and screen, "arrangement: the geometry of the covered toplevel or of the root could not be read: %r, %r" % (inner, screen)
x, y, width, height = cover_rectangle(inner, screen, margin, self.query_pointer())
window = int(self.x11.XCreateSimpleWindow(self.connection, self.root, x, y, width, height, 0, 0, COVER_BACKGROUND))
assert window, "arrangement: XCreateSimpleWindow gave no window"
attributes = XSetWindowAttributes()
attributes.override_redirect = 1
attributes.background_pixel = COVER_BACKGROUND
self.x11.XChangeWindowAttributes(self.connection, window, CW_OVERRIDE_REDIRECT | CW_BACK_PIXEL, ctypes.byref(attributes))
self.x11.XMapWindow(self.connection, window)
self.x11.XRaiseWindow(self.connection, window)
self.x11.XSync(self.connection, False)
return window
def read_pointer_back(self, covered: int, cover: int) -> Dict[str, object]:
"""ONE ``XQueryPointer`` right after the cover is up: where the pointer is and whether it lies outside the covered rectangle and the cover's. Kept in the
record of the watch (``pointer``) and returned."""
at = self.query_pointer()
rectangles = {name: outer(geometry) if geometry else None for name, geometry in (("covered", self.geometry(covered)), ("cover", self.geometry(cover)))}
seen = {"at": list(at), "covered rect": rectangles["covered"], "cover rect": rectangles["cover"],
"outside covered": rectangles["covered"] is not None and not point_in(at, rectangles["covered"]),
"outside cover": rectangles["cover"] is not None and not point_in(at, rectangles["cover"])}
if self.record is not None:
self.record.pointer = seen
return seen
def destroy_window(self, window: int) -> None:
"""``XDestroyWindow`` of a window this connection made (the cover); nothing else."""
self.x11.XDestroyWindow(self.connection, window)
self.x11.XSync(self.connection, False)
def raise_and_read(self, covered: int, cover: int) -> Dict[str, object]:
"""``XRaiseWindow`` of ``cover``, then the one read-back: the stacking, the geometries of the two, and every viewable child of the root."""
self.x11.XRaiseWindow(self.connection, cover)
@@ -162,3 +424,12 @@ class XVisibility(XFocus):
viewable.append({"window": "0x%x" % window, "title": self._title(window), **seen})
return {**verdict, "covered": "0x%x" % covered, "cover": "0x%x" % cover, "covered geometry": geometries[covered],
"cover geometry": geometries[cover], "viewable children of the root, bottom to top": viewable}
def shrink_by_one(self, window: int) -> Dict[str, object]:
"""``XResizeWindow``: ``window`` one pixel narrower, its place and its stacking as they are. The window system draws the new size, a draw of a window
that a larger one still covers. The geometry before and after, read through the same connection."""
before = self.geometry(window)
if before and before["width"] > 1:
self.x11.XResizeWindow(self.connection, window, before["width"] - 1, before["height"])
self.x11.XSync(self.connection, False)
return {"before": before, "after": self.geometry(window)}
+100 -8
View File
@@ -1,4 +1,3 @@
import faulthandler
import http.server
import os
import random
@@ -10,6 +9,8 @@ from pathlib import Path
import pytest
import _stack_watchdog
import _watchdog_log
from _servers import LocalServer
from _browser_census import _a_module_leaves_no_browser_open, _the_connections_a_test_made_are_closed_with_it # noqa: F401 (autouse)
@@ -42,9 +43,7 @@ from _browser_census import _a_module_leaves_no_browser_open, _the_connections_a
# under pytest. A file survives the kill and gets uploaded as an artifact on
# CI.
_WATCHDOG_S = float(os.environ.get("INVPW_TEST_WATCHDOG_S", "150"))
_WATCHDOG_FILE = os.environ.get(
"INVPW_TEST_WATCHDOG_FILE",
str(Path(tempfile.gettempdir()) / "invpw-e2e-watchdog.log"))
_WATCHDOG_FILE = _watchdog_log.default_log_path(os.environ, tempfile.gettempdir())
_watchdog_handle = None
@@ -60,6 +59,7 @@ def _watchdog_open():
if _watchdog_handle is not None or _WATCHDOG_S <= 0:
return _watchdog_handle
try:
os.makedirs(os.path.dirname(_WATCHDOG_FILE) or ".", exist_ok=True)
_watchdog_handle = open(_WATCHDOG_FILE, "a", buffering=1, encoding="utf-8")
except OSError:
# A watchdog that fails the suite over its OWN problem is worse than
@@ -71,6 +71,10 @@ def _watchdog_open():
def pytest_configure(config):
# Windows jobs that keep WER dumps (INVPW_WER_DUMPS, exported by the job): the controller and every xdist worker clear SEM_NOGPFAULTERRORBOX of their error mode,
# which the runner gives them (0x0003) and which keeps a crashing worker from ever reaching Windows Error Reporting (tests/_wer_error_mode.py).
import _wer_error_mode
_wer_error_mode.clear_for_wer_dumps()
# TEMPORARY, with tests/_crash_cores.py (the -11 at the exit of the security state's generate): on Linux every engine of the run, the core's launches
# included, inherits a core limit equal to the hard one, so a crash leaves a core in $INVPW_CORE_DIR (kernel.core_pattern on the e2e jobs).
import _crash_cores
@@ -91,13 +95,13 @@ def pytest_runtest_setup(item):
return
handle = _watchdog_open()
if handle is not None:
handle.write("\n--- %s ---\n" % item.nodeid)
faulthandler.dump_traceback_later(_WATCHDOG_S, repeat=True, file=handle)
# A Python thread that holds the GIL, not faulthandler.dump_traceback_later: that one copies the frames of every thread without the GIL and crashed a worker (tests/_stack_watchdog.py).
_stack_watchdog.arm(item.nodeid, _WATCHDOG_S, file=handle)
def pytest_runtest_teardown(item, nextitem):
if _watchdog_handle is not None:
faulthandler.cancel_dump_traceback_later()
_stack_watchdog.cancel()
@pytest.hookimpl(wrapper=True)
@@ -125,7 +129,7 @@ def pytest_collection_modifyitems(config, items):
def pytest_unconfigure(config):
global _watchdog_handle
if _watchdog_handle is not None:
faulthandler.cancel_dump_traceback_later()
_stack_watchdog.cancel()
_watchdog_handle.close()
_watchdog_handle = None
@@ -177,6 +181,22 @@ def _offline_session_geo(request, monkeypatch):
monkeypatch.setattr(_session, "session_geo", lambda *_a, **_k: geo)
@pytest.fixture(autouse=True)
def _a_test_that_is_not_e2e_never_leaves_the_machine(request, monkeypatch):
"""Outside the e2e, every connection, datagram and name lookup goes to this host or is refused, and the test fails naming each
destination it tried (tests/_no_network.py), even when the code under test swallowed the refusal."""
if request.node.get_closest_marker("e2e") is not None:
yield
return
import _no_network
guard = _no_network.install(monkeypatch, request.node.nodeid)
yield
failure = guard.verdict()
if failure:
pytest.fail(failure, pytrace=False)
@pytest.fixture(autouse=True)
def _what_the_core_declares_for_a_proxy_is_recorded(monkeypatch):
"""The core keeps no UDP verdict in memory, so a test that wants to know what the launch declared reads it where it is
@@ -254,6 +274,78 @@ def _no_test_asks_the_world_where_it_leaves_from():
pytest.fail("the question of the exit went toward the internet: " + "; ".join(asked), pytrace=False)
@pytest.fixture(autouse=True)
def _the_browser_log_holds_no_line_that_fails_the_test(request, monkeypatch):
"""An e2e test fails when a browser it launched wrote a line that fails it (``tests/_browser_log.py``: the engine's expired wait for ``popupshown`` among them), and the failure names the line."""
if request.node.get_closest_marker("e2e") is None:
yield
return
import _browser_log
sink = _browser_log.Sink()
_browser_log.install(monkeypatch, sink)
yield
sink.fail_if_any()
def _park_the_os_cursor():
"""Windows: the OS cursor goes where no window of the browsers below the test process covers (the bottom-right corner while none is open), read back."""
if sys.platform == "win32":
import _os_cursor
_os_cursor.park()
@pytest.fixture(scope="module", autouse=True)
def _the_os_cursor_is_outside_the_browser_window_of_a_module(request):
"""A browser a module-scoped fixture starts opens its window before any test of the module runs: the cursor is parked before that, once per module that has an
e2e test (``tests/_os_cursor.py``; Windows only, the Linux e2e run under xvfb-run whose pointer is virtual)."""
if sys.platform == "win32" and any(getattr(item, "module", None) is request.module and item.get_closest_marker("e2e") is not None
for item in request.session.items):
_park_the_os_cursor()
@pytest.fixture(autouse=True)
def _the_os_cursor_is_outside_the_browser_window(request):
"""A headed window that opens under the real cursor gets a native mouse move for it (the runner's cursor is at 512,384, inside the window), and the first
native move of a process passes Gecko's filter: the page sees a ``mousemove`` with ``buttons=0`` in the middle of the gesture a test records. Every e2e
test on Windows starts with the cursor parked outside the window the engine opens, before its browser starts. A ``headless=True`` browser runs on a desktop of
its own and never receives it; the parking is the same for it and costs one system call. The gestures that record pointer events then call
``_os_cursor.require_outside()`` at their start."""
if request.node.get_closest_marker("e2e") is not None:
_park_the_os_cursor()
@pytest.fixture
def lab_exit(monkeypatch, tmp_path):
"""The exit of the lab and its GeoIP database, declared for one test that is not e2e (``tests/_lab_egress.py``, as the e2e have it).
With no proxy the core asks where this machine leaves from once per composition (``prepare_session_geo``: zone, language and position
come from the exit, even when the zone is given), and a test that is not e2e never leaves the machine (``tests/_no_network.py``). A test
that composes prefs or a session through the core takes this fixture."""
import _lab_egress
return _lab_egress.install(monkeypatch, tmp_path / "lab-geoip")
@pytest.fixture
def declared_engine(monkeypatch, tmp_path):
"""An engine executable declared for one test that is not e2e, instead of the one the core resolves.
Without ``binary_path=`` the launch resolves the engine through ``ensure_binary`` (``_engine.resolve_executable``): with an engine in
the cache of the machine it answers at once, and with none it asks GitHub's release index and downloads the archive. So a unit test that
composes a launch passed on a machine that had run ``fetch`` and went to the internet on a fresh runner, and a test that is not e2e
never leaves the machine (``tests/_no_network.py``). The file is never run: the tests that take this fixture stop at the environment,
the arguments or a fake ``launch``. Returns its path."""
from invisible_playwright import _engine
executable = tmp_path / "declared-engine" / ("firefox.exe" if sys.platform == "win32" else "firefox")
executable.parent.mkdir(parents=True)
executable.write_bytes(b"")
monkeypatch.setattr(_engine, "ensure_binary", lambda *a, **k: executable)
return executable
@pytest.fixture
def local_egress_echo(monkeypatch):
"""The REAL discovery of the exit, for the test that must prove it, against an echo service of its own on loopback: the three services of the
@@ -0,0 +1,48 @@
# Source of the fixtures of run 45060573559
- what: Windows, A/A and A/B (the candidate was installed in another folder)
- repository: oss-invisible/firefox_antidetect_patch
- run: 45060573559
- job: 137346793388 (gate / wrapper.e2e.ab_host-win-x86_64)
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-22T21:08:09Z)
- downloaded: 2026-11-23, `gh run download 45060573559 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68-again.json | ab-host/footprint-68-again.json | 41263526d97abe22270698c22b4d2a2d163ccf61382c272abeb78fd9cb6982b6 | c8ca6c583f5fbcbac9ac0648dac29f58882c152c78ef82b9ed0f0986150f1fab | 89073 |
| footprint-68.json | ab-host/footprint-68.json | 55bf8cb960d099670fc80b9fab1afe6932c77ea967e783274f7d404e293326dd | e231b2b166157af9328374a2ecbd4ee0ca2f3072acdc24cfcd380fa39db880c2 | 105945 |
| footprint-candidate.json | ab-host/footprint-candidate.json | 3dd39734573cab78294c73efb084cf5dbd78cb4f6afa2e6ba015f43f82bcecda | 94a1857d12a6c43b9278393eacc87f11ca68f5043d59bfbd38a22a8b991b5adb | 98675 |
## Reduction
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
## Neutralisation (after the reduction)
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
A/A red: 1 problem, 13 rare system modules only run A has in its measured launches (more than 5). A/B red: 217 differences (the install-folder hash paths among them).
@@ -0,0 +1 @@
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":5},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradminLine truncated
@@ -0,0 +1 @@
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:Line truncated
@@ -0,0 +1 @@
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\s-1-5-21-3414932011-3134797172-3625386099-500-mergedresources-0.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resoLine truncated
@@ -0,0 +1,47 @@
# Source of the fixtures of run 45077330681
- what: Windows, A/A only (the playwright repository; no candidate)
- repository: oss-invisible/playwright
- run: 45077330681
- job: 137377414516 (e2e (host, windows))
- artifact: invpw-evidence-host-windows-45077330681-1 (created 2026-11-22T22:36:31Z)
- downloaded: 2026-11-23, `gh run download 45077330681 --repo oss-invisible/playwright -n invpw-evidence-host-windows-45077330681-1 -D <folder>/data`
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68-again.json | invpw-evidence/ab-host/footprint-68-again.json | 557b4bb17842770dd63d90c005e5926d57072695dae509f134394ad33e54e418 | 8c9e863246b6aaee7066ea37faa57ce4cb3427e478ea070eb178fb75d82cfb8d | 56069 |
| footprint-68.json | invpw-evidence/ab-host/footprint-68.json | 39be3fff6cdb2721a3209ee27b055b03474697cb729f241f41b5e0d6c80cc296 | a55d9d5dcf3504d0e8c42f2db429cc833b21ad03a26b3fb806bc697bc57cd446 | 85052 |
## Reduction
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
## Neutralisation (after the reduction)
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
A/A red: 80 differences, all of seed 0 (the shortcut inventory of the first launch of run A, left out only when the other side has none).
@@ -0,0 +1 @@
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\system32\\en-us\\kernelbase.dll.mui","c:\\windows\\system32\\en-us\\propsys.dll.mui","c:\\windows\\system32\\fltlib.dll","c:\\windows\\system32\\iertutil.dll","c:\\windows\\system32\\linkinfo.dll","c:\\windows\\system32\\mpr.dll","c:\\windows\\system32\\netutils.dll","c:\\windows\\system32\\onecoreuapcommonproxystub.dll","c:\\windows\\system32\\srvcli.dll","c:\\windows\\system32\\sspicli.dll","c:\\windows\\system32\\urlmon.dll","c:\\windows\\system32\\virtdisk.dll","c:\\windows\\system32\\windows.applicationmodel.dll","c:\\windows\\system32\\wpnapps.dll","c:\\windows\\syswow64\\propsys.dll"],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":8,"utility/sandboxingKind=0":1},"net":null,"pingsenders":[]},"s0":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\rLine truncated
@@ -0,0 +1 @@
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":5},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\system32\\en-us\\kernelbase.dll.mui","c:\\windows\\system32\\en-us\\propsys.dll.mui","c:\\windows\\system32\\fltlib.dll","c:\\windows\\system32\\iertutil.dll","c:\\windows\\system32\\linkinfo.dll","c:\\windows\\system32\\mpr.dll","c:\\windows\\system32\\netutils.dll","c:\\windows\\system32\\onecoreuapcommonproxystub.dll","c:\\windows\\system32\\srvcli.dll","c:\\windows\\system32\\sspicli.dll","c:\\windows\\system32\\urlmon.dll","c:\\windows\\system32\\virtdisk.dll","c:\\windows\\system32\\windows.applicationmodel.dll","c:\\windows\\system32\\wpnapps.dll","c:\\windows\\syswow64\\propsys.dll"],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":8,"utility/sandboxingKind=0":1},"net":null,"pingsenders":[]},"s0":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft","c:\\programdata\\microsoft\\desktop.ini","c:\\programdata\\microsoft\\windows","c:\\programdata\\microsoft\\windows\\start menu","c:\\programdata\\microsoft\\windows\\start menu\\desktop.ini","c:\\programdata\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\programdata\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-eLine truncated
@@ -0,0 +1,48 @@
# Source of the fixtures of run 45077433049
- what: Windows, A/A and A/B
- repository: oss-invisible/firefox_antidetect_patch
- run: 45077433049
- job: 137400368937 (gate / wrapper.e2e.ab_host-win-x86_64)
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-23T00:05:22Z)
- downloaded: 2026-11-23, `gh run download 45077433049 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68-again.json | ab-host/footprint-68-again.json | 3daf6c754f32680022498d0f56b720afd939dc41d0d3bb29a03e28ee80741179 | 357b93f0cda5c59800627fef2c9e6a68099f5e6395bc45ef5c6cbb40a4c9779e | 100111 |
| footprint-68.json | ab-host/footprint-68.json | b374a6b6cb5088e7491df2a2019c0d584445e0c1b0b9d34e81e45a5e697ba787 | 74f7e8403e6bfc36aca564b51d9fb428345b81d16a25bbabb90fa8f98facfed7 | 141298 |
| footprint-candidate.json | ab-host/footprint-candidate.json | c91eddfce80bcb7da5e173196929184a3504cd8c5e72cf5c29814c3f870e3300 | b0a55df560c5f069bfedd49d1cb21beae739cd858c992b72f4daf52988f17f64 | 112082 |
## Reduction
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
## Neutralisation (after the reduction)
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
A/A red: 1 problem, 34 rare system modules only run B has (more than 5). A/B red: 9.
@@ -0,0 +1 @@
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpaneLine truncated
@@ -0,0 +1 @@
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"directxdatabaseupdater.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":4},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","Line truncated
@@ -0,0 +1 @@
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\s-1-5-21-3414932011-3134797172-3625386099-500-mergedresources-0.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resources.en-us.pri","c:\\windows\\immersivecontrolpanel\\resources.pri","c:\\windows\\rescaLine truncated
@@ -0,0 +1,48 @@
# Source of the fixtures of run 45088980743-linux
- what: Linux, A/A and A/B
- repository: oss-invisible/firefox_antidetect_patch
- run: 45088980743
- job: 137413984947 (gate / wrapper.e2e.ab_host-linux-x86_64)
- artifact: wrapper.e2e.ab_host-linux
- downloaded: 2026-11-23, `gh run download 45088980743 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-linux -D <folder>/data`
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68-again.json | ab-host/footprint-68-again.json | 308ba1039c747e7362245663d392279499f1f177a93f1f69bc035cb08e89974d | 5c3257eb88e922767d38c13d309b11bd6e266ab230b7fca29abe78291026f805 | 41048 |
| footprint-68.json | ab-host/footprint-68.json | 6dd3bd68a24d2d077a3f860e3d13de633ecab1f35f58d029badf233b555b095b | 5bb457fe41a0b07da03423e54b9eb4c716eb2c8bcf6b568d638a813252e2118a | 42717 |
| footprint-candidate.json | ab-host/footprint-candidate.json | 7390dc8656f8c944835d58eceb1eed89a41e6e0a65779392e83214c6e4f6fd2d | 6cca5b4cc41dad5ff376a07c4a1c08ea6bfb3a7b77dd87a340ccde743c63ce2a | 42860 |
## Reduction
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
## Neutralisation (after the reduction)
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
A/A green. A/B green, with 15 declared differences (gfxtest-69).
@@ -0,0 +1 @@
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.37:443","parent: connect tcp AF_INET 203.0.113.29:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.46:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.58:443","parent: connect tcp AF_INET 203.0.113.2:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.14:443","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.56:0","parent: connect udp AF_INET 203.0.113.57:0","parent: connect udp AF_INET 203.0.113.58:0","parent: connect udp AF_INET 203.0.113.59:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.37:443","parent: send udp AF_INET 203.0.113.29:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.25:443","parent: connect tcp AF_INET 203.0.113.31:443","parent: connect tcp AF_INET 203.0.113.30:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.40:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.41:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.44:443","parent: connect tcp AF_INET 203.0.113.3:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.16:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.47:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INETLine truncated
@@ -0,0 +1 @@
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.23:443","parent: connect tcp AF_INET 203.0.113.31:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.45:80","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.49:443","parent: connect tcp AF_INET 203.0.113.50:443","parent: connect tcp AF_INET 203.0.113.2:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect udp AF_INET 203.0.113.26:0","parent: connect udp AF_INET 203.0.113.27:0","parent: connect udp AF_INET 203.0.113.23:0","parent: connect udp AF_INET 203.0.113.24:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.50:0","parent: connect udp AF_INET 203.0.113.51:0","parent: connect udp AF_INET 203.0.113.52:0","parent: connect udp AF_INET 203.0.113.53:0","parent: connect udp AF_INET 203.0.113.54:0","parent: connect udp AF_INET 203.0.113.55:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.23:443","parent: send udp AF_INET 203.0.113.31:443","parent: send udp AF_INET 203.0.113.50:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.41:80","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.43:443","parent: connect tcp AF_INET 203.0.113.54:443","parent: connect tcp AF_INET 203.0.113.57:443","parent: connect tcp AF_INET 203.0.113.1:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.9:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.15:443","parent: connect tcp AF_INET 203.0.113.17:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.47:0","parent: connect udp AF_INET 203.0.113.50:0","parent: connect udp AF_INET 203.0.113.51:0","parent: connect udp AF_INET 203.0.113.52:0","parent: connect udp AF_INET 20Line truncated
@@ -0,0 +1 @@
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.36:443","parent: connect tcp AF_INET 203.0.113.28:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.46:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.58:443","parent: connect tcp AF_INET 203.0.113.4:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.16:443","parent: connect tcp AF_INET 203.0.113.21:443","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.56:0","parent: connect udp AF_INET 203.0.113.57:0","parent: connect udp AF_INET 203.0.113.58:0","parent: connect udp AF_INET 203.0.113.59:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: connect udp AF_INET 203.0.113.20:0","parent: connect udp AF_INET 203.0.113.21:0","parent: connect udp AF_INET 203.0.113.18:0","parent: connect udp AF_INET 203.0.113.19:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.36:443","parent: send udp AF_INET 203.0.113.28:443","parent: send udp AF_INET 203.0.113.21:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.36:443","parent: connect tcp AF_INET 203.0.113.28:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.40:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.45:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.44:443","parent: connect tcp AF_INET 203.0.113.56:443","parent: connect tcp AF_INET 203.0.113.5:443","parent: connect tcp AF_INET 203.0.113.1:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.17:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: coLine truncated
@@ -0,0 +1,48 @@
# Source of the fixtures of run 45088980743
- what: Windows, A/A and A/B
- repository: oss-invisible/firefox_antidetect_patch
- run: 45088980743
- job: 137413984894 (gate / wrapper.e2e.ab_host-win-x86_64)
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-23T00:59:44Z)
- downloaded: 2026-11-23, `gh run download 45088980743 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68-again.json | ab-host/footprint-68-again.json | e0486279e53870b3b8ce60a0328876e6dc7707d2908a66168cf06423e7f1820d | e3b32093fbc5e6fd53e68c6ac4f5a4681abf21f69722c0beff1bd0327015e0b3 | 135918 |
| footprint-68.json | ab-host/footprint-68.json | 605fab66febfcc4cb3338f079843609614c06b35330bd229d2cd9be25eb76966 | 899c9ba171b6a45ab7de62a82a1ac695f8c43885e81f3b380cc92a8866c56ef4 | 151589 |
| footprint-candidate.json | ab-host/footprint-candidate.json | 674fc7554993cc307a8ffca74c51c26723819e56e65a2718d0ab6f4b7b39f11e | 273bb5df9246ed89bc3f4a38a09ba151cffd1ee5cadadafe6385a59d4581d7f0 | 123989 |
## Reduction
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
## Neutralisation (after the reduction)
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
A/A red: 3 problems: 18 rare system modules only run A has (more than 5), and 2 paths of seed 4 only run A has (the Defender platform mpoav.dll, c:\windows emp). A/B red: 36.
@@ -0,0 +1 @@
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpaneLine truncated
@@ -0,0 +1 @@
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:Line truncated
@@ -0,0 +1 @@
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resourLine truncated
@@ -0,0 +1,40 @@
# Source of the fixtures of run 45228081536
- what: Windows, A/A of the 68 (the published engine twice), the run whose A/A was red on the pingsenders
- repository: oss-invisible/playwright
- run: 45228081536
- job: 137879971705 (`e2e (host, windows)`)
- origin: the artifact of the job, `art/invpw-evidence/ab-host/` (kept outside the repository, with the rest of the artifact of the job)
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| footprint-68.json | ab-host/footprint-68.json | 0f45112a954a29913136ea39fe941f5948c4e05ae73bc2c67982ab0e7b249512 | 1e3dd3ef409ebd80e98cdb55bddcb42e1d060e3e7f5c3dd6999edd3907c42b21 | 90783 |
| footprint-68-again.json | ab-host/footprint-68-again.json | 487933bc13edb6f1194833a05598e8bf89549fa71211abf628cb9cb2d6e1ff91 | e2d92338c4282f4acd8e8fcca699d0da23809404466365360472a96165fa66a8 | 71783 |
## What the run said
The verdict of the A/A (`diff-a-a.json`) was red on two lines:
- seed 4, side B: `2 pingsender processes, not 0 or 3`;
- seed 63: `proc.socket<-pingsender: A 3 | B <missing>`.
The pingsenders of the 68 (`backgroundtask/pingsender`) per launch, warm-up and seeds 0, 2, 4, 6, 63: first run 3, 3, 3, 3, 3, 3; second run 1, 3, 0, 2, 0, 3. The sockets they start
(`socket<-pingsender`): first run warm-up, seed 6 and seed 63; second run none.
## Reduction
The reduction is the one of tests/data/ab_host_aa/45088980743/SOURCES.md (`kinds`, `pingsenders`, `net`, `inventory` of every launch as they are, and the host paths as a table `paths` with a
mask per launch and the union of the processes that touched each), with one field more per launch, `spawned_by` (the kinds that spawned each kind: the process to blame for a kind the rule
lists). The launches are the warm-up, `s0`, `s2`, `s4`, `s6`, `s63` and `idle`. Nothing else of the footprint is kept (the processes, the lifecycle, the close, the trace, the creates, the
paths of ours); the test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
## Neutralisation
The same as in the other fixtures: every public IPv4 address becomes an address of the documentation ranges one to one (the footprints of this run hold none: the net of a Windows run is not
covered) and the folder `users` of the C drive becomes `profiles` in every path (the folder itself included), the same string for every path (the number of distinct paths, every mask and every set of touching
processes are unchanged).
## The old judgement on these data (scripts/ci_ab_host.py at e3572f28)
A/A red: the two problems above. After the change (the kinds of process judged by the rule of the paths, the pingsender kinds only listed) the A/A is green and the pingsender kinds are in
`not_judged["kinds"]`: `backgroundtask/pingsender` in 6 of 6 measured launches of the first run and 4 of 6 of the second, `socket<-pingsender` in 3 of 6 and 0 of 6.
@@ -0,0 +1 @@
{"engine": "firefox-68 again", "launch": {"idle": {"inventory": ["c:", "c:\\program files", "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe", "c:\\program files\\desktop.ini", "c:\\program files\\desktop.ini:zone.identifier", "c:\\program files\\google\\chrome\\application\\chrome.exe", "c:\\programdata\\microsoft\\windows\\start menu\\programs", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies", "c:\\profiles\\runneradmin\\appdata\\roaming", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup", "c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles", "c:\\profiles\\runneradmin\\desktop", "c:\\profiles\\runneradmin\\documents", "c:\\profiles\\runneradmin\\documents\\restore firefox", "c:\\windows", "c:\\windows\\system32\\en-us\\kernelbase.dll.mui", "c:\\windows\\system32\\en-us\\propsys.dll.mui", "c:\\windows\\system32\\fltlib.dll", "c:\\windows\\system32\\iertutil.dll", "c:\\windows\\system32\\linkinfo.dll", "c:\\windows\\system32\\mpr.dll", "c:\\windows\\system32\\netutils.dll", "c:\\windows\\system32\\onecoreuapcommonproxystub.dll", "c:\\windows\\system32\\srvcli.dll", "c:\\windows\\system32\\sspicli.dll", "c:\\windows\\system32\\urlmon.dll", "c:\\windows\\system32\\virtdisk.dll", "c:\\windows\\system32\\windows.applicationmodel.dll", "c:\\windows\\system32\\wpnapps.dll", "c:\\windows\\syswow64\\propsys.dll"], "kinds": {"crashreporter.exe": 1, "parent": 2, "rdd": 1, "socket": 1, "tab/isForBrowser": 8, "utility/sandboxingKind=0": 1}, "net": null, "pingsenders": [], "spawned_by": {"crashreporter.exe": ["parent"], "parent": ["(oracle)", "parent"], "rdd": ["parent"], "socket": ["parent"], "tab/isForBrowser": ["parent"], "utility/sandboxingKind=0": ["parent"]}}, "s0": {"inventory": ["c:", "c:\\program files", "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe", "c:\\program files\\desktop.ini", "c:\\program files\\desktop.ini:zone.identifier", "c:\\program files\\google\\chrome\\application\\chrome.exe", "c:\\programdata\\microsoft\\windows\\start menu\\programs", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updaLine truncated
@@ -0,0 +1 @@
{"engine": "firefox-68", "launch": {"idle": {"inventory": ["c:", "c:\\program files", "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe", "c:\\program files\\desktop.ini", "c:\\program files\\desktop.ini:zone.identifier", "c:\\program files\\google\\chrome\\application\\chrome.exe", "c:\\programdata\\microsoft\\windows\\start menu\\programs", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache", "c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies", "c:\\profiles\\runneradmin\\appdata\\roaming", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk", "c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup", "c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles", "c:\\profiles\\runneradmin\\desktop", "c:\\profiles\\runneradmin\\documents", "c:\\profiles\\runneradmin\\documents\\restore firefox", "c:\\windows", "c:\\windows\\system32\\en-us\\kernelbase.dll.mui", "c:\\windows\\system32\\en-us\\propsys.dll.mui", "c:\\windows\\system32\\fltlib.dll", "c:\\windows\\system32\\iertutil.dll", "c:\\windows\\system32\\linkinfo.dll", "c:\\windows\\system32\\mpr.dll", "c:\\windows\\system32\\netutils.dll", "c:\\windows\\system32\\onecoreuapcommonproxystub.dll", "c:\\windows\\system32\\srvcli.dll", "c:\\windows\\system32\\sspicli.dll", "c:\\windows\\system32\\urlmon.dll", "c:\\windows\\system32\\virtdisk.dll", "c:\\windows\\system32\\windows.applicationmodel.dll", "c:\\windows\\system32\\wpnapps.dll", "c:\\windows\\syswow64\\propsys.dll"], "kinds": {"crashreporter.exe": 1, "parent": 2, "rdd": 1, "socket": 1, "tab/isForBrowser": 8, "utility/sandboxingKind=0": 1}, "net": null, "pingsenders": [], "spawned_by": {"crashreporter.exe": ["parent"], "parent": ["(oracle)", "parent"], "rdd": ["parent"], "socket": ["parent"], "tab/isForBrowser": ["parent"], "utility/sandboxingKind=0": ["parent"]}}, "s0": {"inventory": ["c:", "c:\\program files", "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe", "c:\\program files\\desktop.ini", "c:\\program files\\desktop.ini:zone.identifier", "c:\\program files\\google\\chrome\\application\\chrome.exe", "c:\\programdata\\microsoft\\windows\\start menu\\programs", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test", "c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bLine truncated
@@ -0,0 +1 @@
{"engine":"stock","format":"ab-host/2","leg":"win-x86_64","platform":"win32","stock":{"files":["c:","c:\\hostedtoolcache\\windows\\python\\3.11.9\\x64\\lib\\site-packages\\playwright\\driver\\node.exe","c:\\programdata","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\firefox_s-1-5-21-688113535-2331092577-2868679288-500_shortcuts.ini","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updatelock-839208555785affb","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\update-config.json","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\updates\\0\\update.status","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\updates\\0\\update.version","c:\\programdata\\mozilla\\updates\\839208555785affb","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local","c:\\profiles\\runneradmin\\appdata\\local\\microsoft","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\fonts","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\fonts\\*","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox\\skeletonuilock-85678f94","c:\\profiles\\runneradmin\\appdata\\local\\ms-playwright","c:\\profiles\\runneradmin\\appdata\\local\\ms-playwright\\firefox-1532","c:\\profiles\\runneradmin\\appdata\\local\\temp","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\extensions","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\extensions\\*","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\blocklist-299653268049846c","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\pending pings","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles.ini","c:\\profiles\\runneradmin\\contacts","c:\\profiles\\runneradmin\\contacts\\desktop.ini","c:\\profiles\\runneradmin\\contacts\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\desktop\\desktop.ini","c:\\profiles\\runneradmin\\desktop\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\desktop.ini","c:\\profiles\\runneradmin\\documents\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\downloads","c:\\profiles\\runneradmin\\downloads\\desktop.ini","c:\\profiles\\runneradmin\\downloads\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\favorites","c:\\profiles\\runneradmin\\favorites\\desktop.ini","c:\\profiles\\runneradmin\\favorites\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\links","c:\\profiles\\runneradmin\\links\\desktop.ini","c:\\profiles\\runneradmin\\links\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\music","c:\\profiles\\runneradmin\\music\\desktop.ini","c:\\profiles\\runneradmin\\music\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\pictures","c:\\profiles\\runneradmin\\pictures\\desktop.ini","c:\\profiles\\runneradmin\\pictures\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\saved games","c:\\profiles\\runneradmin\\saved games\\desktop.ini","c:\\profiles\\runneradmin\\saved games\\desktop.ini:zone.identifier","c:\\profiles\\runneLine truncated
@@ -0,0 +1 @@
{"engine":"candidate","format":"ab-host/2","idle":{"files":["c:","c:\\hostedtoolcache\\windows\\python\\3.11.9\\x64\\lib\\site-packages\\invisible_core\\branding\\official\\branding.zip","c:\\hostedtoolcache\\windows\\python\\3.11.9\\x64\\python.exe","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\profile_count_bb481e43cafac064.json","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\uninstall_ping_bb481e43cafac064_<uuid>.json","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\uninstall_ping_bb481e43cafac064_<uuid>.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updatelock-bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.status","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.version","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\programdata\\mozilla\\updates\\bb481e43cafac064","c:\\profiles","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local","c:\\profiles\\runneradmin\\appdata\\local\\invisible-playwright\\invisible-playwright\\cache\\fonts\\bundle-fonts-13d4d24f2314a509.list","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox\\skeletonuilock-129ffc4d","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\automaticdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\automaticdestinations\\430212d450fb1721.automaticdestinations-ms","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\automaticdestinations\\6deb8f62833ed2d2.automaticdestinations-ms","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations\\430212d450fb1721.customdestinations-ms","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations\\430212d450fb1721.customdestinations-ms~rLine truncated
@@ -0,0 +1 @@
{"engine":"stock","format":"ab-host/2","leg":"win-x86_64","platform":"win32","stock":{"files":["c:","c:\\hostedtoolcache\\windows\\python\\3.11.9\\x64\\lib\\site-packages\\playwright\\driver\\node.exe","c:\\program files","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\programdata","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\firefox_s-1-5-21-688113535-2331092577-2868679288-500_shortcuts.ini","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updatelock-839208555785affb","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\update-config.json","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\updates\\0\\update.status","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\839208555785affb\\updates\\0\\update.version","c:\\programdata\\mozilla\\updates\\839208555785affb","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local","c:\\profiles\\runneradmin\\appdata\\local\\microsoft","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\fonts","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\fonts\\*","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox","c:\\profiles\\runneradmin\\appdata\\local\\mozilla\\firefox\\skeletonuilock-85678f94","c:\\profiles\\runneradmin\\appdata\\local\\ms-playwright","c:\\profiles\\runneradmin\\appdata\\local\\ms-playwright\\firefox-1532","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\extensions","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\extensions\\*","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\blocklist-299653268049846c","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\pending pings","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles.ini","c:\\profiles\\runneradmin\\contacts","c:\\profiles\\runneradmin\\contacts\\desktop.ini","c:\\profiles\\runneradmin\\contacts\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\desktop\\desktop.ini","c:\\profiles\\runneradmin\\desktop\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\desktop.ini","c:\\profiles\\runneradmin\\documents\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\downloads","c:\\profiles\\runneradmin\\downloads\\desktop.ini","c:\\profiles\\runneradmin\\downloads\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\favorites","c:\\profiles\\runneradmin\\favorites\\desktop.ini","c:\\profiles\\runneLine truncated
+41
View File
@@ -0,0 +1,41 @@
# Source of the fixtures of tests/data/ab_host_geo
What the geolocation rules of `scripts/ci_ab_host.py` read, on real Windows footprints: the stock control (`stock_control_problems`: it must load
`capabilityaccessmanagerclient.dll`, the first read of the host for the position; the utility process `-sandboxingKind 3` is not asked of it) and the rule on
our engine (`geolocation_problems`: no such module and no such process in any launch).
## Runs
| run | repository | workflow | job | what |
|---|---|---|---|---|
| 45257636942 | oss-invisible/firefox_antidetect_patch | republish (created 2026-11-23T20:16:19Z) | 137993937441 (gate / wrapper.e2e.ab_host-win-x86_64) | windows-2022: stock WITH the module and WITHOUT the utility process; candidate (the 69) with neither |
| 45165805370 | oss-invisible/playwright | e2e (created 2026-11-23T11:30:21Z) | 137662424125 (e2e (host, windows)) | windows-2022, pull request: stock WITH the module AND the utility process |
Origin: the artifact of the job, `ab-host/` (kept outside the repository, with the rest of the artifact: `art/ab-host/` for 45257636942, `art/invpw-evidence/ab-host/` for 45165805370).
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|---|---|---|---|---|
| 45257636942/footprint-stock.json | ab-host/footprint-stock.json | 82a75bf50e2d7a9f96ba00ea57980e0eb2f06bc6925ecba0bb8d8c47ef3069c9 | a1ffeaeb4746c3d0f8a1c2a16bd137f533f15b4a688bc08719f764bfa035255f | 11426 |
| 45257636942/footprint-candidate.json | ab-host/footprint-candidate.json | 086f9b075617d849798a9743d9e442d65cdb2cfb93a59ba4ef9532b67a3bd334 | 7daaba9a1282e032bcedeb3fbdb1aad76cf60ff431423545800dc071540c3e96 | 110594 |
| 45165805370/footprint-stock.json | ab-host/footprint-stock.json | 1ea907d416d4fb3fe661d9b0339a21d473fe4b3474c6534fe0210f0d873cddcb | d6de929f7c7816b259d2360653a46c116d21ce93860e0c0c5e0e80e33544f803 | 10721 |
## Reduction
The stock footprint keeps `format`, `engine`, `platform`, `leg` and, of `stock`: `seed`, `steps`, `kinds`, `files`, `problems`, `started` and `touched_by` reduced to the
entry of `capabilityaccessmanagerclient.dll` (the rule reads `kinds`, `files`, `steps`, `problems` and `started`). The candidate footprint keeps `format`, `engine`, `platform`,
`problems` and, per launch (`warmup`, `idle`, each seed): `seed`, `kinds` and `files` as they are. Everything else (processes, lifecycle, net, trace, creates, paths of ours) is
left out. JSON, sorted keys, compact.
## Neutralisation
The same as in tests/data/ab_host_aa/45088980743/SOURCES.md: the folder `users` of the C drive becomes `profiles` in every path and key, the same string everywhere, so two paths are
equal after it if and only if they were before. The reduction drops `net`, so no address of the hosts the engine reached is left (checked: no IPv4 literal in the fixtures).
## What was measured (every footprint with a stock control, and the engine in every launch)
| run | stock: `capabilityaccessmanagerclient.dll` | stock: utility `-sandboxingKind 3` |
|---|---|---|
| 45165805370, 45170547415, 45252267809 (pull requests, windows-2022) | yes | yes |
| 45206303882 (gate, windows-2025), 45257636942 (gate republish, windows-2022) | yes | no |
The 68 (twice) and the 69 candidate, in EVERY launch (warm-up, idle, seeds) of 45121964904, 45206303882, 45257629988 and 45257636942: neither the module nor the process.
@@ -0,0 +1,23 @@
# Source of the fixture of run 45221868374
- what: Windows host oracle, the idle launch of side A (`firefox-68`), the launch in which the tree "did not exit within 120 s of the close"
- repository: oss-invisible/playwright
- run: 45221868374
- job: 137858126009 (`e2e (host, windows)`)
- origin file: `art/invpw-evidence/ab-host/footprint-68.json`, key `idle`, key `lifecycle` (kept outside the repository with the rest of the artifact of the job)
- sha256 of the origin file: 53e383c8e808bbdcf1802007a36129c021c34cba324c12d966685cc157783aab (519890 bytes)
| fixture | sha256 of the fixture | bytes |
|---|---|---|
| idle-lifecycle.json | c4a661f8d421397e4e483bd0bae3a50ca06f71a1a6b0e15b871b07eb9a925375 | 6372 |
## Reduction
`{"launch": "idle", "lifecycle": [{"time", "event", "kind", "how"}]}`: the 53 rows of `idle.lifecycle` as they are (the start of each process of the tree, from its 4688 event, and
its end, from the Kernel-Process stop, in the order of the time each carries). Nothing is added, nothing is dropped. The rows hold no address, no account name, no path.
## What the footprint does not hold
The footprint has no pid, no creator pid, no record id and no `ParentProcessName`: the raw 4688 events of the job are not in its artifact (`wevtutil` output is read in memory and
not kept). The test (`test_the_idle_launch_of_run_45221868374_...` in tests/test_ab_host.py) therefore rebuilds the events from these rows, with the kinds and the order that
the run had and pids and creators that the test gives; what it gives is written in the test.
@@ -0,0 +1,323 @@
{
"launch": "idle",
"lifecycle": [
{
"event": "start",
"how": "",
"kind": "parent",
"time": "2026-11-23T16:58:12.9368975Z"
},
{
"event": "start",
"how": "",
"kind": "parent",
"time": "2026-11-23T16:58:12.9447038Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:13.3147954Z"
},
{
"event": "start",
"how": "",
"kind": "svchost.exe",
"time": "2026-11-23T16:58:13.7620819Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:13.7716028Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:13.8028781Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "svchost.exe",
"time": "2026-11-23T16:58:13.970863500+00:00"
},
{
"event": "start",
"how": "",
"kind": "tab/isForBrowser",
"time": "2026-11-23T16:58:14.7079107Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:14.9940602Z"
},
{
"event": "start",
"how": "",
"kind": "utility/sandboxingKind=0",
"time": "2026-11-23T16:58:15.7778669Z"
},
{
"event": "start",
"how": "",
"kind": "tab/isForBrowser",
"time": "2026-11-23T16:58:15.9476388Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:16.2699895Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:16.2940466Z"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T16:58:18.7136711Z"
},
{
"event": "start",
"how": "",
"kind": "wsl.exe",
"time": "2026-11-23T16:59:10.2029323Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wsl.exe",
"time": "2026-11-23T16:59:12.221138500+00:00"
},
{
"event": "start",
"how": "",
"kind": "svchost.exe",
"time": "2026-11-23T16:59:19.3828758Z"
},
{
"event": "start",
"how": "",
"kind": "socket",
"time": "2026-11-23T16:59:20.0061534Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "socket",
"time": "2026-11-23T16:59:20.870868700+00:00"
},
{
"event": "start",
"how": "",
"kind": "wsl.exe",
"time": "2026-11-23T16:59:50.5782295Z"
},
{
"event": "end",
"how": "exited 4294967295",
"kind": "wsl.exe",
"time": "2026-11-23T16:59:50.599354300+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "tab/isForBrowser",
"time": "2026-11-23T17:00:16.785320700+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:16.788835200+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:16.833776900+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "tab/isForBrowser",
"time": "2026-11-23T17:00:16.872780900+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:16.875828000+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:16.876346800+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:16.877080100+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "utility/sandboxingKind=0",
"time": "2026-11-23T17:00:17.005358500+00:00"
},
{
"event": "start",
"how": "",
"kind": "backgroundtask/pingsender",
"time": "2026-11-23T17:00:17.0061094Z"
},
{
"event": "end",
"how": "exited 1",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:17.019510200+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:17.020111700+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "parent",
"time": "2026-11-23T17:00:17.028312700+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "parent",
"time": "2026-11-23T17:00:17.061100700+00:00"
},
{
"event": "start",
"how": "",
"kind": "socket",
"time": "2026-11-23T17:00:17.2400802Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "socket",
"time": "2026-11-23T17:00:17.750897400+00:00"
},
{
"event": "end",
"how": "exited 0",
"kind": "backgroundtask/pingsender",
"time": "2026-11-23T17:00:17.760487100+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:31.4290003Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:31.524775100+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:36.4762838Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:00:36.572912700+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:07.2987869Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:07.398939500+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:11.3921796Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:11.490644500+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:30.9227343Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:31.023271300+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:41.2382275Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:01:41.340881700+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:02:03.6231004Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:02:03.728117900+00:00"
},
{
"event": "start",
"how": "",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:02:07.5330074Z"
},
{
"event": "end",
"how": "exited 0",
"kind": "wevtutil.exe",
"time": "2026-11-23T17:02:07.637980000+00:00"
}
]
}
Loaded 100 of 225 files, more files were not shown because too many files have changed in this diff. Show more