Commit Graph
278 Commits
Author SHA1 Message Date
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 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 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 d355649bc3 fix: narrowed manifests skip standalone layouts 2026-11-24 02:18:40 +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 3f7968dea8 docs: name test_variant_copies in the guide 2026-11-22 00:17:50 +01:00
Abdessamad Derraz 29fb089a2b docs: name the retrodeck component test 2026-11-21 21:04:48 +01:00
Abdessamad Derraz 8d9495a478 docs: name test_scraper_dropped in the guide 2026-11-21 20:06:01 +01:00
Abdessamad Derraz 74fcdd2bc5 refactor: read archive members in one place
core.ziptools.zip_members lists the name, size and crc32 of each member once per archive revision. The site lookup and cards, the gap report, the pack check, the romset importer, the recipe identification and build, provenance, derivations and the atom pool read it instead of opening each archive again.

Each reader also tested a .zip suffix and skipped the .variants/ copies (x.zip.1a2b3c4d): the site lookup listed no member of a copy, the gap report's member index never saw one, the pack check never compared a copy's members, and the pack builders copied a copy without its CRC test. They now use is_archive_path. The inner ROM index of the resolver reads copies too, and a copy answers only for a member no primary holds.
2026-11-21 10:30:40 +01:00
Abdessamad Derraz 331f244aac refactor: find held records by the resolver rule
The gap report counted a file held on any crc32 hit, without the declared size and even against a contradicting stronger hash. The pack check split md5 lists by hand and took a loose ROM for the member a zipped_file md5 names. Both now ask held_record_for, the resolver's hash steps. The pack check still compares whole digests, as Batocera does, so a cut md5 names a file without satisfying it.

records_for_hash returns every held record an index value names. The variant search reads it instead of its own kind-to-index table. Any one accepted value still nominates a candidate there, because the validation index merges what several emulators accept and their own checks judge each file.
2026-11-21 10:30:40 +01:00
Abdessamad Derraz 6aee415098 chore: align three tests with the shared helpers 2026-11-21 06:45:11 +01:00
Abdessamad Derraz 5af8936ef8 docs: list the scraper network tests 2026-11-20 20:35:43 +01:00
Abdessamad Derraz 200f785f67 docs: name the listxml and line index tests 2026-11-20 20:03:20 +01:00
Abdessamad Derraz c6bd6db563 docs: list the Switch NCA test in the guide 2026-11-20 08:17:08 +01:00
Abdessamad Derraz b688f41a5a docs: name the modules that replaced common.py
The wiki, the platforms README and two comments named common.py, and
the installer's region table named scripts/region.py. tools.md lists
core/, model/ and resolve/ where it listed common.py, and the testing
guide names test_layers. install.py is rebuilt from installer/ and its
pins rewritten.
2026-11-18 11:43:36 +01:00
Abdessamad Derraz e10c14935a docs: say install.py is built from installer/
The installer page, the tool list, the testing guide and the
architecture tree name the package, the build script and its check.
2026-11-18 01:37:38 +01:00
Abdessamad Derraz 8f1b88bb7e chore: lint with ruff in CI, drop mypy baseline
The code now carries no type error and no ruff finding. CI runs mypy
bare and ruff with the rule set of pyproject.toml; pr_checks.py and
the contribution guide list both. The baseline and its tooling go.
2026-11-17 15:28:11 +01:00
Abdessamad Derraz 4a9317cb4c feat: add the wanted page
Files dropped on wanted/ are hashed in the browser and compared with the files the gaps page reports the collection lacks. A wanted file gets a link to GitHub's upload page for the folder validate_pr asks for, and the name to give it. The gaps page upload link reads the same rule.
2026-11-13 10:45:18 +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
Abdessamad Derraz abbfebff3e feat: run the CI suite as parallel processes
validate.yml and pr_checks.py run scripts/run_tests.py with four jobs,
the runner's cores: 24 minutes here for the suite that took about 40 in
one process. A failed module's tracebacks are printed in the summary, as
a runner keeps no log file. The two scripts added today follow the rules
the suite holds every script to (no abbreviated option, run_cli, every
option documented), and the two isolation tests drop the per-module
scratch variable to check the folder a module gets alone.
2026-11-12 15:36:46 +01:00
Abdessamad Derraz 2060673b44 feat: add expert narrowing to the installer
--one-per-slot, --emulator NAME --standalone, --source truth and
--find HASH (with --json), each replaying the pack builder's option of
the same name from the list. Change offers One BIOS per console and
region and Standalone version of it. A combination the builder refuses,
or a list without the fields, is refused. Parity against the real packs
of every registered platform in tests/test_install_expert.py.
2026-11-12 04:03:46 +01:00
Abdessamad Derraz 733b059712 chore: merge origin/main
# Conflicts:
#	install.ps1
#	install.sh
#	install/launchers/index.json
#	wiki/testing-guide.md
2026-11-11 19:35:01 +01:00
Abdessamad Derraz 2e1f70af1e docs: describe making a pack 2026-11-11 17:22:51 +01:00
Abdessamad Derraz f218998f59 chore: merge the removal and backups from main 2026-11-11 15:35:44 +01:00
Abdessamad Derraz a51f3d7f43 fix: name the removal options on the site
The options glance gains a Remove and put back group, the testing guide names test_install_removal, install.py declares _REPARSE_POINT once, and the type baseline drops three errors this change resolved.
2026-11-11 15:34:48 +01:00
Abdessamad Derraz 3fb21f9c1e fix: skip schema checks when jsonschema is absent
validate_schemas needs jsonschema, which the build does not install.
test_launcher_evidence imported it at the top, so the suite without it
errored. The module is now named in the testing guide, and its
docstring no longer joins two clauses with a semicolon.
2026-11-11 14:26:53 +01:00
Abdessamad Derraz 9627c79591 docs: list two test modules in the testing guide
test_content_checks and test_data_only_refs read profile content and
citations: they sit with the verification and profile checks.
2026-11-11 10:27:52 +01:00
Abdessamad Derraz c2e8338a24 feat: test the text a page gives a reader
Generated and built pages read without the stylesheet, skipping hidden,
aria-hidden, scripts and styles: no step or figure text read twice, no
counter glued to a label, no empty picker, every laid out box spaced.
The build's filter box is compared with the generator's through node.
2026-11-10 14:12:06 +01:00
Abdessamad Derraz d7bd89d42b feat: serve the handheld launchers from the site
build_port's four archives carry install.py pinned by SHA-256, so they
change with the installer, not with the packs. The site now builds them
from its own commit and serves them under get/handheld/. Each get/ page
of Batocera, KNULLI, ROCKNIX and AmberELEC names its file, size, hash,
folder and menu, and get/linux-handhelds/ does the same for muOS, ArkOS,
dArkOS and JELOS. The installer's handheld section opens on a download
table, both tables written from sitehandheld.LAUNCHERS.
2026-11-10 11:50:29 +01:00
Abdessamad Derraz 0762d39cbe docs: list the new launcher test modules 2026-11-10 06:48:31 +01:00
Abdessamad Derraz 2dc427d5d0 chore: merge origin/main 2026-11-10 00:50:05 +01:00
Abdessamad Derraz bfa79d6788 fix: name the Neo Geo Pocket systems by their ids
Phase 0 files snk-neogeo-pocket and neo-geo-pocket-color under snk-ngp and snk-ngpc. The No-Intro catalogs, their importer map and the campaign list now use those ids, the games index is regenerated, and the site's name table drops the eleven entries the new aliases leave unread.
2026-11-09 23:12:26 +01:00
Abdessamad Derraz 20291e3573 chore: merge the platform quirks branch
# Conflicts:
#	install.ps1
#	install.sh
#	install/launchers/index.json
#	wiki/testing-guide.md
2026-11-09 20:56:04 +01:00
Abdessamad Derraz 025fd08a72 chore: merge origin/main 2026-11-09 14:02:45 +01:00
Abdessamad Derraz 51aa626028 fix: fetch platform originals without exporting
--fetch also exported and stopped on the absent dist/truth before any
download, so CI skipped every exporter fidelity case and tolerated the
step. --refresh-cache only downloads: the step can no longer fail
unseen.
2026-11-09 12:45:57 +01:00
Abdessamad Derraz 045ad9e3af chore: merge origin/main 2026-11-09 10:54:08 +01:00
Abdessamad Derraz 602945faf0 feat: logos, build stamps and exact wording
- The installer says "Every file on the list is in place." where it
  said "Everything is in place.": a check covers the files the
  collection holds, and the required ones it lacks follow.
- The FAQ, first install, legal and home pages state only what the
  code shows (PlayStation 1 and Saturn run without a BIOS on some
  emulators, save files are never touched, records are added).
- MinUI and MyMinUI show their own boot logos, and the Android,
  Linux handheld and iPhone tiles show the Android robot, Tux and a
  plain device icon, each credited in sources.json.
- Each Markdown copy, llms.txt and llms-full.txt name the commit
  they were built from, version.json the current one, and the
  answering rules tell assistants to fetch a stale copy again.
- The deploy lists the pages whose words changed (digests.json) and
  posts them to IndexNow once the site is live.
2026-11-09 10:47:37 +01:00
Abdessamad Derraz 0c2bfd75f6 docs: list the PyPI test, drop pronouns there 2026-11-09 08:35:52 +01:00
Abdessamad Derraz 469f569890 chore: merge origin/main 2026-11-09 08:25:21 +01:00
Abdessamad Derraz 78e22851dd chore: guard the site against personal pronouns 2026-11-09 08:09:47 +01:00