fix(ci): mount DATA_DIR and docker for Gitea nightly host jobs

Avoid all-SKIP false PASS and exit-127 without receipt when image build lacks docker.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-16 15:17:16 +00:00
co-authored by Cursor
parent 212f0974d8
commit 7df43f419e
4 changed files with 19 additions and 3 deletions
+13 -1
View File
@@ -146,7 +146,19 @@ fi
set -e
if [[ "${TEST_RC}" -eq 0 ]]; then
ensure_candidate_images
# go test exits 0 on all-SKIP; treat that as infra (shared DATA_DIR / runner mount).
if ! grep -Eq '^--- PASS:' "${LOG_FILE}" && grep -Eq '^--- SKIP:' "${LOG_FILE}"; then
echo "all matching tests skipped (likely missing DATA_DIR/workspaces)" | tee "${EVIDENCE_DIR}/infra-tests-skipped.txt"
write_receipt infra_fail infra "${LOG_FILE}" "${EVIDENCE_DIR}/infra-tests-skipped.txt"
echo "infrastructure failure: suite skipped instead of executing" >&2
exit 1
fi
if ! ensure_candidate_images; then
echo "candidate image build failed" | tee "${EVIDENCE_DIR}/infra-image-build.txt"
write_receipt infra_fail infra "${LOG_FILE}" "${EVIDENCE_DIR}/infra-image-build.txt"
echo "infrastructure failure: candidate image build" >&2
exit 1
fi
write_receipt pass none "${LOG_FILE}" "${EVIDENCE_DIR}/runner-health.json"
echo "nightly real-PI PASS; receipt written for ${COMMIT:0:12}"
exit 0