Commit Graph
5934 Commits
Author SHA1 Message Date
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 398782a5cd fix: key the fbneo dat cache by commit
fetch_pack refilled one fbneo-dats folder for whatever revision was
asked, and the offline arcade import rebuilt its paths by hand: a parent
map labelled with the profile's pin could be read from another commit's
DATs. The folder is now fbneo-dats/<sha>, and cached_pack() next to
fetch_pack is the offline read, raising NotCached.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz bc48d4028a fix: key fbneo board roms by their archive
find_bios_sets keyed each BDF_BOARDROM set by its driver name, so the
15 console entries (msx.zip, coleco.zip, gba.zip...) never matched the
hash cache. The archive is now what GetZipName opens, through one
zip_name() that arcade_parent_importer shares. The RomDesc comes from
the struct's RomInfo field and decimal sizes are read: ngp, isgsm,
midssio, channelf, ym2608 and the five DSP sets had no ROM.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 184f84effd chore: trigger the site on model.profilerepos 2026-11-21 16:59:28 +01:00
Abdessamad Derraz 1593dfa85a docs: drop two clause semicolons 2026-11-21 16:59:28 +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 5436a45d4a fix: resolve the remote once, in main 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 36d5827b25 fix: read a full drive once when the run ends 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 0e2be04f9c fix: read the folder screen drives once 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 49dbb2828d refactor: read the declarations once per database
collect_all_aliases opened platforms/ and emulators/ from paths fixed to
the working directory while declarations took them as parameters, so a
build walked every YAML twice. read_declarations now reads both once,
reports unreadable sources, and hands the alias pass and the proven-name
index their entries. generate_db gains --platforms-dir and
--emulators-dir and refuses a missing one.
2026-11-21 16:43:57 +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 8ec1c3aa2f fix: read shared cli options in the doc page check 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3869a24b6a refactor: let the restore command print its report 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 75ccaf460c refactor: read verify output by its command 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 35ad46e8c5 refactor: one rescrape command for both freshness 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3b16ee2633 refactor: log truth hash conflicts, not print 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3e55385410 fix: hash-check region games in the main cache
probes.content holds where test games live (content_root, the main
checkout's .cache/test-content) and that a game is checked against its
identity.json before it runs (ready_folder). campaign, pack_probe and
region_check all go through it. region_check ran a game without the
identity check and looked for games and cores in the current tree,
which a linked worktree does not have.

packprobe looked the main checkout up at import, running git: the
content root and core cache are now computed when a run needs them.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz b018681f06 refactor: compute an export apart from writing it 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 745ab63e63 refactor: hand exporters the profiles they read 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 69d29e786a fix: title pack systems from the given collection
system_titles read the site's installed sections, loaded from the repository's database.json and profiles, so a manifest built with --db and --emulators-dir titled its systems from another collection. The lookup now takes the console sections, and the manifest builds them from its own db, bios folder and profiles.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 8787f453c7 fix: return target skip notes, print them in scope
build_target_cores_cache printed its INFO notes itself, so expected_pack_names wrote notes about platforms nobody asked for. The notes come back with the cache and target_scope, the command-line wrapper, prints them.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 57ee0cdd8f refactor: pass detection and version flags in full 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 714683d63c fix: record every profile a pass writes 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 2025a71cb9 fix: render detection in the report text 2026-11-21 16:43:46 +01:00
Abdessamad Derraz beefb32cc8 fix: let bump_commit return its refusal reason 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 8780398518 fix: read targets from the config's own tree
resolve_platform_cores and offer_boards read the RetroArch and platform
targets under the repository, whatever --platforms-dir a run was given,
behind a process-long cache. load_platform_config now records the
directory it read (_platforms_dir), the resolver reads targets from it,
the cache is keyed on that directory, and downloadable_on takes it from
its callers. The key is kept out of the published registry export.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 6aca93231a fix: let the run print what the scope leaves out
without_profile_blind and platforms_with_systems printed and exited from
the resolve layer. Under verify --all --region --json the left-out notice
went to stdout ahead of the document, which no longer parsed. Both now
return a RunScope, and packs/runscope.py prints the notices where the
command asks (stderr under --json) and ends a refused run with exit 1.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz ef7884500e fix: write the published checksums in split_pack 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 83f7693ccb refactor: return the emulator pack outcome 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 8a9591dad2 refactor: judge a data hit on the indexed roots 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 93d45b6241 chore: record the trees source mirrors hold
Rebuilt by sitesources.py from the profile_sync cache: the mirror trees
the pages now link into, and the paths profiles cited since the last run.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz bce9abedc7 fix: read profile repositories from one model rule
The site permalinks read only source and upstream, so a profile whose
forge is gone (yuzu answers 451) linked nothing although profile_sync
judged it through its source_mirror. declared_repositories, pin_field
and the declared pin now live in model.profilerepos, read by both.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 0fdca4145a chore: type two test class attributes 2026-11-21 16:43:46 +01:00
Abdessamad Derraz b6599375f5 refactor: render setup files from the library
dump_setup moves next to scrape_setup, so readers of the setup format
no longer import the command. base_scraper names its dumper
PlatformDumper, and the command writes through write_if_changed.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 12b00e024b refactor: read retropie module fields in one place
rp_registerModule sources the script: the id, section, flags and repo
are top-level assignments, the last one wins. The platform, target,
launcher, rom folder and export readers each kept their own pattern;
they now share module_fields. Same ids and flags over the 287
scriptmodules at 427e7621.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 24463647f6 fix: refresh buildbot updates from its registry
check_buildbot_system --update ran scripts/refresh_data_dirs.py by a
relative path and without --registry: the refresh read the default
registry, and outside the repository root the child was not found and
every updated entry was reported failed. The command now refreshes in
process through packs.datadirs.refresh_keys with the registry it
checked; buildbot_system keeps the check and its selectors.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz e6295aba88 refactor: move es_systems readers out of batocera
es_systems.yml readers move to scraper/es_systems.py, which the board
target scraper imports at load time instead of inside a function to dodge
the cycle. The _default.remove_cores list is target override data: it is
model.targets.not_cores, no longer a private name of batocera_scraper.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 14cc76132f chore: trigger the site on sitegen.indexnow 2026-11-21 15:48:32 +01:00
Abdessamad Derraz c3054bef4c feat: catch patch.object on a command 2026-11-21 15:48:32 +01:00
Abdessamad Derraz e0f4d7eba5 chore: read every profiling module in the guard 2026-11-21 15:48:32 +01:00
Abdessamad Derraz 19681a3735 refactor: move ten command helpers into packages 2026-11-21 15:47:20 +01:00
Abdessamad Derraz 6d21a98342 docs: drop clause semicolons from three docstrings
test_prose_style named the comments in collection.record, resolve.reviewreport and romrecipes.build.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz 4630946656 chore: type the doc, download and prose tests
mypy reported sixteen errors in these three test modules: untyped empty lists, unchecked re.search results, a release index named like the loop counter before it, and a read() override narrower than BytesIO's.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz 48d88da168 refactor: move six command run modes to packages
generate_db, generate_games_index, download, romset_recipes, validate_pr and list_platforms keep only main and build_parser: the database build goes to collection.run, the games index run to games.run, the pack info and its no-pack message to release.packinfo, the capture and build runs to romrecipes.runs, the file selection to resolve.reviewfiles. Tests reach the moved code through those packages.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz cff440613d fix: scope the citation guard to profile_sync
The guard globbed every profiling module, so moving the MAME ref audit
into profiling failed it. It now reads the modules profile_sync runs.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz f8c317b63f chore: type three test_profile_sync fixtures 2026-11-21 15:47:20 +01:00
Abdessamad Derraz b520e48798 refactor: move profile selection into profiling
select_profiles and version_selection go to profiling.selection, the flag
refusals to profiling.flagchecks. main calls selection, quota and the
profile loader through their modules, so tests patch them there.
generate_truth's parse_args becomes build_parser.
2026-11-21 15:47:20 +01:00