fix: make maintainer tool output actionable

--emulator accepts a buildbot core name from a profile's cores:, and a
mistyped target gets the closest names instead of every target. diff_truth
shows destinations and reports unpaired entries as evidence, not removals.
The verify summary counts discrepancies, a shared destination names both
systems, a truth hash conflict names both cores, and pipeline steps carry
their place in the real run instead of N/8. Every GitHub API caller takes
the token from github_token(), which falls back to gh auth token.
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 04:42:01 +02:00
1 parent 6ee138a819
commit 7095aa61e7
29 files changed
+764 -154

No files matched your search

@@ -9,7 +9,6 @@ from __future__ import annotations
import argparse
import json
import os
import re
import sys
import urllib.error
@@ -18,7 +17,7 @@ from datetime import datetime, timezone
import yaml
from common import yaml_load
from common import github_token, yaml_load
from . import BaseTargetScraper
@@ -51,7 +50,7 @@ _SKIP = {"retroarch_maincfg", "retroarch"}
def _fetch(url: str) -> str:
headers = {"User-Agent": "retrobios-scraper/1.0"}
token = os.environ.get("GITHUB_TOKEN")
token = github_token()
if token and "api.github.com" in url:
headers["Authorization"] = f"Bearer {token}"
try:
@@ -10,7 +10,6 @@ from __future__ import annotations
import argparse
import json
import os
import re
import sys
import urllib.error
@@ -67,7 +66,9 @@ _MODULE_FLAGS_RE = re.compile(r'rp_module_flags\s*=\s*["\']([^"\']*)["\']')
def _fetch(url: str, accept: str = "text/plain") -> str:
headers = {"User-Agent": "retrobios-scraper/1.0", "Accept": accept}
token = os.environ.get("GITHUB_TOKEN")
from common import github_token # noqa: PLC0415
token = github_token()
if token and "api.github.com" in url:
headers["Authorization"] = f"Bearer {token}"
try: