diff --git a/tests/sources.py b/tests/sources.py index e190e914d..2d48b58a2 100644 --- a/tests/sources.py +++ b/tests/sources.py @@ -31,34 +31,23 @@ COMMANDS = { "packs/crossref.py", "packs/crossrefscope.py", "packs/crossrefrun.py", "packs/crossreflaunchers.py", "packs/crossreftext.py", ), - "slots.py": ( - "packs/slots.py", "resolve/collisions.py", "packs/slotscan.py", "packs/slotreport.py", + "slots.py": ("packs/slots.py", "resolve/collisions.py", "packs/slotscan.py", "packs/slotreport.py"), + "validate_pr.py": ( + "resolve/review.py", "resolve/reviewfiles.py", "resolve/reviewreport.py", + "core/gitclone.py", ), - "validate_pr.py": ("resolve/review.py", "resolve/reviewfiles.py", "resolve/reviewreport.py", "core/gitclone.py"), - "mame_ref_audit.py": ("profiling/mamerefs.py",), - "fileless_audit.py": ("profiling/fileless.py",), - "bundled_only.py": ("packs/bundledonly.py",), - "export_native.py": ("exporter/runner.py", "exporter/native.py", "exporter/originals.py", "exporter/landed.py"), "refresh_data_dirs.py": ("packs/datadirs.py",), "split_pack.py": ("packs/parts.py",), - "dedup.py": ("model/nodedup.py",), - "generate_db.py": ( - "collection/scan.py", "collection/hashcache.py", "collection/releaseassets.py", - "collection/declared.py", "collection/aliases.py", "collection/indexes.py", "collection/record.py", - ), "dedup.py": ( "model/nodedup.py", "collection/dedup.py", "collection/duplicates.py", "collection/clonemap.py", - "bios_integrity.py": ("collection/integrity.py", "collection/gitrestore.py"), + ), "release_record.py": ("model/releaserecord.py", "release/record.py"), "release_notes.py": ("release/notes.py",), "check_release.py": ("release/check.py",), "check_release_assets.py": ("release/assets.py",), "sync_release_assets.py": ("release/sync.py",), "restore_large_files.py": ("release/restore.py",), - "download.py": ( - "release/latest.py", "release/packgroups.py", "release/transfer.py", "release/packfetch.py", - ), "build_installer.py": ("installer_build/amalgamate.py",), "pin_installer.py": ("installer_build/pins.py",), "build_port.py": ("installer_build/port.py",), @@ -68,76 +57,30 @@ COMMANDS = { "generate_installer_doc.py": ("installer_build/installerdoc.py",), "commit_rules.py": ("devtools/commitrules.py",), "pr_checks.py": ("devtools/prchecks.py",), - "cleanup_disk.py": ("devtools/diskcleanup.py",), - "migrate.py": ("devtools/biosclassify.py", "devtools/biosmigrate.py"), - "run_tests.py": ("devtools/testrunner.py",), "check_buildbot_system.py": ("scraper/buildbot_system.py",), - "refresh_stale.py": ( - "freshness/stalejob.py", "freshness/stalefindings.py", "freshness/stalecommands.py", - "freshness/staleplan.py", "freshness/stalerun.py", "freshness/stalereport.py", - ), "generate_site.py": ( - "sitegen/config.py", - "sitegen/emulatorsindex.py", - "sitegen/places.py", - "sitegen/home.py", - "sitegen/versions.py", - "sitegen/guidepage.py", - "sitegen/install.py", - "sitegen/getpages.py", - "sitegen/dataexports.py", - "sitegen/lookup.py", - "sitegen/apiitems.py", - "sitegen/publish.py", - "sitegen/datapage.py", - "sitegen/descriptions.py", - "sitegen/structured.py", - "sitegen/cards.py", - "sitegen/decorate.py", - "sitegen/platformindex.py", - "sitegen/parts.py", - "sitegen/platformfiles.py", - "sitegen/platformpage.py", - "sitegen/systemsindex.py", - "sitegen/provenance.py", - "sitegen/fields.py", - "sitegen/consolecards.py", - "sitegen/startwith.py", - "sitegen/systempages.py", - "sitegen/emulatorcards.py", - "sitegen/emulatorpage.py", - "sitegen/gaps.py", - "sitegen/crossref.py", - "sitegen/reference.py", - "sitegen/whichpack.py", - "sitegen/nav.py", - "sitegen/build.py", + "sitegen/config.py", "sitegen/emulatorsindex.py", "sitegen/places.py", "sitegen/home.py", + "sitegen/versions.py", "sitegen/guidepage.py", "sitegen/install.py", "sitegen/getpages.py", + "sitegen/dataexports.py", "sitegen/lookup.py", "sitegen/apiitems.py", "sitegen/publish.py", + "sitegen/datapage.py", "sitegen/descriptions.py", "sitegen/structured.py", + "sitegen/cards.py", "sitegen/decorate.py", "sitegen/platformindex.py", "sitegen/parts.py", + "sitegen/platformfiles.py", "sitegen/platformpage.py", "sitegen/systemsindex.py", + "sitegen/provenance.py", "sitegen/fields.py", "sitegen/consolecards.py", + "sitegen/startwith.py", "sitegen/systempages.py", "sitegen/emulatorcards.py", + "sitegen/emulatorpage.py", "sitegen/gaps.py", "sitegen/crossref.py", "sitegen/reference.py", + "sitegen/whichpack.py", "sitegen/nav.py", "sitegen/build.py", ), "sitediagrams.py": ("sitegen/diagrams.py",), "sitesources.py": ("sitegen/sources.py",), "site_markdown.py": ("sitegen/pagemarkdown.py",), "validate_site.py": ("sitegen/validate.py",), - "validate_schemas.py": ( - "schemas/validators.py", "schemas/sources.py", "schemas/profilechecks.py", - "schemas/citations.py", "schemas/platformchecks.py", "schemas/sourcetree.py", - "schemas/registry.py", "schemas/documents.py", "schemas/installs.py", - "schemas/packmanifests.py", "schemas/events.py", "schemas/measurements.py", - "schemas/romfolders.py", "schemas/games.py", "schemas/run.py", - ), "site_insights.py": ("sitegen/insights.py",), - "fetch_site_images.py": ("sitegen/imagefetch.py", "sitegen/imagenormalize.py"), - "make_site_icons.py": ("sitegen/brand.py", "sitegen/chromium.py"), - "make_og_cards.py": ("sitegen/ogcards.py", "sitegen/chromium.py"), "generate_readme.py": ("sitegen/readme.py",), - "make_demo.py": ( - "sitegen/demovariants.py", "sitegen/democard.py", "sitegen/demosession.py", - "sitegen/demorecord.py", - ), - "diff_truth.py": ("exporter/truthdiff.py", "exporter/diffreport.py"), "romset_recipes.py": ( - "romrecipes/romsets.py", "romrecipes/pool.py", "romrecipes/pins.py", "romrecipes/identify.py", - "romrecipes/ledger.py", "romrecipes/members.py", "romrecipes/capture.py", "romrecipes/build.py", - "romrecipes/survey.py", "romrecipes/text.py", + "romrecipes/romsets.py", "romrecipes/pool.py", "romrecipes/pins.py", + "romrecipes/identify.py", "romrecipes/ledger.py", "romrecipes/members.py", + "romrecipes/capture.py", "romrecipes/build.py", "romrecipes/survey.py", + "romrecipes/text.py", ), "provenance_report.py": ("acquire/provenance.py",), "auto_fetch.py": ("acquire/fetch.py",), @@ -150,33 +93,77 @@ COMMANDS = { "freshness/catalogs.py", "freshness/ci.py", "freshness/pinbuilds.py", "freshness/profiles.py", "freshness/report.py", ), + "refresh_stale.py": ( + "freshness/stalejob.py", "freshness/stalefindings.py", "freshness/stalecommands.py", + "freshness/staleplan.py", "freshness/stalerun.py", "freshness/stalereport.py", + ), "pipeline.py": ( "orchestrate/labels.py", "orchestrate/results.py", "orchestrate/runner.py", "orchestrate/guards.py", "orchestrate/locks.py", "orchestrate/prepare.py", "orchestrate/build.py", "orchestrate/checks.py", "orchestrate/docs.py", "orchestrate/reports.py", "orchestrate/compare.py", "orchestrate/consistency.py", "orchestrate/emulatorpacks.py", "orchestrate/narrowed.py", "orchestrate/splitcheck.py", + ), + "validate_schemas.py": ( + "schemas/validators.py", "schemas/sources.py", "schemas/profilechecks.py", + "schemas/citations.py", "schemas/platformchecks.py", "schemas/sourcetree.py", + "schemas/registry.py", "schemas/documents.py", "schemas/installs.py", + "schemas/packmanifests.py", "schemas/events.py", "schemas/measurements.py", + "schemas/romfolders.py", "schemas/games.py", "schemas/run.py", + ), + "generate_db.py": ( + "collection/scan.py", "collection/hashcache.py", "collection/releaseassets.py", + "collection/declared.py", "collection/aliases.py", "collection/indexes.py", + "collection/record.py", + ), + "bios_integrity.py": ("collection/integrity.py", "collection/gitrestore.py"), "game_rules.py": ( "games/inputs.py", "games/profileindex.py", "games/headerreaders.py", "games/rulecheck.py", "games/rulesummary.py", + ), "generate_games_index.py": ( "games/inputs.py", "games/profileindex.py", "games/fallback.py", "games/folders.py", "games/setups.py", "games/systems.py", "games/arcadesets.py", "games/render.py", "games/coverage.py", "games/changes.py", "games/publish.py", + ), + "download.py": ( + "release/latest.py", "release/packgroups.py", "release/transfer.py", "release/packfetch.py", + ), + "cleanup_disk.py": ("devtools/diskcleanup.py",), + "migrate.py": ("devtools/biosclassify.py", "devtools/biosmigrate.py"), + "run_tests.py": ("devtools/testrunner.py",), + "make_demo.py": ( + "sitegen/demovariants.py", "sitegen/democard.py", "sitegen/demosession.py", + "sitegen/demorecord.py", + ), "campaign.py": ( - "probes/campaign.py", "probes/host.py", "probes/content.py", "probes/cores.py", "probes/rules.py", - "probes/state.py", "probes/gate.py", "probes/reports.py", "probes/profileedit.py", + "probes/campaign.py", "probes/host.py", "probes/content.py", "probes/cores.py", + "probes/rules.py", "probes/state.py", "probes/gate.py", "probes/reports.py", + "probes/profileedit.py", + ), "standalone_probe.py": ( - "probes/standaloneemulators.py", "probes/appimage.py", "probes/xvfb.py", "probes/standalonerun.py", - "probes/standalonerecord.py", + "probes/standaloneemulators.py", "probes/appimage.py", "probes/xvfb.py", + "probes/standalonerun.py", "probes/standalonerecord.py", + ), "profile_sync.py": ( "profiling/citations.py", "profiling/anchoring.py", "profiling/repos.py", "profiling/resolver.py", "profiling/reports.py", "profiling/versions.py", "profiling/version_basis.py", "profiling/detection.py", "profiling/triage.py", "profiling/yamledit.py", "profiling/proseedit.py", "profiling/rebase.py", - "profiling/bump.py", "profiling/realign.py", "profiling/run.py", - "profiling/worktree.py", "profiling/quota.py", "profiling/sourcepaths.py", - "profiling/realignpass.py", "profiling/versioncheck.py", + "profiling/bump.py", "profiling/realign.py", "profiling/run.py", "profiling/worktree.py", + "profiling/quota.py", "profiling/sourcepaths.py", "profiling/realignpass.py", + "profiling/versioncheck.py", + ), + "diff_truth.py": ("exporter/truthdiff.py", "exporter/diffreport.py"), + "fetch_site_images.py": ("sitegen/imagefetch.py", "sitegen/imagenormalize.py"), + "make_site_icons.py": ("sitegen/brand.py", "sitegen/chromium.py"), + "make_og_cards.py": ("sitegen/ogcards.py", "sitegen/chromium.py"), + "mame_ref_audit.py": ("profiling/mamerefs.py",), + "fileless_audit.py": ("profiling/fileless.py",), + "bundled_only.py": ("packs/bundledonly.py",), + "export_native.py": ( + "exporter/runner.py", "exporter/native.py", "exporter/originals.py", "exporter/landed.py", + ), } diff --git a/wiki/architecture.md b/wiki/architecture.md index d65145733..ee1ab8f1e 100644 --- a/wiki/architecture.md +++ b/wiki/architecture.md @@ -39,9 +39,8 @@ scripts/ all tooling (Python and pyyaml, jsonschema for schema c model/ data loading: database, platforms, registry, profiles, targets, catalogues resolve/ from declarations to files: content checks, resolution, layouts, cores, truth packs/ pack building and verification: selection, archives, manifests, coverage - collection/ upkeep of bios/: duplicates, the MAME clone map, bit flips found and repaired - profiling/ emulator profiles confronted with their upstream source (profile_sync.py) - collection/ the scan of bios/ into database.json: digests, aliases, indexes + collection/ bios/ itself: the scan into database.json (digests, aliases, indexes), + duplicates, the MAME clone map, bit flips found and repaired profiling/ emulator profiles confronted with their upstream source (profile_sync.py, fileless_audit.py, mame_ref_audit.py) romrecipes/ romset identification, rebuilt pinned archives, each archive's recipe @@ -51,15 +50,15 @@ scripts/ all tooling (Python and pyyaml, jsonschema for schema c scraper/targets/ hardware target scrapers (one *_targets_scraper.py per platform) exporter/ native format exporters (batocera, recalbox, emudeck...), the truth diff sitegen/ the site and README generators: pages, navigation, data files - probes/ real-condition runs: the campaign, the pack and region probes - release/ the release record, its notes, the checks of its assets and the pack downloader probes/ real-condition runs: the campaign, the pack, region and standalone probes + release/ the release record, its notes, the checks of its assets and the pack downloader installer_build/ install.py from installer/, its pins, launchers and PyPI package schemas/ the data contracts behind validate_schemas.py: schemas and semantic invariants devtools/ the commit message rules, the checks of a pull request, the test runner, the disk cleanup and the bios/ migration unattended/ the job registry, worktree, CI breaker and units behind autorun.py - freshness/ each transcribed layer against its upstream, one module per area (check_freshness.py), and the refresh of each stale row (refresh_stale.py) + freshness/ each transcribed layer against its upstream (check_freshness.py) and the + refresh of each stale row (refresh_stale.py) orchestrate/ the pipeline's steps in order and the comparisons of step 5 (pipeline.py) install/ JSON install manifests per platform targets/ JSON target manifests per platform (cores per architecture) diff --git a/wiki/reading-reports.md b/wiki/reading-reports.md index 157f404c1..7c9bc44df 100644 --- a/wiki/reading-reports.md +++ b/wiki/reading-reports.md @@ -115,7 +115,7 @@ RetroDECK: 2007/2008 OK, 1 untested [md5] Game data: 5146 in pack, 51 missing (--verbose lists them) Game data held but not packed: 11 (installed with its emulator) Launcher records unproven: 3 (--verbose lists them) - No external files: 81 cores (--verbose lists them) + No external files: 82 cores (--verbose lists them) Ground truth: 109/2008 files have emulator validation (5%) 441 platform-only (no emulator profile) ```