fix: CI e2e跑全部spec,超时加到5分钟,启用内存优化
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 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 7s
Test / e2e-test (push) Failing after 5m6s
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 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 7s
Test / e2e-test (push) Failing after 5m6s
- timeout 180→300秒,job timeout 5→8分钟 - experimentalMemoryManagement + numTestsKeptInMemory=0 防内存爆 - 不限制spec,全部跑 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
e2e-test:
|
e2e-test:
|
||||||
runs-on: test
|
runs-on: test
|
||||||
needs: unit-test
|
needs: unit-test
|
||||||
timeout-minutes: 5
|
timeout-minutes: 8
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -58,17 +58,10 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run core cypress specs with hard 3-minute timeout
|
# Run all specs with memory optimization
|
||||||
cd frontend
|
cd frontend
|
||||||
timeout 180 npx cypress run --spec "\
|
timeout 300 npx cypress run \
|
||||||
cypress/e2e/recipe-detail.cy.js,\
|
--config "video=false,defaultCommandTimeout=5000,pageLoadTimeout=10000,requestTimeout=5000,responseTimeout=10000,baseUrl=http://localhost:$FE_PORT,experimentalMemoryManagement=true,numTestsKeptInMemory=0"
|
||||||
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"
|
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
@@ -76,7 +69,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 3 minutes"
|
echo "ERROR: Cypress timed out after 5 minutes"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user