refactor: group scraper modules by subject

scraper/ held the platform scrapers next to three other subjects. The
launcher readers move to scraper/launchers/ (their _launchers suffix
dropped), the MAME and FBNeo hash scrapers and romset importers to
scraper/arcade/, the DAT readers and dump catalog importers to
scraper/dats/. The buildbot check is a freshness check and moves to
freshness/buildbot.py. Every -m command, workflow job, schema
description and page follows.

The scraper discovery in scraper/__init__.py had no caller: the
registry's scraper: field names the module, and the pages now say so.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 10:22:26 +01:00
1 parent 4e01cff854
commit e1bad01b82
130 files changed
+445 -414

No files matched your search

+5 -5
View File
@@ -372,20 +372,20 @@ class ACheckThatCannotAnswerDoesNotPass(unittest.TestCase):
"""Every HEAD unanswered printed "16 unknown" and exited 0, so the
online pipeline printed check_buildbot OK."""
import check_buildbot_system as cbs
from scraper import buildbot_system
from freshness import buildbot
registry = str(REPO_ROOT / "platforms" / "_data_dirs.yml")
tracked = buildbot_system.load_tracked_entries(registry)
tracked = buildbot.load_tracked_entries(registry)
self.assertTrue(tracked)
cases = {
"index unreachable": mock.patch.object(
buildbot_system, "fetch_index", side_effect=OSError("down")),
buildbot, "fetch_index", side_effect=OSError("down")),
"every HEAD unanswered": mock.patch.object(
buildbot_system, "fetch_index", return_value=set(tracked)),
buildbot, "fetch_index", return_value=set(tracked)),
}
for label, index in cases.items():
with self.subTest(label), index, \
mock.patch.object(buildbot_system, "get_remote_etag", return_value=None), \
mock.patch.object(buildbot, "get_remote_etag", return_value=None), \
mock.patch.object(sys, "argv", ["check_buildbot_system.py",
"--registry", registry]), \
contextlib.redirect_stdout(io.StringIO()), \