Prefer a success when collapsing per-identifier probe answers
CI / Python 3.13 (push) Successful in 41s
CI / Python 3.12 (push) Successful in 44s
CI / Build and smoke-test image (push) Successful in 12s

This commit is contained in:
omar committed 2026-11-29 11:44:24 +03:00
1 parent 42808ab048
commit 4f4c8276b6
1 file changed
+5 -1
+5 -1
View File
@@ -580,7 +580,11 @@ def _trusted_refs(doc: Doc, issue: Issue) -> Iterable[dict[str, Any]]:
def _claim_coverage(group: Group, checked: dict[Check, ProviderPage], index: dict[str, Status], asset: Asset | None = None) -> list[Status]:
statuses = []
planned = _checks(group, asset)
answers = {(check.source, check.native_id.upper()): page.status for check, page in checked.items()}
answers: dict[tuple[str, str], Status] = {}
for check, page in checked.items():
key = (check.source, check.native_id.upper())
if page.status.status == 'ok' or key not in answers:
answers[key] = page.status
for check in planned:
actual = checked.get(check)
if actual is None and check.url is not None: