refactor: campaign rules and editor into probes

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 20:37:49 +01:00
1 parent fdb7b6f912
commit 853a36c79f
6 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
"""Real-condition probes: the campaign, the pack and region probes, and what they share."""
File renamed without changes.
File renamed without changes.
+2 -2
View File
@@ -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
+3 -2
View File
@@ -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",