Commit Graph
6 Commits
Author SHA1 Message Date
Abdessamad Derraz 19681a3735 refactor: move ten command helpers into packages 2026-11-21 15:47:20 +01:00
Abdessamad Derraz 9ac3145c5e refactor: commands read the repository root 2026-11-18 23:14:52 +01:00
Abdessamad Derraz 83cfa6fd0f refactor: split common.py into three packages
core: cli (run_cli, input errors, name hints), github (token), paths.
model: sources, database, composition, registry, platforms,
declarations, targets, systems, profiles, cliargs. resolve: content,
ownership, datadirs, archives, localfile, directories, layout,
contentlayout, standalone, grouping, cores.

Definitions move verbatim; common.py and its re-exports are gone and
every importer, patch target and code-in-string names the new home. A
test that stubbed common.load_platform_config stubs each module that
reads the loader by its own name.
2026-11-18 11:09:13 +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 37aadbd4e0 fix: write the verify excerpt whole
generate_report_excerpt.py rewrote wiki/reading-reports.md with
write_text, which test_atomic_artifacts refuses for a generator: an
interrupted run left a truncated page. It now goes through
write_text_atomic like the other generators.
2026-11-12 18:56:41 +01:00
Abdessamad Derraz 16b452bf3c feat: write the verify excerpt from a real run
The RetroDECK excerpt of wiki/reading-reports.md went stale with every
file the collection gained, three times on 2026-11-12. It now sits
between generated markers, and generate_report_excerpt.py writes it from
verify.py --platform retrodeck at pipeline step 7 (--check reports a
stale block).
2026-11-12 17:19:13 +01:00