refactor: move report inputs out of the resolver

The refs a report anchors, the repositories it reads and the revisions
it compares move to profiling.reportinputs. The resolver keeps the
per-profile _Resolver and build_report.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 06:21:09 +01:00
1 parent 1a33cb6e8a
commit 209dbf38d8
5 files changed
+318 -291

No files matched your search

+2 -2
View File
@@ -179,8 +179,8 @@ COMMANDS = {
),
"profile_sync.py": (
"profiling/citations.py", "profiling/anchoring.py", "profiling/repos.py",
"profiling/resolver.py", "profiling/reports.py", "profiling/versions.py",
"profiling/versionbasis.py", "profiling/detection.py", "profiling/triage.py",
"profiling/resolver.py", "profiling/reportinputs.py", "profiling/reports.py",
"profiling/versions.py", "profiling/versionbasis.py", "profiling/detection.py", "profiling/triage.py",
"profiling/yamledit.py", "profiling/proseedit.py", "profiling/rebase.py",
"profiling/bump.py", "profiling/realign.py", "profiling/run.py", "profiling/worktree.py",
"profiling/quota.py", "profiling/sourcepaths.py", "profiling/realignpass.py",
+1 -1
View File
@@ -27,7 +27,7 @@ from resolve.launcherconfig import (
)
from resolve.launchers import handed_directories
from resolve.launcherplaces import launcher_places
from profiling.resolver import _check_build_refs
from profiling.reportinputs import _check_build_refs
from profiling.repos import shipped_build_holders
from scraper.retrobat_launchers import _choices_apart
from scraper.shell_launchers import LauncherPatternMissing, Script, config_placement
+2 -1
View File
@@ -28,6 +28,7 @@ from profiling import rebase
from profiling import reports as profiling_reports
from profiling import repos as profiling_repos
from profiling import resolver
from profiling import reportinputs
from profiling import run as profiling_run
from profiling import sourcepaths as profiling_sourcepaths
from profiling import worktree as profiling_worktree
@@ -6197,7 +6198,7 @@ class TestAnUnansweringRepository(unittest.TestCase):
def _report(self, profile):
from unittest import mock
with mock.patch.object(resolver, "select_views", return_value=[]):
with mock.patch.object(reportinputs, "select_views", return_value=[]):
return resolver.build_report("p", profile, ".cache", True)
def test_a_declared_pin_names_the_repository(self):