From 14c41cd679b4bb05e5202b0c3e3f3f7a1670cfd7 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Mon, 13 Apr 2026 20:14:43 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20e2e=E8=B7=91=E5=85=A8=E9=83=A8spec?= =?UTF-8?q?=EF=BC=8C=E8=B6=85=E6=97=B6=E5=8A=A0=E5=88=B05=E5=88=86?= =?UTF-8?q?=E9=92=9F=EF=BC=8C=E5=90=AF=E7=94=A8=E5=86=85=E5=AD=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - timeout 180→300秒,job timeout 5→8分钟 - experimentalMemoryManagement + numTestsKeptInMemory=0 防内存爆 - 不限制spec,全部跑 Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/test.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 43a4911..64edb78 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -12,7 +12,7 @@ jobs: e2e-test: runs-on: test needs: unit-test - timeout-minutes: 5 + timeout-minutes: 8 steps: - uses: actions/checkout@v4 @@ -58,17 +58,10 @@ jobs: exit 1 fi - # Run core cypress specs with hard 3-minute timeout + # Run all specs with memory optimization cd frontend - 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,\ - cypress/e2e/recipe-cost-parity.cy.js,\ - cypress/e2e/category-modules.cy.js,\ - cypress/e2e/notification-flow.cy.js,\ - cypress/e2e/registration-flow.cy.js\ - " --config "video=false,defaultCommandTimeout=5000,pageLoadTimeout=10000,requestTimeout=5000,responseTimeout=10000,baseUrl=http://localhost:$FE_PORT" + timeout 300 npx cypress run \ + --config "video=false,defaultCommandTimeout=5000,pageLoadTimeout=10000,requestTimeout=5000,responseTimeout=10000,baseUrl=http://localhost:$FE_PORT,experimentalMemoryManagement=true,numTestsKeptInMemory=0" EXIT_CODE=$? # Cleanup @@ -76,7 +69,7 @@ jobs: 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" + echo "ERROR: Cypress timed out after 5 minutes" exit 1 fi exit $EXIT_CODE