refactor: split core.upstream by subject

HTTP to the forges moves to core.forgehttp, comparisons, trees and
clone history to core.upstreamtree. core.upstream keeps repositories,
the cache and revisions.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 06:20:52 +01:00
1 parent ce92eff0aa
commit 263a64c0e0
65 files changed
+1417 -1337

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ from collections.abc import Sequence
from dataclasses import dataclass, field
from core import upstream
from core import forgehttp
from profiling.reports import ProfileReport, report_to_dict, triage_state
from profiling.versionbasis import version_repo, version_tags
from profiling.versions import VersionReport, check_version
@@ -173,7 +174,7 @@ def _score(
source.repo, source.path, source.pin, args.cache_dir, args.offline,
head=source.head,
)
except upstream.UpstreamError as exc:
except forgehttp.UpstreamError as exc:
# One forge refusing a request (Eden's answers 403 to commit
# lookups) leaves this profile unscored, not the whole ranking.
refused = "commit history unreachable"