Commit Graph
6060 Commits
Author SHA1 Message Date
Abdessamad Derraz d6abe6fd95 fix: name why an external download failed
download_external returns an ExternalFetch outcome instead of printing and returning a bare bool, so the pack report names the real cause. lookup_hashes resolves offline and counts a release asset as held without downloading it.
2026-11-23 21:02:46 +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 d2f4ef6f9c fix: place hash-selected files like the platform
The hash-selected pack decided a declaration's place with a string
prefix test on base_destination, so Batocera's bios_CD_U.bin and
bios7.bin stayed at the root of the pack while scph5501.bin went under
bios/. platform_destination in packs/paths.py now places a platform
declaration for the platform pack, the manifest and the --from-md5 pack.
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 cdbde88017 refactor: one owner for the get page description
getpages and handheld write the description of every download page.
The unreachable copy in descriptions parsed their rendered text.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz acdce07ea5 fix: give the gaps page accepted hashes as data
Verify details now hold the values a refused hash check accepts, so the
gaps page no longer parses them out of the mismatch message.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz ed73caf489 fix: write rom-folder refs through one formatter 2026-11-23 21:02:27 +01:00
Abdessamad Derraz eec854cc0b fix: resolve coreinfo --compare-db like the packs 2026-11-23 21:02:27 +01:00
Abdessamad Derraz 888799e24c refactor: let the extractor name bios programs
boards_build matched passes_to exec and a literal /userdata/bios on the
serialized records to know which emulators the user supplies. The
Batocera and KNULLI extractors now report them, read against the BIOS
root configgen's batoceraPaths gives.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz 0757698063 refactor: one owner for a launcher emulator list
The comma-joined emulator field of a launcher record was written in
eleven places and read in nine, four of them splitting on ", " with no
strip. model.launcherrecords joins and splits it, and every scraper,
resolve and packs reader goes through it.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz 2b5031ecd6 refactor: one owner per installer source decision
--emulator says its Narrowed line through detail, as every other narrowing. Detection records that it read the RetroArch configs, and a lookup detects again only before that, held by detection_held. The list and pack open apart from the --from folders, whose refusal one function builds for line mode and the full screen.
2026-11-22 02:26:45 +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 ebabb03e74 fix: read the export cache path from the exporter 2026-11-22 02:26:45 +01:00
Abdessamad Derraz ef33a95971 refactor: decide the recorded trees in one place 2026-11-22 02:26:45 +01:00
Abdessamad Derraz ee404551a9 refactor: return the campaign plan as lines 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 74c59ad3b9 fix: read installed_on from the run's profiles 2026-11-22 02:26:45 +01:00
Abdessamad Derraz 815341ba3b fix: refresh source paths only from emulators/ 2026-11-22 02:26:45 +01:00
Abdessamad Derraz 11f6d478d2 docs: name resolve.localfile in packfiles 2026-11-22 02:26:45 +01:00
Abdessamad Derraz a39b1c25f3 fix: choose a release asset by one rule
resolve_file picked and fetched a release asset in one step, and verify re-derived the choice in pending_release_asset, which refused any record whose size differed from a declared size. fbneo's donpachi, sfz3mix and twotiger samples declare an approximate size with no validation: an online build shipped them while verify reported them missing.

release_asset_paths now chooses on the database record under the rules declared_hash_verdict applies to bytes, and both the builder and verify call it. The builder then fetches that revision and holds its bytes to the declaration.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz dd76142a9c fix: name why a narrowed pack was refused
The consistency step printed only that the builder wrote no pack: the refusal went to the stdout it discarded. It now prints the reason the outcome carries.
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 977d3f6874 fix: annotate three empty dicts in test_e2e 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 8d93c8979e refactor: share the data trees of an emulator pack
carried_trees and claimed_tree_files in datatrees decide which trees an
emulator pack carries and where, and walk them under the cache lock.
The builder writes what they yield and verify records it, instead of
two copies of the selection and an unlocked walk on the verify side.
2026-11-22 02:26:44 +01:00
Abdessamad Derraz ad37a73964 refactor: let verify_emulator raise a bad name
verify_emulator and verify_system raised SystemExit from a library: the
verify command now prints and exits, and the pipeline's emulator pack
comparison no longer selects the profiles a second time to avoid it.
2026-11-22 02:26:44 +01:00
Abdessamad Derraz 5c3f2c7146 fix: key coverage cache on the given collection 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 9979f1856d fix: build agent commands from install_command 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 137035d28b fix: read site manifests and archives from inputs 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 35b5458a2d fix: read the lakka release from lakka.yml
The target scraper asked for the latest Lakka release while lakka.yml
named its version by hand, kept in step by a test alone. The scraper now
reads that field, and check_freshness reports a newer Lakka release.
2026-11-22 02:26:44 +01:00
Abdessamad Derraz 852415a0e4 fix: report a scraper's cause, not its hint 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 768ac05b4d fix: compare redump datfiles by their file stamp 2026-11-22 02:26:44 +01:00
Abdessamad Derraz 80461985d3 chore: trigger the site on three moved modules 2026-11-22 01:25:24 +01:00
Abdessamad Derraz a51e6d3e3c docs: drop three clause semicolons 2026-11-22 01:25:24 +01:00
Abdessamad Derraz 0734b01e56 fix: set offline on the screen state in the test 2026-11-22 01:25:24 +01:00
Abdessamad Derraz 352e2bbb5e refactor: take a recorded choice in one place
The journey to another device's folder no longer stops on Create the folder?: one missing level is created as line mode does, since the shared rule for a missing BIOS folder.
2026-11-22 01:06:40 +01:00
Abdessamad Derraz c113a79c70 fix: retry bios files by the shared rule 2026-11-22 01:06:40 +01:00
Abdessamad Derraz a9d94acdac fix: one full-drive remedy for plan and refusal
The line plan said to choose another folder, which line mode cannot do,
while the refusal after Enter named --dest. space_remedy now gives the
remedy to both, the screen keeping its folder row.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz c4a129e200 fix: follow moved retrodeck folders under --dest
A run given --platform and --dest never detects, so retrodeck.json was
never read and a moved bios/ folder was ignored. MovedFolders looks the
root up on first use, is reset per run, and detection only warms it.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz 9f3fc2e0c1 refactor: read offline from the screen state
The rows asked state.offline while the plan, the estimate and the
result read the environment, kept in step only by the session loop.
tui_offline_only(state) is the one question; the variable only carries
the choice to the runs and the wording.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz af34c81d71 fix: one rule for a missing bios folder
The full screen asked Create the folder? for a single missing level,
which line mode creates, and focused Create for two, which line mode
asks with no as the answer. missing_folder() gives both modes the
nearest folder, the missing levels and the verdict.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 940893d7d4 fix: keep the digest cache beside the scanned tree
The cache path and .gitignore were read from the working directory: a
scan of a copy replaced the repository's cache with the copy's entries,
keyed bios/... like the real ones, and the next run rehashed everything.
Both now come from the tree holding bios/, and kept release assets are
restored under it.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 936e9ceed9 refactor: print the autorun plan in the command 2026-11-22 00:58:05 +01:00
Abdessamad Derraz e77cf9fd69 refactor: type the campaign test doubles 2026-11-22 00:58:05 +01:00
Abdessamad Derraz d83ba31d31 fix: keep only judged evidence when reviewing 2026-11-22 00:58:05 +01:00
Abdessamad Derraz bb46a0282a fix: read the content checks from model.profiles 2026-11-22 00:58:05 +01:00
Abdessamad Derraz 5cce11e7d0 fix: one attention verdict on the profile report
check_freshness rebuilt the profile_sync verdict from single JSON keys and
dropped version_warning, version_unread and detection_skipped: a core_version
behind its pin and a refused detection both read OK. ProfileReport.attention()
now gives every reason with its level, report_to_dict serializes it, freshness
maps the levels, and --strict names the kinds it fails on.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz e146a8f349 refactor: move the review's glue to devtools 2026-11-22 00:58:05 +01:00
Abdessamad Derraz 19bcc76c8f refactor: hand the native model its profiles 2026-11-22 00:58:05 +01:00