From e605da786a67738ab21a454270a4122bcce8ebe1 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Sat, 11 Apr 2026 17:23:57 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20CI=E7=94=A8timeout=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=BC=BA=E5=88=B63=E5=88=86=E9=92=9F=E8=B6=85=E6=97=B6+?= =?UTF-8?q?=E6=B8=85=E7=90=86Cypress=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 6a7d608..43a4911 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -58,9 +58,9 @@ jobs: exit 1 fi - # Run core cypress specs with timeouts + # Run core cypress specs with hard 3-minute timeout cd frontend - npx cypress run --spec "\ + timeout 180 npx cypress run --spec "\ cypress/e2e/recipe-detail.cy.js,\ cypress/e2e/oil-reference.cy.js,\ cypress/e2e/oil-data-integrity.cy.js,\ @@ -73,7 +73,12 @@ jobs: # Cleanup kill $BE_PID $FE_PID 2>/dev/null + pkill -f "Cypress" 2>/dev/null || true rm -f "$DB_FILE" + if [ $EXIT_CODE -eq 124 ]; then + echo "ERROR: Cypress timed out after 3 minutes" + exit 1 + fi exit $EXIT_CODE build-check: