fix: CI e2e超时加到15分钟,job timeout 20分钟
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 5s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 9s
Test / e2e-test (push) Failing after 15m5s

26/32 spec在600秒内通过,需要更多时间跑完剩余6个。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-14 14:22:21 +00:00
parent 3043d4d6c4
commit 06b29e6446

View File

@@ -12,7 +12,7 @@ jobs:
e2e-test: e2e-test:
runs-on: test runs-on: test
needs: unit-test needs: unit-test
timeout-minutes: 12 timeout-minutes: 20
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -64,7 +64,7 @@ jobs:
# Run all specs except demo-walkthrough (too slow for CI) # Run all specs except demo-walkthrough (too slow for CI)
cd frontend cd frontend
timeout 600 npx cypress run \ timeout 900 npx cypress run \
--spec "cypress/e2e/!(demo-walkthrough).cy.js" \ --spec "cypress/e2e/!(demo-walkthrough).cy.js" \
--config "video=false,defaultCommandTimeout=5000,pageLoadTimeout=10000,requestTimeout=5000,responseTimeout=10000,baseUrl=http://localhost:$FE_PORT,experimentalMemoryManagement=true,numTestsKeptInMemory=0" \ --config "video=false,defaultCommandTimeout=5000,pageLoadTimeout=10000,requestTimeout=5000,responseTimeout=10000,baseUrl=http://localhost:$FE_PORT,experimentalMemoryManagement=true,numTestsKeptInMemory=0" \
--env "ADMIN_TOKEN=$ADMIN_TOKEN" --env "ADMIN_TOKEN=$ADMIN_TOKEN"
@@ -75,7 +75,7 @@ jobs:
pkill -f "Cypress" 2>/dev/null || true pkill -f "Cypress" 2>/dev/null || true
rm -f "$DB_FILE" rm -f "$DB_FILE"
if [ $EXIT_CODE -eq 124 ]; then if [ $EXIT_CODE -eq 124 ]; then
echo "ERROR: Cypress timed out after 10 minutes" echo "ERROR: Cypress timed out after 15 minutes"
exit 1 exit 1
fi fi
exit $EXIT_CODE exit $EXIT_CODE