From d3f831f39e03370be4fb6bb6a92e588c17883c63 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 23 Mar 2026 19:20:59 +0000 Subject: [PATCH] fix: Register lib/mirrors.sh in CI smoke test (#614) Add mirrors.sh to the LIB_FUNS scan and check_script list so the agent-smoke function resolution test recognizes mirror_push. Co-Authored-By: Claude Opus 4.6 (1M context) --- .woodpecker/agent-smoke.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker/agent-smoke.sh b/.woodpecker/agent-smoke.sh index 9fbf707..3c24112 100644 --- a/.woodpecker/agent-smoke.sh +++ b/.woodpecker/agent-smoke.sh @@ -99,6 +99,7 @@ echo "=== 2/2 Function resolution ===" # lib/file-action-issue.sh — sourced by gardener-run.sh (file_action_issue) # lib/secret-scan.sh — sourced by file-action-issue.sh, phase-handler.sh (scan_for_secrets, redact_secrets) # lib/formula-session.sh — sourced by formula-driven agents (acquire_cron_lock, run_formula_and_monitor, etc.) +# lib/mirrors.sh — sourced by merge sites (mirror_push) # # Excluded — not sourced inline by agents: # lib/ci-debug.sh — standalone CLI tool, run directly (not sourced) @@ -109,7 +110,7 @@ echo "=== 2/2 Function resolution ===" # If a new lib file is added and sourced by agents, add it to LIB_FUNS below # and add a check_script call for it in the lib files section further down. LIB_FUNS=$( - for f in lib/agent-session.sh lib/env.sh lib/ci-helpers.sh lib/load-project.sh lib/secret-scan.sh lib/file-action-issue.sh lib/formula-session.sh; do + for f in lib/agent-session.sh lib/env.sh lib/ci-helpers.sh lib/load-project.sh lib/secret-scan.sh lib/file-action-issue.sh lib/formula-session.sh lib/mirrors.sh; do if [ -f "$f" ]; then get_fns "$f"; fi done | sort -u ) @@ -179,6 +180,7 @@ check_script lib/secret-scan.sh check_script lib/file-action-issue.sh lib/secret-scan.sh check_script lib/formula-session.sh lib/agent-session.sh check_script lib/load-project.sh +check_script lib/mirrors.sh # Standalone lib scripts (not sourced by agents; run directly or as services). # Still checked for function resolution against LIB_FUNS + own definitions.