Commit Graph
1109 Commits
Author SHA1 Message Date
Abdessamad Derraz 3effc4a043 docs: fix the pages the tidy moved 2026-11-24 12:46:39 +01:00
Abdessamad Derraz 67a84db1c1 chore: regenerate data after the bios tidy 2026-11-24 12:16:22 +01:00
Abdessamad Derraz ed3f61db5d refactor: name each variant by its md5 prefix 2026-11-24 12:15:39 +01:00
Abdessamad Derraz ab7e300c19 refactor: tidy the repository root
README.md and CONTRIBUTING.md open with a comment naming their
generator, generate_readme.py --check fails on a hand edit in
validate.yml and pr_checks.py, and .gitattributes marks the pipeline
outputs as generated, held equal to core/generated.py by a test.

_mame_clones.json becomes mame_clones.json, still written beside the
scanned bios/ tree, and now triggers both workflows (coverage reads it).
docs_assets/ moves to website/assets/, which Astro does not read as
content. ACCESSIBILITY.md becomes wiki/accessibility.md, linked from the
README and the installer page. The screenshot list moves to
wiki/images-wanted.md: nothing read docs_assets/screens/.

The architecture map names every root entry (test_repository_map),
platforms/README.md keeps only what this folder holds, the reference
index lists archive-recipes and measurements, and reference-terms no
longer defines Profile twice nor repeats the glossary's Pack.
2026-11-24 10:40:25 +01:00
Abdessamad Derraz 3fabb52367 docs: cite the site modules at their paths
Comments in the workflow, the bootstraps, the installer, the site
sources and the tests still named scripts/sitebootstrap.py and the other
site modules sitegen/ took over. test_cited_scripts checks that every
scripts/ path or -m module a tracked text names exists.
2026-11-24 10:22:33 +01:00
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 74ba20ac10 refactor: keep shared test fixtures in helpers
Fifteen modules imported FakeRepository from test_install_selection, and
others read fixtures from test_install_app, test_install_offline,
test_install_games, test_launchers, test_prose_style, test_site_nav,
test_site_pronouns and test_site_copy. Those now live in installsupport,
gamessupport, launcherssupport, docpagessupport, sitepages and sitecopy,
and test_layers refuses an import of a test module.

sitereferencesupport and the DIST each site module defined merge into
sitepages, launchersretrobatsupport into launcherssupport, auditsupport
into the tests package (REPO_ROOT, HAS_JSONSCHEMA). test_launchers is the
Batocera module and becomes test_launchers_batocera. test_port becomes
test_handheld_port: its archive checks repeated test_handheld_scripts,
whose TheArchives now holds the port.json assertions.

The testing guide splits the row that held 113 modules, replaces the e2e
number ranges by a module table, gives package imports and scratch_dir in
How to add a test, lists every module that reads the working tree and
every helper module. Its guard moves to test_doc_pages_tools and checks
each module on one row once and each family on one row. The guide and
tools.md join the pages whose cited paths and options are looked up.
2026-11-24 10:10:15 +01:00
Abdessamad Derraz 5f354c8faf refactor: move the probe inputs out of tests/
content.yml, oracle.yml, pack_content.yml and observations.yml are read by core_probe, the probes and the site build: they are inputs, not fixtures. measurements/ holds append-only <emulator>.jsonl records only, so they move to campaign/ at the root.
2026-11-24 10:09:39 +01:00
Abdessamad Derraz c3b67d5485 refactor: split the full-screen tests by subject
test_install_tui.py held 16,850 lines. Its 100 test classes move whole into fourteen test_tui_* modules, the shared states, manifests and pseudo-terminal into tests/tuisupport.py. Methods one class borrowed from another live in holder classes there. CI and pr_checks.py run every new module on Python 3.8.
2026-11-24 07:37:15 +01:00
Abdessamad Derraz bedfeec772 refactor: split site reference tests by subject 2026-11-24 07:36:56 +01:00
Abdessamad Derraz 94d6a12b8b refactor: split retrobat launcher tests 2026-11-24 07:36:56 +01:00
Abdessamad Derraz f287517c34 refactor: split doc page tests by subject 2026-11-24 07:36:56 +01:00
Abdessamad Derraz 2208d16b21 refactor: split exporter tests by subject 2026-11-24 07:36:56 +01:00
Abdessamad Derraz b7632dbf45 refactor: split profile_sync tests by subject 2026-11-24 07:36:56 +01:00
Abdessamad Derraz 5451bc5b91 refactor: split the installer and launcher tests
test_install.py becomes eleven modules by subject, test_install_selection.py
gives its pack parity classes to test_install_pack_parity.py, and
test_handheld_launchers.py becomes three. Shared helpers live in
tests/installsupport.py and tests/handheldsupport.py. Test ids are unchanged.
2026-11-24 07:36:36 +01:00
Abdessamad Derraz 623ef5cabe refactor: split e2e and audit suites by subject
test_e2e.py (7,245 lines) becomes eight test_e2e_* modules whose TestE2E* classes inherit the shared scenario from tests/e2esupport.py. test_audit_regressions.py (8,391 lines) becomes eight test_audit_* modules, its constants in tests/auditsupport.py. Test bodies move verbatim and every test id keeps its method name.
2026-11-24 07:36:23 +01:00
Abdessamad Derraz 2a4fb883d3 refactor: move --restore out of the install record 2026-11-24 06:21:13 +01:00
Abdessamad Derraz a535969644 refactor: move the first setup passes out 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 4c8e9077c5 refactor: split the install run passes 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 4e73a39b1e refactor: move the pack parts to their own module 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 9e2a7b851c refactor: split frontend detection by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz cf0a1f1411 refactor: split the --from sources by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 935eab63e2 refactor: split games into index, regions, folders 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 9098fba1bf refactor: split the full screen session by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 42074158fc refactor: split removal into plan, run and backups 2026-11-24 06:21:13 +01:00
Abdessamad Derraz ace6b3d451 refactor: split the full screen views by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz e897dd9d65 refactor: split the full screen actions by screen 2026-11-24 06:21:12 +01:00
Abdessamad Derraz 65c208b8cd refactor: split the hash merge by subject
Writing the merged profile text moves to _hash_write, the generated
MAME device and software list sections to _mame_sections.
2026-11-24 06:20:52 +01:00
Abdessamad Derraz 263a64c0e0 refactor: split core.upstream by subject
HTTP to the forges moves to core.forgehttp, comparisons, trees and
clone history to core.upstreamtree. core.upstream keeps repositories,
the cache and revisions.
2026-11-24 06:20:52 +01:00
Abdessamad Derraz ce92eff0aa refactor: split core extras by subject 2026-11-24 06:20:45 +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 dec7d4bc05 fix: a left-out folder carries its reason 2026-11-24 03:39:00 +01:00
Abdessamad Derraz 54bed5c235 fix: keep test envs and patches in disk cleanup 2026-11-24 03:38:59 +01:00
Abdessamad Derraz fed933daef fix: refuse a missing --for-games folder up front 2026-11-24 02:19:14 +01:00
Abdessamad Derraz 147916b6af fix: one rule for options the screen combines
The full screen offered --one-per-slot from its own copy of the CLI rule,
checked before the install record's --declared-only was added, so every run
it started was refused. combinations.py holds the rule for both, and the
screen decides --standalone and --one-per-slot against the complete list.
tui_blocker's decision is now a TuiObstacle the line-mode sentence reads,
and the --jobs default is DEFAULT_JOBS everywhere.
2026-11-24 02:19:14 +01:00
Abdessamad Derraz d355649bc3 fix: narrowed manifests skip standalone layouts 2026-11-24 02:18:40 +01:00
Abdessamad Derraz f7157a5191 fix: a refusal mid-run ends on the summary 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 5d8320f735 fix: watch the source rom folders are read from 2026-11-24 00:20:03 +01:00
Abdessamad Derraz f896893b6e fix: bios migration says each error once
biosmigrate printed its progress and each failed copy, then migrate.py printed the same failures again. The library now says its steps through the caller's callback and returns the failures, and the command prints each once.
2026-11-23 23:07:45 +01:00
Abdessamad Derraz e62332b4c6 fix: tests rerun what autorun retries
run_tests reran a module only when a signal killed it: a SystemError or an unknown opcode from this host's CPU failed the run, where an autorun step failing the same way ran again. host_misread moves to core.hostguard and both runners read it, a signal kill of any kind now counting for autorun too.
2026-11-23 23:07:45 +01:00
Abdessamad Derraz 46e6b94171 fix: one rule for where a standalone app reads
The site kept a table of entries the app reads outside data_root and the
installer never read it: the manifests copied Cemu's shared fonts, the
Amiberry ROMs and the YAPS2 resources to folders the apps do not open.
The facts now live in each profile as outside_data_root with their
source_ref, and resolve.layout.data_root_place answers for both.

Rows that changed no place were dropped (citra, ymir, cxbx-reloaded,
ppsspp-1.5.4, hatari, the DEV9 files of aethersx2 and armsx2), and the
fsuae row predated its ROMs/Kickstarts standalone_path, which the
launcher walks: its page now gives that folder, as the installer does.
2026-11-23 23:07:32 +01:00
Abdessamad Derraz d7f7d9a63f refactor: share copy plan and failure causes
Standalone copies: copy_sources is the one reading of a copy entry. The
platform pass copies only list entries the run verified in place, never
a disk scan, and --check and --dry-run report the emulator folders.

Failures: failure_causes classifies each failed file once. A failures
event before the summary carries the cause, and the full screen gives
the remedies line mode gives, with no substring test.
2026-11-23 21:44:20 +01:00
Abdessamad Derraz 77115be738 refactor: the run decides what it fetches, once 2026-11-23 21:44:08 +01:00
Abdessamad Derraz b5457d222b fix: leave each job's timeout to the runner 2026-11-23 21:44:08 +01:00
Abdessamad Derraz 19871672e1 refactor: return the restore outcome as a record 2026-11-23 21:02:47 +01:00
Abdessamad Derraz e4845ea446 refactor: one table decides what refresh runs 2026-11-23 21:02:47 +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 e146a8f349 refactor: move the review's glue to devtools 2026-11-22 00:58:05 +01:00