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
@@ -26,7 +26,7 @@ from core.statefile import now_iso
from probes.host import NETWORK_DELAYS, Unavailable, child_env, run_group, slug
if TYPE_CHECKING:
from probes.campaign import Campaign
from probes.checkruns import CheckRuns
T = TypeVar("T")
@@ -290,7 +290,7 @@ class Cores:
"""Buildbot nightlies, downloaded once per build, else local builds of
the profile's pinned commit."""
def __init__(self, campaign: Campaign) -> None:
def __init__(self, campaign: CheckRuns) -> None:
self.c = campaign
self.listing: set[str] | None = None