fix(ci): stabilize FullNone PI E2E timeouts and host KB DNS

Raise HTTP client timeout above AgentTimeout, rewrite compose KB host
to localhost for host-side tests, and retry nightly on deadline flakes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-17 00:28:38 +00:00
co-authored by Cursor
parent 4f2e5f013f
commit a02c67db82
4 changed files with 12 additions and 5 deletions
+3 -3
View File
@@ -135,9 +135,9 @@ LOG_FILE="${EVIDENCE_DIR}/go-test.txt"
set +e
go test -count=1 -timeout "${TIMEOUT}" -v ./internal/server/ -run "${RUN_FILTER}" 2>&1 | tee "${LOG_FILE}"
TEST_RC=${PIPESTATUS[0]}
# One retry when model quality_failed flakes the U8 generate (product path, not infra).
if [[ "${TEST_RC}" -ne 0 ]] && grep -Eq 'quality_failed want completed|status=quality_failed' "${LOG_FILE}"; then
echo "==> retry once after quality_failed flake..." | tee -a "${LOG_FILE}"
# One retry for known flakes: model quality_failed, or PI hang / client deadline.
if [[ "${TEST_RC}" -ne 0 ]] && grep -Eq 'quality_failed want completed|status=quality_failed|context deadline exceeded|Client\.Timeout exceeded' "${LOG_FILE}"; then
echo "==> retry once after quality_failed/deadline flake..." | tee -a "${LOG_FILE}"
RETRY_LOG="${EVIDENCE_DIR}/go-test-retry.txt"
go test -count=1 -timeout "${TIMEOUT}" -v ./internal/server/ -run "${RUN_FILTER}" 2>&1 | tee "${RETRY_LOG}"
TEST_RC=${PIPESTATUS[0]}