mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 21:38:55 -06:00
refactor: move standalone_probe code into probes
The emulators and their settings, the AppImage fetch, the Xvfb screen reader, the run and its variants, and the record go to five probes modules. standalone_probe.py keeps its parser, main and the printing of each mode. Without an oracle file, a record names probes/standaloneemulators.py, the file that now holds the error strings.
This commit is contained in:
1 parent
e24c5b6900
commit
f61d6a187f
11 files changed
+687
-597
No files matched your search
@@ -51,6 +51,7 @@ scripts/ all tooling (Python and pyyaml, jsonschema for schema c
|
||||
sitegen/ the site and README generators: pages, navigation, data files
|
||||
probes/ real-condition runs: the campaign, the pack and region probes
|
||||
release/ the release record, its notes, the checks of its assets and the pack downloader
|
||||
probes/ real-condition runs: the campaign, the pack, region and standalone probes
|
||||
installer_build/ install.py from installer/, its pins, launchers and PyPI package
|
||||
schemas/ the data contracts behind validate_schemas.py: schemas and semantic invariants
|
||||
devtools/ the commit message rules, the checks of a pull request, the test
|
||||
|
||||
+1
-1
@@ -1290,7 +1290,7 @@ python scripts/standalone_probe.py check pcsx2 \
|
||||
| Sandbox | The allowlist bubblewrap sandbox of `core_probe.py`: the unpacked emulator, the content folder and the staged BIOS folder read-only, the repetition's scratch folder the one writable path, no network. Xvfb runs inside it, on the sandbox's own `/tmp`, so the display is private to the run. `--require-sandbox` refuses to run without bubblewrap |
|
||||
| Screen | Xvfb keeps its screen as a file (`-fbdir`). The probe reads it every `--interval` seconds, `--samples` times, and hashes each sample's pixels. `--png-dir` writes each distinct sample as PNG for review |
|
||||
| Files | `strace -f` inside the sandbox: the files the emulator opened in the staged BIOS folder, and the ones it looked for there and did not find |
|
||||
| Verdict | `core_probe.judge` on each repetition, with the oracle of `tests/campaign/oracle.yml` looked up by the content's sha1 and the emulator's name, plus the emulator's own error strings this script lists (DuckStation's "No BIOS image found for", PCSX2's "Unable to auto locate a BIOS image"). An emulator that exits before the last sample is a crash |
|
||||
| Verdict | `core_probe.judge` on each repetition, with the oracle of `tests/campaign/oracle.yml` looked up by the content's sha1 and the emulator's name, plus the emulator's own error strings `probes/standaloneemulators.py` lists (DuckStation's "No BIOS image found for", PCSX2's "Unable to auto locate a BIOS image"). An emulator that exits before the last sample is a crash |
|
||||
|
||||
`standalone_probe.py <mode> --help` lists the options. `--sha256` runs an
|
||||
older fetched asset than the newest. The ones it shares with `core_probe.py`
|
||||
|
||||
Reference in new issue
Block a user