From c5db293b462930d331a85304d223300c23b0f15d Mon Sep 17 00:00:00 2001 From: claude_dev Date: Mon, 7 Sep 2026 03:18:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(data):=20vintage=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=91=A8=E4=B8=80=E7=BF=BB=E8=BD=AC=E2=80=94=E2=80=94=E5=BF=AB?= =?UTF-8?q?=E7=85=A7=E6=97=8F=20hole=20=E5=8F=96=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=97=A5=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI#1090/1091 实锤(周一 02:46 挂、同日 01:35 绿=时间窗触发, corpus 零涉及): hole=倒数第2工作日, 周一回看=周四, 4 日历日 > service 3 日新鲜窗 → 永不告警。 service 窗本身正确(洞在新鲜窗内每日晨检都会报), 仅测试取数翻转;改取最近 1 个工作日, 日历距周一=3/其余≤1, 恒入窗。解锁 308d493/aefa341 部署链 --- tests/data_platform/test_static_vintage_check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/data_platform/test_static_vintage_check.py b/tests/data_platform/test_static_vintage_check.py index 37c9b20..660956c 100644 --- a/tests/data_platform/test_static_vintage_check.py +++ b/tests/data_platform/test_static_vintage_check.py @@ -185,7 +185,9 @@ class TestPanelGapCheck: def test_snapshot_family_hole_alerts_as_permanent(self, tmp_path): """快照族 (无回补能力) 近窗洞 → 告警说『洞即永久/查日志』而非回补指引。""" _mk_ok_statements(tmp_path) - hole = _recent_weekdays(2)[-1] + # 取最近 1 个工作日(非第 2 近): 周一跑时第 2 近=周四, 4 日历日>service + # 3 日新鲜窗 → 永不告警(2026-09-07 周一 CI 实锤);最近工作日恒 ≤3 日 ✓ + hole = _recent_weekdays(1)[-1] dates = _recent_weekdays(6, drop_dates=(hole,)) d = tmp_path / "fund_flow_industry" d.mkdir(parents=True)