Commit Graph
2935 Commits
Author SHA1 Message Date
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
Abdessamad Derraz f05a9a2889 fix: type the board choices for mypy 2026-11-11 17:43:21 +01:00
Abdessamad Derraz 475b6acf83 fix: keep case variants and types in a pack run 2026-11-11 17:41:53 +01:00
Abdessamad Derraz 92462effc6 feat: make a pack from the installer
--pack downloads the narrowed choice into a pack ZIP laid out as --from-pack reads it, the list narrowed to the choice inside. Every member is checked against its SHA-1 before the ZIP is closed, and a failure leaves no file behind. --split writes parts that are each a whole ZIP, and a pack past 4 GB on a FAT32 drive is split by itself. More on the plan holds Make a pack, its plan and its result. Event pack.
2026-11-11 17:17:42 +01:00
Abdessamad Derraz f218998f59 chore: merge the removal and backups from main 2026-11-11 15:35:44 +01:00
Abdessamad Derraz 3bebf75da5 chore: merge the last MAME fixes 2026-11-11 15:23:57 +01:00
Abdessamad Derraz bad9a7f601 feat: follow a clone to its parent set
MAME's search path for a set is the set and every ancestor
(src/emu/driver.cpp:31-38, src/emu/romload.cpp:67-84 at mame0289), so
a clone reads the ROMs it shares with its parent from the parent's
archive. games/arcade/<profile>.json now records, under parents, each
parent game set with ROMs and the clones whose romof chain reaches it
before any BIOS set, and rom_search_sets adds them to what a command
reads. The installer's index leaves them out, as it does the sources.

arcade_parent_importer --all is re-run: every profile gains parents,
and mame0258, mame0278, mame2010, mame2015, mame2016 and fbneo also
gain the sources their committed files lacked.

Manifests, EmuDeck and RetroDECK only: videopac.zip reaches
roms/odyssey2 beside i8244.zip, electron.zip roms/electron, and the 35 parent
sets the profile holds (a7800, apple2e, intv, videopac and others)
reach arcade, consolearcade and mame, the folders whose command starts
any machine. verify --all keeps its severity and status counts.
2026-11-11 15:21:10 +01:00
Abdessamad Derraz e55fd0b76f fix: let a moved page return as part of its target
Sega's page passed its budget and was split by console again:
systems/sega-dreamcast is once more written, as a part whose parent is
systems/sega, the page it had moved to. The redirect already stands
aside for a written page. The test now asks the old address to be
absent or a part of its target.
2026-11-11 15:03:28 +01:00
Abdessamad Derraz a004c924f5 fix: find a filter box read, not the word Filter
A line opening on "Filter " stood for a filter box read whole, but the
installer page's key table has a row "Filter a long list". The reader
now counts a filter box that is not hidden. An MDX source writes the
space between two tags as {" "}: the reader of the generated sources
reads it as a space.
2026-11-11 15:03:24 +01:00
Abdessamad Derraz 01ddbec80f fix: follow the get page title rule in its test
The test rebuilt the old rule (any profile of the setup's name) and so
expected "BIOS pack for RetroArch" once the frontend profile landed.
It now reads the profile's files, as get_page_title does.
2026-11-11 15:03:17 +01:00
Abdessamad Derraz 114afee41b feat: move a config read at the pin with it
A profile following the branch tip (pin_follows) can carry a
config_reads entry read at the build a platform installs, which is
the pin itself: advmame's retropie entry reads advmame.rc at 96237a5.
bump_commit now advances such a revision with source_commit, and
leaves every other revision (another platform's build) alone.
2026-11-11 14:59:37 +01:00
Abdessamad Derraz 62242013ff chore: raise the Batocera page weight for its refs
The MSX part of the Batocera page now cites every reader of the blueMSX
and fMSX machine ROMs (c62515a78, 26c71d03d): 34 KB of links that are
the content. Measured on the gate build of 7c5ad8366.
2026-11-11 14:57:58 +01:00
Abdessamad Derraz cb7700a594 fix: read AdvanceMAME's dir_rom list on RetroPie
RetroPie writes dir_rom $romdir/mame-advmame:$romdir/arcade into the
rc of each AdvanceMAME build (advmame.sh:100, configure_advmame being
called by the 1.4 and 0.94 modules too). _search_list_in_roms split
every list on ';', so the line was dropped and the sets landed at the
BIOS root, where no build reads them.

Each program's separator is now read from its own code: AdvanceMAME
strtoks dir_rom on file_dir_separator(), ':' on Linux, in the three
builds RetroPie ships (advance/linux/file.c:138-141, advance/osd/
fileio.c:696-699 at 96237a5, 685-688 at advancemame-1.4, 640-643 in
advancemame-0.94.0). MAME splits on ';' (src/emu/fileio.cpp:56, 64,
112 at mame0289). RetroPie is rescraped at 427e762: the three
passes_path records are its only change.

advmame, advmame-1.4 and advmame-0.94 carry a retropie config_reads
for dir_rom, read at the build RetroPie installs (96237a5, the tag
advancemame-1.4 its tarball matches, the 0.94.0 tarball). The 1.4 and
0.94 profiles gain the dir_rom pool and a path for each set, and 0.94
a pin_build on rp_module_repo.

Manifests: on RetroPie 55 sets of the three builds move from the BIOS
root to roms/mame-advmame, the first folder of the list, which every
game started from either folder reads. Seven archives other cores
share stay at the root for them. No other platform changes. verify
--all keeps its severity and status counts.
2026-11-11 14:57:12 +01:00
Abdessamad Derraz 39a8ccfd6d fix: count advancemame's sets at its new pin
AdvanceMameOnEmuELEC counted the 29 sets of 799060b. At 0f6a767 the
profile has 26 (aleck64, atarisy1, cedmag and coh1002v leave, hng64
joins), placed in roms/mame and roms/arcade: 52 entries.
2026-11-11 14:57:01 +01:00
Abdessamad Derraz 08b1644a88 fix: compare a held pin to its pin_build only
Since 3129eaf10 a pin_build entry also names the build config_reads are
read at, a revision of its own: ROCKNIX builds DuckStation 0.1-10998
while the profile pins the code at c9dc2254. The test held those to the
profile's pin and read six profiles as disagreeing. advancemame, a held
pin, still disagrees: its pin is moved on another branch.
2026-11-11 14:53:22 +01:00
Abdessamad Derraz 9d37c46bb3 fix: hide host paths in probe logs and errors
MAME logs the folder above the content's ("Parent path"), which no
place named, and a pack probe kept core_probe's traceback with the
checkout spelled out. The first is written <content>/.., the second
<repo>, <dest> and <work>, replaced before the error is cut.
2026-11-11 14:40:17 +01:00
Abdessamad Derraz 0b36d77071 fix: key an emulator folder omission by its cores
Since 7f20702b4 an omission read in an emulator's own folder is one per
folder, and the folder is the core's: mame2015 and mame2016 each list
3dobios.zip. The check keyed omissions by root and dest alone and read
seven manifests as listing one place twice.
2026-11-11 14:35:59 +01:00
Abdessamad Derraz dd1625d1fb fix: read the omission line the installer writes
not_installable_words writes "436 files, 264 of them required. Why:
...": the count is followed by a comma, never a space, so the pattern
found no line and the test read the dry run as omitting nothing. The
page and the installer agree, the pattern did not follow them.
2026-11-11 14:31:12 +01:00
Abdessamad Derraz 02a400aead docs: quote command line flags in comments as code
The lone-dash check read MAME's -rompath and -samplepath, QUASI88's
-romdir and RetroBat's -hash and -sp as half a dash glued to a word.
Quoted as code they read as flags. A C loop quoted in romdir.py and a
docstring in test_agnostic_scope no longer read as clause semicolons.
2026-11-11 14:28:10 +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 e74cbfa4e2 fix: pin advancemame at AmberELEC's build
The three builds the platforms ship are 5f301c8 (Recalbox), 6a34ec0
(EmuELEC) and 0f6a767 (AmberELEC): 5f301c8 is an ancestor of 6a34ec0,
itself an ancestor of 0f6a767. 0f6a767 is no longer on the rewritten
branch and is fetched by its sha. The profile was held at 799060b,
which none of them builds, so EveryBuildReferenceNamesThePin failed.

At 0f6a767 and its two ancestors the same 26 BIOS roots are registered
with the same contents. aleck64, atarisy1, cedmag and coh1002v are not
among them and leave the profile with the Aleck64 and Cedar Magnet
systems, and hng64 (src/drivers/hng64.c:1425-1431, 1718) joins it.
Every ref is moved with the pin and read again. Each cited line holds
the same text at 6a34ec0 and 5f301c8, except advance/osd/video.c:1787,
1795: Recalbox's 5f301c8 compiles those tables from blitmax.h and
startup.h, now said in the notes. The doc/advmame.d citations, worded
otherwise in the older builds, give way to the code that does it
(advance/linux/file.c:87-99, src/romload.c:167-204), and the artwork
refs to src/artwork.c, the loader of this revision.

Manifests: AmberELEC and Recalbox gain hng64.zip and lose aleck64.zip,
cedmag.zip and coh1002v.zip at their BIOS root. EmuELEC loses
cedmag.zip from arcade and mame, its other three stay for MAME 2010
and 2003-Plus, and hng64.zip takes the copy holding the advancemame
members. profile_sync: 0 to review, config_reads BUILD_OK at 6a34ec0.
2026-11-11 14:26:00 +01:00