tests: the host oracle's one rule on real A/A and A/B footprints and on built cases (red on the current judge)
This commit is contained in:
1 parent
b44c5d64d0
commit
583516ca34
20 files changed
+550
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# Source of the fixtures of run 45060573559
|
||||
|
||||
- what: Windows, A/A and A/B (the candidate was installed in another folder)
|
||||
- repository: oss-invisible/firefox_antidetect_patch
|
||||
- run: 45060573559
|
||||
- job: 137346793388 (gate / wrapper.e2e.ab_host-win-x86_64)
|
||||
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-22T21:08:09Z)
|
||||
- downloaded: 2026-11-23, `gh run download 45060573559 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
|
||||
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
|
||||
|
||||
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|
||||
|---|---|---|---|---|
|
||||
| footprint-68-again.json | ab-host/footprint-68-again.json | 41263526d97abe22270698c22b4d2a2d163ccf61382c272abeb78fd9cb6982b6 | c8ca6c583f5fbcbac9ac0648dac29f58882c152c78ef82b9ed0f0986150f1fab | 89073 |
|
||||
| footprint-68.json | ab-host/footprint-68.json | 55bf8cb960d099670fc80b9fab1afe6932c77ea967e783274f7d404e293326dd | e231b2b166157af9328374a2ecbd4ee0ca2f3072acdc24cfcd380fa39db880c2 | 105945 |
|
||||
| footprint-candidate.json | ab-host/footprint-candidate.json | 3dd39734573cab78294c73efb084cf5dbd78cb4f6afa2e6ba015f43f82bcecda | 94a1857d12a6c43b9278393eacc87f11ca68f5043d59bfbd38a22a8b991b5adb | 98675 |
|
||||
|
||||
## Reduction
|
||||
|
||||
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
|
||||
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
|
||||
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
|
||||
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
|
||||
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
|
||||
|
||||
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
|
||||
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
|
||||
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
|
||||
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
|
||||
|
||||
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
|
||||
|
||||
## Neutralisation (after the reduction)
|
||||
|
||||
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
|
||||
|
||||
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
|
||||
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
|
||||
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
|
||||
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
|
||||
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
|
||||
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
|
||||
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
|
||||
|
||||
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
|
||||
|
||||
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
|
||||
|
||||
A/A red: 1 problem, 13 rare system modules only run A has in its measured launches (more than 5). A/B red: 217 differences (the install-folder hash paths among them).
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":5},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradminLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\4d49b3757c3cfd0c\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\s-1-5-21-3414932011-3134797172-3625386099-500-mergedresources-0.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\1275c47b46d291f6\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resoLine truncated
|
||||
@@ -0,0 +1,47 @@
|
||||
# Source of the fixtures of run 45077330681
|
||||
|
||||
- what: Windows, A/A only (the playwright repository; no candidate)
|
||||
- repository: oss-invisible/playwright
|
||||
- run: 45077330681
|
||||
- job: 137377414516 (e2e (host, windows))
|
||||
- artifact: invpw-evidence-host-windows-45077330681-1 (created 2026-11-22T22:36:31Z)
|
||||
- downloaded: 2026-11-23, `gh run download 45077330681 --repo oss-invisible/playwright -n invpw-evidence-host-windows-45077330681-1 -D <folder>/data`
|
||||
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
|
||||
|
||||
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|
||||
|---|---|---|---|---|
|
||||
| footprint-68-again.json | invpw-evidence/ab-host/footprint-68-again.json | 557b4bb17842770dd63d90c005e5926d57072695dae509f134394ad33e54e418 | 8c9e863246b6aaee7066ea37faa57ce4cb3427e478ea070eb178fb75d82cfb8d | 56069 |
|
||||
| footprint-68.json | invpw-evidence/ab-host/footprint-68.json | 39be3fff6cdb2721a3209ee27b055b03474697cb729f241f41b5e0d6c80cc296 | a55d9d5dcf3504d0e8c42f2db429cc833b21ad03a26b3fb806bc697bc57cd446 | 85052 |
|
||||
|
||||
## Reduction
|
||||
|
||||
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
|
||||
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
|
||||
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
|
||||
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
|
||||
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
|
||||
|
||||
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
|
||||
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
|
||||
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
|
||||
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
|
||||
|
||||
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
|
||||
|
||||
## Neutralisation (after the reduction)
|
||||
|
||||
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
|
||||
|
||||
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
|
||||
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
|
||||
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
|
||||
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
|
||||
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
|
||||
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
|
||||
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
|
||||
|
||||
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
|
||||
|
||||
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
|
||||
|
||||
A/A red: 80 differences, all of seed 0 (the shortcut inventory of the first launch of run A, left out only when the other side has none).
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\system32\\en-us\\kernelbase.dll.mui","c:\\windows\\system32\\en-us\\propsys.dll.mui","c:\\windows\\system32\\fltlib.dll","c:\\windows\\system32\\iertutil.dll","c:\\windows\\system32\\linkinfo.dll","c:\\windows\\system32\\mpr.dll","c:\\windows\\system32\\netutils.dll","c:\\windows\\system32\\onecoreuapcommonproxystub.dll","c:\\windows\\system32\\srvcli.dll","c:\\windows\\system32\\sspicli.dll","c:\\windows\\system32\\urlmon.dll","c:\\windows\\system32\\virtdisk.dll","c:\\windows\\system32\\windows.applicationmodel.dll","c:\\windows\\system32\\wpnapps.dll","c:\\windows\\syswow64\\propsys.dll"],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":8,"utility/sandboxingKind=0":1},"net":null,"pingsenders":[]},"s0":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\rLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":5},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\google chrome.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\system32\\en-us\\kernelbase.dll.mui","c:\\windows\\system32\\en-us\\propsys.dll.mui","c:\\windows\\system32\\fltlib.dll","c:\\windows\\system32\\iertutil.dll","c:\\windows\\system32\\linkinfo.dll","c:\\windows\\system32\\mpr.dll","c:\\windows\\system32\\netutils.dll","c:\\windows\\system32\\onecoreuapcommonproxystub.dll","c:\\windows\\system32\\srvcli.dll","c:\\windows\\system32\\sspicli.dll","c:\\windows\\system32\\urlmon.dll","c:\\windows\\system32\\virtdisk.dll","c:\\windows\\system32\\windows.applicationmodel.dll","c:\\windows\\system32\\wpnapps.dll","c:\\windows\\syswow64\\propsys.dll"],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":8,"utility/sandboxingKind=0":1},"net":null,"pingsenders":[]},"s0":{"inventory":["c:","c:\\program files","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\desktop.ini","c:\\program files\\desktop.ini:zone.identifier","c:\\program files\\google\\chrome\\application\\chrome.exe","c:\\programdata\\microsoft","c:\\programdata\\microsoft\\desktop.ini","c:\\programdata\\microsoft\\windows","c:\\programdata\\microsoft\\windows\\start menu","c:\\programdata\\microsoft\\windows\\start menu\\desktop.ini","c:\\programdata\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\programdata\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-eLine truncated
|
||||
@@ -0,0 +1,48 @@
|
||||
# Source of the fixtures of run 45077433049
|
||||
|
||||
- what: Windows, A/A and A/B
|
||||
- repository: oss-invisible/firefox_antidetect_patch
|
||||
- run: 45077433049
|
||||
- job: 137400368937 (gate / wrapper.e2e.ab_host-win-x86_64)
|
||||
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-23T00:05:22Z)
|
||||
- downloaded: 2026-11-23, `gh run download 45077433049 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
|
||||
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
|
||||
|
||||
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|
||||
|---|---|---|---|---|
|
||||
| footprint-68-again.json | ab-host/footprint-68-again.json | 3daf6c754f32680022498d0f56b720afd939dc41d0d3bb29a03e28ee80741179 | 357b93f0cda5c59800627fef2c9e6a68099f5e6395bc45ef5c6cbb40a4c9779e | 100111 |
|
||||
| footprint-68.json | ab-host/footprint-68.json | b374a6b6cb5088e7491df2a2019c0d584445e0c1b0b9d34e81e45a5e697ba787 | 74f7e8403e6bfc36aca564b51d9fb428345b81d16a25bbabb90fa8f98facfed7 | 141298 |
|
||||
| footprint-candidate.json | ab-host/footprint-candidate.json | c91eddfce80bcb7da5e173196929184a3504cd8c5e72cf5c29814c3f870e3300 | b0a55df560c5f069bfedd49d1cb21beae739cd858c992b72f4daf52988f17f64 | 112082 |
|
||||
|
||||
## Reduction
|
||||
|
||||
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
|
||||
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
|
||||
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
|
||||
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
|
||||
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
|
||||
|
||||
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
|
||||
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
|
||||
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
|
||||
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
|
||||
|
||||
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
|
||||
|
||||
## Neutralisation (after the reduction)
|
||||
|
||||
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
|
||||
|
||||
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
|
||||
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
|
||||
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
|
||||
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
|
||||
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
|
||||
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
|
||||
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
|
||||
|
||||
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
|
||||
|
||||
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
|
||||
|
||||
A/A red: 1 problem, 34 rare system modules only run B has (more than 5). A/B red: 9.
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpaneLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"backgroundtask/pingsender":1,"crashreporter.exe":1,"directxdatabaseupdater.exe":1,"parent":2,"rdd":1,"socket":1,"socket<-pingsender":1,"tab/isForBrowser":4},"net":null,"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\s-1-5-21-3414932011-3134797172-3625386099-500-mergedresources-0.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resources.en-us.pri","c:\\windows\\immersivecontrolpanel\\resources.pri","c:\\windows\\rescaLine truncated
|
||||
@@ -0,0 +1,48 @@
|
||||
# Source of the fixtures of run 45088980743-linux
|
||||
|
||||
- what: Linux, A/A and A/B
|
||||
- repository: oss-invisible/firefox_antidetect_patch
|
||||
- run: 45088980743
|
||||
- job: 137413984947 (gate / wrapper.e2e.ab_host-linux-x86_64)
|
||||
- artifact: wrapper.e2e.ab_host-linux
|
||||
- downloaded: 2026-11-23, `gh run download 45088980743 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-linux -D <folder>/data`
|
||||
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
|
||||
|
||||
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|
||||
|---|---|---|---|---|
|
||||
| footprint-68-again.json | ab-host/footprint-68-again.json | 308ba1039c747e7362245663d392279499f1f177a93f1f69bc035cb08e89974d | 5c3257eb88e922767d38c13d309b11bd6e266ab230b7fca29abe78291026f805 | 41048 |
|
||||
| footprint-68.json | ab-host/footprint-68.json | 6dd3bd68a24d2d077a3f860e3d13de633ecab1f35f58d029badf233b555b095b | 5bb457fe41a0b07da03423e54b9eb4c716eb2c8bcf6b568d638a813252e2118a | 42717 |
|
||||
| footprint-candidate.json | ab-host/footprint-candidate.json | 7390dc8656f8c944835d58eceb1eed89a41e6e0a65779392e83214c6e4f6fd2d | 6cca5b4cc41dad5ff376a07c4a1c08ea6bfb3a7b77dd87a340ccde743c63ce2a | 42860 |
|
||||
|
||||
## Reduction
|
||||
|
||||
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
|
||||
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
|
||||
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
|
||||
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
|
||||
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
|
||||
|
||||
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
|
||||
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
|
||||
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
|
||||
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
|
||||
|
||||
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
|
||||
|
||||
## Neutralisation (after the reduction)
|
||||
|
||||
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
|
||||
|
||||
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
|
||||
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
|
||||
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
|
||||
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
|
||||
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
|
||||
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
|
||||
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
|
||||
|
||||
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
|
||||
|
||||
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
|
||||
|
||||
A/A green. A/B green, with 15 declared differences (gfxtest-69).
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.37:443","parent: connect tcp AF_INET 203.0.113.29:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.46:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.58:443","parent: connect tcp AF_INET 203.0.113.2:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.14:443","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.56:0","parent: connect udp AF_INET 203.0.113.57:0","parent: connect udp AF_INET 203.0.113.58:0","parent: connect udp AF_INET 203.0.113.59:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.37:443","parent: send udp AF_INET 203.0.113.29:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.25:443","parent: connect tcp AF_INET 203.0.113.31:443","parent: connect tcp AF_INET 203.0.113.30:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.40:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.41:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.44:443","parent: connect tcp AF_INET 203.0.113.3:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.16:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.47:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INETLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.23:443","parent: connect tcp AF_INET 203.0.113.31:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.45:80","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.49:443","parent: connect tcp AF_INET 203.0.113.50:443","parent: connect tcp AF_INET 203.0.113.2:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect udp AF_INET 203.0.113.26:0","parent: connect udp AF_INET 203.0.113.27:0","parent: connect udp AF_INET 203.0.113.23:0","parent: connect udp AF_INET 203.0.113.24:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.50:0","parent: connect udp AF_INET 203.0.113.51:0","parent: connect udp AF_INET 203.0.113.52:0","parent: connect udp AF_INET 203.0.113.53:0","parent: connect udp AF_INET 203.0.113.54:0","parent: connect udp AF_INET 203.0.113.55:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.23:443","parent: send udp AF_INET 203.0.113.31:443","parent: send udp AF_INET 203.0.113.50:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"gfxtest":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.41:80","parent: connect tcp AF_INET 203.0.113.46:443","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.43:443","parent: connect tcp AF_INET 203.0.113.54:443","parent: connect tcp AF_INET 203.0.113.57:443","parent: connect tcp AF_INET 203.0.113.1:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.9:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.15:443","parent: connect tcp AF_INET 203.0.113.17:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.47:0","parent: connect udp AF_INET 203.0.113.50:0","parent: connect udp AF_INET 203.0.113.51:0","parent: connect udp AF_INET 203.0.113.52:0","parent: connect udp AF_INET 20Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"RDD Process":1,"Web Content":3,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.36:443","parent: connect tcp AF_INET 203.0.113.28:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.46:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.58:443","parent: connect tcp AF_INET 203.0.113.4:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.16:443","parent: connect tcp AF_INET 203.0.113.21:443","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: connect udp AF_INET 203.0.113.44:0","parent: connect udp AF_INET 203.0.113.56:0","parent: connect udp AF_INET 203.0.113.57:0","parent: connect udp AF_INET 203.0.113.58:0","parent: connect udp AF_INET 203.0.113.59:0","parent: connect udp AF_INET 203.0.113.1:0","parent: connect udp AF_INET 203.0.113.2:0","parent: connect udp AF_INET 203.0.113.3:0","parent: connect udp AF_INET 203.0.113.4:0","parent: connect udp AF_INET 203.0.113.20:0","parent: connect udp AF_INET 203.0.113.21:0","parent: connect udp AF_INET 203.0.113.18:0","parent: connect udp AF_INET 203.0.113.19:0","parent: netlink NETLINK_ROUTE","parent: netlink NETLINK_ROUTE RTM_GETADDR","parent: netlink NETLINK_ROUTE RTM_GETLINK","parent: netlink NETLINK_ROUTE RTM_GETNEIGH","parent: netlink NETLINK_ROUTE RTM_GETROUTE","parent: netlink NETLINK_ROUTE bind nl_groups=0x000555","parent: send udp AF_INET 203.0.113.36:443","parent: send udp AF_INET 203.0.113.28:443","parent: send udp AF_INET 203.0.113.21:443"],"pingsenders":[{"form":"backgroundtask","parent":"parent","type":"new-profile"}]},"idle":{"inventory":[],"kinds":{"Isolated Web Co":1,"Privileged Cont":1,"RDD Process":1,"Utility Process":1,"Web Content":4,"WebExtensions":1,"backgroundtask/pingsender":1,"crashreporter":1,"fork<-parent":1,"forkserver":1,"parent":1,"socket":1,"socket<-pingsender":1},"net":["backgroundtask/pingsender: connect tcp AF_INET 203.0.113.7:443","backgroundtask/pingsender: netlink NETLINK_ROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETADDR","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETLINK","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETNEIGH","backgroundtask/pingsender: netlink NETLINK_ROUTE RTM_GETROUTE","backgroundtask/pingsender: netlink NETLINK_ROUTE bind nl_groups=0x000555","backgroundtask/pingsender: send udp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.36:443","parent: connect tcp AF_INET 203.0.113.28:443","parent: connect tcp AF_INET 203.0.113.39:443","parent: connect tcp AF_INET 203.0.113.40:443","parent: connect tcp AF_INET 203.0.113.41:443","parent: connect tcp AF_INET 203.0.113.45:80","parent: connect tcp AF_INET 203.0.113.42:443","parent: connect tcp AF_INET 203.0.113.44:443","parent: connect tcp AF_INET 203.0.113.56:443","parent: connect tcp AF_INET 203.0.113.5:443","parent: connect tcp AF_INET 203.0.113.1:443","parent: connect tcp AF_INET 203.0.113.8:443","parent: connect tcp AF_INET 203.0.113.10:443","parent: connect tcp AF_INET 203.0.113.11:443","parent: connect tcp AF_INET 203.0.113.12:443","parent: connect tcp AF_INET 203.0.113.13:443","parent: connect tcp AF_INET 203.0.113.6:443","parent: connect tcp AF_INET 203.0.113.7:443","parent: connect tcp AF_INET 203.0.113.17:443","parent: connect udp AF_INET 203.0.113.22:0","parent: connect udp AF_INET 203.0.113.31:0","parent: connect udp AF_INET 203.0.113.32:0","parent: connect udp AF_INET 203.0.113.33:0","parent: connect udp AF_INET 203.0.113.34:0","parent: connect udp AF_INET 203.0.113.35:0","parent: connect udp AF_INET 203.0.113.36:0","parent: connect udp AF_INET 203.0.113.37:0","parent: connect udp AF_INET 203.0.113.38:0","parent: connect udp AF_INET 203.0.113.41:0","parent: connect udp AF_INET 203.0.113.45:0","parent: connect udp AF_INET 203.0.113.46:0","parent: coLine truncated
|
||||
@@ -0,0 +1,48 @@
|
||||
# Source of the fixtures of run 45088980743
|
||||
|
||||
- what: Windows, A/A and A/B
|
||||
- repository: oss-invisible/firefox_antidetect_patch
|
||||
- run: 45088980743
|
||||
- job: 137413984894 (gate / wrapper.e2e.ab_host-win-x86_64)
|
||||
- artifact: wrapper.e2e.ab_host-windows (created 2026-11-23T00:59:44Z)
|
||||
- downloaded: 2026-11-23, `gh run download 45088980743 --repo oss-invisible/firefox_antidetect_patch -n wrapper.e2e.ab_host-windows -D <folder>/data`
|
||||
- the downloaded artifact is kept outside the repository, with a `meta.json` of the sha256 of every file
|
||||
|
||||
| fixture | origin file | sha256 of the origin file | sha256 of the fixture | bytes |
|
||||
|---|---|---|---|---|
|
||||
| footprint-68-again.json | ab-host/footprint-68-again.json | e0486279e53870b3b8ce60a0328876e6dc7707d2908a66168cf06423e7f1820d | e3b32093fbc5e6fd53e68c6ac4f5a4681abf21f69722c0beff1bd0327015e0b3 | 135918 |
|
||||
| footprint-68.json | ab-host/footprint-68.json | 605fab66febfcc4cb3338f079843609614c06b35330bd229d2cd9be25eb76966 | 899c9ba171b6a45ab7de62a82a1ac695f8c43885e81f3b380cc92a8866c56ef4 | 151589 |
|
||||
| footprint-candidate.json | ab-host/footprint-candidate.json | 674fc7554993cc307a8ffca74c51c26723819e56e65a2718d0ab6f4b7b39f11e | 273bb5df9246ed89bc3f4a38a09ba151cffd1ee5cadadafe6385a59d4581d7f0 | 123989 |
|
||||
|
||||
## Reduction
|
||||
|
||||
For every footprint the oracle wrote (`footprint-68.json`, `footprint-68-again.json`, `footprint-candidate.json`) the reduction keeps, per launch (the warm-up, each seed `s<seed>`,
|
||||
`idle`, `bare`, in that order): `kinds`, `pingsenders`, `net` and `inventory` as they are, and for the host paths a table `paths: {path: {"mask", "by"}}` where `mask` has one
|
||||
character per launch (`1` when the launch touched the path) and `by` is the union of the processes (`touched_by`) that touched it. The paths are the `files` of each launch (host paths,
|
||||
already classified by the oracle), nothing is added, nothing is dropped. Everything else of the footprint (the processes, the lifecycle, the close, the crash evidence, the trace, the
|
||||
creates, the paths of ours) is left out: the rule does not read it. The test rebuilds a footprint of the oracle's format from it (`rebuild` in tests/test_ab_host_aa_stable.py).
|
||||
|
||||
launches = {"warmup": fp["warmup"], **{"s%s" % s["seed"]: s for s in fp["seeds"]}, "idle": fp["idle"], "bare": fp["bare"]}
|
||||
paths = {p: {"mask": "".join("1" if p in l["files"] else "0" for l in launches.values()),
|
||||
"by": sorted({k for l in launches.values() for k in l.get("touched_by", {}).get(p, [])})} for p in sorted({p for l in launches.values() for p in l["files"]})}
|
||||
out = {"engine", "platform", "launches": [names], "seeds": {name: seed}, "launch": {name: {kinds, pingsenders, net, inventory}}, "paths": paths} # json, sort_keys, compact
|
||||
|
||||
Checked: the old judge (b44c5d64) on the rebuilt footprints gives the same verdicts and counts as on the original footprints.
|
||||
|
||||
## Neutralisation (after the reduction)
|
||||
|
||||
The reduced footprints carry the addresses of the hosts the engine reached and the account folder of the runner; they are made neutral, in the same way in every fixture of every run:
|
||||
|
||||
- every public IPv4 address (the scanner's own definition: not private, not documentation, not CGNAT, not loopback, not multicast) is replaced by an address of the documentation
|
||||
ranges (203.0.113.0/24, then 198.51.100.0/24, then 192.0.2.0/24), ONE to ONE: the distinct public addresses of all the fixtures, in numeric order, take the next free address, so two equal
|
||||
entries stay equal and two different ones stay different. The judge reads a destination only as its class (`net_class`: `<kind>: connect tcp public:443`, whatever the address); the check
|
||||
before and after on every net entry of every launch (917 of them) gives the same class, and the same pingsender destination, entry by entry;
|
||||
- the folder `users` of the C drive becomes `profiles`, and the first folder under `/home/` becomes the same name under `/var/`, in every path and every key. The replacement is the
|
||||
same string for every path, so two paths are equal after it if and only if they were before (checked: the number of distinct paths of each footprint is the same, every mask and every set of
|
||||
touching processes is unchanged). The judge does not read the class `host` or `ours` of a path, only the paths, so nothing else depends on the spelling of those prefixes.
|
||||
|
||||
The fixtures are the reduction followed by this step; the sha256 of the fixtures in the table above are the ones after it.
|
||||
|
||||
## The old judgement on these data (scripts/ci_ab_host.py at b44c5d64)
|
||||
|
||||
A/A red: 3 problems: 18 rare system modules only run A has (more than 5), and 2 paths of seed 4 only run A has (the Defender platform mpoav.dll, c:\windows emp). A/B red: 36.
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68 again","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpaneLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"firefox-68","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\crash reports\\pending","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"engine":"candidate","launch":{"bare":{"inventory":[],"kinds":{"crashreporter.exe":1,"parent":2,"rdd":1,"socket":1,"tab/isForBrowser":5},"net":null,"pingsenders":[]},"idle":{"inventory":["c:","c:\\program files (x86)","c:\\program files (x86)\\desktop.ini","c:\\program files (x86)\\desktop.ini:zone.identifier","c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\pris","c:\\program files\\windowsapps\\microsoft.sechealthui_1000.29680.1000.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-100_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_neutral_split.scale-125_8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\microsoft.system.package.metadata\\resources.0ff121e3.pri","c:\\program files\\windowsapps\\microsoft.windowsfeedbackhub_1.2512.16303.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\program files\\windowsapps\\microsoft.windowsterminal_1.23.20211.0_x64__8wekyb3d8bbwe\\resources.pri","c:\\programdata\\microsoft\\windows\\start menu\\programs","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\active-update.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\parent.lock","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update-config.json.tmp","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\update.test","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates.xml","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update-elevated.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\0\\update.log","c:\\programdata\\mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\\updates\\bb481e43cafac064\\updates\\downloading","c:\\profiles","c:\\profiles\\desktop.ini","c:\\profiles\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin","c:\\profiles\\runneradmin\\appdata","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\cversions.1.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\caches\\{afbf9f1a-8ee8-4c77-af34-c647e37ca0d9}.1.ver0x0000000000000000.db","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcache","c:\\profiles\\runneradmin\\appdata\\local\\microsoft\\windows\\inetcookies","c:\\profiles\\runneradmin\\appdata\\roaming","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\file explorer.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\internet explorer\\quick launch\\user pinned\\taskbar\\microsoft edge.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\recent\\customdestinations","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\desktop.ini:zone.identifier","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly private browsing.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\nightly.lnk","c:\\profiles\\runneradmin\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup","c:\\profiles\\runneradmin\\appdata\\roaming\\mozilla\\firefox\\profiles","c:\\profiles\\runneradmin\\desktop","c:\\profiles\\runneradmin\\documents","c:\\profiles\\runneradmin\\documents\\restore firefox","c:\\windows","c:\\windows\\immersivecontrolpanel","c:\\windows\\immersivecontrolpanel\\pris","c:\\windows\\immersivecontrolpanel\\pris\\resourLine truncated
|
||||
@@ -0,0 +1,297 @@
|
||||
"""The host oracle judges a path by ONE rule, in the A/A and in the A/B, on Linux and on Windows, over every host path (the system modules and the shortcut inventory included):
|
||||
|
||||
red if and only if a path is in ALL the measured launches (the warm-up and the seeds) of one engine and in NO launch of the other (its long idle and bare launches included);
|
||||
everything else that differs is listed, not judged (`report["not_judged"]`, the file `not-judged[-a-a].json` of the artifact), and the paths that are in at least half of the
|
||||
launches of one engine and in none of the other's are marked `watch`.
|
||||
|
||||
The data are the footprints of real runs of the oracle, reduced to what the rule reads (tests/data/ab_host_aa/*/SOURCES.md): for each launch, which paths it touched, who touched them,
|
||||
the kinds of process, the pingsenders, the net entries and the shortcut inventory.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))
|
||||
import ci_ab_host as host # noqa: E402
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
DATA = Path(__file__).resolve().parent / "data" / "ab_host_aa"
|
||||
SMALL = {"proc": 2, "file": 3}
|
||||
WINDOWS_RUNS = ("45060573559", "45077433049", "45088980743", "45077330681")
|
||||
LINUX_RUN = "45088980743-linux"
|
||||
BS = chr(92)
|
||||
|
||||
|
||||
# -
|
||||
# The real data.
|
||||
|
||||
def rebuild(doc: dict) -> dict:
|
||||
"""The footprint of the oracle's format from its reduced fixture (a path with the mask of the launches it was in, who touched it, the other fields of each launch)."""
|
||||
names = doc["launches"]
|
||||
launches = {}
|
||||
for i, name in enumerate(names):
|
||||
files = [p for p, e in doc["paths"].items() if e["mask"][i] == "1"]
|
||||
launch = {"seed": doc["seeds"][name], "steps": [], "files": files, "ours": {}, "problems": [], "spawned_by": {},
|
||||
"touched_by": {p: doc["paths"][p]["by"] for p in files}}
|
||||
launch.update(doc["launch"][name])
|
||||
launch["inventory"] = launch["inventory"] or []
|
||||
launches[name] = launch
|
||||
out = {"format": host.FORMAT, "engine": doc["engine"], "platform": doc["platform"], "problems": [], "seeds": [launches[n] for n in names if n.startswith("s")]}
|
||||
out.update({k: launches[k] for k in ("warmup", "idle", "bare") if k in launches})
|
||||
return out
|
||||
|
||||
|
||||
def real(run: str, name: str) -> dict:
|
||||
return rebuild(json.loads((DATA / run / ("footprint-%s.json" % name)).read_text(encoding="utf-8")))
|
||||
|
||||
|
||||
def file_leaves(report: dict) -> set:
|
||||
return {d["leaf"] for d in report["differences"] if d["category"] == "file"}
|
||||
|
||||
|
||||
@pytest.mark.parametrize("run", WINDOWS_RUNS + (LINUX_RUN,))
|
||||
@pytest.mark.parametrize("swap", (False, True))
|
||||
def test_the_a_a_of_a_real_run_has_no_red_path(run, swap):
|
||||
first, again = real(run, "68"), real(run, "68-again")
|
||||
report = host.judge(*((again, first) if swap else (first, again)), a_a=True)
|
||||
assert report["verdict"] == "green", report["problems"][:5]
|
||||
assert report["problems"] == [] and report["differences"] == []
|
||||
|
||||
|
||||
@pytest.mark.parametrize("run", ("45077433049", "45088980743"))
|
||||
def test_the_a_b_of_a_real_run_whose_candidate_is_the_same_engine_has_no_red_path(run):
|
||||
first, again, candidate = real(run, "68"), real(run, "68-again"), real(run, "candidate")
|
||||
report = host.judge(first, candidate, expected=host.load_expected(), also_68=[again])
|
||||
assert file_leaves(report) == set(), sorted(file_leaves(report))[:5]
|
||||
|
||||
|
||||
def test_the_install_folder_of_the_candidate_is_a_constant_difference_and_stays_red_in_the_a_b():
|
||||
"""Run 45060573559: the candidate was installed in another folder, so the hash of the folder in the names the updater makes (uninstall_ping_<hash>_..., updatelock-<hash>,
|
||||
updates\\<hash>) differs in EVERY launch of each side."""
|
||||
first, again, candidate = real("45060573559", "68"), real("45060573559", "68-again"), real("45060573559", "candidate")
|
||||
report = host.judge(first, candidate, expected=host.load_expected(), also_68=[again])
|
||||
assert report["verdict"] == "red"
|
||||
hashed = {d["leaf"]: d for d in report["differences"] if d["category"] == "file" and any(
|
||||
h in d["leaf"] for h in ("uninstall_ping_", "updatelock-", BS + "updates" + BS, BS + "updates")) and "mozilla" in d["leaf"]}
|
||||
only_a = {leaf for leaf, d in hashed.items() if d["a"] == 1 and d["b"] == host.MISSING}
|
||||
only_b = {leaf for leaf, d in hashed.items() if d["b"] == 1 and d["a"] == host.MISSING}
|
||||
assert len(only_a) >= 17 and len(only_b) >= 17 and only_a | only_b == set(hashed), (len(only_a), len(only_b), len(hashed))
|
||||
assert all("4d49b3757c3cfd0c" in leaf for leaf in only_a) and all("1275c47b46d291f6" in leaf for leaf in only_b)
|
||||
|
||||
|
||||
def test_the_declared_difference_of_a_real_linux_run_is_still_declared_and_not_red():
|
||||
first, again, candidate = real(LINUX_RUN, "68"), real(LINUX_RUN, "68-again"), real(LINUX_RUN, "candidate")
|
||||
report = host.judge(first, candidate, expected=host.load_expected(), also_68=[again])
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert report["differences"] == [] and report["stale"] == []
|
||||
assert {d["leaf"] for d in report["declared"]} >= {"proc.gfxtest"} and {d["id"] for d in report["declared"]} == {"gfxtest-69"}
|
||||
|
||||
|
||||
# -
|
||||
# The rule on built footprints: six measured launches (the warm-up and five seeds), then the idle and the bare launch.
|
||||
|
||||
SEEDS = (1, 2, 3, 4, 5)
|
||||
MEASURED = ("warmup",) + tuple("s%d" % s for s in SEEDS)
|
||||
LONG = ("idle", "bare")
|
||||
KINDS = {"parent": 1, "tab/isForBrowser": 2, "gpu": 1}
|
||||
BASE = ["/etc/fonts/fonts.conf", "/etc/hosts", "/usr/lib/x86_64-linux-gnu/libc.so.6"]
|
||||
P = "/var/lib/probe/the-path"
|
||||
|
||||
|
||||
def built(engine: str, extra: dict | None = None, by: dict | None = None, kinds: dict | None = None, platform: str = "linux", long_launches: bool = True) -> dict:
|
||||
"""`extra`: {launch name: [paths added to it]}; `by`: {path: [kinds that touched it]} (default `parent`)."""
|
||||
extra, by = extra or {}, by or {}
|
||||
|
||||
def launch(name: str, seed: int) -> dict:
|
||||
files = sorted(set(BASE) | set(extra.get(name, [])))
|
||||
return {"seed": seed, "steps": [{"n": 1, "name": "open home", "ok": True}], "kinds": dict(kinds or KINDS), "files": files, "ours": {}, "problems": [],
|
||||
"touched_by": {p: by.get(p, ["parent"]) for p in files}, "inventory": []}
|
||||
|
||||
out = {"format": host.FORMAT, "engine": engine, "platform": platform, "problems": [],
|
||||
"seeds": [launch("s%d" % s, s) for s in SEEDS], "warmup": launch("warmup", SEEDS[0])}
|
||||
if long_launches:
|
||||
out.update({name: launch(name, SEEDS[0]) for name in LONG})
|
||||
return out
|
||||
|
||||
|
||||
def judge(a, b, **kw):
|
||||
kw.setdefault("floors", SMALL)
|
||||
return host.judge(a, b, **kw)
|
||||
|
||||
|
||||
def listed(report: dict) -> dict:
|
||||
return {e["path"]: e for e in report["not_judged"]["paths"]}
|
||||
|
||||
|
||||
def only_in(launches, paths=(P,), *more):
|
||||
"""{launch: paths} for the launches given; further (launches, paths) pairs are merged in."""
|
||||
out = {name: list(paths) for name in launches}
|
||||
for names, extra in more:
|
||||
for name in names:
|
||||
out[name] = out.get(name, []) + list(extra)
|
||||
return out
|
||||
|
||||
|
||||
@pytest.mark.parametrize("a_a", (True, False))
|
||||
def test_a_path_in_every_measured_launch_of_one_engine_and_in_no_launch_of_the_other_is_red(a_a):
|
||||
report = judge(built("A", only_in(MEASURED)), built("B"), a_a=a_a, expected=[])
|
||||
assert report["verdict"] == "red" and file_leaves(report) == {"file." + P}
|
||||
assert P not in listed(report), "a red path is judged, not listed"
|
||||
back = judge(built("A"), built("B", only_in(MEASURED)), a_a=a_a, expected=[])
|
||||
assert back["verdict"] == "red" and file_leaves(back) == {"file." + P}, "the same the other way round"
|
||||
|
||||
|
||||
def test_a_path_in_five_of_six_measured_launches_and_in_none_of_the_other_is_listed_to_watch_and_not_red():
|
||||
report = judge(built("A", only_in(MEASURED[1:])), built("B"), a_a=True)
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
entry = listed(report)[P]
|
||||
assert entry["watch"] is True and entry["A"]["measured"] == [5, 6] and entry["B"]["measured"] == [0, 6]
|
||||
|
||||
|
||||
def test_a_path_in_every_measured_launch_of_one_engine_and_in_one_launch_of_the_other_is_listed_and_not_red():
|
||||
for place in (MEASURED[2], "idle"):
|
||||
report = judge(built("A", only_in(MEASURED)), built("B", {place: [P]}), a_a=True)
|
||||
assert report["verdict"] == "green", (place, report["problems"])
|
||||
entry = listed(report)[P]
|
||||
assert entry["watch"] is False and entry["A"]["measured"] == [6, 6], place
|
||||
|
||||
|
||||
def test_the_long_launches_of_the_other_engine_count_as_a_launch_of_it_and_a_path_only_a_long_launch_has_is_only_listed():
|
||||
assert judge(built("A", only_in(MEASURED)), built("B", {"bare": [P]}), a_a=True)["verdict"] == "green"
|
||||
report = judge(built("A"), built("B", only_in(LONG)), a_a=True)
|
||||
assert report["verdict"] == "green" and listed(report)[P]["B"] == {"measured": [0, 6], "long": [2, 2]}
|
||||
assert judge(built("A", only_in(LONG)), built("B"), a_a=True)["verdict"] == "green", "what the long launches of one engine alone do is not red either"
|
||||
|
||||
|
||||
def test_watch_is_half_of_the_launches_of_an_engine_and_none_of_the_other():
|
||||
four = ("warmup", "s1", "s2", "idle") # 4 of the 8 launches
|
||||
three = ("warmup", "s1", "idle")
|
||||
assert listed(judge(built("A", only_in(four)), built("B"), a_a=True))[P]["watch"] is True
|
||||
assert listed(judge(built("A", only_in(three)), built("B"), a_a=True))[P]["watch"] is False
|
||||
assert listed(judge(built("A", only_in(four)), built("B", {"s5": [P]}), a_a=True))[P]["watch"] is False, "in one launch of the other: not watch"
|
||||
|
||||
|
||||
def test_the_watched_paths_come_first_and_each_entry_names_the_processes_that_touched_the_path():
|
||||
a = built("A", only_in(MEASURED[1:], ("/p/watched",), (("s1",), ("/p/once",))), by={"/p/watched": ["gfxtest", "parent"], "/p/once": ["rdd"]})
|
||||
report = judge(a, built("B"), a_a=True)
|
||||
paths = report["not_judged"]["paths"]
|
||||
assert [e["path"] for e in paths] == ["/p/watched", "/p/once"] and [e["watch"] for e in paths] == [True, False]
|
||||
assert paths[0]["touched_by"] == {"A": ["gfxtest", "parent"], "B": []} and paths[1]["touched_by"]["A"] == ["rdd"]
|
||||
|
||||
|
||||
def test_there_is_no_cap_of_rare_system_modules_and_a_system_module_is_a_path_like_any_other():
|
||||
system = BS.join(("c:", "windows", "system32", "rare%d.dll"))
|
||||
many = [system % i for i in range(40)]
|
||||
report = judge(built("A", {"s1": many}, platform="win32"), built("B", platform="win32"), a_a=True)
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert len(report["not_judged"]["paths"]) == 40
|
||||
red = judge(built("A", only_in(MEASURED, many[:1]), platform="win32"), built("B", platform="win32"), a_a=True)
|
||||
assert red["verdict"] == "red" and file_leaves(red) == {"file." + many[0]}, "in every measured launch and in none of the other: red as any path"
|
||||
|
||||
|
||||
def test_the_shortcut_inventory_is_judged_like_every_other_path():
|
||||
walked = BS.join(("c:", "programdata", "microsoft", "windows", "start menu", "desktop.ini"))
|
||||
a = built("A", only_in(MEASURED, (walked,)), platform="win32")
|
||||
for launch in [a["warmup"]] + a["seeds"]:
|
||||
launch["inventory"] = [walked]
|
||||
report = judge(a, built("B", platform="win32"), a_a=True)
|
||||
assert report["verdict"] == "red" and file_leaves(report) == {"file." + walked}, "the side with the inventory and the side without are no longer left out"
|
||||
only_two = built("A", only_in(("warmup", "s1"), (walked,)), platform="win32")
|
||||
only_two["warmup"]["inventory"] = only_two["seeds"][0]["inventory"] = [walked]
|
||||
assert judge(only_two, built("B", platform="win32"), a_a=True)["verdict"] == "green"
|
||||
|
||||
|
||||
def test_the_pingsender_has_no_treatment_of_its_own_a_path_only_it_touches_is_listed():
|
||||
ping = "/var/lib/probe/pingsender-only"
|
||||
a = built("A", only_in(("warmup", "s2"), (ping,)), by={ping: ["backgroundtask/pingsender"]})
|
||||
report = judge(a, built("B"), a_a=True)
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert listed(report)[ping]["touched_by"]["A"] == ["backgroundtask/pingsender"]
|
||||
both = judge(a, built("B", only_in(("s3",), (ping,)), by={ping: ["backgroundtask/pingsender"]}), a_a=True)
|
||||
assert both["verdict"] == "green" and listed(both)[ping]["B"]["measured"] == [1, 6]
|
||||
|
||||
|
||||
# -
|
||||
# What the rule does not touch.
|
||||
|
||||
GFX = "/var/lib/probe/gfxtest-only"
|
||||
|
||||
|
||||
def test_a_difference_the_list_declares_stays_declared_with_its_paths_and_is_not_lost_nor_red():
|
||||
kinds = dict(KINDS, gfxtest=1)
|
||||
a = built("firefox-68", only_in(MEASURED, (GFX,)), by={GFX: ["gfxtest"]}, kinds=kinds)
|
||||
report = judge(a, built("candidate"), expected=host.load_expected())
|
||||
assert report["verdict"] == "green", report["problems"]
|
||||
assert {d["leaf"] for d in report["declared"]} == {"proc.gfxtest"} | {"file." + GFX} and {d["id"] for d in report["declared"]} == {"gfxtest-69"}
|
||||
assert report["differences"] == []
|
||||
assert judge(a, built("candidate"), expected=[])["verdict"] == "red", "undeclared it is red"
|
||||
|
||||
|
||||
# -
|
||||
# The artifact: the list that is not judged is saved next to the verdict.
|
||||
|
||||
def fake_engine(root, package, payload=b"engine bytes"):
|
||||
folder = Path(root) / package
|
||||
(folder / "browser").mkdir(parents=True)
|
||||
(folder / "firefox").write_bytes(payload)
|
||||
(folder / "omni.ja").write_bytes(payload + b" omni")
|
||||
(folder / "browser" / "omni.ja").write_bytes(payload + b" browser omni")
|
||||
return str(folder / "firefox")
|
||||
|
||||
|
||||
def run_ab(tmp_path, monkeypatch, docs):
|
||||
"""`ab` with the three runs given, as the footprints of a Windows runner (no declared difference applies there)."""
|
||||
monkeypatch.setenv("RUNNER_TEMP", str(tmp_path / "runner_temp"))
|
||||
pub, cand = fake_engine(tmp_path / "fetch", "pub"), fake_engine(tmp_path / "checkout", "cand")
|
||||
monkeypatch.setattr(host.oracle, "fetch_published", lambda tag, work: (pub, None))
|
||||
names = {"firefox-68": "footprint-68.json", "firefox-68 again": "footprint-68-again.json", "candidate": "footprint-candidate.json"}
|
||||
|
||||
def fake_run(exe, seal, leg, out, label, seeds, crash_with=None):
|
||||
host.write_json(tmp_path / "o" / names[label], docs[names[label]])
|
||||
return 0
|
||||
|
||||
monkeypatch.setattr(host, "run_subprocess", fake_run)
|
||||
monkeypatch.setattr(host, "FLOORS", SMALL)
|
||||
monkeypatch.setattr(host, "run_stock_control", lambda leg, out: {"stock": True})
|
||||
return host.ab(cand, Path("seal"), "win-x86_64", tmp_path / "o", "firefox-68", list(SEEDS))
|
||||
|
||||
|
||||
def test_the_not_judged_list_is_a_file_of_its_own_next_to_the_verdict_of_the_a_a_and_of_the_a_b(tmp_path, monkeypatch):
|
||||
docs = {"footprint-68.json": built("firefox-68", only_in(MEASURED[1:]), platform="win32"), "footprint-68-again.json": built("firefox-68 again", platform="win32"),
|
||||
"footprint-candidate.json": built("candidate", platform="win32")}
|
||||
assert run_ab(tmp_path, monkeypatch, docs) == 0
|
||||
out = tmp_path / "o"
|
||||
for name, mode in (("not-judged-a-a.json", "a-a"), ("not-judged.json", "a-b")):
|
||||
document = json.loads((out / name).read_text(encoding="utf-8"))
|
||||
assert document["format"] == "ab-host-not-judged/1" and document["mode"] == mode and [e["path"] for e in document["paths"]] == [P], name
|
||||
for name in ("diff-a-a.json", "diff.json"):
|
||||
assert "not_judged" not in json.loads((out / name).read_text(encoding="utf-8")), "the verdict stays small"
|
||||
|
||||
|
||||
def test_the_not_judged_file_has_the_fields_of_each_entry(tmp_path, monkeypatch):
|
||||
docs = {"footprint-68.json": built("firefox-68", only_in(MEASURED[1:]), by={P: ["rdd"]}, platform="win32"),
|
||||
"footprint-68-again.json": built("firefox-68 again", only_in(MEASURED[1:5]), platform="win32"), "footprint-candidate.json": built("candidate", platform="win32")}
|
||||
assert run_ab(tmp_path, monkeypatch, docs) == 0
|
||||
a_a = json.loads((tmp_path / "o" / "not-judged-a-a.json").read_text(encoding="utf-8"))
|
||||
assert a_a["launches"] == {"A": {"measured": 6, "long": 2}, "B": {"measured": 6, "long": 2}}
|
||||
assert a_a["paths"] == [{"path": P, "watch": False, "A": {"measured": [5, 6], "long": [0, 2]}, "B": {"measured": [4, 6], "long": [0, 2]},
|
||||
"touched_by": {"A": ["rdd"], "B": ["parent"]}}]
|
||||
a_b = json.loads((tmp_path / "o" / "not-judged.json").read_text(encoding="utf-8"))
|
||||
assert a_b["launches"] == {"A": {"measured": 12, "long": 4}, "B": {"measured": 6, "long": 2}}, "the 68 is its two runs"
|
||||
assert a_b["paths"] == [{"path": P, "watch": True, "A": {"measured": [9, 12], "long": [0, 4]}, "B": {"measured": [0, 6], "long": [0, 2]},
|
||||
"touched_by": {"A": ["parent", "rdd"], "B": []}}], "9 of the 16 launches of the 68 and none of the candidate's"
|
||||
|
||||
|
||||
def test_the_log_prints_the_not_judged_list_with_the_watched_paths_before_the_others(capsys):
|
||||
report = judge(built("A", only_in(MEASURED[1:], ("/p/watched",), (("s1",), ("/p/once",)))), built("B"), a_a=True)
|
||||
host.print_report(report, "A", "B")
|
||||
lines = capsys.readouterr().out.splitlines()
|
||||
summary = next(i for i, line in enumerate(lines) if line.startswith("NOT JUDGED"))
|
||||
watch = next(i for i, line in enumerate(lines) if line.startswith("WATCH") and "/p/watched" in line)
|
||||
other = next(i for i, line in enumerate(lines) if line.startswith("LISTED") and "/p/once" in line)
|
||||
assert summary < watch < other and "2 paths, 1 to watch" in lines[summary]
|
||||
Reference in new issue
Block a user