Merge remote-tracking branch 'origin/main' into e2e/oop-frame-71
# Conflicts: # ci/required-suites.json
This commit is contained in:
commit
229cfb7da2
26 files changed
+1037
-10065
No files matched your search
@@ -24,3 +24,7 @@ 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
|
||||
@@ -424,6 +424,28 @@ jobs:
|
||||
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
|
||||
- name: Install wrapper + test deps (the stock client is in the dev extra)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
@@ -439,6 +461,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
|
||||
@@ -481,6 +515,28 @@ jobs:
|
||||
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 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.
|
||||
@@ -544,6 +600,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
|
||||
@@ -679,6 +739,28 @@ jobs:
|
||||
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
|
||||
- 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
|
||||
@@ -721,6 +803,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
|
||||
@@ -876,6 +962,28 @@ jobs:
|
||||
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
|
||||
- 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
|
||||
@@ -984,6 +1092,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
|
||||
@@ -1120,6 +1232,28 @@ jobs:
|
||||
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
|
||||
- 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
|
||||
@@ -1162,6 +1296,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
|
||||
@@ -1328,6 +1466,28 @@ jobs:
|
||||
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
|
||||
- name: Install wrapper + test deps (+ Playwright ONLY as a system tool)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
@@ -1366,6 +1526,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
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{"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.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": 273, "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.", "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)."},
|
||||
@@ -14,16 +14,16 @@
|
||||
{"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.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": 4023, "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_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_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_refuses_what_would_touch_the_page.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_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_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_linux_legs_read_no_mirror.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_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", "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_fakeweb_stock_unsettled.py", "tests/test_fission_idLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 4027, "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_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_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_refuses_what_would_touch_the_page.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_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_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_linux_legs_read_no_mirror.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_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", "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_fakeweb_stock_unsettled.py", "tests/test_fissioLine truncated
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 4057, "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_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_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_refuses_what_would_touch_the_page.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_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_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_linux_legs_read_no_mirror.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_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", "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_windows_job_keeps_a_dump_of_a_crashing_python.py", "tests/test_every_wire_method_is_served_or_refused.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_reportLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 4061, "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_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_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_refuses_what_would_touch_the_page.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_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_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_linux_legs_read_no_mirror.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_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", "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_windows_job_keeps_a_dump_of_a_crashing_python.py", "tests/test_every_wire_method_is_served_or_refused.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_reLine 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": 449, "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.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": 414, "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": 353, "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_drag_from_the_top_into_a_frame_of_another_site_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_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_select_dropdown_opens_at_its_element_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_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_intersection_and_lazy_loading_in_a_frame_of_another_site_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": 333, "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.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": 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).", "runner_image": {"windows": "windows-2022"}, "run": "suite_run"},
|
||||
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 276, "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": 314, "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_from_the_top_into_a_frame_of_another_site_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_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_a_select_dropdown_opens_at_its_element_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_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_intersection_and_lazy_loading_in_a_frame_of_another_site_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.4", "giro": "G2", "os": ["windows"], "min_tests": 313, "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_from_the_top_into_a_frame_of_another_site_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_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_a_select_dropdown_opens_at_its_element_e2e.py", "tests/test_a_tooltip_opens_at_the_pointer_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_intersection_and_lazy_loading_in_a_frame_of_another_site_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 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.", "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).", "timeout_minutes": 75, "core_dumps": "cores", "extra_steps": ["keep_oracle_files"]},
|
||||
|
||||
@@ -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))
|
||||
@@ -12,6 +12,8 @@ folder and a `view` of the machine (the real one, or a stand-in in the unit test
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
|
||||
@@ -52,3 +54,39 @@ def maps_of_the_engine_below(root: int, binary_dir: str, machine: Optional[Machi
|
||||
if exe and exe.startswith(binary_dir):
|
||||
found[pid] = machine.maps(pid)
|
||||
return found
|
||||
|
||||
|
||||
def ships_its_own_gl(binary_dir: str) -> bool:
|
||||
"""The engine's own GL is in the package from firefox-59: a test follows the package under
|
||||
test, not the core's version (the gate runs a candidate under the published core)."""
|
||||
return os.path.isfile(os.path.join(binary_dir, "llvmpipe", "libEGL.so.1"))
|
||||
|
||||
|
||||
def gl_maps_of_this_test(firefox_binary: str) -> Optional[Dict[int, List[str]]]:
|
||||
"""The maps of the engine's processes below this test, to be read while the browser is up and a
|
||||
page has had its WebGL context; None where the verdict on the GL does not apply (not Linux,
|
||||
or an engine with no GL of its own)."""
|
||||
if not sys.platform.startswith("linux"):
|
||||
return None
|
||||
binary_dir = os.path.dirname(os.path.realpath(firefox_binary))
|
||||
if not ships_its_own_gl(binary_dir):
|
||||
return None
|
||||
return maps_of_the_engine_below(os.getpid(), binary_dir)
|
||||
|
||||
|
||||
def assert_the_gl_is_the_engines_own(firefox_binary: str, below: Optional[Dict[int, List[str]]]) -> None:
|
||||
"""The rule of the verdict on the GL, written once: some engine process maps the engine's own
|
||||
libEGL.so.1 and its own libgallium-*, and none maps a libEGL that is not under the engine's
|
||||
`llvmpipe/` folder. (GTK still opens the host's GLX at startup to choose its X11 visuals;
|
||||
nothing of it reaches WebGL or a page, so only libEGL is held against the host's.) With
|
||||
`below` None the verdict does not apply."""
|
||||
if below is None:
|
||||
return
|
||||
own = os.path.join(os.path.dirname(os.path.realpath(firefox_binary)), "llvmpipe") + os.sep
|
||||
assert below, "no engine process below this test"
|
||||
drew = [pid for pid, maps in below.items()
|
||||
if own + "libEGL.so.1" in maps and any(m.startswith(own + "libgallium-") for m in maps)]
|
||||
assert drew, {pid: [m for m in maps if "EGL" in m or "gallium" in m] for pid, maps in below.items()}
|
||||
foreign = {pid: [m for m in maps if "libEGL" in os.path.basename(m) and not m.startswith(own)]
|
||||
for pid, maps in below.items()}
|
||||
assert not any(foreign.values()), foreign
|
||||
@@ -3,9 +3,9 @@
|
||||
`new Worker("chrome://<name>/...")` returns for a chrome package the browser
|
||||
registers and throws SecurityError at once for one it does not: the parent sends
|
||||
every registered package to each content process. Every engine until firefox-47
|
||||
registered `juggler`, and captcha vendors probed it from 2026-10-06 (hCaptcha's
|
||||
hsw.js runs `new Worker("chrome://juggler/content/content/WorkerMain.js")`,
|
||||
camoufox #847): a challenge solved by hand was refused on our engine while
|
||||
registered `juggler`, and captcha vendors probed it from 2026-10-06 (the script of a
|
||||
captcha vendor runs `new Worker("chrome://juggler/content/content/WorkerMain.js")`,
|
||||
reported on another project's tracker): a challenge solved by hand was refused on our engine while
|
||||
retail Firefox passed. Measured from a page on firefox-46 and on retail Firefox
|
||||
151 under geckodriver, 2026-10-14: of the 65 chrome packages and resource
|
||||
substitutions the engine registers, `juggler` was the one retail does not; retail
|
||||
|
||||
@@ -7,17 +7,20 @@ CreatePattern`` used to read its source canvas through the pattern's own context
|
||||
projected ones: a page compared the two and read the difference. On firefox-68 two lines of ``CreatePattern`` (the HTMLCanvasElement and the
|
||||
OffscreenCanvas overloads; folder ``fingerprint/canvas/text-metrics`` of the series, ``dom/canvas/CanvasRenderingContext2D.cpp``) read the snapshot
|
||||
from the element, so the pattern carries the projection. A 2D canvas is not projected at all (a 2D canvas reads back exactly as drawn,
|
||||
``tests/test_canvas_reads_as_drawn.py``), so a pattern of a 2D canvas is the same pixels with the engine on and off.
|
||||
``tests/test_canvas_reads_as_drawn.py``), so a pattern of a 2D canvas is the same pixels with the noise on and off.
|
||||
|
||||
What the test reads. One page builds a source (a WebGL canvas, a WebGL OffscreenCanvas, or a 2D canvas), fills a 2D canvas with
|
||||
``createPattern(source, 'no-repeat')`` and reads it back with ``getImageData``, then clears it and draws the source with ``drawImage`` and reads that.
|
||||
The WebGL render is a triangle with per-vertex colours and antialiased edges on a white clear (what a fingerprinting page draws, and where the
|
||||
projection acts: ``tests/test_webgl_noise_active.py``); the 2D source is a gradient, an antialiased arc and a rotated rectangle.
|
||||
|
||||
The negative control, in the same module. The same page runs with the engine not declared (``zoom.stealth.fpp.hw_seed`` = 0: no projection): the
|
||||
WebGL pattern pixels with the engine declared must DIFFER from those (the projection is what changed them), and the 2D pattern pixels must be the
|
||||
SAME bytes with the engine on and off. A render that is not drawn (a blank source) fails the test: the pixels are checked to hold more than one
|
||||
colour. WebGL being unavailable on the runner is a failure, not a skip.
|
||||
The negative control, in the same module. The same page runs with the canvas noise declared off and the engine still on (``zoom.stealth.canvas.
|
||||
substitute_pixels`` false, the same declared GPU, the engine's own GL: no projection, because the noise is off, not because the engine is):
|
||||
the WebGL pattern pixels with the noise on must DIFFER from those (the projection is what changed them), and the 2D pattern pixels must be the
|
||||
SAME bytes with the noise on and off. A control with the engine off (``zoom.stealth.fpp.hw_seed`` 0) would draw the WebGL source on the host's
|
||||
GL, which a runner may not serve (no context, once in 3083 launches), so no launch of this file has the engine off. On Linux, in both launches,
|
||||
the maps of the engine's processes hold the engine's own GL and no libEGL of the host's. A render that is not drawn (a blank source) fails the
|
||||
test: the pixels are checked to hold more than one colour. WebGL being unavailable on the runner is a failure, not a skip.
|
||||
|
||||
Run: pytest tests/test_canvas_create_pattern_projection_e2e.py -m e2e -v
|
||||
"""
|
||||
@@ -25,6 +28,9 @@ from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from engine_process_tree import assert_the_gl_is_the_engines_own, gl_maps_of_this_test
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
pytestmark = pytest.mark.e2e
|
||||
|
||||
SIZE = 64
|
||||
@@ -78,58 +84,73 @@ READ = """(args) => {
|
||||
KINDS = ["webgl", "offscreen-webgl", "2d"]
|
||||
|
||||
|
||||
def _read(firefox_binary, engine_declared):
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
#: A hw_seed no runner has by accident (the engine is on when it is positive), the one both launches of this file declare: the same GPU, so
|
||||
#: the engine's own GL in both. The control declares only the canvas noise off.
|
||||
_HW_SEED = 12345
|
||||
|
||||
prefs = {} if engine_declared else {"zoom.stealth.fpp.hw_seed": 0}
|
||||
|
||||
def _launch_prefs(noise_on: bool) -> dict:
|
||||
"""The prefs of one launch of this file: the engine always on (the same declared GPU, the engine's own GL), with the canvas noise on, or
|
||||
with only the canvas noise declared off (``zoom.stealth.canvas.substitute_pixels`` false: no projection, the bytes as that GPU drew them)."""
|
||||
prefs = {"zoom.stealth.fpp.hw_seed": _HW_SEED}
|
||||
if not noise_on:
|
||||
prefs["zoom.stealth.canvas.substitute_pixels"] = False
|
||||
return prefs
|
||||
|
||||
|
||||
def _read(firefox_binary, noise_on):
|
||||
out = {}
|
||||
with InvisiblePlaywright(seed=21, binary_path=firefox_binary, headless=True, extra_prefs=prefs) as browser:
|
||||
with InvisiblePlaywright(seed=21, binary_path=firefox_binary, headless=True,
|
||||
extra_prefs=_launch_prefs(noise_on)) as browser:
|
||||
page = browser.new_context().new_page()
|
||||
page.goto("about:blank", timeout=30_000)
|
||||
for kind in KINDS:
|
||||
got = page.evaluate(READ, [kind, SIZE])
|
||||
assert "error" not in got, got["error"]
|
||||
out[kind] = {name: bytes(values) for name, values in got.items()}
|
||||
gl_maps = gl_maps_of_this_test(firefox_binary)
|
||||
assert_the_gl_is_the_engines_own(firefox_binary, gl_maps)
|
||||
return out
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def readings(firefox_binary):
|
||||
"""kind -> {viaPattern, viaDraw} bytes, with the engine declared and not declared. The browsers are closed before the tests run."""
|
||||
declared = _read(firefox_binary, True)
|
||||
stock = _read(firefox_binary, False)
|
||||
for mode, rows in (("engine declared", declared), ("engine not declared", stock)):
|
||||
"""kind -> {viaPattern, viaDraw} bytes, with the canvas noise on and off (the engine on in both). The browsers are closed before the tests run."""
|
||||
noised = _read(firefox_binary, True)
|
||||
control = _read(firefox_binary, False)
|
||||
for mode, rows in (("noise on", noised), ("noise off", control)):
|
||||
for kind, row in rows.items():
|
||||
assert len(row["viaPattern"]) == SIZE * SIZE * 4 and len(set(row["viaPattern"])) > 1, (
|
||||
"%s: the %s pattern read back is blank or has the wrong size: the source was not drawn" % (mode, kind))
|
||||
return {"declared": declared, "stock": stock}
|
||||
return {"noised": noised, "control": control}
|
||||
|
||||
|
||||
def test_create_pattern_from_a_webgl_canvas_carries_the_projection(readings):
|
||||
declared, stock = readings["declared"]["webgl"], readings["stock"]["webgl"]
|
||||
assert declared["viaPattern"] != stock["viaPattern"], (
|
||||
"createPattern(webglCanvas) reads the same pixels with the engine declared and not declared: the pattern is the clean render, the "
|
||||
noised, control = readings["noised"]["webgl"], readings["control"]["webgl"]
|
||||
assert noised["viaPattern"] != control["viaPattern"], (
|
||||
"createPattern(webglCanvas) reads the same pixels with the noise on and off: the pattern is the clean render, the "
|
||||
"projection does not reach it")
|
||||
|
||||
|
||||
def test_create_pattern_from_an_offscreen_webgl_canvas_carries_the_projection(readings):
|
||||
declared, stock = readings["declared"]["offscreen-webgl"], readings["stock"]["offscreen-webgl"]
|
||||
assert declared["viaPattern"] != stock["viaPattern"], (
|
||||
"createPattern(offscreenWebglCanvas) reads the same pixels with the engine declared and not declared: the pattern is the clean render, "
|
||||
noised, control = readings["noised"]["offscreen-webgl"], readings["control"]["offscreen-webgl"]
|
||||
assert noised["viaPattern"] != control["viaPattern"], (
|
||||
"createPattern(offscreenWebglCanvas) reads the same pixels with the noise on and off: the pattern is the clean render, "
|
||||
"the projection does not reach it")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("kind", ["webgl", "offscreen-webgl"])
|
||||
def test_a_pattern_of_a_webgl_canvas_reads_what_drawimage_of_it_reads(readings, kind):
|
||||
declared = readings["declared"][kind]
|
||||
assert declared["viaPattern"] == declared["viaDraw"], (
|
||||
"%s: the pixels of createPattern + fill and of drawImage differ with the engine declared: the two reads of one canvas carry "
|
||||
noised = readings["noised"][kind]
|
||||
assert noised["viaPattern"] == noised["viaDraw"], (
|
||||
"%s: the pixels of createPattern + fill and of drawImage differ with the noise on: the two reads of one canvas carry "
|
||||
"different projections" % kind)
|
||||
|
||||
|
||||
def test_create_pattern_from_a_2d_canvas_reads_the_same_with_the_engine_on_and_off(readings):
|
||||
declared, stock = readings["declared"]["2d"], readings["stock"]["2d"]
|
||||
assert declared["viaPattern"] == stock["viaPattern"], (
|
||||
"createPattern(2dCanvas) differs between the engine declared and not declared: a 2D source must be read as drawn")
|
||||
assert declared["viaDraw"] == stock["viaDraw"], "drawImage(2dCanvas) differs between the engine declared and not declared"
|
||||
assert declared["viaPattern"] == declared["viaDraw"], "a pattern of a 2D canvas is not the pixels drawImage reads"
|
||||
"""A 2D source is untouched whether the canvas noise is on or off (the engine is on in both launches): it is read as drawn."""
|
||||
noised, control = readings["noised"]["2d"], readings["control"]["2d"]
|
||||
assert noised["viaPattern"] == control["viaPattern"], (
|
||||
"createPattern(2dCanvas) differs between the noise on and off: a 2D source must be read as drawn")
|
||||
assert noised["viaDraw"] == control["viaDraw"], "drawImage(2dCanvas) differs between the noise on and off"
|
||||
assert noised["viaPattern"] == noised["viaDraw"], "a pattern of a 2D canvas is not the pixels drawImage reads"
|
||||
@@ -16,8 +16,12 @@ known-bad:
|
||||
per-seed change at readback.
|
||||
* A toDataURL PNG carries the deBG chunk retail 151 writes.
|
||||
* A WebGL canvas that is not premultiplied (premultipliedAlpha:false, half
|
||||
transparent) reads the same pixels through toDataURL and toBlob, noised with the
|
||||
engine on (hw_seed > 0); the control is the engine off (hw_seed 0: as drawn).
|
||||
transparent) reads the same pixels through toDataURL and toBlob, noised (the
|
||||
engine on, hw_seed > 0); the control is the same engine, the same declared GPU
|
||||
and the same GL, the engine's own, with only the canvas noise declared off
|
||||
(zoom.stealth.canvas.substitute_pixels false), so a defect of our hook that
|
||||
changed the bytes with the noise off shows in the control. In both launches, on
|
||||
Linux, the engine's processes map the engine's own GL and no libEGL of the host's.
|
||||
|
||||
Runs against about:blank and a local http page, no network/proxy. Part of the
|
||||
e2e release gate.
|
||||
@@ -32,6 +36,7 @@ import types
|
||||
import pytest
|
||||
|
||||
from _evidence_on_failure import FailureEvidence
|
||||
from engine_process_tree import assert_the_gl_is_the_engines_own, gl_maps_of_this_test
|
||||
from _webgl_unavailable import SECOND_ATTEMPT_AFTER_MS, split_probe, unavailable_message
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
@@ -225,20 +230,35 @@ _SECOND_ATTEMPT_JS = """() => {
|
||||
}"""
|
||||
|
||||
|
||||
def _non_premultiplied(firefox_binary, hw_seed, attempts=None):
|
||||
#: A hw_seed no runner has by accident (the engine is on when it is positive). Both launches of the test below keep the engine ON with the
|
||||
#: same declared GPU, so on the engine's own GL: a launch with hw_seed 0 would run WebGL on the host's Mesa, which a runner may not serve.
|
||||
_HW_SEED = 12345
|
||||
|
||||
|
||||
def _launch_prefs(noise_on: bool) -> dict:
|
||||
"""The prefs of one launch of the test below: the engine always on (the same declared GPU, the engine's own GL), with the canvas noise
|
||||
on, or with only the canvas noise declared off (``zoom.stealth.canvas.substitute_pixels`` false: the bytes as that GPU drew them)."""
|
||||
prefs = {"zoom.stealth.fpp.hw_seed": _HW_SEED}
|
||||
if not noise_on:
|
||||
prefs["zoom.stealth.canvas.substitute_pixels"] = False
|
||||
return prefs
|
||||
|
||||
|
||||
def _non_premultiplied(firefox_binary, noise_on, attempts=None):
|
||||
"""(the pixels of toDataURL, the pixels of toBlob) of one half-transparent, non-premultiplied WebGL canvas,
|
||||
as 128x128 RGBA bytes, with the engine on (hw_seed > 0) or off (0).
|
||||
as 128x128 RGBA bytes, with the canvas noise on or off (``_launch_prefs``): the engine is on in both.
|
||||
|
||||
When the page gets no context the first time, the assertion carries why: what the page heard on
|
||||
`webglcontextcreationerror` and, after a pause of 2 s, what a second attempt on a fresh canvas heard (and its
|
||||
renderer if it got one). The second attempt changes no verdict. `attempts`, a record the evidence keeps, gets both."""
|
||||
renderer if it got one). The second attempt changes no verdict. `attempts`, a record the evidence keeps, gets both.
|
||||
On Linux, once the page has its context, the maps of the engine's processes say the GL is the engine's own."""
|
||||
import base64
|
||||
|
||||
from _page_bytes import unfiltered
|
||||
|
||||
with InvisiblePlaywright(
|
||||
seed=7, binary_path=firefox_binary, headless=True,
|
||||
extra_prefs={"zoom.stealth.fpp.hw_seed": hw_seed},
|
||||
extra_prefs=_launch_prefs(noise_on),
|
||||
) as b:
|
||||
p = b.new_context().new_page()
|
||||
p.goto("about:blank", timeout=30_000)
|
||||
@@ -250,11 +270,13 @@ def _non_premultiplied(firefox_binary, hw_seed, attempts=None):
|
||||
second = p.evaluate(_SECOND_ATTEMPT_JS)
|
||||
except Exception as problem: # only a note: the first attempt is the verdict
|
||||
second = {"error": repr(problem)}
|
||||
gl_maps = gl_maps_of_this_test(firefox_binary)
|
||||
if attempts is not None:
|
||||
with attempts.lock:
|
||||
attempts.records.append({"hw_seed": hw_seed, "context": got is not None, "first": first, "second": second})
|
||||
attempts.records.append({"noise_on": noise_on, "context": got is not None, "first": first, "second": second})
|
||||
assert got is not None, unavailable_message(first, second)
|
||||
assert got["premultipliedAlpha"] is False, "the context is premultiplied: %r" % got["premultipliedAlpha"]
|
||||
assert_the_gl_is_the_engines_own(firefox_binary, gl_maps)
|
||||
images = [unfiltered(base64.b64decode(got["url"].split(",", 1)[1])), unfiltered(base64.b64decode(got["blob"]))]
|
||||
for png in images:
|
||||
assert (png["w"], png["h"], png["channels"]) == (128, 128, 4), png
|
||||
@@ -263,37 +285,40 @@ def _non_premultiplied(firefox_binary, hw_seed, attempts=None):
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_a_non_premultiplied_webgl_canvas_reads_the_same_through_todataurl_and_toblob(firefox_binary):
|
||||
"""toDataURL and toBlob of a premultipliedAlpha:false WebGL canvas give the same pixels, noised with the engine on.
|
||||
"""toDataURL and toBlob of a premultipliedAlpha:false WebGL canvas give the same pixels, noised.
|
||||
|
||||
The canvas noise is applied to the snapshot with its alpha type: a context that is not premultiplied stores
|
||||
the colours as drawn, and a reader that took it for premultiplied would noise (or convert) them wrongly.
|
||||
Both PNG readers go through the same hook (GetImageBuffer, GetInputStream in ClientWebGLContext.cpp). The
|
||||
canvas is half transparent (alpha 128/255, colours as drawn), so a premultiplied reading changes the bytes.
|
||||
Negative control, in the same test: with the engine off the two readers are the bytes as drawn, their alpha is
|
||||
the 128 drawn, and the engine-on PNG differs from them."""
|
||||
Negative control, in the same test: the same engine, the same declared GPU and the engine's own GL, with only
|
||||
the canvas noise declared off (``zoom.stealth.canvas.substitute_pixels`` false): the two readers are the bytes
|
||||
as drawn, their alpha is the 128 drawn, and the noised PNG differs from them. So a defect of our hook that
|
||||
changed the bytes with the noise off shows in the control, and no runner's Mesa is in either launch (on Linux
|
||||
the maps of both launches hold the engine's own GL and no libEGL of the host's)."""
|
||||
with FailureEvidence("canvas-webgl-non-premultiplied") as evidence:
|
||||
attempts = types.SimpleNamespace(lock=threading.Lock(), records=[])
|
||||
evidence.note_records("webgl-attempts", attempts)
|
||||
# One arming before both launches (engine on, then off): the variables it sets stay for the second launch, and the
|
||||
# One arming before both launches (noise on, then off): the variables it sets stay for the second launch, and the
|
||||
# engine writes one log file per process (MOZ_LOG_FILE has %PID), so both are covered; a second arm() would lose
|
||||
# the first one's patch. gfx2d is the module of gfxCriticalNote (gfx/2d/Factory.cpp, LazyLogModule "gfx2d"); the
|
||||
# engine has no log module named GfxInfo or WebGL (none in widget/ or dom/canvas), so none is asked for.
|
||||
evidence.arm(moz_log="timestamp,gfx2d:5")
|
||||
on_url, on_blob = _non_premultiplied(firefox_binary, 12345, attempts)
|
||||
off_url, off_blob = _non_premultiplied(firefox_binary, 0, attempts)
|
||||
_the_engine_off_and_on_readings_agree(on_url, on_blob, off_url, off_blob)
|
||||
on_url, on_blob = _non_premultiplied(firefox_binary, True, attempts)
|
||||
off_url, off_blob = _non_premultiplied(firefox_binary, False, attempts)
|
||||
_the_noise_off_and_on_readings_agree(on_url, on_blob, off_url, off_blob)
|
||||
|
||||
|
||||
def _the_engine_off_and_on_readings_agree(on_url, on_blob, off_url, off_blob):
|
||||
def _the_noise_off_and_on_readings_agree(on_url, on_blob, off_url, off_blob):
|
||||
alphas = {off_url[i] for i in range(3, len(off_url), 4)}
|
||||
assert alphas <= set(range(126, 131)), (
|
||||
"engine off: the alpha of the PNG is %s, not the 128 that was drawn" % sorted(alphas))
|
||||
"noise off: the alpha of the PNG is %s, not the 128 that was drawn" % sorted(alphas))
|
||||
differing = lambda a, b: sum(1 for x, y in zip(a, b) if x != y)
|
||||
assert off_blob == off_url, (
|
||||
"engine off: %d of %d bytes of toBlob differ from toDataURL" % (differing(off_blob, off_url), len(off_url)))
|
||||
"noise off: %d of %d bytes of toBlob differ from toDataURL" % (differing(off_blob, off_url), len(off_url)))
|
||||
assert differing(on_url, off_url), (
|
||||
"toDataURL of a non-premultiplied WebGL canvas is the same with the engine on and off: no noise reaches "
|
||||
"toDataURL of a non-premultiplied WebGL canvas is the same with the noise on and off: no noise reaches "
|
||||
"the page, so comparing the two readers says nothing")
|
||||
assert on_blob == on_url, (
|
||||
"engine on: %d of %d bytes of toBlob differ from toDataURL of the same non-premultiplied WebGL canvas"
|
||||
"noise on: %d of %d bytes of toBlob differ from toDataURL of the same non-premultiplied WebGL canvas"
|
||||
% (differing(on_blob, on_url), len(on_url)))
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Canvas / WebGL render-stealth regression test (binary-level, 2026-06-18).
|
||||
|
||||
Guards a patched-binary behaviour that must never regress, needed for the
|
||||
fingerprint to look like a real Windows browser to FOSS detectors (CreepJS,
|
||||
FingerprintJS, BrowserLeaks) and fixed-hash reference checks:
|
||||
fingerprint to look like a real Windows browser to FOSS detectors (a headless
|
||||
detector, a fingerprint library, a public leak-test page) and fixed-hash reference checks:
|
||||
|
||||
Solid WebGL readback purity under render-noise - a fixed solid-colour WebGL
|
||||
readback (which reference checks hash against a universal constant) must stay
|
||||
|
||||
@@ -1020,7 +1020,7 @@ def test_neither_entry_point_decides_the_cursor_default(cls):
|
||||
What the value IS gets asserted where it lives, in the core's own suite,
|
||||
and end to end by `test_the_show_cursor_kwarg_reaches_the_prefs`.
|
||||
|
||||
(Owner decision 2026-08-28: on. Camoufox ships it on too. The argument for
|
||||
(Owner decision 2026-08-28: on. The studied system ships it on too. The argument for
|
||||
off has not gone away and is recorded next to the constant: a pointer
|
||||
gliding across a window with nobody touching the mouse reads as "this is a
|
||||
bot" to any person glancing at the monitor.)
|
||||
|
||||
+53
-136
@@ -1,36 +1,27 @@
|
||||
"""E2E: run the REAL open-source detectors against the patched binary, on CI.
|
||||
"""E2E: run the REAL open-source detector libraries against the patched binary, on CI.
|
||||
|
||||
Instead of our own hand-rolled signal checks, this loads the actual detection
|
||||
libraries and uses their FULL API surface:
|
||||
|
||||
* BotD (@fingerprintjs/botd, MIT) - the client-side bot detector that
|
||||
FingerprintJS Pro itself uses. We assert the aggregate verdict
|
||||
* The client-side bot detector (MIT) - the one a commercial fingerprinting
|
||||
service itself uses. We assert the aggregate verdict
|
||||
(``detect().bot == False``) AND every one of its ~18 individual detectors
|
||||
(``getDetections()``) returns ``bot == False``.
|
||||
* FingerprintJS open-source (MIT) - ``get()`` must return a ``visitorId``
|
||||
* The open-source fingerprint library (MIT) - ``get()`` must return a ``visitorId``
|
||||
that is STABLE across two fresh launches with the same seed, and a RICH
|
||||
component set (the fingerprint surface is real, not a stub).
|
||||
* fpscanner (antoinevastel/fpscanner 1.0.6, MIT) - ``collectFingerprint()``
|
||||
* The automation-rules scanner (version 1.0.6, MIT) - ``collectFingerprint()``
|
||||
runs ~21 bot-detection rules in the browser. We assert the **engine-agnostic**
|
||||
subset (webdriver / selenium / bot-UA / platform / timezone / language) is
|
||||
clean. We deliberately do NOT assert the Chrome/GPU-only rules (hasCDP,
|
||||
hasPlaywright, hasSwiftshaderRenderer, hasMissingChromeObject, …): they're
|
||||
trivially clean on Firefox, and the GPU ones can legitimately fire on a
|
||||
software-WebGL CI host (Xvfb/llvmpipe) - asserting them would false-red.
|
||||
* CreepJS (abrahamjuliot/creepjs, MIT, pinned) - the gold-standard Firefox-aware
|
||||
headless/stealth/lie detector. It exposes its result on ``window.Fingerprint``.
|
||||
We assert ``headlessRating == 0`` (webdriver + headless-UA tells) and the
|
||||
JS-proxy stealth tells are absent. ``stealthRating`` / ``totalLies`` /
|
||||
``likeHeadlessRating`` are LOGGED, not hard-asserted, because some of their
|
||||
sub-signals (hasBadWebGL, prefers-light-color) are GPU/theme-sensitive and
|
||||
differ on a GPU-less CI host.
|
||||
|
||||
Everything is hermetic: the libraries are vendored (tests/vendor/) and served
|
||||
from a localhost HTTP server - no external CDN call. For CreepJS, every non-local
|
||||
request is aborted, so its optional crowd-comparison POST never runs and the
|
||||
verdict is computed purely locally. Runs identically on a dev box and a GH runner.
|
||||
from a localhost HTTP server - no external CDN call. Runs identically on a dev box and a GH runner.
|
||||
|
||||
NOT covered: FingerprintJS *Pro* (commercial, server-side) - stays the local
|
||||
NOT covered: the commercial, server-side service built on the fingerprint library - stays the local
|
||||
realness gate.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
@@ -46,17 +37,16 @@ from invisible_playwright import InvisiblePlaywright
|
||||
from _servers import LocalServer
|
||||
|
||||
_VENDOR = Path(__file__).parent / "vendor"
|
||||
_BOTD = "botd-2.0.0.esm.js"
|
||||
_FPJS = "fingerprintjs-5.2.0.umd.min.js"
|
||||
_FPSCANNER = "fpscanner-1.0.6.es.js"
|
||||
_CREEPJS = "creepjs-10aa672.js" # pinned abrahamjuliot/creepjs@10aa6724
|
||||
_BOT_DETECTOR = "bot-detector-2.0.0.esm.js"
|
||||
_FINGERPRINT_LIB = "fingerprint-library-5.2.0.umd.min.js"
|
||||
_RULES_SCANNER = "rules-scanner-1.0.6.es.js"
|
||||
|
||||
# fpscanner rules that are MEANINGFUL on Firefox and GPU-independent - these must
|
||||
# rules-scanner rules that are MEANINGFUL on Firefox and GPU-independent - these must
|
||||
# stay clean. The omitted rules are Chrome-only (hasCDP/hasPlaywright/
|
||||
# hasMissingChromeObject/hasHighCPUCount/hasImpossibleDeviceMemory/
|
||||
# headlessChromeScreenResolution) or GPU-sensitive on a software-WebGL CI host
|
||||
# (hasSwiftshaderRenderer/hasGPUMismatch/hasMismatchWebGLInWorker).
|
||||
_FPSCANNER_AGNOSTIC = [
|
||||
_RULES_SCANNER_AGNOSTIC = [
|
||||
"hasWebdriver", "hasWebdriverIframe", "hasWebdriverWorker", "hasWebdriverWritable",
|
||||
"hasSeleniumProperty", "hasBotUserAgent", "hasPlatformMismatch",
|
||||
"hasMismatchLanguages", "hasUTCTimezone", "hasMismatchPlatformIframe",
|
||||
@@ -65,29 +55,31 @@ _FPSCANNER_AGNOSTIC = [
|
||||
|
||||
_PAGE = f"""<!doctype html><html><head><meta charset="utf-8">
|
||||
<title>detectors</title>
|
||||
<script src="/{_FPJS}"></script>
|
||||
<script>const knownGlobals = new Set(Object.getOwnPropertyNames(window));</script>
|
||||
<script src="/{_FINGERPRINT_LIB}"></script>
|
||||
<script>window.__fpLib = window[Object.getOwnPropertyNames(window).find(n => !knownGlobals.has(n))];</script>
|
||||
</head><body><h1 id="state">loading</h1>
|
||||
<script type="module">
|
||||
window.__botd = null; window.__fp = null; window.__fps = null; window.__err = "";
|
||||
window.__bot_det = null; window.__fp = null; window.__fps = null; window.__err = "";
|
||||
(async () => {{
|
||||
try {{
|
||||
const Botd = await import("/{_BOTD}");
|
||||
const botd = await Botd.load();
|
||||
const verdict = botd.detect();
|
||||
const raw = botd.getDetections() || {{}};
|
||||
const Detector = await import("/{_BOT_DETECTOR}");
|
||||
const bot_det = await Detector.load();
|
||||
const verdict = bot_det.detect();
|
||||
const raw = bot_det.getDetections() || {{}};
|
||||
const detections = {{}};
|
||||
for (const k in raw) detections[k] = {{ bot: raw[k].bot, botKind: raw[k].botKind || null }};
|
||||
window.__botd = {{ bot: verdict.bot, botKind: verdict.botKind || null, detections }};
|
||||
}} catch (e) {{ window.__err += " botd:" + e; }}
|
||||
window.__bot_det = {{ bot: verdict.bot, botKind: verdict.botKind || null, detections }};
|
||||
}} catch (e) {{ window.__err += " bot_det:" + e; }}
|
||||
try {{
|
||||
const fp = await FingerprintJS.load();
|
||||
const fp = await window.__fpLib.load();
|
||||
const r = await fp.get();
|
||||
const keys = Object.keys(r.components || {{}});
|
||||
const errored = keys.filter(k => r.components[k] && "error" in r.components[k]);
|
||||
window.__fp = {{ visitorId: r.visitorId, componentKeys: keys, erroredComponents: errored }};
|
||||
}} catch (e) {{ window.__err += " fp:" + e; }}
|
||||
try {{
|
||||
const M = await import("/{_FPSCANNER}");
|
||||
const M = await import("/{_RULES_SCANNER}");
|
||||
const scanner = new M.default();
|
||||
const fp = await scanner.collectFingerprint({{ encrypt: false }});
|
||||
window.__fps = {{ fastBotDetection: fp.fastBotDetection, details: fp.fastBotDetectionDetails }};
|
||||
@@ -96,20 +88,12 @@ window.__botd = null; window.__fp = null; window.__fps = null; window.__err = ""
|
||||
}})();
|
||||
</script></body></html>"""
|
||||
|
||||
# CreepJS gets its own page: creep.js is a plain `defer` script that runs on load
|
||||
# and populates window.Fingerprint. A minimal DOM is enough (the rich report DOM
|
||||
# is only for the visual page, not the computation).
|
||||
_CREEP_PAGE = f"""<!doctype html><html><head><meta charset="utf-8"><title>creep</title></head>
|
||||
<body><div id="fingerprint-data"></div><script src="/{_CREEPJS}" defer></script></body></html>"""
|
||||
|
||||
|
||||
class _DetectorSite:
|
||||
"""Localhost server: `/` → BotD+FPJS+fpscanner page, `/creepjs` → CreepJS page,
|
||||
"""Localhost server: `/` → bot detector + fingerprint library + rules scanner page,
|
||||
`/<file>` → the vendored bundle."""
|
||||
|
||||
def __init__(self):
|
||||
page = _PAGE.encode()
|
||||
creep_page = _CREEP_PAGE.encode()
|
||||
# Preload the vendored bundle by exact filename. Serving from this map
|
||||
# means a request never builds a filesystem path from its own input, so
|
||||
# there is no path a crafted request could traverse.
|
||||
@@ -120,8 +104,6 @@ class _DetectorSite:
|
||||
p = self.path.split("?")[0]
|
||||
if p == "/":
|
||||
body, ctype = page, "text/html; charset=utf-8"
|
||||
elif p == "/creepjs":
|
||||
body, ctype = creep_page, "text/html; charset=utf-8"
|
||||
else:
|
||||
body = files.get(Path(p.lstrip("/")).name)
|
||||
if body is None:
|
||||
@@ -144,10 +126,6 @@ class _DetectorSite:
|
||||
def url(self):
|
||||
return f"http://127.0.0.1:{self.port}/"
|
||||
|
||||
@property
|
||||
def creep_url(self):
|
||||
return f"http://127.0.0.1:{self.port}/creepjs"
|
||||
|
||||
def close(self):
|
||||
self._srv.shutdown()
|
||||
|
||||
@@ -160,7 +138,7 @@ def detector_site():
|
||||
|
||||
|
||||
def _run_detectors(firefox_binary, url):
|
||||
"""Launch the binary, load the page, return (botd, fp, fps, err)."""
|
||||
"""Launch the binary, load the page, return (bot_det, fp, fps, err)."""
|
||||
with InvisiblePlaywright(seed=42, binary_path=firefox_binary) as browser:
|
||||
page = browser.new_page()
|
||||
page.goto(url, wait_until="load", timeout=45000)
|
||||
@@ -168,64 +146,31 @@ def _run_detectors(firefox_binary, url):
|
||||
"() => document.getElementById('state').textContent === 'done'",
|
||||
timeout=45000,
|
||||
)
|
||||
botd = page.evaluate("() => window.__botd")
|
||||
bot_det = page.evaluate("() => window.__bot_det")
|
||||
fp = page.evaluate("() => window.__fp")
|
||||
fps = page.evaluate("() => window.__fps")
|
||||
err = page.evaluate("() => window.__err")
|
||||
return botd, fp, fps, err
|
||||
|
||||
|
||||
def _run_creepjs(firefox_binary, creep_url):
|
||||
"""Launch the binary, run CreepJS fully offline, return its headless result."""
|
||||
_EV = """() => {
|
||||
const f = window.Fingerprint;
|
||||
if (!f || !f.headless) return { ready: false };
|
||||
const h = f.headless;
|
||||
return {
|
||||
ready: true,
|
||||
headlessRating: h.headlessRating,
|
||||
stealthRating: h.stealthRating,
|
||||
likeHeadlessRating: h.likeHeadlessRating,
|
||||
headless: h.headless || {},
|
||||
stealth: h.stealth || {},
|
||||
totalLies: (f.lies && f.lies.totalLies) || 0,
|
||||
};
|
||||
}"""
|
||||
with InvisiblePlaywright(seed=42, binary_path=firefox_binary) as browser:
|
||||
page = browser.new_page()
|
||||
# NetworkObserver was stripped to the bone on 2026-08-24: page.route()
|
||||
# no longer exists (Network.setRequestInterception refuses), so
|
||||
# blocking CreepJS's optional POST to arh.antoinevastel.com can no
|
||||
# longer be done this way. Verified: without the block the test still
|
||||
# passes, with the same outcome on headlessRating/stealth - that POST
|
||||
# was test-hygiene isolation (speed, no dependency on a third-party
|
||||
# site), not a precondition of the assertions.
|
||||
page.goto(creep_url, wait_until="domcontentloaded", timeout=45000)
|
||||
page.wait_for_function(
|
||||
"() => !!(window.Fingerprint && window.Fingerprint.headless)",
|
||||
timeout=60000,
|
||||
)
|
||||
return page.evaluate(_EV)
|
||||
return bot_det, fp, fps, err
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_botd_no_detector_flags_automation(firefox_binary, detector_site):
|
||||
"""The real BotD must not flag the build - aggregate AND every one of its
|
||||
def test_the_bot_detector_flags_no_automation(firefox_binary, detector_site):
|
||||
"""The real bot detector must not flag the build - aggregate AND every one of its
|
||||
individual detectors (webDriver/userAgent/appVersion/plugins/process/...)."""
|
||||
botd, _fp, _fps, err = _run_detectors(firefox_binary, detector_site.url)
|
||||
assert botd is not None, f"BotD produced no result (err:{err!r})"
|
||||
assert botd.get("bot") is False, (
|
||||
f"BotD aggregate flagged a bot: botKind={botd.get('botKind')!r}"
|
||||
bot_det, _fp, _fps, err = _run_detectors(firefox_binary, detector_site.url)
|
||||
assert bot_det is not None, f"the bot detector produced no result (err:{err!r})"
|
||||
assert bot_det.get("bot") is False, (
|
||||
f"the bot detector aggregate flagged a bot: botKind={bot_det.get('botKind')!r}"
|
||||
)
|
||||
detections = botd.get("detections") or {}
|
||||
assert detections, f"BotD getDetections() returned nothing (err:{err!r})"
|
||||
detections = bot_det.get("detections") or {}
|
||||
assert detections, f"the bot detector getDetections() returned nothing (err:{err!r})"
|
||||
flagged = {k: v.get("botKind") for k, v in detections.items() if v.get("bot")}
|
||||
assert not flagged, f"BotD individual detectors flagged automation: {flagged}"
|
||||
assert not flagged, f"the bot detector individual detectors flagged automation: {flagged}"
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fingerprintjs_visitorid_stable_across_launches(firefox_binary, detector_site):
|
||||
"""FingerprintJS visitorId must be present and identical across two fresh
|
||||
def test_the_fingerprint_library_visitorid_is_stable_across_launches(firefox_binary, detector_site):
|
||||
"""The fingerprint library visitorId must be present and identical across two fresh
|
||||
launches with the same seed - a real browser is stable; an over-randomized
|
||||
spoof drifts (and a drifting fingerprint is itself a bot tell)."""
|
||||
_b1, fp1, _f1, err1 = _run_detectors(firefox_binary, detector_site.url)
|
||||
@@ -233,71 +178,43 @@ def test_fingerprintjs_visitorid_stable_across_launches(firefox_binary, detector
|
||||
assert fp1 and fp1.get("visitorId"), f"no visitorId on run 1 (err:{err1!r})"
|
||||
assert fp2 and fp2.get("visitorId"), f"no visitorId on run 2 (err:{err2!r})"
|
||||
assert fp1["visitorId"] == fp2["visitorId"], (
|
||||
f"FingerprintJS visitorId drifted across launches: "
|
||||
f"the fingerprint library visitorId drifted across launches: "
|
||||
f"{fp1['visitorId']!r} != {fp2['visitorId']!r} (per-session entropy = bot tell)"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fingerprintjs_collects_rich_fingerprint(firefox_binary, detector_site):
|
||||
"""FingerprintJS must collect a RICH component surface (a real browser
|
||||
def test_the_fingerprint_library_collects_a_rich_fingerprint(firefox_binary, detector_site):
|
||||
"""The fingerprint library must collect a RICH component surface (a real browser
|
||||
exposes many signals; a stripped/blocked surface is itself suspicious)."""
|
||||
_b, fp, _f, err = _run_detectors(firefox_binary, detector_site.url)
|
||||
assert fp and fp.get("visitorId"), f"FingerprintJS produced no id (err:{err!r})"
|
||||
assert fp and fp.get("visitorId"), f"the fingerprint library produced no id (err:{err!r})"
|
||||
keys = fp.get("componentKeys") or []
|
||||
assert len(keys) >= 15, (
|
||||
f"FingerprintJS collected only {len(keys)} components - surface too thin "
|
||||
f"the fingerprint library collected only {len(keys)} components - surface too thin "
|
||||
f"(suppressed signals are themselves a tell): {keys}"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpscanner_no_automation_rules(firefox_binary, detector_site):
|
||||
"""fpscanner's engine-agnostic bot rules (webdriver/selenium/bot-UA/platform/
|
||||
def test_the_rules_scanner_flags_no_automation_rule(firefox_binary, detector_site):
|
||||
"""The rules scanner's engine-agnostic bot rules (webdriver/selenium/bot-UA/platform/
|
||||
timezone/language) must all be clean. The Chrome/GPU-only rules are ignored
|
||||
on purpose (see module docstring) - they false-red on a software-WebGL host."""
|
||||
_b, _fp, fps, err = _run_detectors(firefox_binary, detector_site.url)
|
||||
assert fps is not None, f"fpscanner produced no result (err:{err!r})"
|
||||
assert fps is not None, f"the rules scanner produced no result (err:{err!r})"
|
||||
details = fps.get("details") or {}
|
||||
assert details, f"fpscanner returned no detection details (err:{err!r})"
|
||||
assert details, f"the rules scanner returned no detection details (err:{err!r})"
|
||||
flagged = [
|
||||
k for k in _FPSCANNER_AGNOSTIC
|
||||
k for k in _RULES_SCANNER_AGNOSTIC
|
||||
if details.get(k) and details[k].get("detected")
|
||||
]
|
||||
assert not flagged, (
|
||||
f"fpscanner flagged automation on engine-agnostic rules: {flagged} "
|
||||
f"the rules scanner flagged automation on engine-agnostic rules: {flagged} "
|
||||
f"(full details: { {k: v for k, v in details.items() if v.get('detected')} })"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_creepjs_headless_and_proxy_clean(firefox_binary, detector_site):
|
||||
"""CreepJS (Firefox-aware) must see no headless tell and no JS-proxy stealth
|
||||
tell. ``headlessRating`` aggregates webDriverIsOn + headless-UA checks (all
|
||||
GPU-independent). The proxy/runtime stealth sub-signals (hasIframeProxy,
|
||||
hasToStringProxy, hasBadChromeRuntime) must be false - a spoof implemented
|
||||
with a JS Proxy is exactly what CreepJS catches. stealthRating/totalLies/
|
||||
likeHeadlessRating are GPU/theme-sensitive, so we log them, not assert."""
|
||||
r = _run_creepjs(firefox_binary, detector_site.creep_url)
|
||||
assert r and r.get("ready"), f"CreepJS never populated window.Fingerprint: {r!r}"
|
||||
print(
|
||||
f"[creepjs] headlessRating={r['headlessRating']} stealthRating={r['stealthRating']} "
|
||||
f"likeHeadlessRating={r['likeHeadlessRating']} totalLies={r['totalLies']} "
|
||||
f"headless={r['headless']} stealth={r['stealth']}"
|
||||
)
|
||||
assert r["headlessRating"] == 0, (
|
||||
f"CreepJS headless tells fired: headless={r['headless']} "
|
||||
f"(headlessRating={r['headlessRating']})"
|
||||
)
|
||||
stealth = r.get("stealth") or {}
|
||||
proxy_tells = {
|
||||
k: stealth.get(k)
|
||||
for k in ("hasIframeProxy", "hasToStringProxy", "hasBadChromeRuntime")
|
||||
if stealth.get(k)
|
||||
}
|
||||
assert not proxy_tells, f"CreepJS JS-proxy stealth tells fired: {proxy_tells}"
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_enumerate_devices_resolves_promptly(firefox_binary, detector_site):
|
||||
"""navigator.mediaDevices.enumerateDevices() must RESOLVE, and quickly.
|
||||
@@ -306,11 +223,11 @@ def test_enumerate_devices_resolves_promptly(firefox_binary, detector_site):
|
||||
it even though it was the cause of four different failures.
|
||||
|
||||
The symptom that was visible was
|
||||
`test_fingerprintjs_visitorid_stable_across_launches` going red roughly one
|
||||
`test_the_fingerprint_library_visitorid_is_stable_across_launches` going red roughly one
|
||||
time in three - a name that sends you the wrong way, because it had nothing
|
||||
to do with either the identifier or its stability. The detectors page stayed
|
||||
at `state='loading'`: BotD finished, FingerprintJS finished, fpscanner did
|
||||
not. Inside fpscanner:
|
||||
at `state='loading'`: the bot detector finished, the fingerprint library finished, the rules scanner did
|
||||
not. Inside the rules scanner:
|
||||
|
||||
return new Promise(async function(t) {
|
||||
const a = await navigator.mediaDevices.enumerateDevices();
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
"""Every Windows job of e2e.yml that runs pytest keeps a full dump of a python.exe that crashes, inside the evidence it uploads.
|
||||
|
||||
The pytest-xdist worker (python.exe) died on the Windows e2e jobs with ``node down: Not properly terminated`` and ``Windows fatal exception: access violation``
|
||||
(jobs 138402013609 and 138966622085), in a thread Python has no state for, so faulthandler named no native frame. Windows Error Reporting writes a full user-mode
|
||||
dump of a process that dies from an unhandled exception when ``HKLM\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\LocalDumps\\python.exe`` says so
|
||||
(DumpFolder, DumpType 2 = full, DumpCount; https://learn.microsoft.com/windows/win32/wer/collecting-user-mode-dumps). faulthandler's handler on Windows is a vectored
|
||||
one that returns EXCEPTION_CONTINUE_SEARCH, so the exception goes on and WER still sees it.
|
||||
|
||||
For each Windows job that runs pytest (found by ``runs-on: windows-*``, so a new one is covered by itself):
|
||||
|
||||
* before its first pytest step a PowerShell step turns WER on (``Disabled`` 0, ``DontShowUI`` 1) and sets LocalDumps of python.exe: ``DumpType`` 2, ``DumpCount`` 3,
|
||||
``DumpFolder`` an expandable string, ``$RUNNER_TEMP/invpw-evidence/dumps/python``: inside the folder the job's evidence upload takes;
|
||||
* after the tests a step with ``if: always()`` runs ``scripts/ci_wer_dumps.py`` on that folder (sizes, faulting module), before the upload;
|
||||
* the upload of ``$RUNNER_TEMP/invpw-evidence`` is ``if: always()``, after the tests.
|
||||
|
||||
Known-bad inputs: a job without the step, the step after the first pytest step, a mini dump (DumpType 1), a key of another executable, a folder outside the evidence, a
|
||||
summary missing or not ``always()``, an upload that is not ``always()``. The green case is the state of the repository.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
E2E = Path(__file__).resolve().parents[1] / ".github" / "workflows" / "e2e.yml"
|
||||
EXPECTED_WINDOWS_JOBS = {
|
||||
"e2e-windows-control-a", "e2e-windows", "e2e-network-windows", "e2e-host-windows", "e2e-page-windows", "e2e-page-final-windows",
|
||||
}
|
||||
SUMMARY_STEP = " - name: What Windows Error Reporting kept of a crashing python.exe (size, faulting module, in the evidence)\n"
|
||||
WER_STEP = " - name: Windows Error Reporting keeps a full dump of a python.exe that crashes (into the evidence)\n"
|
||||
ALWAYS = " if: always()\n"
|
||||
|
||||
|
||||
def _jobs(text: str) -> dict[str, str]:
|
||||
"""job id -> its text, for the jobs of the file (a job starts at two spaces of indent)."""
|
||||
body = "\n" + text.split("\njobs:\n", 1)[1]
|
||||
starts = [(m.group(1), m.start()) for m in re.finditer(r"\n ([A-Za-z0-9_-]+):[ ]*(?=\n)", body)]
|
||||
out = {}
|
||||
for i, (name, at) in enumerate(starts):
|
||||
out[name] = body[at:starts[i + 1][1] if i + 1 < len(starts) else len(body)]
|
||||
return out
|
||||
|
||||
|
||||
def _windows_jobs(text: str) -> dict[str, str]:
|
||||
return {k: v for k, v in _jobs(text).items() if re.search(r"^ runs-on: windows-", v, re.M)}
|
||||
|
||||
|
||||
def _steps(job: str) -> list[str]:
|
||||
"""The steps of a job, each without its comment lines."""
|
||||
body = job.split("\n steps:\n", 1)[1]
|
||||
chunks = re.split(r"\n(?= - )", "\n" + body)
|
||||
steps = []
|
||||
for c in chunks:
|
||||
lines = [ln for ln in c.split("\n") if not ln.strip().startswith("#")]
|
||||
if any(ln.startswith(" - ") for ln in lines):
|
||||
steps.append("\n".join(lines))
|
||||
return steps
|
||||
|
||||
|
||||
def _problems(name: str, job: str) -> list[str]:
|
||||
steps = _steps(job)
|
||||
runs_pytest = [i for i, s in enumerate(steps) if re.search(r"pytest|run_e2e\.py", s)]
|
||||
if not runs_pytest:
|
||||
return ["%s: no step runs pytest (this test finds them by name: update it with the job)" % name]
|
||||
first, last = runs_pytest[0], runs_pytest[-1]
|
||||
dumps = [i for i, s in enumerate(steps) if "LocalDumps" in s]
|
||||
if len(dumps) != 1:
|
||||
return ["%s: %d steps set LocalDumps, expected 1" % (name, len(dumps))]
|
||||
step = steps[dumps[0]]
|
||||
bad = []
|
||||
if dumps[0] > first:
|
||||
bad.append("%s: LocalDumps is set after the first pytest step" % name)
|
||||
if "shell: pwsh" not in step:
|
||||
bad.append("%s: the LocalDumps step is not PowerShell" % name)
|
||||
if not re.search(r'LocalDumps\\python\.exe"', step):
|
||||
bad.append("%s: LocalDumps is not the key of python.exe" % name)
|
||||
if not re.search(r"-Name DumpType -PropertyType DWord -Value 2\b", step):
|
||||
bad.append("%s: DumpType is not 2 (a full dump)" % name)
|
||||
if not re.search(r"-Name DumpCount -PropertyType DWord -Value 3\b", step):
|
||||
bad.append("%s: DumpCount is not 3" % name)
|
||||
if not re.search(r"-Name DumpFolder -PropertyType ExpandString -Value \$dumps\b", step):
|
||||
bad.append("%s: DumpFolder is not an expandable string" % name)
|
||||
if not re.search(r"\$dumps = Join-Path \$env:RUNNER_TEMP 'invpw-evidence\\dumps\\python'", step):
|
||||
bad.append("%s: the dump folder is not RUNNER_TEMP/invpw-evidence/dumps/python (the folder the evidence upload takes)" % name)
|
||||
if not re.search(r"-Name Disabled -PropertyType DWord -Value 0\b", step):
|
||||
bad.append("%s: WER is not made enabled (Disabled 0)" % name)
|
||||
if not re.search(r"-Name DontShowUI -PropertyType DWord -Value 1\b", step):
|
||||
bad.append("%s: WER may show a dialog (DontShowUI 1 missing)" % name)
|
||||
uploads = [i for i, s in enumerate(steps) if "actions/upload-artifact" in s and re.search(r"^\s+(path: )?\$\{\{ runner\.temp \}\}/invpw-evidence$", s, re.M)]
|
||||
if len(uploads) != 1:
|
||||
return bad + ["%s: %d steps upload the evidence folder, expected 1" % (name, len(uploads))]
|
||||
up = steps[uploads[0]]
|
||||
if uploads[0] < last:
|
||||
bad.append("%s: the evidence is uploaded before the last pytest step" % name)
|
||||
if not re.search(r"^ if: always\(\)$", up, re.M):
|
||||
bad.append("%s: the upload of the evidence is not if: always()" % name)
|
||||
summaries = [i for i, s in enumerate(steps) if "scripts/ci_wer_dumps.py" in s]
|
||||
if len(summaries) != 1:
|
||||
return bad + ["%s: %d steps run scripts/ci_wer_dumps.py, expected 1" % (name, len(summaries))]
|
||||
s = steps[summaries[0]]
|
||||
if not (last < summaries[0] < uploads[0]):
|
||||
bad.append("%s: the dump summary is not between the last pytest step and the upload" % name)
|
||||
if not re.search(r"^ if: always\(\)$", s, re.M):
|
||||
bad.append("%s: the dump summary is not if: always()" % name)
|
||||
if 'invpw-evidence/dumps/python"' not in s:
|
||||
bad.append("%s: the dump summary does not read the dump folder" % name)
|
||||
return bad
|
||||
|
||||
|
||||
def _job() -> str:
|
||||
return _windows_jobs(E2E.read_text(encoding="utf-8"))["e2e-host-windows"]
|
||||
|
||||
|
||||
def test_the_windows_jobs_are_the_ones_this_test_knows():
|
||||
assert set(_windows_jobs(E2E.read_text(encoding="utf-8"))) == EXPECTED_WINDOWS_JOBS
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name", sorted(EXPECTED_WINDOWS_JOBS))
|
||||
def test_the_job_keeps_a_full_dump_of_a_crashing_python_in_its_evidence(name):
|
||||
job = _windows_jobs(E2E.read_text(encoding="utf-8"))[name]
|
||||
assert _problems(name, job) == []
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"mutate, expected",
|
||||
[
|
||||
(lambda t: t.replace("-Name DumpType -PropertyType DWord -Value 2", "-Name DumpType -PropertyType DWord -Value 1"), "DumpType is not 2"),
|
||||
(lambda t: t.replace("LocalDumps\\python.exe", "LocalDumps\\firefox.exe"), "not the key of python.exe"),
|
||||
(lambda t: t.replace("-Name Disabled -PropertyType DWord -Value 0", "-Name Disabled -PropertyType DWord -Value 1"), "Disabled 0"),
|
||||
(lambda t: t.replace("-PropertyType ExpandString", "-PropertyType String"), "not an expandable string"),
|
||||
(lambda t: t.replace("'invpw-evidence\\dumps\\python'", "'crash-dumps'"), "not RUNNER_TEMP/invpw-evidence/dumps/python"),
|
||||
(lambda t: t.replace("scripts/ci_wer_dumps.py", "scripts/nothing.py"), "0 steps run scripts/ci_wer_dumps.py"),
|
||||
(lambda t: t.replace(SUMMARY_STEP + ALWAYS, SUMMARY_STEP), "dump summary is not if: always()"),
|
||||
(lambda t: t.replace(" - name: Upload what the test saved\n" + ALWAYS, " - name: Upload what the test saved\n"), "upload of the evidence is not if: always()"),
|
||||
],
|
||||
)
|
||||
def test_known_bad_jobs_are_refused(mutate, expected):
|
||||
job = _job()
|
||||
bad = mutate(job)
|
||||
assert bad != job, "the mutation did not apply: this test is stale"
|
||||
assert any(expected in p for p in _problems("e2e-host-windows", bad)), _problems("e2e-host-windows", bad)
|
||||
|
||||
|
||||
def test_the_step_after_the_tests_and_the_missing_step_are_refused():
|
||||
job = _job()
|
||||
start = job.index(WER_STEP)
|
||||
end = job.index("\n - ", start + 1)
|
||||
gone = job[:start] + job[end + 1:]
|
||||
assert not any("LocalDumps" in s for s in _steps(gone))
|
||||
assert any("0 steps set LocalDumps" in p for p in _problems("x", gone))
|
||||
moved = job[:start] + job[end + 1:] + "\n" + job[start:end]
|
||||
assert any("after the first pytest step" in p for p in _problems("x", moved)), _problems("x", moved)
|
||||
@@ -11,11 +11,11 @@ WebGL renderer in the main thread but not in a Web Worker, the
|
||||
inconsistency proves the spoof is fake.
|
||||
|
||||
Sources studied (all FOSS, MIT-licensed):
|
||||
- creepjs/src/lies/index.ts - the canonical lie detector
|
||||
- creepjs/src/worker/index.ts - main-vs-worker scope cross-check
|
||||
- creepjs/src/math/index.ts - Math.x(p) deterministic equality
|
||||
- creepjs/src/navigator/index.ts - UA/platform/oscpu invariants
|
||||
- niespodd/browser-fingerprinting README - worker hwConcurrency,
|
||||
- the headless detector, lies module - the canonical lie detector
|
||||
- the headless detector, worker module - main-vs-worker scope cross-check
|
||||
- the headless detector, math module - Math.x(p) deterministic equality
|
||||
- the headless detector, navigator module - UA/platform/oscpu invariants
|
||||
- a public fingerprinting-notes README - worker hwConcurrency,
|
||||
plugin chain, perf.timeOrigin
|
||||
|
||||
Everything runs against `about:blank` with NO network and NO proxy.
|
||||
@@ -66,7 +66,7 @@ def _ev(page, expr):
|
||||
|
||||
# ===========================================================================
|
||||
# 1. Math determinism - same input MUST yield same output
|
||||
# Source: creepjs/src/math/index.ts
|
||||
# Source: the headless detector, math module
|
||||
# A wrapper that adds noise to Math.* (canvas-spoofing prefs) exposes
|
||||
# itself here: two consecutive calls with the same input must be
|
||||
# byte-identical.
|
||||
@@ -119,7 +119,7 @@ def test_math_pow_two_arg_determinism(page):
|
||||
|
||||
# ===========================================================================
|
||||
# 2. Worker scope vs main thread - navigator properties MUST agree
|
||||
# Source: creepjs/src/worker/index.ts
|
||||
# Source: the headless detector, worker module
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ def test_worker_platform_matches_main(page):
|
||||
|
||||
# ===========================================================================
|
||||
# 3. Iframe scope vs window scope
|
||||
# Source: creepjs/src/lies/index.ts (getBehemothIframe pattern)
|
||||
# Source: the headless detector, lies module (getBehemothIframe pattern)
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ def test_iframe_screen_matches_window(page):
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# 4. UA self-consistency (creepjs/src/navigator/index.ts)
|
||||
# 4. UA self-consistency (the headless detector, navigator module)
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@@ -285,12 +285,12 @@ def test_navigator_oscpu_matches_userAgent(page):
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# 5. Native function self-toString (creepjs/src/lies/index.ts hasKnownToString)
|
||||
# 5. Native function self-toString (the headless detector, lies module, hasKnownToString)
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
def _is_native_toString(text, fn_name):
|
||||
"""Mirror of CreepJS hasKnownToString - accept the engine-specific
|
||||
"""Mirror of the headless detector hasKnownToString - accept the engine-specific
|
||||
native patterns (single-line on V8, multi-line on SpiderMonkey)."""
|
||||
import re as _re
|
||||
name = _re.escape(fn_name)
|
||||
@@ -449,7 +449,7 @@ _DESCRIPTOR_NATIVE_PROPS = [
|
||||
def test_navigator_property_descriptor_is_getter_not_value(page, prop):
|
||||
"""Each spoofable navigator.* property must be defined via a native
|
||||
getter - NOT Object.defineProperty(..., {value: x}). The value-field
|
||||
descriptor is the lazy spoof leak CreepJS catches."""
|
||||
descriptor is the lazy spoof leak the headless detector catches."""
|
||||
has_lie = _ev(page, f"""() => {{
|
||||
let proto = navigator;
|
||||
let descriptor = null;
|
||||
|
||||
@@ -6,16 +6,16 @@ here means our patched build appears human to that detector; a fail
|
||||
means a real stealth hole that anti-bot kits would exploit in production.
|
||||
|
||||
Detector libraries studied (all FOSS, MIT-licensed):
|
||||
- github.com/fingerprintjs/BotD - 19 detectors, the most
|
||||
- a client-side bot detector - 19 detectors, the most
|
||||
widely deployed client-side
|
||||
bot detector
|
||||
- github.com/abrahamjuliot/creepjs - headless / stealth / lies
|
||||
- a headless / stealth / lies detector - headless, stealth and lies
|
||||
modules
|
||||
- github.com/fingerprintjs/fingerprintjs - canvas / audio / color /
|
||||
- an open-source fingerprint library - canvas / audio / color /
|
||||
touch consistency
|
||||
- github.com/antoinevastel/fpscanner - UA / platform / oscpu
|
||||
- an automation-rules scanner - UA / platform / oscpu
|
||||
cross-checks
|
||||
- bot.sannysoft.com - classic Puppeteer harness
|
||||
- a public classic-harness test page - the classic Puppeteer harness
|
||||
|
||||
Everything runs against `about:blank` with NO network and NO proxy. The
|
||||
suite is intended to be part of the release-gate: pre-push hook runs
|
||||
@@ -77,19 +77,19 @@ def _ev(page, expr):
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# sannysoft.com - classic Puppeteer detection harness
|
||||
# The public classic Puppeteer detection harness
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_sannysoft_chrome_object_consistency(page):
|
||||
def test_the_chrome_object_is_consistent(page):
|
||||
"""Firefox UA + window.chrome present = bot-framework leak."""
|
||||
if "Firefox" in _ev(page, "navigator.userAgent"):
|
||||
assert not _ev(page, "typeof window.chrome !== 'undefined'")
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_sannysoft_permissions_query_works(page):
|
||||
def test_the_permissions_query_works(page):
|
||||
"""navigator.permissions.query() must return a proper PermissionStatus."""
|
||||
ok = _ev(page, """async () => {
|
||||
if (!navigator.permissions || !navigator.permissions.query) return false;
|
||||
@@ -102,7 +102,7 @@ def test_sannysoft_permissions_query_works(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_sannysoft_iframe_chrome_not_leaked(page):
|
||||
def test_the_iframe_does_not_leak_the_chrome_object(page):
|
||||
"""iframe.contentWindow.chrome must not leak on Firefox UA."""
|
||||
if "Firefox" not in _ev(page, "navigator.userAgent"):
|
||||
pytest.skip("Firefox-only invariant")
|
||||
@@ -118,7 +118,7 @@ def test_sannysoft_iframe_chrome_not_leaked(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_sannysoft_iframe_languages_not_empty(page):
|
||||
def test_the_iframe_languages_are_not_empty(page):
|
||||
"""Iframe-scope navigator.languages must have ≥1 entry."""
|
||||
n = _ev(page, """() => {
|
||||
const f = document.createElement('iframe');
|
||||
@@ -132,12 +132,12 @@ def test_sannysoft_iframe_languages_not_empty(page):
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# FingerprintJS - fingerprint surface coherence
|
||||
# The open-source fingerprint library - fingerprint surface coherence
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpjs_canvas_2d_context_returns_valid(page):
|
||||
def test_the_canvas_2d_context_returns_a_valid_one(page):
|
||||
ok = _ev(page, """() => {
|
||||
const c = document.createElement('canvas');
|
||||
c.width = 100; c.height = 100;
|
||||
@@ -151,7 +151,7 @@ def test_fpjs_canvas_2d_context_returns_valid(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpjs_audio_context_works(page):
|
||||
def test_the_audio_context_works(page):
|
||||
ok = _ev(page, """async () => {
|
||||
try {
|
||||
const ctx = new (window.OfflineAudioContext ||
|
||||
@@ -167,7 +167,7 @@ def test_fpjs_audio_context_works(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpjs_color_gamut_query_works(page):
|
||||
def test_the_color_gamut_query_works(page):
|
||||
"""matchMedia('(color-gamut: ...)') must match at least srgb."""
|
||||
ok = _ev(page, """matchMedia('(color-gamut: srgb)').matches ||
|
||||
matchMedia('(color-gamut: p3)').matches ||
|
||||
@@ -176,7 +176,7 @@ def test_fpjs_color_gamut_query_works(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpjs_screen_color_depth_realistic(page):
|
||||
def test_the_screen_color_depth_is_realistic(page):
|
||||
"""Atypical color depths are headless-distinctive."""
|
||||
cd = _ev(page, "screen.colorDepth")
|
||||
assert cd in (24, 30, 32)
|
||||
@@ -219,12 +219,12 @@ def test_pin_audio_max_channels_lands_in_destination(page):
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# fpscanner-style cross-checks
|
||||
# Rules-scanner-style cross-checks
|
||||
# ===========================================================================
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpscanner_ua_vs_platform_consistent(page):
|
||||
def test_the_ua_and_the_platform_agree(page):
|
||||
"""UA OS substring must agree with navigator.platform OS substring."""
|
||||
ua = _ev(page, "navigator.userAgent")
|
||||
platform = _ev(page, "navigator.platform")
|
||||
@@ -237,21 +237,21 @@ def test_fpscanner_ua_vs_platform_consistent(page):
|
||||
|
||||
|
||||
@pytest.mark.e2e
|
||||
def test_fpscanner_no_userAgentData_on_firefox(page):
|
||||
def test_firefox_has_no_userAgentData(page):
|
||||
"""navigator.userAgentData is Chromium-only. Presence on Firefox UA = bot."""
|
||||
if "Firefox" in _ev(page, "navigator.userAgent"):
|
||||
assert not _ev(page, "'userAgentData' in navigator")
|
||||
|
||||
|
||||
# ===========================================================================
|
||||
# WebGL masking-detector guard (pixelscan getFixedRedBox / webglHash)
|
||||
# WebGL masking-detector guard (a public fingerprint page, fixed red box / webgl hash)
|
||||
#
|
||||
# pixelscan flags "fingerprint masking" on the WebGL readPixels output. We
|
||||
# reproduce ITS probe locally (the fingerprintjs gradient triangle) and check
|
||||
# A public fingerprint page flags "fingerprint masking" on the WebGL readPixels output. We
|
||||
# reproduce ITS probe locally (the gradient triangle of the fingerprint library) and check
|
||||
# the structural signature it keys on: our stealth readPixels noise MUST be a
|
||||
# coherent, monotonic gamma remap (smooth, ~0 spikes), NOT isolated +-1 flips
|
||||
# (which read as unnatural high-frequency noise and were flagged as masking).
|
||||
# This is the CI-safe local stand-in for pixelscan's server-side check; it
|
||||
# This is the CI-safe local stand-in for the server-side check of that page; it
|
||||
# guards the gamma fix from ever silently regressing to the +-1 algorithm.
|
||||
# ===========================================================================
|
||||
|
||||
@@ -298,7 +298,7 @@ _WEBGL_MASKING_PROBE = """() => {
|
||||
def test_webgl_readpixels_no_masking_signature(page):
|
||||
"""Stealth WebGL readPixels noise must be a coherent gamma remap (smooth),
|
||||
not isolated +-1 flips. +-1 noise on the smooth gradient triangle produced
|
||||
~300+ 'spikes' and pixelscan flagged it as masking; the gamma remap leaves
|
||||
~300+ 'spikes' and that page flagged it as masking; the gamma remap leaves
|
||||
the gradient smooth (~0 spikes). Regression guard for the gamma fix."""
|
||||
res = _ev(page, _WEBGL_MASKING_PROBE)
|
||||
if res.get("error") == "no-webgl" and sys.platform == "darwin":
|
||||
@@ -311,7 +311,7 @@ def test_webgl_readpixels_no_masking_signature(page):
|
||||
# genuine / gamma -> ~0; the rejected +-1 algorithm produced ~320.
|
||||
assert res["spikes"] < 30, (
|
||||
f"WebGL readPixels shows {res['spikes']} high-frequency noise spikes "
|
||||
f"(pixelscan-maskable); the stealth noise must be a smooth gamma remap."
|
||||
f"(flagged as masking by a public page); the stealth noise must be a smooth gamma remap."
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -15,8 +15,7 @@ One launch per exit (``observed``, six of them) is read by the tests below; each
|
||||
* WebRTC: the candidates and the SDP carry nothing of this machine;
|
||||
* DNS: the names of the pages reach the gateway (as DoH) and are not asked of the system resolver;
|
||||
* the time zone of the page, of its offsets read two ways, and of a worker;
|
||||
* the language of the page, of a worker and of the Accept-Language the site receives, and that it fits the exit's country;
|
||||
* a vendored detection page, served locally and loaded behind the gateway.
|
||||
* the language of the page, of a worker and of the Accept-Language the site receives, and that it fits the exit's country.
|
||||
|
||||
The four states of the gateway (coherent, TCP only, mismatched, silent) are tested by ``test_webrtc_realness.py``; here only the
|
||||
"nothing of the host" part of a coherent gather is added.
|
||||
@@ -41,7 +40,6 @@ from _host_address import this_host_address
|
||||
from _leaks import ResolverTrap, Watcher
|
||||
from _socks_servers import STUN_NUMBER, STUN_PORT
|
||||
from _udp_line import egress_by_proxy, measure_servers
|
||||
from test_detectors_e2e import _DetectorSite
|
||||
from test_webrtc_realness import _RELAY_PROBE_JS
|
||||
|
||||
pytestmark = [pytest.mark.e2e, pytest.mark.usefixtures("the_udp_line")]
|
||||
@@ -195,76 +193,6 @@ def test_the_language_of_the_page_its_worker_and_the_header_agree_and_fit_the_co
|
||||
assert problems == [], "exit %s (%s, %s): %s" % (observed.exit_ip, observed.label, observed.country, problems)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------- the vendored detection page
|
||||
#: What the vendored detection page reads, in the page itself: the outcome fields only (the lies, the flags of a headless
|
||||
#: browser, and the three "lied" fields of the zone, the Intl and the worker).
|
||||
_DETECTION_JS = """() => {
|
||||
const f = window.Fingerprint;
|
||||
if (!f || !f.headless) return {ready: false};
|
||||
const on = (o) => Object.entries(o || {}).filter(([, v]) => v === true).map(([k]) => k).sort();
|
||||
return {
|
||||
ready: true,
|
||||
lies: (f.lies && f.lies.totalLies) || 0,
|
||||
headless: on(f.headless.headless),
|
||||
zone: f.timezone ? {location: f.timezone.location, lied: !!f.timezone.lied} : null,
|
||||
intl: f.intl ? {lied: !!f.intl.lied} : null,
|
||||
worker: f.workerScope ? {lied: !!f.workerScope.lied} : null,
|
||||
};
|
||||
}"""
|
||||
|
||||
|
||||
def _detection_page_of(site):
|
||||
"""The URL of the vendored detection page of the local site of ``test_detectors_e2e.py``: the one of its URL properties that
|
||||
is not the root (the root serves three other libraries; this page is the one that reports lies and headless flags)."""
|
||||
own = [name for name, value in vars(type(site)).items() if isinstance(value, property) and name.endswith("_url")]
|
||||
assert len(own) == 1, own
|
||||
return getattr(site, own[0])
|
||||
|
||||
|
||||
def test_the_vendored_detection_page_finds_nothing_behind_the_gateway(firefox_binary, monkeypatch):
|
||||
"""6. The vendored detection page, served locally, loaded behind the gateway: no lies, no flag of a headless browser, and
|
||||
none of the zone, the Intl or the worker reads marked as lied; and the zone the page reads is the exit's.
|
||||
|
||||
Stock Playwright Firefox 1.62 (its own Firefox, no proxy, the same page, observed once on the machine this was written on)
|
||||
shows ZERO lies and ZERO lied fields, and ONE headless flag: ``webDriverIsOn``, because stock runs with ``navigator.webdriver``
|
||||
true. That flag is the automation itself and not a reading the browser should share, so the assertion here stays zero for
|
||||
the headless flags; for the lies and the lied fields stock's outcome is zero too, so they are asserted zero. The page's
|
||||
worker-scope key was absent from stock's fingerprint, so it is asserted only when the page produces it."""
|
||||
from invisible_core import _geo
|
||||
|
||||
exit_ip = rs.EXITS["germany"]
|
||||
expected_zone, _country = _truth_of(exit_ip)
|
||||
doh = FakeDoh(rs.ZONE_NAMES)
|
||||
site = _DetectorSite()
|
||||
gateway = rs.ExitGateway("exit", doh, udp="relay", tcp_exit=exit_ip, udp_exit=exit_ip, relay_host=this_host_address())
|
||||
try:
|
||||
monkeypatch.setattr(_geo, "discover_egress_ip", egress_by_proxy(gateway))
|
||||
with _launch(firefox_binary, gateway) as browser:
|
||||
context = browser.new_context(ignore_https_errors=True)
|
||||
page = context.new_page()
|
||||
page.goto(_detection_page_of(site), wait_until="domcontentloaded", timeout=60000)
|
||||
page.wait_for_function("() => !!(window.Fingerprint && window.Fingerprint.headless)", timeout=90000)
|
||||
outcome = page.evaluate(_DETECTION_JS)
|
||||
context.close()
|
||||
reached = ("127.0.0.1", site.port) in gateway.connects
|
||||
finally:
|
||||
site.close()
|
||||
gateway.close()
|
||||
doh.close()
|
||||
print("[detection page behind %s] %r" % (exit_ip, outcome))
|
||||
assert outcome["ready"], "the detection page never produced its fingerprint: %r" % outcome
|
||||
assert reached, "the detection page was not loaded through the gateway: %s" % gateway.connects
|
||||
assert outcome["lies"] == 0, "the detection page found %d lie(s): %r" % (outcome["lies"], outcome)
|
||||
assert outcome["headless"] == [], "the detection page raised headless flags: %r" % outcome
|
||||
lied = {k: v for k, v in (("zone", outcome["zone"]), ("intl", outcome["intl"]), ("worker", outcome["worker"]))
|
||||
if v and v.get("lied")}
|
||||
assert not lied, "the detection page marked as lied: %r" % lied
|
||||
assert outcome["zone"] is not None, "the detection page read no zone: %r" % outcome
|
||||
read = outcome["zone"]["location"].replace(", ", "/").replace(" ", "_")
|
||||
assert read in rs.acceptable_zones(expected_zone) or read == expected_zone, (
|
||||
"the detection page reads the zone %r, the exit's is %s" % (outcome["zone"]["location"], expected_zone))
|
||||
|
||||
|
||||
def test_the_exits_are_distinct_places():
|
||||
"""The six exits are six different zones (a test of the table, with no browser: it asks the database only), so a page that
|
||||
ignored the exit and kept one zone could not pass them all."""
|
||||
|
||||
@@ -12,7 +12,10 @@ With the engine NOT declared (``zoom.stealth.fpp.hw_seed`` = 0, the negative con
|
||||
runs in both launches, and that is what the test asserts there (``engine_reaches("firefox-69")`` decides).
|
||||
|
||||
Why a page sees it: what the probe reads of the host decided, through the feature status, whether WebGL existed and on which path; a slow or failed probe
|
||||
took WebGL away for the whole session. Each launch also asks a page for ``getContext('webgl')``.
|
||||
took WebGL away for the whole session. Each launch also asks a page for ``getContext('webgl')``: the request is what makes Firefox read
|
||||
``GfxInfo::GetData``. With the engine declared its answer is a verdict (the engine's own GL must give a context). With the engine off it is
|
||||
evidence only, written in the failure message and never judged: the context then comes from the host's Mesa, which a runner may not serve
|
||||
(hunt run 45998187350: one engine-off launch in 3083 got no context, "Exhausted GL driver options"), and a test cannot fail for the host's GL.
|
||||
|
||||
How it is observed (the process, not a value). A thread samples the processes below this test with psutil from before the launch to after the browser
|
||||
has closed (``tests/_process_sampler.py``). The probe lives for tens of milliseconds and a poll can fall between two samples, so the sampler alone never
|
||||
@@ -89,7 +92,9 @@ def _check(firefox_binary, tmp_path, extra_prefs, want_probe):
|
||||
_require_strace_can_trace(tmp_path)
|
||||
glx, problems, webgl, report, parents, goto_at = _launch(firefox_binary, tmp_path / "launch", extra_prefs)
|
||||
assert problems == [], "the observation cannot be trusted:\n%s\n%s" % ("\n".join(problems), report)
|
||||
assert webgl is True, "getContext('webgl') is null\n" + report
|
||||
report = "getContext('webgl') answered %r%s\n%s" % (webgl, "" if extra_prefs is None else " (engine off: evidence, not a verdict)", report)
|
||||
if extra_prefs is None:
|
||||
assert webgl is True, "getContext('webgl') is null with the engine declared\n" + report
|
||||
if want_probe:
|
||||
assert glx, "no GLX probe (gfxtest glx) below the browser's parent %s\n%s" % (parents, report)
|
||||
strays = [(e.pid, s.ppid) for e, s in glx if s.ppid not in parents]
|
||||
@@ -107,5 +112,6 @@ def test_a_declared_engine_starts_no_host_gl_probe(firefox_binary, engine_reache
|
||||
|
||||
|
||||
def test_an_undeclared_engine_starts_mozilla_s_host_gl_probe(firefox_binary, tmp_path):
|
||||
"""The negative control: with the engine off Mozilla's probe starts as in stock Firefox, on every engine, and the page still has WebGL."""
|
||||
"""The negative control: with the engine off Mozilla's probe starts as in stock Firefox, on every engine. The page still asks for WebGL
|
||||
(the request is what makes Firefox read GfxInfo); its answer, on the host's Mesa, is written down and not judged."""
|
||||
_check(firefox_binary, tmp_path, UNDECLARED, want_probe=True)
|
||||
@@ -0,0 +1,46 @@
|
||||
"""tests/vendor/README.md lists every vendored bundle with the sha256 of its bytes, and a bundle changed without its row is red.
|
||||
|
||||
The bundles are third-party code kept byte-identical to upstream; the README is where their version, licence and notice live. A bundle
|
||||
swapped, edited or added without touching that table would leave the provenance claiming something the file no longer is.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
VENDOR = Path(__file__).resolve().parent / "vendor"
|
||||
ROW = re.compile(r"^\|\s*`([^`]+)`\s*\|.*\|\s*`([0-9a-f]{64})`\s*\|", re.MULTILINE)
|
||||
|
||||
|
||||
def problems(directory: Path) -> list:
|
||||
"""What differs between the files of `directory` and the rows of its README.md, one line each."""
|
||||
rows = {name: digest for name, digest in ROW.findall((directory / "README.md").read_text(encoding="utf-8"))}
|
||||
files = {p.name: p for p in directory.iterdir() if p.is_file() and p.name != "README.md"}
|
||||
out = ["%s has no row" % n for n in sorted(files) if n not in rows]
|
||||
out += ["%s has a row and no file" % n for n in sorted(rows) if n not in files]
|
||||
out += ["%s differs from its sha256" % n for n in sorted(rows)
|
||||
if n in files and hashlib.sha256(files[n].read_bytes()).hexdigest() != rows[n]]
|
||||
return out
|
||||
|
||||
|
||||
def test_every_vendored_bundle_has_a_row_with_the_sha256_of_its_bytes():
|
||||
assert problems(VENDOR) == []
|
||||
|
||||
|
||||
def test_a_bundle_changed_without_its_row_is_red(tmp_path):
|
||||
(tmp_path / "a.js").write_bytes(b"one")
|
||||
(tmp_path / "README.md").write_text("| `a.js` | kind | 1 | MIT | `%s` | n |\n" % hashlib.sha256(b"one").hexdigest(), encoding="utf-8")
|
||||
assert problems(tmp_path) == []
|
||||
(tmp_path / "a.js").write_bytes(b"two")
|
||||
assert problems(tmp_path) == ["a.js differs from its sha256"]
|
||||
|
||||
|
||||
def test_a_bundle_with_no_row_and_a_row_with_no_bundle_are_red(tmp_path):
|
||||
(tmp_path / "a.js").write_bytes(b"one")
|
||||
(tmp_path / "README.md").write_text("| `b.js` | kind | 1 | MIT | `%s` | n |\n" % ("0" * 64), encoding="utf-8")
|
||||
assert problems(tmp_path) == ["a.js has no row", "b.js has a row and no file"]
|
||||
@@ -0,0 +1,139 @@
|
||||
"""The control launch of a WebGL test runs on the engine's own GL, never on the host's. No browser.
|
||||
|
||||
With the engine off (``zoom.stealth.fpp.hw_seed`` 0) Firefox loads the HOST's Mesa for WebGL; on a runner it once gave no context in 3083 launches
|
||||
("Exhausted GL driver options"), and a test cannot fail because of the runner's Mesa. The engine's own GL (``llvmpipe/`` next to the executable) is
|
||||
used only with the engine on, so the control of a test that compares a noised read with a read as drawn keeps the engine ON, with the same declared
|
||||
GPU, and declares only the canvas noise off (``zoom.stealth.canvas.substitute_pixels`` false), the control tests/test_webgl_noise_active.py already
|
||||
uses. These tests hold the prefs that the two e2e files pass to the launch, read from the call to ``InvisiblePlaywright`` itself (a recorder stands
|
||||
in for it and raises at once), and the rule of the verdict on the GL that both files call:
|
||||
|
||||
* tests/test_canvas_reads_as_drawn.py, the non-premultiplied WebGL canvas: neither launch has hw_seed 0; the control declares the noise off; the
|
||||
noised launch does not;
|
||||
* tests/test_canvas_create_pattern_projection_e2e.py: the same, for both of its launches;
|
||||
* the verdict on the GL: some engine process maps the engine's own libEGL.so.1 and libgallium-*, and no process maps a libEGL that is not the
|
||||
engine's; it does not apply on Windows nor to an engine without a GL of its own.
|
||||
* tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py needs the engine off (it proves Mozilla's own probe of the
|
||||
host's GL): its page still asks for WebGL, and with the engine off the answer is written down and not judged; with the engine declared
|
||||
a missing context is still red.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
import engine_process_tree as tree
|
||||
import invisible_playwright
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
HW_SEED = "zoom.stealth.fpp.hw_seed"
|
||||
SUBSTITUTE = "zoom.stealth.canvas.substitute_pixels"
|
||||
|
||||
|
||||
class _Launched(Exception):
|
||||
"""The recorder has what it came for: the launch goes no further."""
|
||||
|
||||
|
||||
def _prefs_of_the_launch(monkeypatch, module_name, launch):
|
||||
"""The ``extra_prefs`` that ``launch()`` hands to InvisiblePlaywright, in the module under test."""
|
||||
module = importlib.import_module(module_name)
|
||||
seen = {}
|
||||
|
||||
class Recorder:
|
||||
def __init__(self, *args, **kwargs):
|
||||
seen.update(kwargs)
|
||||
raise _Launched
|
||||
|
||||
monkeypatch.setattr(module, "InvisiblePlaywright", Recorder, raising=False)
|
||||
monkeypatch.setattr(invisible_playwright, "InvisiblePlaywright", Recorder)
|
||||
with pytest.raises(_Launched):
|
||||
launch(module)
|
||||
return dict(seen.get("extra_prefs") or {})
|
||||
|
||||
|
||||
def _the_two_launches_keep_the_engine_on_and_only_the_noise_differs(noised, control):
|
||||
assert (noised.get(HW_SEED) or 0) > 0, (
|
||||
"the noised launch does not declare the engine on (hw_seed %r): its prefs are %r" % (noised.get(HW_SEED), noised))
|
||||
assert (control.get(HW_SEED) or 0) > 0, (
|
||||
"the control launch has the engine off (hw_seed %r): WebGL would run on the host's GL, which a runner may not serve; its prefs are %r"
|
||||
% (control.get(HW_SEED), control))
|
||||
assert control.get(SUBSTITUTE) is False, (
|
||||
"the control launch does not declare the canvas noise off (%s is %r): its prefs are %r" % (SUBSTITUTE, control.get(SUBSTITUTE), control))
|
||||
assert noised.get(SUBSTITUTE) is not False, "the noised launch declares the canvas noise off: its prefs are %r" % noised
|
||||
|
||||
|
||||
def test_the_non_premultiplied_canvas_control_keeps_the_engine_on_and_declares_only_the_noise_off(monkeypatch):
|
||||
name = "test_canvas_reads_as_drawn"
|
||||
noised = _prefs_of_the_launch(monkeypatch, name, lambda m: m._non_premultiplied(None, True))
|
||||
control = _prefs_of_the_launch(monkeypatch, name, lambda m: m._non_premultiplied(None, False))
|
||||
_the_two_launches_keep_the_engine_on_and_only_the_noise_differs(noised, control)
|
||||
|
||||
|
||||
def test_the_create_pattern_control_keeps_the_engine_on_and_declares_only_the_noise_off(monkeypatch):
|
||||
name = "test_canvas_create_pattern_projection_e2e"
|
||||
noised = _prefs_of_the_launch(monkeypatch, name, lambda m: m._read(None, True))
|
||||
control = _prefs_of_the_launch(monkeypatch, name, lambda m: m._read(None, False))
|
||||
_the_two_launches_keep_the_engine_on_and_only_the_noise_differs(noised, control)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def engine_dir(tmp_path):
|
||||
"""An engine folder with a binary; the maps below are written with its real path, as /proc gives them."""
|
||||
folder = tmp_path / "engine"
|
||||
folder.mkdir()
|
||||
(folder / "firefox").write_bytes(b"")
|
||||
real = os.path.realpath(str(folder))
|
||||
return str(folder / "firefox"), os.path.join(real, "llvmpipe") + os.sep
|
||||
|
||||
|
||||
def test_a_process_that_maps_the_engines_own_gl_and_nothing_foreign_passes(engine_dir):
|
||||
binary, own = engine_dir
|
||||
tree.assert_the_gl_is_the_engines_own(binary, {10: [own + "libEGL.so.1", own + "libgallium-26.2.6.so"], 11: ["/usr/lib/libc.so.6"]})
|
||||
|
||||
|
||||
def test_a_host_libegl_in_any_process_fails_and_names_the_pid(engine_dir):
|
||||
binary, own = engine_dir
|
||||
below = {10: [own + "libEGL.so.1", own + "libgallium-26.2.6.so"], 11: ["/usr/lib/x86_64-linux-gnu/libEGL.so.1"]}
|
||||
with pytest.raises(AssertionError) as caught:
|
||||
tree.assert_the_gl_is_the_engines_own(binary, below)
|
||||
assert "11" in str(caught.value) and "/usr/lib/x86_64-linux-gnu/libEGL.so.1" in str(caught.value)
|
||||
|
||||
|
||||
def test_no_process_that_draws_on_the_engines_own_gl_fails(engine_dir):
|
||||
binary, own = engine_dir
|
||||
with pytest.raises(AssertionError):
|
||||
tree.assert_the_gl_is_the_engines_own(binary, {10: ["/usr/lib/x86_64-linux-gnu/libgallium-25.2.8.so"]})
|
||||
with pytest.raises(AssertionError):
|
||||
tree.assert_the_gl_is_the_engines_own(binary, {})
|
||||
|
||||
|
||||
def test_the_verdict_on_the_gl_does_not_apply_where_it_has_no_maps(engine_dir):
|
||||
binary, _ = engine_dir
|
||||
tree.assert_the_gl_is_the_engines_own(binary, None)
|
||||
|
||||
|
||||
def _host_gl_check(monkeypatch, webgl):
|
||||
"""`_check` of tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py with its launch stood in for: a probe born
|
||||
before the goto under the browser's parent, nothing wrong with the observation, and the page's answer to getContext('webgl') given."""
|
||||
import types
|
||||
|
||||
module = importlib.import_module("test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e")
|
||||
probe = (types.SimpleNamespace(pid=11), types.SimpleNamespace(ppid=10, first=1.0))
|
||||
monkeypatch.setattr(module.shutil, "which", lambda name: "/usr/bin/" + name)
|
||||
monkeypatch.setattr(module, "_require_strace_can_trace", lambda path: None)
|
||||
monkeypatch.setattr(module, "_launch", lambda binary, work, prefs: ([probe], [], webgl, "the report", {10}, 2.0))
|
||||
return module
|
||||
|
||||
|
||||
@pytest.mark.parametrize("webgl", [None, False])
|
||||
def test_the_host_gl_control_writes_down_a_missing_context_on_the_host_s_mesa_and_does_not_judge_it(monkeypatch, tmp_path, webgl):
|
||||
module = _host_gl_check(monkeypatch, webgl)
|
||||
module._check("firefox", tmp_path, module.UNDECLARED, want_probe=True)
|
||||
|
||||
|
||||
def test_the_declared_engine_still_requires_a_webgl_context(monkeypatch, tmp_path):
|
||||
module = _host_gl_check(monkeypatch, None)
|
||||
with pytest.raises(AssertionError, match="null with the engine declared"):
|
||||
module._check("firefox", tmp_path, None, want_probe=True)
|
||||
@@ -0,0 +1,111 @@
|
||||
"""scripts/ci_wer_dumps.py reads the header of a Windows Error Reporting dump and names the thread, the exception and the module that holds the faulting address.
|
||||
|
||||
A minidump is built here byte by byte (MINIDUMP_HEADER, a directory of a module list and an exception stream, MINIDUMP_MODULE records with their UTF-16 names,
|
||||
MINIDUMP_EXCEPTION_STREAM; layouts: https://learn.microsoft.com/windows/win32/api/minidumpapiset/), so no Windows and no debugger is needed:
|
||||
|
||||
* an access violation inside the second module is reported with its code name, the thread id, ``module+offset`` and the failed access (a write of an address);
|
||||
* an address in no module says so; a dump with no exception stream says it was taken on request;
|
||||
* a file that is not a minidump and an empty folder do not raise: the step must never fail the job, and no dump is the normal case;
|
||||
* the summary lists every dump with its size and is written to ``summary.txt`` beside them.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import struct
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))
|
||||
import ci_wer_dumps # noqa: E402
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
PYTHON_BASE, PYTHON_SIZE = 0x00007FF700000000, 0x20000
|
||||
XUL_BASE, XUL_SIZE = 0x00007FFA10000000, 0x5000000
|
||||
|
||||
|
||||
def _minidump(address: int | None, code: int = 0xC0000005, thread: int = 4242, params=(1, 0xDEAD0010)) -> bytes:
|
||||
"""A minidump with two modules and, when ``address`` is not None, an exception stream."""
|
||||
names = ["C:\\hostedtoolcache\\python.exe", "D:\\a\\_temp\\firefox\\xul.dll"]
|
||||
mods = [(PYTHON_BASE, PYTHON_SIZE), (XUL_BASE, XUL_SIZE)]
|
||||
n_streams = 2 if address is not None else 1
|
||||
dir_at = 32
|
||||
module_list_at = dir_at + 12 * n_streams
|
||||
module_list_size = 4 + 108 * len(mods)
|
||||
exception_at = module_list_at + module_list_size
|
||||
exception_size = 8 + 32 + 15 * 8 + 8
|
||||
strings_at = exception_at + (exception_size if address is not None else 0)
|
||||
blobs, rvas, at = [], [], strings_at
|
||||
for n in names:
|
||||
raw = n.encode("utf-16-le")
|
||||
blob = struct.pack("<I", len(raw)) + raw
|
||||
rvas.append(at)
|
||||
blobs.append(blob)
|
||||
at += len(blob)
|
||||
out = struct.pack("<4sIIIIIQ", b"MDMP", 0xA793, n_streams, dir_at, 0, 0, 0x2) # signature, version, streams, directory rva, checksum, time, flags
|
||||
out += struct.pack("<III", 4, module_list_size, module_list_at)
|
||||
if address is not None:
|
||||
out += struct.pack("<III", 6, exception_size, exception_at)
|
||||
out += struct.pack("<I", len(mods))
|
||||
for (base, size), rva in zip(mods, rvas):
|
||||
out += struct.pack("<QIIII", base, size, 0, 0, rva) + b"\0" * (108 - 24)
|
||||
if address is not None:
|
||||
padded = list(params) + [0] * (15 - len(params))
|
||||
out += struct.pack("<IIIIQQII", thread, 0, code, 0, 0, address, len(params), 0) + struct.pack("<15Q", *padded) + struct.pack("<II", 0, 0)
|
||||
for b in blobs:
|
||||
out += b
|
||||
return out
|
||||
|
||||
|
||||
def test_an_access_violation_inside_a_module_is_named_with_its_offset(tmp_path):
|
||||
dump = tmp_path / "python.exe.1234.dmp"
|
||||
dump.write_bytes(_minidump(XUL_BASE + 0x1234))
|
||||
d = ci_wer_dumps.read_dump(dump)
|
||||
assert (d["thread_id"], d["code"], d["address"]) == (4242, 0xC0000005, XUL_BASE + 0x1234)
|
||||
assert d["module"].endswith("xul.dll") and d["offset"] == 0x1234 and d["module_count"] == 2
|
||||
text = ci_wer_dumps.describe(dump)
|
||||
assert "EXCEPTION_ACCESS_VIOLATION on thread 4242" in text
|
||||
assert "xul.dll+0x1234" in text
|
||||
assert "failed access: write of 0x00000000DEAD0010" in text
|
||||
|
||||
|
||||
def test_the_first_module_is_found_too_and_an_address_in_none_says_so(tmp_path):
|
||||
first = tmp_path / "a.dmp"
|
||||
first.write_bytes(_minidump(PYTHON_BASE + 0x10))
|
||||
assert ci_wer_dumps.read_dump(first)["module"].endswith("python.exe")
|
||||
nowhere = tmp_path / "b.dmp"
|
||||
nowhere.write_bytes(_minidump(0x1000))
|
||||
assert "module" not in ci_wer_dumps.read_dump(nowhere)
|
||||
assert "no module of the dump" in ci_wer_dumps.describe(nowhere)
|
||||
|
||||
|
||||
def test_a_dump_with_no_exception_stream_says_it_was_taken_on_request(tmp_path):
|
||||
dump = tmp_path / "c.dmp"
|
||||
dump.write_bytes(_minidump(None))
|
||||
assert "no exception stream" in ci_wer_dumps.describe(dump)
|
||||
|
||||
|
||||
def test_a_file_that_is_not_a_minidump_does_not_raise(tmp_path):
|
||||
junk = tmp_path / "d.dmp"
|
||||
junk.write_bytes(b"not a dump" * 10)
|
||||
assert "unreadable header" in ci_wer_dumps.describe(junk)
|
||||
short = tmp_path / "e.dmp"
|
||||
short.write_bytes(b"MDMP")
|
||||
assert "unreadable header" in ci_wer_dumps.describe(short)
|
||||
|
||||
|
||||
def test_the_summary_lists_every_dump_with_its_size_and_is_saved_beside_them(tmp_path, capsys):
|
||||
(tmp_path / "python.exe.1.dmp").write_bytes(_minidump(XUL_BASE + 8))
|
||||
(tmp_path / "python.exe.2.dmp").write_bytes(_minidump(XUL_BASE + 16))
|
||||
assert ci_wer_dumps.main(["x", str(tmp_path)]) == 0
|
||||
out = capsys.readouterr().out
|
||||
assert ": 2\n" in out and "python.exe.1.dmp" in out and "python.exe.2.dmp" in out and "xul.dll+0x10" in out
|
||||
assert (tmp_path / "summary.txt").read_text(encoding="utf-8") == out
|
||||
|
||||
|
||||
def test_no_dump_and_no_folder_are_the_normal_case(tmp_path, capsys):
|
||||
assert ci_wer_dumps.main(["x", str(tmp_path)]) == 0
|
||||
assert ": 0\n" in capsys.readouterr().out
|
||||
assert ci_wer_dumps.main(["x", str(tmp_path / "missing")]) == 0
|
||||
assert not (tmp_path / "missing").exists()
|
||||
@@ -28,7 +28,7 @@ import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from engine_process_tree import maps_of_the_engine_below
|
||||
from engine_process_tree import assert_the_gl_is_the_engines_own, maps_of_the_engine_below, ships_its_own_gl
|
||||
|
||||
pytestmark = [pytest.mark.e2e,
|
||||
pytest.mark.skipif(not sys.platform.startswith("linux"), reason="the engine's own GL is Linux's")]
|
||||
@@ -226,16 +226,9 @@ ON_WINDOWS = {
|
||||
}
|
||||
|
||||
|
||||
def _ships_its_own_gl(binary_dir: str) -> bool:
|
||||
"""The engine's own GL is in the package from firefox-59: the test follows
|
||||
the package under test, not the core's version (the gate runs a candidate
|
||||
under the published core)."""
|
||||
return os.path.isfile(os.path.join(binary_dir, "llvmpipe", "libEGL.so.1"))
|
||||
|
||||
|
||||
def test_webgl_draws_on_the_engine_s_own_gl(firefox_binary):
|
||||
binary_dir = os.path.dirname(os.path.realpath(firefox_binary))
|
||||
if not _ships_its_own_gl(binary_dir):
|
||||
if not ships_its_own_gl(binary_dir):
|
||||
pytest.skip("this engine has no GL of its own (it ships from firefox-59)")
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
@@ -246,14 +239,7 @@ def test_webgl_draws_on_the_engine_s_own_gl(firefox_binary):
|
||||
# The engine processes BELOW THIS TEST, never the first one on the machine: an e2e run
|
||||
# has other workers' browsers in /proc, one of which has not drawn anything yet.
|
||||
below = maps_of_the_engine_below(os.getpid(), binary_dir)
|
||||
own = os.path.join(binary_dir, "llvmpipe") + os.sep
|
||||
assert below, "no engine process below this test"
|
||||
drew = [pid for pid, maps in below.items()
|
||||
if own + "libEGL.so.1" in maps and any(m.startswith(own + "libgallium-") for m in maps)]
|
||||
assert drew, {pid: [m for m in maps if "EGL" in m or "gallium" in m] for pid, maps in below.items()}
|
||||
foreign = {pid: [m for m in maps if "libEGL" in os.path.basename(m) and not m.startswith(own)]
|
||||
for pid, maps in below.items()}
|
||||
assert not any(foreign.values()), foreign
|
||||
assert_the_gl_is_the_engines_own(firefox_binary, below)
|
||||
|
||||
|
||||
def test_every_declared_extension_answers_as_on_windows(firefox_binary):
|
||||
|
||||
@@ -6,7 +6,7 @@ Two layers, both runnable on GitHub CI:
|
||||
samples. No browser, no proxy, no network. These lock in every rule we found
|
||||
on 2026-06-06: host must be mDNS ``.local``; an srflx must carry a
|
||||
GENUINE nICEr priority (never ``local_pref == 0xFFFF``) and a
|
||||
stable, distinct foundation; CreepJS's resolver must return the egress, and a
|
||||
stable, distinct foundation; the resolver of a public headless detector must return the egress, and a
|
||||
host-only SDP must read as "blocked". They run in the standard ``tests.yml``.
|
||||
|
||||
* **e2e** (`@pytest.mark.e2e`) - launch the patched binary and verify the live
|
||||
@@ -99,7 +99,7 @@ def srflx_candidates(cands):
|
||||
|
||||
def host_is_mdns(cands):
|
||||
"""Every host candidate must be a ``<uuid>.local`` mDNS name, never a raw
|
||||
LAN IP (the §9.4 leak form that fails BrowserLeaks)."""
|
||||
LAN IP (the §9.4 leak form that fails a public leak-test page)."""
|
||||
hosts = host_candidates(cands)
|
||||
return bool(hosts) and all(is_mdns(c["address"]) for c in hosts)
|
||||
|
||||
@@ -127,10 +127,10 @@ def srflx_realness(cand, expected_ip=None):
|
||||
return (not reasons), reasons
|
||||
|
||||
|
||||
def creep_get_ipaddress(sdp):
|
||||
"""Faithful port of CreepJS's getIPAddress(sdp): connection line first, then
|
||||
def resolve_ipaddress_from_sdp(sdp):
|
||||
"""Faithful port of the getIPAddress(sdp) of a public headless detector: connection line first, then
|
||||
the first candidate IP; '0.0.0.0' counts as blocked. Returns None if blocked
|
||||
- i.e. exactly what makes CreepJS render 'stun connection: blocked'."""
|
||||
- i.e. exactly what makes that detector render 'stun connection: blocked'."""
|
||||
blocked = "0.0.0.0"
|
||||
conn = (re.findall(r"c=IN\s.+\s", sdp) or [""])[0].strip().split(" ")
|
||||
conn_ip = conn[2] if len(conn) > 2 else ""
|
||||
@@ -203,22 +203,22 @@ def test_srflx_foundation_distinct_from_host():
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_creep_resolver_returns_egress_when_srflx_present():
|
||||
assert creep_get_ipaddress(SDP_GOOD) == "203.0.113.7"
|
||||
def test_the_resolver_returns_the_egress_when_srflx_is_present():
|
||||
assert resolve_ipaddress_from_sdp(SDP_GOOD) == "203.0.113.7"
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_creep_resolver_reports_blocked_for_host_only():
|
||||
def test_the_resolver_reports_blocked_for_host_only():
|
||||
"""The exact false-green we shipped: host-only (.local) SDP → no public IP
|
||||
→ CreepJS shows 'blocked'. The resolver must return None here."""
|
||||
assert creep_get_ipaddress(SDP_BLOCKED) is None
|
||||
→ that detector shows 'blocked'. The resolver must return None here."""
|
||||
assert resolve_ipaddress_from_sdp(SDP_BLOCKED) is None
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_mdns_host_is_invisible_to_creep_resolver():
|
||||
def test_mdns_host_is_invisible_to_the_resolver():
|
||||
"""A .local host must NOT be mis-read as an IP (the hyphen in the UUID is
|
||||
what makes CreepJS skip it and fall through to the srflx)."""
|
||||
assert creep_get_ipaddress("v=0\r\nc=IN IP4 0.0.0.0\r\n" f"a={HOST_MDNS}\r\n") is None
|
||||
what makes that detector skip it and fall through to the srflx)."""
|
||||
assert resolve_ipaddress_from_sdp("v=0\r\nc=IN IP4 0.0.0.0\r\n" f"a={HOST_MDNS}\r\n") is None
|
||||
|
||||
|
||||
# ──────────────────────────────────────────────────────────────────────────
|
||||
@@ -235,7 +235,7 @@ from invisible_core.prefs import translate_profile_to_prefs # noqa: E402
|
||||
def test_shipped_webrtc_baseline_is_the_validated_config():
|
||||
prefs = translate_profile_to_prefs(generate_profile(seed=42), timezone="America/New_York")
|
||||
# host candidate must be mDNS .local like vanilla Firefox (manually
|
||||
# validated on BrowserLeaks/CreepJS through a residential proxy) - not a
|
||||
# validated on public leak-test and detector pages through a residential proxy) - not a
|
||||
# raw LAN IP.
|
||||
assert prefs["media.peerconnection.ice.obfuscate_host_addresses"] is True
|
||||
# IPv6 is removed from ICE gathering, but NOT from a pref: since 2026-08-25
|
||||
@@ -1270,7 +1270,7 @@ def test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all(monkeypatch):
|
||||
# ──────────────────────────────────────────────────────────────────────────
|
||||
# The egress IP must not change MID-SESSION.
|
||||
#
|
||||
# Measured on 2026-08-25 on browserleaks, behind a residential proxy: the
|
||||
# Measured on 2026-08-25 on a public leak-test page, behind a residential proxy: the
|
||||
# page exited from 203.0.113.30 while a second reading of the exit said
|
||||
# 216.131.76.64, and the site says so plainly ("WebRTC IP doesn't match your
|
||||
# Remote IP"). It was not a regression in the binary - interleaved A/B between
|
||||
|
||||
Vendored
+13
-16
@@ -2,23 +2,20 @@
|
||||
|
||||
These are upstream, unmodified, MIT-licensed browser-fingerprinting / bot-detection
|
||||
libraries, vendored so the detector e2e tests run **hermetically and identically**
|
||||
on a dev box and on a GitHub runner (no external CDN at test time - Firefox
|
||||
tracking-protection blocks the openfpcdn.io CDN anyway, and we want CI offline).
|
||||
on a dev box and on a GitHub runner (no external CDN at test time, and we want CI offline).
|
||||
|
||||
They are served from a localhost HTTP server and loaded into the patched Firefox;
|
||||
the tests assert the REAL detectors don't flag the stealth build (BotD: `bot===false`;
|
||||
fpscanner: engine-agnostic rules clean; CreepJS: `headlessRating===0` + no JS-proxy
|
||||
tells) and that the fingerprint is stable (FingerprintJS: same `visitorId` across
|
||||
launches). CreepJS runs fully offline - the tests abort every non-loopback request,
|
||||
so its optional crowd-comparison POST never fires and the verdict is computed locally.
|
||||
the tests assert the REAL detectors don't flag the stealth build (bot detector: `bot===false`;
|
||||
rules scanner: engine-agnostic rules clean) and that the fingerprint is stable (fingerprint
|
||||
library: same `visitorId` across launches).
|
||||
|
||||
| File | Package | Version | Source | License |
|
||||
|---|---|---|---|---|
|
||||
| `botd-2.0.0.esm.js` | `@fingerprintjs/botd` | 2.0.0 | https://cdn.jsdelivr.net/npm/@fingerprintjs/botd@2.0.0/dist/botd.esm.js | MIT |
|
||||
| `fingerprintjs-5.2.0.umd.min.js` | `@fingerprintjs/fingerprintjs` | 5.2.0 | https://cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs@5.2.0/dist/fp.umd.min.js | MIT |
|
||||
| `fpscanner-1.0.6.es.js` | `fpscanner` | 1.0.6 | https://cdn.jsdelivr.net/npm/fpscanner@1.0.6/dist/fpScanner.es.js | MIT |
|
||||
| `creepjs-10aa672.js` | `abrahamjuliot/creepjs` | git `10aa6724` | https://raw.githubusercontent.com/abrahamjuliot/creepjs/10aa6724cd33a1015db1574211890518cd04f0cc/docs/creep.js | MIT |
|
||||
Every file of this directory has one row below, with the sha256 of its bytes;
|
||||
`tests/test_the_vendored_bundles_are_listed_with_their_hash.py` is red if a file has no row, a row has no
|
||||
file, or a hash differs. To update a bundle: drop the pinned upstream dist here, bump the version in the
|
||||
file name, and change its row (name, version, sha256).
|
||||
|
||||
All MIT (FingerprintJS Inc. / Antoine Vastel / Abraham Juliot). To update: download
|
||||
the pinned dist (jsdelivr for npm packages, raw.githubusercontent for CreepJS at a
|
||||
commit SHA), drop it here, and bump the version in the filename + this table.
|
||||
| File | Kind | Version | SPDX license | sha256 | Licence notice |
|
||||
|---|---|---|---|---|---|
|
||||
| `bot-detector-2.0.0.esm.js` | client-side bot detector | 2.0.0 | MIT | `f438ed251dc7414ece9d4a2b6941441ad9ffae1a1905817f5f0c7366e701dd86` | in the file header (copyright line and licence reference) |
|
||||
| `fingerprint-library-5.2.0.umd.min.js` | open-source fingerprint library | 5.2.0 | MIT | `a8de5ead580c42d2e2b01a5752aa08da510852230971aa18554d67cd5de5775b` | in the file header (copyright line and full licence text) |
|
||||
| `rules-scanner-1.0.6.es.js` | automation-rules scanner | 1.0.6 | MIT | `4ae2557e92451687e275877039d4dff4601ad1344c5bc8206e9c7087fbf5e91a` | in the file header (upstream's MIT notice: the copyright holder and year and the full permission text verbatim; the contact address is left out) |
|
||||
File renamed without changes.
Vendored
-9710
File diff suppressed because it is too large.
Load diff
Vendored
File renamed without changes.
@@ -1,3 +1,26 @@
|
||||
/*!
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2017 antoinevastel
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
function ie() {
|
||||
return navigator.webdriver;
|
||||
}
|
||||
Reference in new issue
Block a user