Repository navigation
fix(calendar): 保留当天盘后财报的风险信号和提醒 - #399
Open
brad0810wz-rgb wants to merge 2 commits into
Open
brad0810wz-rgb wants to merge 2 commits into
brad0810wz-rgb wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
仓库中的NVDA盘后财报fixture以UTC午夜占位,纽约当天早上即被epoch筛选提前丢弃。仅在有效localDate、匹配UTC午夜占位且可确定市场时,改按交易所日历窗口判断;精确时刻和legacy事件沿用epoch窗口。
Closes #394
验证
Fork CI完整运行:Typecheck / Focused / Full unit / Secret scan四项全部成功。
a46cff502c508c91325b49e007ff931a11e3db1c,每个job固定checkout并断言HEAD。bun run typecheck:core/i18n/shared/ui/electron全部exit0。bun test packages/shared --isolate:1482 pass / 2 skip / 0 fail。bun test --isolate:2257 pass / 9 skip / 0 fail。本地Windows / Bun1.4.4(最新main@f5822f0):
新增真实fixture接线回归:3 pass / 2 fail。
bun test packages/shared/src/calendar packages/shared/src/portfolio-risk packages/shared/src/alerts --isolate→ 103 pass / 0 fail / 256 expect。类型检查通过;git diff --check通过;独立只读复核通过。
未改动的main在本机沙箱全量为2223 pass / 8 skip / 6 fail:2个Bash子进程、3个本机HTTP、1个固定C:/tmp权限。前5项在普通本机环境复核15 pass / 0 fail;Fork完整Linux环境全量结果如上。
范围与边界
3个生产文件+2个测试。真实fixture→parser→research.events manifest/executor→风险服务与earnings evaluator均覆盖;含NYSE跨UTC午夜、DST、HK/CN/SG、T+0、昨日/第7/第8日、精确时刻与无效日期。CalendarEvent没有精确发布时刻,按日提示不推测实际发布时刻;提醒文本格式未扩范围。
无可见UI结构或样式变化,仅数据判断与计算。
组合兼容性验证
将这五项独立修复仅组合在测试提交
1f61746b7845794b966e22a61de7089370b486b5,未混入本PR。组合CI五项全部成功:Bun1.4.2 / Linux全量bun test --isolate→ 2296 pass / 9 skip / 0 fail;相关包聚焦 → 2156 pass / 9 skip / 0 fail;Windows相关回归 → 206 pass / 1 skip / 0 fail;类型检查(含longbridge-tools显式tsc)及secret scan通过。各job固定上述源码SHA并断言HEAD,保留测试退出码。详细命令和输出可在链接内对应job核对。