From b47cf440b7052d1419c39920a44bdb068eca9301 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 22:31:32 +0800 Subject: [PATCH] Check out only governance repositories for release reconciliation --- .woodpecker/reconcile.yml | 9 +++++++-- scripts/check-layout.py | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.woodpecker/reconcile.yml b/.woodpecker/reconcile.yml index 56a668a..5b96ce3 100644 --- a/.woodpecker/reconcile.yml +++ b/.woodpecker/reconcile.yml @@ -16,6 +16,11 @@ steps: MARQDO_GIT_TOKEN: from_secret: gitea_reconcile_token commands: - - python3 scripts/check-layout.py - - git submodule update --init + - | + set -eu + domains="$(python3 scripts/check-layout.py --root-domain-paths)" + for domain in $domains; do + git submodule update --init -- "$domain" + done + - python3 scripts/check-layout.py --domain-paths - python3 scripts/reconcile-releases.py --apply --published-after 2026-11-27T02:00:00Z --report-out reconcile-report.json diff --git a/scripts/check-layout.py b/scripts/check-layout.py index adf0014..8d6071b 100644 --- a/scripts/check-layout.py +++ b/scripts/check-layout.py @@ -452,6 +452,7 @@ def main(): paths.add_argument("--active-paths", action="store_true", help="print only direct active component paths") paths.add_argument("--active-entries", action="store_true", help="print validated active entries in dependency order") paths.add_argument("--domain-paths", action="store_true", help="validate domain URLs and print domain paths") + paths.add_argument("--root-domain-paths", action="store_true", help="print root domain gitlinks before checkout") args = parser.parse_args() try: revision = git("rev-parse", "--verify", args.revision + "^{commit}").strip() @@ -463,7 +464,7 @@ def main(): for path, component in sorted(layers[0].linked.items()): if component["state"] == "active": print(path) - elif args.domain_paths: + elif args.domain_paths or args.root_domain_paths: for path, component in sorted(layers[0].linked.items()): if component["kind"] == "domain": print(path)