docs: name the packs modules

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 13:47:56 +01:00
1 parent 74207e25fc
commit 1f8e106974
7 files changed
+22 -20

No files matched your search

+16 -15
View File
@@ -12,7 +12,6 @@ on:
# Every script the build runs or imports, and no other
# (tests/test_workflow_paths.py).
- "scripts/archive_build.py"
- "scripts/auto_fetch.py"
- "scripts/build_port.py"
- "scripts/core/__init__.py"
- "scripts/core/artifacts.py"
@@ -27,15 +26,11 @@ on:
- "scripts/core/torrentzip.py"
- "scripts/core/upstream.py"
- "scripts/core/ziptools.py"
- "scripts/cross_reference.py"
- "scripts/dedup.py"
- "scripts/derivations.py"
- "scripts/generate_event_schema.py"
- "scripts/generate_pack.py"
- "scripts/generate_readme.py"
- "scripts/generate_site.py"
- "scripts/indexnow.py"
- "scripts/manifestselect.py"
- "scripts/measurement_records.py"
- "scripts/model/__init__.py"
- "scripts/model/alternatives.py"
@@ -45,6 +40,7 @@ on:
- "scripts/model/declarations.py"
- "scripts/model/dumpcatalog.py"
- "scripts/model/largefiles.py"
- "scripts/model/nodedup.py"
- "scripts/model/platforms.py"
- "scripts/model/profiles.py"
- "scripts/model/region.py"
@@ -55,11 +51,18 @@ on:
- "scripts/model/sources.py"
- "scripts/model/systems.py"
- "scripts/model/targets.py"
- "scripts/packextras.py"
- "scripts/packpaths.py"
- "scripts/packreadme.py"
- "scripts/packresolve.py"
- "scripts/packverify.py"
- "scripts/packs/__init__.py"
- "scripts/packs/archive.py"
- "scripts/packs/coverage.py"
- "scripts/packs/crossref.py"
- "scripts/packs/datadirs.py"
- "scripts/packs/extras.py"
- "scripts/packs/gaps.py"
- "scripts/packs/naming.py"
- "scripts/packs/parts.py"
- "scripts/packs/paths.py"
- "scripts/packs/slots.py"
- "scripts/packs/verdicts.py"
- "scripts/pr_checks.py"
- "scripts/provenance_report.py"
- "scripts/refresh_data_dirs.py"
@@ -67,6 +70,7 @@ on:
- "scripts/resolve/__init__.py"
- "scripts/resolve/archives.py"
- "scripts/resolve/categories.py"
- "scripts/resolve/collisions.py"
- "scripts/resolve/content.py"
- "scripts/resolve/contentlayout.py"
- "scripts/resolve/cores.py"
@@ -80,9 +84,10 @@ on:
- "scripts/resolve/localfile.py"
- "scripts/resolve/nativemode.py"
- "scripts/resolve/ownership.py"
- "scripts/resolve/packfiles.py"
- "scripts/resolve/reconcile.py"
- "scripts/resolve/regions.py"
- "scripts/resolve/slot.py"
- "scripts/resolve/review.py"
- "scripts/resolve/standalone.py"
- "scripts/resolve/truth.py"
- "scripts/resolve/validation.py"
@@ -106,12 +111,8 @@ on:
- "scripts/sitesteps.py"
- "scripts/sitewanted.py"
- "scripts/sitewrite.py"
- "scripts/slots.py"
- "scripts/split_pack.py"
- "scripts/validate_pr.py"
- "scripts/validate_schemas.py"
- "scripts/validate_site.py"
- "scripts/verify.py"
- "schemas/**"
- "docs_assets/**"
- "install/**"
+1 -1
View File
@@ -72,7 +72,7 @@ lists what else a change rewrites.
- A file too large for git goes to the `large-files` GitHub release and its
path into `.gitignore`, the list that decides what is served from the release
- Trees addressed by path are kept out of deduplication (`NODEDUP_DIRS` in
`scripts/dedup.py`)
`scripts/model/nodedup.py`)
- Two paths differing only by case break clones on Windows and macOS,
and `tests/test_no_case_collisions.py` enforces this
+1 -1
View File
@@ -919,7 +919,7 @@ lists what else a change rewrites.
- A file too large for git goes to the `large-files` GitHub release and its
path into `.gitignore`, the list that decides what is served from the release
- Trees addressed by path are kept out of deduplication (`NODEDUP_DIRS` in
`scripts/dedup.py`)
`scripts/model/nodedup.py`)
- Two paths differing only by case break clones on Windows and macOS,
and `tests/test_no_case_collisions.py` enforces this
+1 -1
View File
@@ -384,7 +384,7 @@ describes.
`firmware_folder_flat: true` is set where the frontend reads a system's firmware
folder without descending into it (RomM 5.4.1,
`backend/handler/filesystem/base_handler.py:1002`, `recursive=False`). On such a platform, a core file whose destination has a
subfolder is left out of the pack (`nested` in `scripts/packextras.py`), since no
subfolder is left out of the pack (`nested` in `scripts/packs/extras.py`), since no
core would receive it.
### Platform YAML header
+1 -1
View File
@@ -232,7 +232,7 @@ complete.
Every dimension that removes files appears in the output filename and in the
pack README, because the five places that name an artefact (the pack, the
`--split` parts, the `_Split` directory, the grouped-alias rename and the
manifest) all build from one list (`_narrowings` in `generate_pack.py`). A pack narrowed three ways is called
manifest) all build from one list (`_narrowings` in `scripts/packs/naming.py`). A pack narrowed three ways is called
`Recalbox_10.1.1_NorthAmerica_OnePerSlot_Required_BIOS_Pack.zip` and opens with
a `PACK TYPE: Narrowed` block listing the three. Adding a new way to narrow a
pack means adding it to that list, so it cannot reach users nameless or
+1 -1
View File
@@ -316,7 +316,7 @@ How files enter `bios/`, and why.
- **One content, one file.** A byte-identical copy under another name is
removed, and the name it carried becomes a profile alias. Trees addressed by
path keep their equal files, since equality is part of their layout: those
folders are `NODEDUP_DIRS` in `scripts/dedup.py`.
folders are `NODEDUP_DIRS` in `scripts/model/nodedup.py`.
- **Archives the project builds are TorrentZip.** `build_torrentzip()` makes
an archive's bytes depend on its contents alone, so anyone can rebuild it.
An upstream romset whose MD5 a platform pins stays verbatim in `.variants/`.
+1
View File
@@ -1358,6 +1358,7 @@ before a release (wiki/release-process.md). Its lines stay in
| `core/` | Standard library only: hashing, ZIP reading and TorrentZip, atomic writes and output locks, `run_cli` and the input errors it prints on one line, the GitHub token, the repository root, forge access (`upstream.py`) |
| `model/` | Data loading: `database.json`, platform configs and the registry, emulator profiles, hardware targets, system ids, the region vocabulary, dump catalogues, release assets, the `source_ref` grammar (`sourceref.py`) |
| `resolve/` | From a declaration to a file: content checks, `resolve_local_file` and its stages, archive members, launcher layouts, the cores a platform runs, validation, slots, truth |
| `packs/` | The library behind `verify.py`, `generate_pack.py`, `cross_reference.py`, `slots.py` and `refresh_data_dirs.py`: per-file verdicts, coverage and gaps, core extras, slot arbitration, pack naming and archives, manifests, the pack check, the data directory cache |
| `profiling/` | What `profile_sync.py` runs: citations, anchoring, the report and its forms, version checks, detection, triage, and the guarded writes (recale, bump, prose realignment, `version_basis`) |
| `retired_files.py` | The record of files that left the collection, `retired.json`, which `generate_db.py` appends to and the site's lookup reads. `--backfill` rebuilds it from the history of `database.json` since content addresses were published (`--output` names another file) |
| `dedup.py` | Deduplicate `bios/` (`--dry-run`, `--bios-dir`): byte-identical copies are deleted and one kept. Identical MAME sets under other names stay one file, named in `_mame_clones.json`. Trees addressed by path are left alone (`NODEDUP_DIRS`), under a folder of that name at any depth: BBK, Bungie, C-Dogs SDL, Ikemen GO, mame, PinMAME, RPG Maker, ScummVM, Softdisk, TheXTech, splitwolf, Theme Hospital, c64-emu, opentyrian, tzdata |