diff --git a/scripts/campaign.py b/scripts/campaign.py index b259f073a..83167ebf4 100644 --- a/scripts/campaign.py +++ b/scripts/campaign.py @@ -100,8 +100,8 @@ import autorun from core import childenv from core import hostguard from core import statefile -import campaign_profiles -import campaign_rules as rules +from probes import profileedit as campaign_profiles +from probes import rules from model import measurements as mr from core.statefile import now_iso from core.paths import REPO_ROOT diff --git a/scripts/probes/__init__.py b/scripts/probes/__init__.py new file mode 100644 index 000000000..e31c1d5c3 --- /dev/null +++ b/scripts/probes/__init__.py @@ -0,0 +1 @@ +"""Real-condition probes: the campaign, the pack and region probes, and what they share.""" diff --git a/scripts/campaign_profiles.py b/scripts/probes/profileedit.py similarity index 100% rename from scripts/campaign_profiles.py rename to scripts/probes/profileedit.py diff --git a/scripts/campaign_rules.py b/scripts/probes/rules.py similarity index 100% rename from scripts/campaign_rules.py rename to scripts/probes/rules.py diff --git a/tests/test_campaign.py b/tests/test_campaign.py index 76f5de4b9..f1ef5ca6e 100644 --- a/tests/test_campaign.py +++ b/tests/test_campaign.py @@ -29,8 +29,8 @@ from types import MappingProxyType import yaml import campaign -import campaign_profiles -import campaign_rules as rules +from probes import profileedit as campaign_profiles +from probes import rules from model import measurements as mr REPO_ROOT = Path(__file__).resolve().parent.parent diff --git a/tests/test_layers.py b/tests/test_layers.py index 332b0a08f..d339a0e90 100644 --- a/tests/test_layers.py +++ b/tests/test_layers.py @@ -20,7 +20,7 @@ from pathlib import Path SCRIPTS = Path(__file__).resolve().parent.parent / "scripts" PACKAGE_LAYERS = {"core": 0, "model": 1, "resolve": 2, "packs": 3, "scraper": 3, "exporter": 3, - "profiling": 3, "sitegen": 3, "romrecipes": 3, "acquire": 3} + "probes": 3, "profiling": 3, "sitegen": 3, "romrecipes": 3, "acquire": 3} LIBRARY_LAYER = 3 COMMAND_LAYER = 4 @@ -30,6 +30,7 @@ SIBLING_IMPORTS: dict[str, frozenset[str]] = { # A search starts from what verify finds missing. "acquire": frozenset({"packs"}), "packs": frozenset(), + "probes": frozenset(), "profiling": frozenset(), "romrecipes": frozenset(), # The site prints the recipe counts and the dump-catalog coverage report @@ -40,7 +41,7 @@ SIBLING_IMPORTS: dict[str, frozenset[str]] = { # Top-level modules other modules of scripts/ import: library code that a # later wave moves into a package. NOT_YET_PACKAGED = frozenset({ - "autorun", "build_port", "campaign", "campaign_profiles", "campaign_rules", + "autorun", "build_port", "campaign", "check_buildbot_system", "check_release_assets", "commit_rules", "core_probe", "generate_event_schema", "pin_installer", "pr_checks", "release_record", "romfolders",