fix: preserve data granularity and recover tasks safely
This commit is contained in:
+4
-2
@@ -7,8 +7,10 @@ Task 1: complete — 5 tests green; cross-year records, alternatives, conservati
|
||||
Task 2: complete — 5 tests green; shared proxy, strict route, fallback, rotation, DPAPI vault.
|
||||
Task 3: complete — 5 tests green; pagination, business login status, year mismatch, exact campus, pause/resume.
|
||||
Task 4: complete — 5 tests green; file import/export, YAM SQLite, favorites, origin guard, formula-safe exports.
|
||||
Task 5: pending
|
||||
Task 6: pending
|
||||
Task 5: complete — 3 frontend logic tests, production build, full Edge acceptance including mobile passed.
|
||||
Task 6: final packaging — launch/reuse/stop/restart verified; README/notices ready; independent review findings fixed with regression tests.
|
||||
|
||||
Public index: 2,255 major entries and 460 unique schools extracted from YAM public data files. Seed index contains no admissions snapshots, cookies or signed request tokens.
|
||||
|
||||
Final verification: 35 backend tests passed; 3 frontend tests passed; build exit 0; browser QA PASS. Details: docs/verification.md.
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# 验证记录
|
||||
|
||||
2026-10-11,Windows、本地独立虚拟环境,Python 3.12.13 / Node 24.16。
|
||||
|
||||
- 后端:`python -m pytest -q`,35 passed。Starlette TestClient 提示一条 httpx 迁移 warning,测试退出 0,生产服务不使用 TestClient。
|
||||
- 前端:`npm test`,3 passed;`npm run build`,TypeScript 检查与 Vite 生产构建退出 0。
|
||||
- Edge 实际浏览器:独立端口 8766、独立 `.runtime/qa/db`,验证导入→科目筛选→收藏→对比→历史趋势→Excel 下载;任务/代理/设置页面;设置保存;390px 手机宽度无页面溢出;无 pageerror。测试数据均标明「自动验收样例」,没有写入正式数据库。
|
||||
- 启动脚本:Windows PowerShell 首启、重复启动、停止、重新启动均退出 0;正式服务在 127.0.0.1:8765,健康检查应用身份和项目路径匹配。
|
||||
- 真实数据源:proxy_pool `/count/` 正常响应;研招页面 `curYear=2027` 可核实;匿名北京大学学校及 081200 专业索引可返回,方向接口要求登录,按 LoginRequired 处理;掌上考研精确匹配北京大学,2025 年 081200 查询返回 1 条门类参考线和 2 条历史计划。真实探测只读取少量公开数据,不写入正式目录。
|
||||
- 独立只读审查:复现并修复专项线覆盖、同名跨域 Cookie、任务失败恢复竞态、服务退出被误取消、文件往返丢失身份字段、学院人数误升格、YAM 种子误识别、院校关键词范围、参考书 JSON 字符串、业务限流等问题,补充相应回归。
|
||||
|
||||
自动验收未使用真人学信网账号,未对全部院校进行实网抓取。登录后的全国采集能力取决于账号状态、代理可用性、开放目录年份和数据源限流。
|
||||
|
||||
复跑浏览器验收(只使用测试库):
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe -m studio --port 8766 --data-dir .runtime\qa\db
|
||||
# 在另一个终端运行
|
||||
.\.venv\Scripts\python.exe tools\browser_qa.py
|
||||
```
|
||||
|
||||
正式服务不会自动开始采集,需要用户在网页创建任务。
|
||||
Reference in New Issue
Block a user