From 81f63782337a534340e04fcbd7e9e23305c63a8f Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 16 Sep 2026 15:34:49 +0000 Subject: [PATCH] fix(ci): treat DATA_DIR read-only mkdir as infra_fail Host agent-data mount must be writable for nightly workspace create. Co-authored-by: Cursor --- .../2026-09-16-nightly-datadir-align-test-report.md | 5 +++-- scripts/run-nightly-real-pi.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.doc/test-reports/2026-09-16-nightly-datadir-align-test-report.md b/.doc/test-reports/2026-09-16-nightly-datadir-align-test-report.md index 8aa114ce..b72678aa 100644 --- a/.doc/test-reports/2026-09-16-nightly-datadir-align-test-report.md +++ b/.doc/test-reports/2026-09-16-nightly-datadir-align-test-report.md @@ -33,8 +33,9 @@ Gitea nightly run#21 使用 `PI_AGENT_RUNNER_URL=http://127.0.0.1:18865`(dev P ### Nightly 重跑 -- 见 Gitea Actions 最新 `nightly-real-pi` run(dispatch 后回填 run id / verdict) -- Verdict: 待运行完成后更新本节 +- run#25 (`89ce3cc`): DATA_DIR=dev 已对齐,但 `/host-agent-data` 曾 `:ro` → `mkdir ... read-only file system` → `product_fail`(误分类,已改 compose rw + classify infra) +- 修复后重新 `workflow_dispatch`;见最新 run +- Verdict: 配置 FAIL→FIX;待 green ## 六、 自动化测试套件汇总 (Test Suite Execution) diff --git a/scripts/run-nightly-real-pi.sh b/scripts/run-nightly-real-pi.sh index 178e8109..8a089f0d 100755 --- a/scripts/run-nightly-real-pi.sh +++ b/scripts/run-nightly-real-pi.sh @@ -58,7 +58,7 @@ write_receipt() { classify_test_log() { local log_file="$1" # Heuristics: auth/network/timeout/unavailable → infra; assertion/FAIL → product - if grep -Eiq 'context deadline exceeded|connection refused|401 Unauthorized|Unauthorized|runner not available|no such host|i/o timeout|TLS handshake|dial tcp' "${log_file}"; then + if grep -Eiq 'context deadline exceeded|connection refused|401 Unauthorized|Unauthorized|runner not available|no such host|i/o timeout|TLS handshake|dial tcp|read-only file system|mkdir .* read-only' "${log_file}"; then echo infra return fi