Commit Graph

5 Commits

Author SHA1 Message Date
claude_dev 0cee8353fe deps: baostock加入requirements-docker.txt—持久化(容器重建不丢沪深300下载能力) 2026-07-11 16:05:39 +08:00
claude_dev b50a0f97be feat(backtest): metrics模块—empyrical算10指标+5时序(聚宽同源口径) 2026-07-11 13:27:44 +08:00
claude_dev effd3caa4a test(phase3a): 端到端冒烟 + multiprocessing guard 修复 + 覆盖率
Created comprehensive Phase 3a smoke test (scripts/smoke_phase3a.py) with:
- sys.path config (auto-detects local vs container)
- JWT login + protected route auth (with graceful bcrypt skip)
- Orchestrator async (ProcessPoolExecutor confirmed)
- WS stage wiring (on_stage callback verified)
- Real factor tears pipeline (multiprocessing fix validated)

Multiprocessing blocker resolved:
- Added if __name__ == "__main__": guard to enable vnpy.alpha spawn
- Tested in container - factor pipeline runs end-to-end
- max_workers=1 still spawns processes (guard required regardless)

Test coverage:
- Local: 44/44 tests passed, 82% coverage (sanguo_api + orchestrator)
- Container: 30/30 tests passed (factor + backtest)
- Smoke: All 6 sections passed in container

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-06 19:50:34 +08:00
claude_dev f56c519b1d fix: 修复 VeighNa 模块加载问题
- 修改 main_service.py 使用正确的 gateway 导入路径
- 添加 try/except 处理 gateway 导入失败的情况
- 更新 requirements-docker.txt 添加 gateway 包说明

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 07:26:56 +08:00
claude_dev 918bbed0fc fix: 修复登录500错误和移除明文密码提示
- 修复 deps.py 中 get_vn_service 的引用错误 (vn_service.vn_service -> vn_service)
- 移除登录页面上的明文密码提示
- 改进前端错误处理,避免数据加载失败导致登录显示错误
2026-07-02 12:23:55 +08:00