Commit Graph
2955 Commits
Author SHA1 Message Date
Abdessamad Derraz 4e9f7673a2 chore: merge main for the ruff config 2026-11-17 07:09:56 +01:00
Abdessamad Derraz 4eacb6ff39 chore: lint scripts and tests with ruff
pyproject.toml now carries the ruff rule set: pyflakes, the B rules,
simplify, perf, pyupgrade, complexity and size limits. This commit
applies the fixes that change no behavior and the small defects the
first run named:

- tests/test_install.py used argparse without importing it
- three loops rebound the outer `profile` with each layout
  (packextras, slots, verify); the loop variable is now `layout`
- profile_sync loops shadowed dataclasses.field
- generate_readme and packextras computed values nothing read
- stale noqa markers for rules the project does not enforce

Complexity, size and the remaining findings are handled next.
2026-11-17 07:07:48 +01:00
Abdessamad Derraz ac37802e20 feat: keep game data out of the wanted list
Game data is the player's own, and a file the emulator installs for the build that reads it is no gap: neither is listed. A platform entry leaves when every core reading it installs it (validation.deliverable, scoped by the platform's build of each core).
2026-11-17 03:14:42 +01:00
Abdessamad Derraz b1e8de7124 feat: show the wanted list as a plain table
File name, size, CRC32, MD5 and SHA1, a header row per system, firmware and required first, filtered by name or hash. Each name links its emulator card, else its setup page. Rows carry no upload button: the drop box does that. wanted.json keeps only what the table and the drop box read.
2026-11-13 19:54:20 +01:00
Abdessamad Derraz 6ce6469d25 feat: rank unread platform files after firmware
A file a platform lists and no core it runs reads (verify's unread category) comes after firmware and before game data, labelled on its row.
2026-11-13 19:00:17 +01:00
Abdessamad Derraz 8ae4cb61ac chore: merge main into the wanted page work 2026-11-13 18:34:26 +01:00
Abdessamad Derraz b3a5109955 fix: place hashless files by their own system
The wanted list puts firmware first, then game data, labels each row, and leaves out what no one can share (the profile's reason: user written, emulator written, per person). validate_pr.placement() takes a file known by name alone to its system's folder or the directory it declares, never beside a homonym held for another system.
2026-11-13 18:34:13 +01:00
Abdessamad Derraz 3fd61df038 feat: list every wanted file with its upload
The wanted page lists every file the gaps report lacks, hashless ones included and marked, by system and most useful first, each with its own upload button to the folder validate_pr.placement() gives. Steps from a file in hand to its merge, copy without personal pronouns, list address versioned against stale caches.
2026-11-13 17:38:34 +01:00
Abdessamad Derraz 9362816363 chore: weigh the header wanted link per page
The Wanted files link in the header of every page adds about 80 bytes a
page. Batocera, AmberELEC, RomM and RetroArch ran over their byte
budget on Validation of aada55e65; each budget is now the size of its
pages on the site deployed from that commit.
2026-11-13 17:34:53 +01:00
Abdessamad Derraz c4f746e2d5 chore: merge the wanted files page 2026-11-13 12:26:49 +01:00
Abdessamad Derraz e6738e591b feat: put the wanted page in the site header
A Wanted files link sits in the bar on every page and every width, beside the search and menu buttons on a phone, current on its own page. Below 27rem the site name is kept for screen readers only. files/ and wanted/ link each other in one line.
2026-11-13 12:26:18 +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 d685451f44 refactor: hash a file in slices in one module
MD5 and CRC32 take the file piece by piece, so a large file keeps the page responsive. The lookup and the wanted page read the same code, checked against hashlib and zlib.
2026-11-13 10:45:12 +01:00
Abdessamad Derraz b18e478db0 refactor: share the placement rule of validate_pr
placement() decides the folder and name of a file not under bios/ yet, so the wanted page and the gaps page send an upload where the review asks for it. A declared file whose name the collection holds now gets the .variants/ slot beside it.
2026-11-13 10:45:12 +01:00
Abdessamad Derraz 849722ef18 fix: report a large file only when no name answers 2026-11-13 10:41:09 +01:00
Abdessamad Derraz 9d8dcb1634 docs: keep the readme badges that say something
GitHub cannot name the license of LICENSE, which opens on its scope,
and the Python floor is in the install text. The row keeps the PyPI
version and the validation status.
2026-11-13 06:40:13 +01:00
Abdessamad Derraz d6c61e9959 fix: prove three launcher reads from code
RetroDECK presets LRPS2's pcsx2_bios option to scph10000.bin: LRPS2
now names that label, the SCPH-10000 v1.00 image (ROMVER
0100JC20000117). melonDS 1.1, the Flathub build EmuDeck installs,
imports melonDS.ini when melonDS.toml is absent, which proves the
EmuDeck record. ares lists the settings.bml keys of its MSX2, PC
Engine CD and SuperGrafx CD firmware.
2026-11-13 06:40:13 +01:00
Abdessamad Derraz 336aa89090 fix: count amberelec links to the msx part two
The openMSX system ROMs split the MSX system page in two, and nine
AmberELEC files now link to microsoft-msx-2 instead of microsoft-msx:
two bytes each, 546,403 bytes on the built site of 82d134cd8. The
Markdown of both AmberELEC pages differs from 750a6eb8e by those links
alone.
2026-11-12 19:13:08 +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 c61cc21d88 fix: take the repository hold in the test scratch
Modules run side by side by run_tests.py each started pipelines or
generators that hold the repository root, and the second was refused:
four modules failed on the busy lock in a full run. tests/__init__ names
a scratch folder in RETROBIOS_REPOSITORY_LOCK_DIR, and artifact_lock
takes a repository root's lock there, keyed by the root's path so a
scratch checkout and its child find the same one. Real runs are
unchanged.
2026-11-12 16:29:58 +01:00
Abdessamad Derraz 3e218b15df fix: record the collection after the nms8245 rom
nms8245_disk.rom is now held at the hash openMSX accepts, so it leaves
the known unsatisfied profile hashes, and the RetroDECK excerpt counts
one more core file packed. Batocera's density budget names the release
assets the deployed site restores: four more files on its pages, the
Markdown of its 13 pages the same size as on 2026-11-11.
2026-11-12 15:36:46 +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 fb33ee58e1 feat: find a file stored inside others by crc32
A ROM an emulator embeds sits at an undocumented offset of its
executable, installer or archive. find_embedded tries every offset with a
rolling crc32 (a 29 MB executable in about 3 seconds), reads ZIP members
and walks folders. A hit stays a candidate until --sha1 confirms it, and
--extract writes only a confirmed one, to tmp/acquire/.
2026-11-12 13:56:46 +01:00
Abdessamad Derraz 754b1c29d2 chore: merge the expert installer options 2026-11-12 13:49:49 +01:00
Abdessamad Derraz b0c311fb06 feat: run the test suite as parallel processes
scripts/run_tests.py runs one process per test module, a few at once,
longest first from the last run's durations. Each module gets its own
scratch folder (RETROBIOS_TEST_SCRATCH, read by tests/__init__), so none
shares the installer cache, the probe lock or a fixed name below it, and
none inherits what another left set. A module killed by a signal runs
again alone: on this host a segfault is the host until it fails alone.
2026-11-12 13:47:13 +01:00
Abdessamad Derraz 10bd70bca4 feat: look files up by hash in Software Heritage
Software Heritage archives every public forge, deleted repositories
included, and serves a file by its sha1 or sha256. auto_fetch asks it
before archive.org (step 3b), and --sha1 looks files up without a
platform: the database first, then Software Heritage and archive.org's
per-file metadata. What it finds is re-hashed and written to
tmp/acquire/, never into bios/.
2026-11-12 13:47:13 +01:00
Abdessamad Derraz 750a6eb8e6 chore: merge the expert installer options 2026-11-12 11:05:07 +01:00
Abdessamad Derraz 56df7ec1ec refactor: add the truth list beside the manifest
generate_manifest is one build again, so the gap report runs once per
build. generate_install_list adds the --source truth build and the
standalone layouts, and --manifest writes through it. The schema check
test skips without jsonschema.
2026-11-12 11:03:24 +01:00
Abdessamad Derraz 7d6efc3522 feat: lead with dArkOS, which replaced ArkOS
ArkOS was archived on 30 December 2025 and points its users to dArkOS,
and JELOS has reached its end of life. The handheld guide lists dArkOS
first with the devices of its latest release, and marks ArkOS and JELOS
as no longer updated, citing each project's own page. A card read from
a computer is called dArkOS or ArkOS, since both write the same EASYROMS
tree. The demos are recorded on dArkOS.
2026-11-12 07:28:22 +01:00
Abdessamad Derraz 180aca1c63 fix: close the expert option review findings
Change offers Standalone version of it only without a region, core or
system choice, and a later such choice turns it off in one line.
--find refuses --pack, --add-app, --standalone-copies, --romm-firmware
and --from. Every --find --json match carries every key, null where
absent, and a hash with no one file ends on code 4. A slot claim that
is no object, and a truth-only omission, are checked at the boundary.
truth_files: null reads as no list. Each name a group gives a file is
looked up apart (slot also), and --installed-cores ranks a slot by the
cores found.
2026-11-12 07:12:20 +01:00
Abdessamad Derraz 9361900771 docs: quote the current verify and release output
The RetroDECK verify excerpt in reading-reports.md predated the
launcher and placement counts, and release-process.md quoted v2026.10.10
sizes, so both checks skipped where they should have run. The two
Launcher lines get their shapes and a sentence on what they count.
2026-11-12 05:21:06 +01:00
Abdessamad Derraz 07dd93604d chore: merge origin/main
Takes --remove --misplaced. The pins are written again for the merged
install.py, the launcher index and installer doc regenerated.
2026-11-12 04:42:27 +01:00
Abdessamad Derraz 9cb9fec49e refactor: keep standalone layouts in a file apart
The layouts every list carried grew the download of each run by up
to 30% for an option few use. They now live in
install/standalone/<platform>.json, written by the same --manifest run
and fetched only by a run given --standalone, beside --manifest first.
The list names the builds (standalone_builds). A missing, unreachable
or invalid file stops --standalone on one line, code 1.
2026-11-12 04:41:22 +01:00
Abdessamad Derraz 058c3a1152 feat: remove misplaced copies of installed files
--remove --misplaced deletes a copy only under the name of a file the
installer placed and still holds: beside it in another case, or at the
top of a folder the list fills for a file below. Renamed copies, game
data, links, second names and folders without an installed file stay.
Another setup whose list cannot be read stops the removal.
2026-11-12 04:32:56 +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 b1ff6c762e chore: fail a launcher test that leaves a process
A launcher left behind by a test kept running into the modules after it,
and once for two days after the run that started it. Each simulated
device now waits 6 s after its other cleanups for anything carrying its
FAKE_STATE, kills what is left and fails the test naming it.
2026-11-12 02:25:00 +01:00
Abdessamad Derraz 106d13add1 chore: merge the termux folder fix 2026-11-12 00:39:08 +01:00
Abdessamad Derraz 06aeace091 fix: skip emulator folders closed to this user
Termux on Android 11 cannot look into another app's Android/data
folder. The standalone-copy probes called Path.is_dir() there, and
PermissionError stopped the run after the install. Closed folders now
count as absent, and --standalone-copies names them as skipped.
2026-11-12 00:38:30 +01:00
Abdessamad Derraz 4e50d4edf8 chore: merge origin/main 2026-11-11 23:03:14 +01:00
Abdessamad Derraz 8d87f28cdc fix: name the platforms' neo geo on the site
snk-neogeo and neogeo now resolve to the Neo Geo section: their own
names and parents, or the site stops on a system with no name. The Neo
Geo rows of AmberELEC and Batocera name every emulator that reads the
set, and their page ceilings follow (1,311 words, 546,385 and 1,396,380
bytes).
2026-11-11 22:20:19 +01:00
Abdessamad Derraz ac71be8644 chore: merge the site test fix 2026-11-11 21:31:22 +01:00
Abdessamad Derraz da223cd5ed fix: let the site tests read mdx pages
Pages with tabs are written as MDX. The tests read .md alone and skipped
eleven checks in silence on the SNK, Sega and Nintendo pages, which hid
the two defects above. The ares Neo Geo check follows its profile: ares
reads neogeo.zip itself (desktop-ui/emulator/arcade.cpp:456-464).
2026-11-11 21:31:00 +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 3234f071fa chore: merge making a pack 2026-11-11 18:40:54 +01:00
Abdessamad Derraz 35fce543c1 chore: merge the bubblewrap retry from main 2026-11-11 18:40:17 +01:00
Abdessamad Derraz 3a42791f25 chore: retry bubblewrap and run fetches after it
No Ubuntu mirror resolved on two runs: the bubblewrap step failed, and
setup-node, npm ci and both fetches were skipped, so the suite failed on
missing data trees and astro. apt now retries each file and the whole
install once more after 30 s, and the four steps that do not need the
sandbox run unless the job is cancelled. The sandbox step still fails
the job, and its tests already skip naming the missing bwrap.
2026-11-11 18:27:15 +01:00
Abdessamad Derraz ba2df77698 fix: swap a pack in whole and name its platform
The earlier pack of the name is set aside while the new files take their names and put back if one cannot, so the folder never holds a mix of parts. A scratch file that cannot be deleted is named, and a cleanup that fails keeps a written pack at exit 0. Only a file whose marker or manifest names the pack is removed, each one said. Each member is deflated at level 9 and the ZIP is read back with testzip. The space check counts the largest data tree archive. A pack name that spells another platform is refused, and the reader trusts the platform the manifest names.
2026-11-11 18:06:16 +01:00
Abdessamad Derraz d1615e3f61 chore: count the new MSX and ScummVM refs 2026-11-11 17:58:42 +01:00
Abdessamad Derraz 5dc714a353 chore: raise two page budgets for MAME readers 2026-11-11 17:53:25 +01:00
Abdessamad Derraz 9d53b24eab chore: link namco-na1 and sega-model1 in tests 2026-11-11 17:43:21 +01:00