refactor: split the campaign class

Probe runs, check state and findings move verbatim into a CheckRuns
base class in probes.checkruns, with the records they share. Cores and
ContentStore name CheckRuns, the class holding everything they read.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 06:21:09 +01:00
1 parent 209dbf38d8
commit 7ca304a5dd
7 files changed
+408 -393

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ from core.statefile import now_iso
from probes.host import NETWORK_DELAYS, Unavailable, child_env, main_cache, run_group
if TYPE_CHECKING:
from probes.campaign import Campaign
from probes.checkruns import CheckRuns
ROMFETCH_ENV = "RETROBIOS_ROMFETCH"
@@ -167,7 +167,7 @@ class ContentStore:
past the cap. Only what the campaign fetched is ever deleted, and never
a pinned entry."""
def __init__(self, campaign: Campaign) -> None:
def __init__(self, campaign: CheckRuns) -> None:
self.c = campaign
self.state: dict = campaign.state["content"]
self.refs: dict[str, set[str]] = {}