Commit Graph
2891 Commits
Author SHA1 Message Date
Abdessamad Derraz 2a49bf237b refactor: move the export run into exporter 2026-11-21 14:59:03 +01:00
Abdessamad Derraz d87993129a refactor: move the bundled-only listing into packs 2026-11-21 14:59:03 +01:00
Abdessamad Derraz d6a0b33521 refactor: move the fileless audit into profiling 2026-11-21 14:59:03 +01:00
Abdessamad Derraz d36a5d4bc5 refactor: move the mame ref audit into profiling 2026-11-21 14:59:03 +01:00
Abdessamad Derraz d4dfa18c9e docs: name sitegen.diagrams in the site comments 2026-11-21 14:59:03 +01:00
Abdessamad Derraz 61547d08b3 fix: let make_site_icons answer --help 2026-11-21 14:59:03 +01:00
Abdessamad Derraz f158f1d485 refactor: move the site image tools into sitegen 2026-11-21 14:59:03 +01:00
Abdessamad Derraz 0b91bc9e37 refactor: move the recipe runs into romrecipes 2026-11-21 14:59:03 +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 22a81c384d refactor: move campaign budget, report to probes
parse_budget goes to probes.host beside Settings, and the line a pass prints, with the alert key autorun reads, to probes.reports.pass_report. campaign.py keeps its parser, main and the exit codes.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz 75aef7e001 fix: mark a standalone record from changed modules
frontend.script_modified looked at standalone_probe.py alone. The run's code now lives in five probes modules: a record from a checkout where one of them differs from the commit says so.
2026-11-21 14:59:02 +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 e24c5b6900 fix: name a failed standalone release fetch
resolve and fetch let a GitHub listing or download failure end on a traceback: the listing raises ProbeError, and fetch also prints forge and HTTP failures as an ERROR line with exit 1.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz 676d0a5d9a fix: name a missing standalone asset, no traceback
standalone_probe run and check raised the ProbeError of a missing fetched asset as a traceback. It is printed as an ERROR line with exit 1, like every other failed run.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz c17d0e0cec refactor: move the demo recorder into sitegen 2026-11-21 14:59:02 +01:00
Abdessamad Derraz e521f4af4f refactor: drop unused maps from the bios migration 2026-11-21 14:58:47 +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 1ca8a775c1 refactor: share the emulator and system output 2026-11-21 14:58:26 +01:00
Abdessamad Derraz b28973440e refactor: load launcher platform configs once 2026-11-21 14:58:26 +01:00
Abdessamad Derraz 6ba52a9682 refactor: move verify, slots, crossref into packs
The three commands keep their parser, main and printing. Scans, scopes,
report text, the JSON forms, the strict gate and the destinations file
live in new packs modules, one subject each.
2026-11-21 14:58:26 +01:00
Abdessamad Derraz 1e95a73a4d refactor: refuse verify-packs combinations once 2026-11-21 14:58:17 +01:00
Abdessamad Derraz a1b8a10cf9 refactor: move generate_pack runs into packs 2026-11-21 14:58:17 +01:00
Abdessamad Derraz d0ce43eb90 docs: name where rom_search_sets lives 2026-11-21 14:58:03 +01:00
Abdessamad Derraz a60ec786b6 refactor: move the games commands into games/ 2026-11-21 14:58:03 +01:00
Abdessamad Derraz f77caa1885 fix: report only recorded names as mame clones 2026-11-21 14:58:03 +01:00
Abdessamad Derraz a0579c687e refactor: drop the no-op branch of dedup planning 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 1978d371ee refactor: index path tails through one helper 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 9de949dfdb refactor: name the truth directory once 2026-11-21 14:58:02 +01:00
Abdessamad Derraz 7ff8b5faf6 fix: read pipeline caches from the repository root 2026-11-21 14:58:02 +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 7203b5be84 fix: read targets and data from --platforms-dir 2026-11-21 14:57:45 +01:00
Abdessamad Derraz 88e39b6380 refactor: drop the unused core_info_names 2026-11-21 14:57:45 +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 1227152bef refactor: import the artifact lock once 2026-11-21 14:57:17 +01:00
Abdessamad Derraz 84bad2e271 chore: add the five command packages 2026-11-21 13:49:33 +01:00
Abdessamad Derraz 036a6ebf29 refactor: reuse the shared helpers left copied
Copies of helpers the first pass created, replaced by the helper:
- source_yaml_file for our YAML sources (generate_db read them in the
  locale's encoding, a syntax error named no file);
- data_dir_registry_at in registry_bundles, platform_registry_at (new,
  beside load_platform_registry) in the manifest;
- DATA_DIRS_FILE for the registry path five modules spelled;
- load_optional_database, sha1_at, VERSIONS_FILE, installer_module;
- DerivedView where a cache was keyed by id() of a dict;
- count_text and series where a plural or a list was written by hand.
2026-11-21 10:31:29 +01:00
Abdessamad Derraz 32a4ca1fa1 fix: read .variants archives as archives
A .variants copy is named set.zip.<md5 prefix>, and five checks of a
collection path tested endswith(".zip"): the zipped_file contents index
skipped all 278 copies (658 member md5s held nowhere else), the pack added
them without the member CRC test, and the archive acceptance count gave
them -1. They now use is_archive_path. In the index a member a primary
archive holds answers with the primary, as the resolver prefers it.
2026-11-21 10:31:11 +01:00
Abdessamad Derraz b8fe881327 fix: place system pages by the reviewed sections
The site placed a system page through an index of folders only, while
own_section reads the folders plus the reviewed parents. The Atom has no
folder of its own and was placed on the BBC Micro section while every link
named its Atom section. Both now build their index from section_pairs_of,
and a test checks every id against own_section on the repository data.
2026-11-21 10:30:59 +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 7bc02025dc refactor: share the cli mode conflict table
model.cliargs.mode_conflicts holds the mode, --standalone, --target and --no-game-data rules verify and generate_pack read, each adding its own flags. verify --all --system --standalone is now refused instead of dropping --standalone. Summary, listing and pack counts go through count_text (no more "1 platforms" or "0 data directory").
2026-11-21 10:30:51 +01:00
Abdessamad Derraz 6f510be49a refactor: share the probe commit reader
packprobe.git_head reads HEAD through core_probe.head_commit, the reader frontend_identity uses, and warns when git cannot answer instead of recording None silently.
2026-11-21 10:30:51 +01:00
Abdessamad Derraz b6bd585ee4 refactor: name the platform's own core build
The Recalbox and RetroPie exporters each rebuilt the folded core-name
index that model.profiles provides, and kept one claimant of a contested
name by load order (Recalbox the first, RetroPie the last). Neither read
built_by.

Both now read core_key_index through BaseExporter.core_profiles, and
model.profiles.platform_core_profiles chooses: the builds the platform
ships itself (built_by), all of them, else the claimants no platform
builds on its own, the profile keyed by the name first. platform_builds
carries the first half, shared with resolve.launchers.

Recalbox names that change: amiberry and libretro/amiberry
(amiberry-5.6.5, ROCKNIX's build, to amiberry-8.2.2), libretro/pcsx2
(lrps2-416291a, Batocera's, to pcsx2-libretro-408e3b2), bare pcsx2 (to
the standalone pcsx2), libretro/px68k (px68k-sdl, RetroPie's standalone,
to px68k), libretro/dosbox_pure (dosbox-pure-unleashed to dosbox_pure),
libretro/vice_x64, x64sc, x128, xvic (vice to each own core). A name no
profile of the written build claims falls back to either build:
es_bios.xml writes libretro/fba2x for piFBA, a standalone binary.

RetroPie: the amiberry package now stands for Amiberry 5.7.2 and 6.3.3,
the two builds RetroPie compiles, instead of the generic profile.
2026-11-21 10:30:51 +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