Commit Graph
81 Commits
Author SHA1 Message Date
Abdessamad Derraz e1bad01b82 refactor: group scraper modules by subject
scraper/ held the platform scrapers next to three other subjects. The
launcher readers move to scraper/launchers/ (their _launchers suffix
dropped), the MAME and FBNeo hash scrapers and romset importers to
scraper/arcade/, the DAT readers and dump catalog importers to
scraper/dats/. The buildbot check is a freshness check and moves to
freshness/buildbot.py. Every -m command, workflow job, schema
description and page follows.

The scraper discovery in scraper/__init__.py had no caller: the
registry's scraper: field names the module, and the pages now say so.
2026-11-24 10:22:26 +01:00
Abdessamad Derraz 7ca304a5dd refactor: split the campaign class
Probe runs, check state and findings move verbatim into a CheckRuns
base class in probes.checkruns, with the records they share. Cores and
ContentStore name CheckRuns, the class holding everything they read.
2026-11-24 06:21:09 +01:00
Abdessamad Derraz 209dbf38d8 refactor: move report inputs out of the resolver
The refs a report anchors, the repositories it reads and the revisions
it compares move to profiling.reportinputs. The resolver keeps the
per-profile _Resolver and build_report.
2026-11-24 06:21:09 +01:00
Abdessamad Derraz 83055b87ea refactor: split the platform pack plan and zip 2026-11-24 06:20:08 +01:00
Abdessamad Derraz c8258522a4 refactor: split platform checks out of integrity 2026-11-24 06:19:54 +01:00
Abdessamad Derraz 4916b4a44e refactor: move the declaration tally to its module 2026-11-24 06:19:17 +01:00
Abdessamad Derraz 0232f0549b refactor: move entry sources out of crossref 2026-11-24 06:18:19 +01:00
Abdessamad Derraz e9206e7cc8 refactor: split the manifest build from its entry 2026-11-24 06:18:03 +01:00
Abdessamad Derraz 6c48409912 refactor: split four oversized site modules
The emulator page sheds its intro and data directories, the gaps page its problem files and core complement, starlight its sidebar topics, the data exports their rows. Names another module now reads lose their underscore.
2026-11-24 06:02:03 +01:00
Abdessamad Derraz 2786b3be34 refactor: split the emulator card module
File badges and the romset and version rows get modules of their own.
2026-11-24 06:02:03 +01:00
Abdessamad Derraz 9cdca28e52 chore: name the split resolve modules 2026-11-24 05:54:38 +01:00
Abdessamad Derraz 88ea3d58ad refactor: one naming style per package 2026-11-24 03:46:21 +01:00
Abdessamad Derraz 02c33be3b5 fix: read catalog coverage under the database 2026-11-24 02:19:13 +01:00
Abdessamad Derraz 8348ba1f32 fix: purge the old checksum signature with packs
The stale-pack purge kept its own list of release files and left
SHA256SUMS.txt.sig behind, which a skipped signing step then published
beside a new checksum list. release.sums now owns the release set.
2026-11-24 01:14:05 +01:00
Abdessamad Derraz 409cc843f9 refactor: one owner order for cited repositories 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 387ca39a9d fix: site reads citations through the shared walk
sitegen.sources had its own walk of a profile: it skipped string list
items and read a repository prefix as part of the path, so prboom-plus
and future-pinball-fploader citations that profile_sync tracks were
neither recorded in source-paths.json nor linked. The walk moves to
model.citations, which collect_citations, cited_paths and
link_prose_citations all read.
2026-11-24 00:20:03 +01:00
Abdessamad Derraz 77513c2045 refactor: move archive recipe counts out of cards 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 82cb80d554 refactor: one whole-tree gap report for both 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 2ee77a0622 fix: dedup returns its outcome, failures exit 1 2026-11-23 23:07:45 +01:00
Abdessamad Derraz 64db75a6ee fix: dedup walks only the files the scan indexes 2026-11-23 23:07:45 +01:00
Abdessamad Derraz 6e8ef2650f refactor: carry the site's page state on the run
Eleven module globals in descriptions, decorate, emulatorpage and
emulatorcards held what one build records about its pages, filled by
build.py and as a side effect of two renderers. They now live on a
PageRegistry the run carries and passes to the renderers and to
decorate_markdown_pages. get/ pages return their date (get_page_data)
instead of writing it, and a card reads the data directory members
from its CardSources. A second build in one process no longer inherits
the first one's maps, and tests build the input instead of patching
globals.
2026-11-23 23:07:32 +01:00
Abdessamad Derraz c1ff070863 fix: raise download failures as DownloadError 2026-11-23 21:44:08 +01:00
Abdessamad Derraz d676991502 fix: root database paths at the bios parent
Identification, the atom pool and capture opened database paths against
the working directory while the build read them under the parent of
--bios-dir. Against a worktree copy the pool dropped every loose ROM and
the survey read the main checkout. romrecipes.collection now holds the
one rule and every reader goes through it, select included.
2026-11-23 21:02:47 +01:00
Abdessamad Derraz 42322a2fd9 refactor: read finding state in one probes module 2026-11-23 21:02:47 +01:00
Abdessamad Derraz 5b3f0c3f4c fix: settle a platform declaration in one place
The pack builder and the manifest each coded the copy a declaration
ships: resolve, agnostic substitute, frontend verdict, then the cores'
choice. The builder skipped the cores' choice once an earlier
declaration of the path was refused, and shipped the copy the name found
while the installer placed the variant the core accepts.
DeclarationJudge in packs/declsettle.py now settles it for both, and the
cores choose on every copy shipped.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz 3344cfd2fb refactor: split crossref into its three subjects
FileConsumers, held_copy and entry_target move to packs/consumers.py, the
data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report
to packs/crossreflaunchers.py and the set-aside labels with
profile_breakdown to packs/crossreftext.py. The site no longer imports the
gap engine to learn who reads a file.
2026-11-23 21:02:44 +01:00
Abdessamad Derraz 18472f9d0f refactor: return auto_fetch searches as records 2026-11-22 02:26:45 +01:00
Abdessamad Derraz 12c8d66163 refactor: read the clone map in one place 2026-11-22 02:26:45 +01:00
Abdessamad Derraz 758bc76b6f refactor: raise download errors to the command
release.latest no longer reads RETROBIOS_API at import: download.py checks
it and passes the endpoint to get_latest_release. The release modules raise
DownloadError and hand progress lines to a callback, so download.py reports
every failure on stderr with exit code 1, the missing release included.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz 04e1d2d3ab fix: name every export change on the site page
The run's summary and the exports page each built the sentence from their
own table, and the page dropped sizes and hashes removed and md5 lists.
Both now read one table of change kinds, and each report stores a count
per kind. The committed reports gain those counts from their own records.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz d8570c6480 refactor: build platform packs without printing
build_platform_pack and build_split_packs return what the build came to and print nothing. print_platform_pack holds the report lines, and generate_pack and generate_split_packs compose the two. The variant choice, the plan and the data directory pass return their notices instead of printing them. The callers that silenced stdout to get a record now call the builder.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz e146a8f349 refactor: move the review's glue to devtools 2026-11-22 00:58:05 +01:00
Abdessamad Derraz 7baeb6475c fix: one execute bit rule for pack and manifest
The pack read the git mode and the manifest the file header, so 833
archives extracted 755 from a pack and 644 from install.py, and 75
programs the reverse. packs.executable decides for both. Data tree
members stay 644 as the installer writes them, and the launcher
archives keep the mode ports/ commits.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 357153eaa3 fix: bound data directory zip extraction
The refresh fetched, filtered and extracted in one function and copied
ZIP members with no size, ratio or duplicate path check. Extraction now
lives in packs/datadirextract.py as local functions, the ZIP side on
safe_extract_zip, which gains a member select hook and returns the file
count. Tests read the member rules on local archives.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 6559d96ac4 refactor: split page preparation and cards 2026-11-22 00:58:05 +01:00
Abdessamad Derraz e36516f3b0 refactor: print the hash lookup from packs 2026-11-21 21:42:19 +01:00
Abdessamad Derraz e0cbf35adc refactor: one selection for emulator pack entries
emulatorcheck and emulatorpack each expanded a profile, filtered it by
system, by --required-only and by region, and chose its archive units
and loose slots. emulator_pack_entries now does it once and both read
it. The --required-only spares are taken among the entries the pack
still carries, as their docstring says: the builder passed the
unnarrowed list, so an optional member of a required set could be kept
over a required one the pack ships. No profile has such a member today.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz 2f9cfc8e8d fix: site reads core file counts from verify
compute_coverage recounted the gap entries: one per entry, not one per
pack path, with held-but-unplaced and bundled files counted missing.
RetroArch read 7956 packed and 419 missing where verify says 7977 and
66. packs/shares.py holds the split both now read.
2026-11-21 21:42:18 +01:00
Abdessamad Derraz 9814bb1234 refactor: step 5 reads counts both tools record 2026-11-21 19:50:42 +01:00
Abdessamad Derraz 416299b6e0 refactor: move coverage and release out of readme 2026-11-21 19:50:28 +01:00
Abdessamad Derraz 35ad46e8c5 refactor: one rescrape command for both freshness 2026-11-21 16:43:57 +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 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 19681a3735 refactor: move ten command helpers into packages 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 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
Abdessamad Derraz 2123bd8317 refactor: move campaign and probe modes to probes 2026-11-21 15:47:20 +01:00
Abdessamad Derraz fd1c2e1c16 refactor: thin verify and cross_reference
Option checks, run modes and the strict exits move to packs (verifyoptions, verifyrun, verifyprint, strictgate, crossrefscope, crossrefreport). Both commands keep main and build_parser only.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz 37ec04aed1 refactor: move generate_pack modes into packs
Option checks go to packs/packoptions.py, the run modes to
packs/packmodes.py and the platform choice to packs/platformrun.py.
generate_pack.py keeps main() and build_parser(). Tests patch the
package modules instead of command attributes.
2026-11-21 15:47:20 +01:00