Commit Graph
1059 Commits
Author SHA1 Message Date
Abdessamad Derraz 3f7968dea8 docs: name test_variant_copies in the guide 2026-11-22 00:17:50 +01:00
Abdessamad Derraz 46f364ea8b docs: refresh the retrodeck report excerpt 2026-11-22 00:00:00 +01:00
Abdessamad Derraz 11e3ebb44f fix: say why a removal stops in its events
A --file outside the folder printed its own line and returned 2 with no
removal_plan, and a removal or backup deletion with no yes, a folder that
is no backup and a setup left open ended on stderr alone. The first goes
through _removal_refused, the others raise Refusal.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 665e2ebb52 fix: send every refusal as an error event
--romm-firmware, --pack without a platform, an option the list does not
record, a board list the run cannot go on without, a full drive and the
--dest a named platform needs printed and exited on their own: --events
got end and no error. Each now raises Refusal where it is decided, and
refuse_name, --find and the space check stop formatting their own copy.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 0617598e21 fix: keep insights readings when one source fails
sitegen.insights raised SystemExit with CLI text from inside its fetch
functions: a GitHub rate limit after Search Console and GoatCounter had
been read ended the run with no report. It now raises SourceUnavailable,
also for a missing credential file. site_insights names the source in
the report and on stderr and exits 1. A damaged downloads snapshot is a
SourceUnreadable, read before any source is fetched.
2026-11-21 21:42:18 +01:00
Abdessamad Derraz d1b0c77039 refactor: move upstream DAT fetching to datfetch 2026-11-21 21:42:18 +01:00
Abdessamad Derraz 29fb089a2b docs: name the retrodeck component test 2026-11-21 21:04:48 +01:00
Abdessamad Derraz 8d9495a478 docs: name test_scraper_dropped in the guide 2026-11-21 20:06:01 +01:00
Abdessamad Derraz 8fc294ef97 fix: a full drive is an event, not stderr text 2026-11-21 19:51:02 +01:00
Abdessamad Derraz eba627aa89 refactor: one refusal path to stderr and events
Library functions printed their refusal and exited, each deciding on its
own whether --events got an error event. --cores-dir, --installed-cores
with no core, a list without system_cores or standalone_builds, a pack
that cannot be used, a board list a run needs and --dest alone beside
two setups ended on code 1 with no reason in the stream.

They now raise Refusal (installer/refusal.py), carrying the stage, the
reason, the platform, the lines and the code. The install, an action
framed by events and main report it once: the error event, then the
same lines on stderr, so the text and exit codes stay as they were.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 9814bb1234 refactor: step 5 reads counts both tools record 2026-11-21 19:50:42 +01:00
Abdessamad Derraz 472b06a3e0 fix: appimages cached in the main checkout 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 1b7d30967b fix: surface upstream entries a scraper drops
RomM skipped an unmapped IGDB slug and RetroDECK a second component's
conflicting MD5 with a stderr warning only: the rescrape exited 0, the
rewritten file showed no diff and check_freshness said OK.

An unmapped slug now fails the RomM scrape. A deliberate drop goes in
BaseScraper.dropped, scraper_cli prints it under DROPPED_PREFIX, and the
freshness rescrape reports an otherwise unchanged platform UNKNOWN.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 5bfc9953e2 chore: repin the installer after the merge 2026-11-21 16:44:59 +01:00
Abdessamad Derraz 61a4e909bd fix: one space count for both plans and the run 2026-11-21 16:44:02 +01:00
Abdessamad Derraz 1e6f106525 refactor: one list failure for line and screen 2026-11-21 16:44:02 +01:00
Abdessamad Derraz 4cb82adce3 refactor: keep detection lines as data
Detection now keeps what it says in DETECTION_NOTES and prints it only in
line mode. The full screen reads the list under detection_held() instead
of capturing stdout and stderr and dropping refusals by comparing text,
which said a refusal twice once screen_text escaped its folder.
2026-11-21 16:44:02 +01:00
Abdessamad Derraz 0e2be04f9c fix: read the folder screen drives once 2026-11-21 16:44:01 +01:00
Abdessamad Derraz a30984912c fix: keep the offline database build offline
preserve_large_file_entries mixed the keep-or-drop rule with a download,
a write into bios/ and a SystemExit. The rule is now surviving_entries,
the restore a separate step that receives offline, and read_database
raises DatabaseUnreadable that the build turns into exit 1. generate_db
gains --offline, which pipeline --offline passes to step 1.
2026-11-21 16:43:57 +01:00
Abdessamad Derraz ef7884500e fix: write the published checksums in split_pack 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 64c7d25bdc chore: merge the command maps and package list 2026-11-21 15:07:20 +01:00
Abdessamad Derraz 6e1852211d docs: name the profile audits under profiling 2026-11-21 14:59:21 +01:00
Abdessamad Derraz 2428d92e6a refactor: move the truth diff into exporter 2026-11-21 14:59:03 +01:00
Abdessamad Derraz 75a69a4a42 refactor: move profile_sync logic into profiling 2026-11-21 14:59:03 +01:00
Abdessamad Derraz f61d6a187f 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.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz cadca657a3 refactor: move three dev commands into devtools 2026-11-21 14:58:47 +01:00
Abdessamad Derraz 2f428a01a8 refactor: move the pack downloader into release 2026-11-21 14:58:26 +01:00
Abdessamad Derraz a60ec786b6 refactor: move the games commands into games/ 2026-11-21 14:58:03 +01:00
Abdessamad Derraz 198515f1cb refactor: move dedup and integrity into collection 2026-11-21 14:58:03 +01:00
Abdessamad Derraz ed6ae84d2c refactor: move generate_db logic into collection 2026-11-21 14:58:03 +01:00
Abdessamad Derraz 985d07b97e refactor: move pipeline steps into orchestrate 2026-11-21 14:58:02 +01:00
Abdessamad Derraz 5be72484d8 refactor: move refresh_stale logic into freshness 2026-11-21 14:58:02 +01:00
Abdessamad Derraz 8a2ef047ab refactor: move check_freshness logic to freshness 2026-11-21 14:57:45 +01:00
Abdessamad Derraz 5fa802a3c5 refactor: move schema checks into a package 2026-11-21 14:57:45 +01:00
Abdessamad Derraz 15f913d0ba fix: accept a size list beside a size window
A profile entry that declares exact sizes and a min_size/max_size window
now accepts either, as the code it transcribes does. size_refusal let the
exact size outrank the window, so LinApple's ROMs (12288 to 65536 bytes),
the ZEsarUX QL ROM (16 KB floor) and MesenCE's BS-X.bin (32 KB floor) were
held to the one dump size. Master.dsk lists the two lone sizes the sector
image probe also takes. Truth, the core refusal message and the emulator
cards read the same rule.
2026-11-21 10:30:59 +01:00
Abdessamad Derraz 4d62c56730 feat: cross_reference --all --target
--target without --platform keeps every platform with the target, each narrowed to the cores it builds for it, as verify and generate_pack read --all --target. --all is accepted as the explicit whole-tree scope. Remaining CLI plurals go through count_text ("1 name", "+1 record").
2026-11-21 10:30:59 +01:00
Abdessamad Derraz 74fcdd2bc5 refactor: read archive members in one place
core.ziptools.zip_members lists the name, size and crc32 of each member once per archive revision. The site lookup and cards, the gap report, the pack check, the romset importer, the recipe identification and build, provenance, derivations and the atom pool read it instead of opening each archive again.

Each reader also tested a .zip suffix and skipped the .variants/ copies (x.zip.1a2b3c4d): the site lookup listed no member of a copy, the gap report's member index never saw one, the pack check never compared a copy's members, and the pack builders copied a copy without its CRC test. They now use is_archive_path. The inner ROM index of the resolver reads copies too, and a copy answers only for a member no primary holds.
2026-11-21 10:30:40 +01:00
Abdessamad Derraz 331f244aac refactor: find held records by the resolver rule
The gap report counted a file held on any crc32 hit, without the declared size and even against a contradicting stronger hash. The pack check split md5 lists by hand and took a loose ROM for the member a zipped_file md5 names. Both now ask held_record_for, the resolver's hash steps. The pack check still compares whole digests, as Batocera does, so a cut md5 names a file without satisfying it.

records_for_hash returns every held record an index value names. The variant search reads it instead of its own kind-to-index table. Any one accepted value still nominates a candidate there, because the validation index merges what several emulators accept and their own checks judge each file.
2026-11-21 10:30:40 +01:00
Abdessamad Derraz 780d40fb7b chore: refresh manifests for the ppsspp assets 2026-11-21 08:02:59 +01:00
Abdessamad Derraz 6aee415098 chore: align three tests with the shared helpers 2026-11-21 06:45:11 +01:00
Abdessamad Derraz b5cfa9179f refactor: drop the unused deterministic zip writer 2026-11-21 05:59:58 +01:00
Abdessamad Derraz 5af8936ef8 docs: list the scraper network tests 2026-11-20 20:35:43 +01:00
Abdessamad Derraz 200f785f67 docs: name the listxml and line index tests 2026-11-20 20:03:20 +01:00
Abdessamad Derraz 7cd499531d refactor: share scraper and launcher helpers
BaseScraper reads JSON once (_fetch_json, json_object), every scraper files its requirements through systems_from_requirements, and the batocera-systems readers (Batocera, KNULLI, AmberELEC, EmuELEC) inherit CheckBiosScraper. Launcher modules share one Launcher record, one LauncherPatternMissing and one link_record. DAT importers build provenance entries from LogiqxDat.
2026-11-20 18:28:33 +01:00
Abdessamad Derraz c6bd6db563 docs: list the Switch NCA test in the guide 2026-11-20 08:17:08 +01:00
Abdessamad Derraz e1cbf79415 feat: collect the Switch firmware NCAs
The yuzu family reads its firmware from nand/system/Contents/registered/,
which EmuDeck links from bios/<emulator>/firmware and RetroBat places in
the emulator folder. The 229 NCAs of the held firmware zip are now kept
loose under that tail, so the directory entries resolve and the packs
and install lists carry them. Each NCA is named after the first 16 bytes
of its SHA-256, the comparison the firmware install runs, and a test
holds every committed NCA to it. The NCAs are committed, so the entries
no longer claim release storage.
2026-11-20 05:36:15 +01:00
Abdessamad Derraz 7623ead3db feat: rank search pages by clicks lost
Search Console rows are merged across page anchors. The expected click
rate is the site's own rate at each rounded position, so a search is
flagged when clicked less than half of it. A by-page table ranks pages
by clicks lost, with changes against the period before. Each section
states its period, and release downloads show the change since the
snapshot the previous run left in .cache/insights/.
2026-11-19 16:51:32 +01:00
Abdessamad Derraz 022591a67e fix: settle three validation checks
The retrodeck games fallback is computed from the manifests and went
stale with the data tree manifest change. Two docstrings carried clause
semicolons. The install run test read bytes_done as the sum of finished
files, but it counts every byte arrived, a file still in transfer
included, as progress does; the test now checks that bound and the doc
says it.
2026-11-19 16:11:49 +01:00
Abdessamad Derraz ff69210b18 feat: pin forge data trees, follow nightly ones
A data tree whose source names a revision is fetched at the commit its
branch points to and listed at that commit, whose bytes never change.
A source with no revision (the buildbot's nightly assets) is marked
rolling: the installer writes each listed file as the source serves it,
checked against its ZIP CRC-32, as RetroArch's own downloader does, and
the install record keeps it in place on the next run. The PPSSPP list
refused 49 of 169 files after each buildbot rebuild.
2026-11-19 08:59:42 +01:00
Abdessamad Derraz a9c0dcac3c fix: ship the archive covering a twin md5 pin
RetroDECK pins bios/cdibios.zip and bios/stvbios.zip twice, the older
MAME set for its mame component and the full set for the RetroArch
core. The first pin in system order shipped the smaller set, which
current MAME rejects (cdi.cpp:922 needs the slave MCU ROM). The archive
whose members cover the other now ships: it serves both readers.
2026-11-19 06:33:17 +01:00