Commit Graph
34 Commits
Author SHA1 Message Date
Abdessamad Derraz 3853ca2f1c refactor: public names for cross-module reads 2026-11-18 22:59:51 +01:00
Abdessamad Derraz c764d9abf1 refactor: split the leaf modules libraries use
model.region holds the region vocabulary, resolve.regions the selection
that needs the cores a platform runs. The libraries behind identity.py,
retired_files.py and torrentzip.py move to resolve.identity,
model.retired and core.torrentzip, with their long docstrings; the
commands stay where they are run from. The source_ref parts that cite a
config or feature file move from scraper.shell_launchers to
resolve.launcherrefs, so resolve no longer imports the scraper package.
2026-11-18 11:39:47 +01:00
Abdessamad Derraz c784aef883 refactor: move leaf modules into packages
core: hashing, artifacts, ziptools, deterministic_zip, romdir, sect233r1,
crypto_verify, paths (REPO_ROOT). model: safeparse (needs yaml),
dumpcatalog, largefiles, alternatives. resolve: nativemode, validation,
launchers, slot, truth, gamedata, and exporter/baseline.py and
exporter/candidates.py as resolve/reconcile.py and resolve/categories.py,
which truth and gamedata read.

Every importer follows. Modules one level deeper read the repository
root from core.paths instead of __file__.
2026-11-18 10:50:45 +01:00
Abdessamad Derraz 5f18caec31 refactor: put scripts/ on the test path once
tests/__init__ now puts the repository root and scripts/ on sys.path,
so no test module inserts them and every import sits in the import
block. ruff accepts the bare `import tests` the modules keep for its
side effects. The last suppressions go: helper test modules import as
tests.<name>, files open in with blocks, lambdas become functions.
2026-11-17 16:11:23 +01:00
Abdessamad Derraz 057fd2d0f6 fix: isolate every test module however it runs
tests/__init__.py keeps a run offline, its scratch under tmp/ and its
installer cache its own, but only discover -s tests -t . imported it.
discover tests ran with RETROBIOS_OFFLINE unset, scratch on the /tmp
tmpfs and the user's real installer cache, the setting in which e2e
fixtures had written into the shared .cache/large. Every test module now
imports the package first, and a test fails on a module that does not.
test_verify_listing.py took its line with the previous commit.
2026-11-06 15:14:05 +01:00
Abdessamad Derraz 61f0d033b5 chore: split a test docstring sentence 2026-10-21 05:25:10 +02:00
Abdessamad Derraz 06ae666f92 fix: describe WinUAE kickstarts by its own code
Every entry took its names from RetroBat's Uae.Generator.cs, which
the RetroBat launchers: records already hold. Kickstarts are now
labels of the ROM scan, and kick.rom, the name the loader opens under
its data path, is listed.
2026-10-21 05:23:14 +02:00
Abdessamad Derraz 7e6b80d501 fix: keep amiberry to the names its code reads
kick02019.AROS and its .ext were Recalbox configgen names, shipped at
the BIOS root of four packs whose code never opens them. Recalbox
keeps them through its own amiga/bios declarations. amiga-os-310.rom
is a ROM scan label, now found_by content.
2026-10-21 05:19:56 +02:00
Abdessamad Derraz 247093d7d2 fix: name BizHawk firmware by its own database
BizHawk finds firmware by SHA-1 scan or a user specification, so the
profile is found_by content. 38 entries used the names RetroBat's
generator writes; they now carry FirmwareDatabase.cs recommended
names, and the pooled NDS firmware entry is split per option.
2026-10-21 05:17:34 +02:00
Abdessamad Derraz 7fdf17f77e docs: drop launcher prose from hatari tos.img
8dc485dc moved the TOS names into each platform's launchers: records,
but the tos.img notes still described the Batocera, Recalbox and
RetroBat generators and an aliases field the entry no longer has.
2026-10-21 05:13:34 +02:00
Abdessamad Derraz 8931d738dc fix: read fbalpha2012 hiscore.dat from save dir
HiscoreInit opens <g_save_dir>/hiscore.dat (hiscore.cpp:411). Without
load_from the entry was packed at bios/hiscore.dat and took the slot
mame2000 reads on RetroDECK, which now gets its sha1-pinned file.
2026-10-21 05:11:36 +02:00
Abdessamad Derraz 4231902a6c docs: write prose without dashes or semicolons
Profiles, the wiki, comments, docstrings, command output and schema descriptions carried em-dashes, clause-joining semicolons, unicode arrows, box-drawing banners and check-mark glyphs. Each sentence was rewritten rather than having its character swapped. Hashes, paths, source_ref values and every cited file:line are unchanged, which a comparison of each parsed profile against the previous revision confirms.

validate_pr comments now say PASS and FAIL in words, and source_ref values in a profile's structured blocks render as code. test_prose_style fails if any of these comes back, in tracked files or in the generated site.
2026-10-19 06:47:31 +02:00
Abdessamad Derraz c5d434e7d0 fix: tag the clk western sms bios for brazil 2026-10-16 09:58:57 +02:00
Abdessamad Derraz 18af962cb3 feat: let a single check warn while the others refuse 2026-10-16 07:10:22 +02:00
Abdessamad Derraz ee377d2f57 fix: check altirra happy 810 roms as it detects them 2026-10-16 07:07:18 +02:00
Abdessamad Derraz d3d83d0116 fix: give the apple iigs rom checks their sizes 2026-10-16 07:04:48 +02:00
Abdessamad Derraz 6289c7ebf0 fix: warn on an unknown nestopia fds bios 2026-10-16 07:03:28 +02:00
Abdessamad Derraz 7301c8605c fix: check mgba boot roms against its crc table 2026-10-16 07:02:18 +02:00
Abdessamad Derraz a2108c6a1c fix: check geargrafx cards by size, as its loader 2026-10-16 07:00:17 +02:00
Abdessamad Derraz b92189e393 fix: check gambatte boot roms from the shipped core 2026-10-16 06:54:23 +02:00
Abdessamad Derraz e100e50095 fix: check dolphin fork ipl dumps as a warning 2026-10-16 06:52:41 +02:00
Abdessamad Derraz 4027604bf9 fix: drop hypseus archive-level checks 2026-10-16 06:47:41 +02:00
Abdessamad Derraz b8049f757b fix: drop archive checks mame forks never run 2026-10-16 06:46:56 +02:00
Abdessamad Derraz 4b38e25505 fix: drop advancemame archive-level checks 2026-10-16 06:44:25 +02:00
Abdessamad Derraz ce6edf3486 fix: drop 81 rom checks the core never runs 2026-10-16 06:43:35 +02:00
Abdessamad Derraz 0d3f21529b fix: drop beetle pce hashes no code holds 2026-10-16 06:42:08 +02:00
Abdessamad Derraz 3766b1dd11 fix: accept a longer a5200 bios image 2026-10-16 06:41:08 +02:00
Abdessamad Derraz 2810b13dac fix: add the atari 5200 bios to ares 2026-10-16 06:40:30 +02:00
Abdessamad Derraz 4902a1e07d fix: check atari800 roms the way sysrom.c finds them 2026-10-16 06:39:17 +02:00
Abdessamad Derraz d021f4d6bc fix: profile the beetle gba bios from its loader 2026-10-16 06:36:15 +02:00
Abdessamad Derraz 0d78a9e074 fix: check the beetle lynx boot rom size 2026-10-16 06:35:06 +02:00
Abdessamad Derraz 5d0b36a3a7 fix: cap beebem sideways roms at 128 KB 2026-10-16 06:34:21 +02:00
Abdessamad Derraz e6960121d7 fix: let beebem system roms warn on size 2026-10-16 06:33:20 +02:00
Abdessamad Derraz 012913720c fix: check the beebem teletext font size 2026-10-16 06:32:09 +02:00