claude_dev
|
7bed73aa4c
|
fix(docker): polars[rtcompat]==1.42.1(治 NAS AVX2 SIGILL 根因)
深查:pre-init-rebuild 有 polars-runtime-compat 兜底层才跑得通;
plain polars==1.42.1 新镜像缺 rtcompat → import 即 SIGILL exit132;
vnpy_ctastrategy 的132是transitively import polars 同根因。
改 polars[rtcompat]==1.42.1 拉 polars-runtime-compat
|
2026-08-01 20:09:03 +08:00 |
|
claude_dev
|
e0808859da
|
fix(docker): polars 钉 1.42.1(NAS 无 AVX2,>=1.43 SIGILL 崩溃 exit132)
构建验证抓到:>=1.26.0 拉到 1.43.2 在 NAS(Celeron 无AVX2)import 即崩;
pre-init-rebuild 的 1.42.1 实证可跑,钉死。>= 松约束版本漂移教训
|
2026-08-01 19:49:06 +08:00 |
|
claude_dev
|
2ca2facce3
|
fix(docker): requirements-docker 补组合/CTA 运行时依赖(治重建丢包后患)
CI/CD / test (push) Successful in 9s
CI/CD / nas-deploy (push) Successful in 25s
CI/CD / nas-verify (push) Successful in 4s
容器是 docker commit 快照链(pre-init-rebuild 比 with-sqlite 多64包),
手动装的 bullet-trade/jqdatasdk/vnpy_ctastrategy/vnpy_sqlite 只活容器层,
从 base 重建会全丢。补进 requirements-docker.txt 钉到容器实证版(均PyPI可装):
- bullet-trade==0.9.2(组合框架,import bullet_trade)
- jqdatasdk==1.9.8(bullet_trade import 链必需)
- vnpy_ctastrategy==1.4.1(CTA引擎)
- vnpy_sqlite==1.1.3(vnpy sqlite驱动)
不补 pyecharts(0import残留)/jupyter栈(bloat)
docs §10 记可复现重建步骤;干净重建待 env 空闲验证
|
2026-08-01 12:23:53 +08:00 |
|
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 |
|