fix: refresh buildbot updates from its registry

check_buildbot_system --update ran scripts/refresh_data_dirs.py by a
relative path and without --registry: the refresh read the default
registry, and outside the repository root the child was not found and
every updated entry was reported failed. The command now refreshes in
process through packs.datadirs.refresh_keys with the registry it
checked; buildbot_system keeps the check and its selectors.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 16:43:46 +01:00
1 parent e6295aba88
commit 24463647f6
5 files changed
+77 -32

No files matched your search

+8 -2
View File
@@ -19,12 +19,14 @@ import os
import sys
from core.cli import InputMissing
from core.paths import DATA_DIRS_FILE
from model.registry import data_dir_registry_at
from packs.datadirs import refresh_keys
from scraper.buildbot_system import (
check,
pending,
print_report,
unanswered,
update_changed,
updated,
)
@@ -60,7 +62,11 @@ def main() -> None:
print_report(report)
if args.update:
failed = update_changed(report)
# The registry checked is the one refreshed, read in this process:
# a child run by relative path read the default registry, and failed
# outside the repository root.
registry = data_dir_registry_at(args.registry, required=True)
failed = refresh_keys(registry, updated(report), force=True)
if failed:
print(f"ERROR: refresh failed for {', '.join(failed)}", file=sys.stderr)
sys.exit(1)