feat: 添加异常日志功能并优化UI样式

refactor: 重构后端查询逻辑和API响应处理

fix: 修复用户角色更新和文件上传问题

test: 添加前端性能测试脚本和E2E测试用例

chore: 更新依赖版本和配置文件

docs: 添加环境检查脚本和测试文档

style: 统一表格标签样式和路由命名

perf: 优化前端页面加载速度和响应时间
This commit is contained in:
张翔
2026-03-24 13:32:20 +08:00
parent a97d317e4a
commit be5d5ede90
184 changed files with 11231 additions and 1903 deletions
+28 -5
View File
@@ -132,23 +132,45 @@ pipeline:
- cd novalon-manage-web
- npm ci
- npx playwright install --with-deps chromium
- npx playwright test
- npx playwright test --reporter=json --reporter=html --output=playwright-report
environment:
NODE_ENV: test
CI: true
PLAYWRIGHT_HEADLESS: true
depends_on:
- deploy-staging
when:
- event: pull_request
# 前端E2E测试完整套件(每日运行)
frontend-e2e-test-full:
image: mcr.microsoft.com/playwright:v1.42.0-jammy
commands:
- cd novalon-manage-web
- npm ci
- npx playwright install --with-deps chromium
- npx playwright test --reporter=json --reporter=html --reporter=junit --output=playwright-report
environment:
NODE_ENV: test
CI: true
PLAYWRIGHT_HEADLESS: true
depends_on:
- deploy-staging
when:
- event: push
branch: main
# ========== 阶段3:生产验证(部署前) ==========
# 性能测试(在tests_suite中运行)
performance-test:
image: python:3.13
image: node:20
commands:
- cd tests_suite
- pip install -r requirements.txt
- pytest tests/performance/ -v --no-cov
- npm install -g k6
- chmod +x run-performance-tests.sh
- ./run-performance-tests.sh http://localhost:8084 http://localhost:3001
environment:
BASE_URL: http://localhost:8084
FRONTEND_URL: http://localhost:3001
depends_on:
- deploy-staging
when:
@@ -184,6 +206,7 @@ pipeline:
- integration-test
- e2e-test
- frontend-e2e-test
- frontend-e2e-test-full
- performance-test
- security-test
- deploy-staging