fix(ci): 修复ACR cleanup错误的命令行参数
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Successful in 2m20s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 4m42s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 5s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 6m44s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1410h49m32s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1410h49m50s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1410h49m51s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1410h49m52s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1410h49m53s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1410h49m51s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1410h49m55s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1410h49m55s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1410h49m53s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1410h49m53s
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1411h21m58s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1411h22m2s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1411h21m56s

acr_cleanup.py通过环境变量(ACR_REGISTRY/ACR_NAMESPACE/ACR_USERNAME/ACR_PASSWORD)
读取配置,不接受--registry/--namespace/--username/--password参数。
CI重构时错误地把这些当作命令行参数传入,导致job失败。

移除错误参数,保留正确的--keep/--pr-days/--execute参数。
This commit is contained in:
CI Bot
2026-07-19 20:39:28 +08:00
parent fad12efd72
commit f7c59b6b44
-4
View File
@@ -931,10 +931,6 @@ jobs:
run: |
set -eu
python3 scripts/ci/acr_cleanup.py \
--registry "$ACR_REGISTRY" \
--namespace "$ACR_NAMESPACE" \
--username "$ACR_USERNAME" \
--password "$ACR_PASSWORD" \
--keep 20 \
--pr-days 7 \
--execute