Commit 1e70fb1
test: 添加 NPE 复现测试用于 GitHub Actions 验证
问题背景:
- PatternTest.shouldOkWhenAiFlowWithExampleSelector 在 GitHub Actions 中偶发失败
- 错误: NullPointerException at Tip.merge(Tip.java:121)
- 失败率: 0.5% (5次/1000次运行, 平均每22天一次)
- 只在 GitHub Actions 环境中出现,本地无法稳定复现
测试策略(TDD 红色阶段):
1. shouldReproduceNPEInRunnableParallel (50次重复)
- 使用 200ms 延迟制造快慢分支,增大竞态窗口
- 预期:在 GitHub Actions 中应该能偶发触发 NPE
2. shouldReproduceOriginalTestFailure (20次重复)
- 使用原始测试配置重复运行
- 预期:在 GitHub Actions 中应该能偶发触发 NPE
验证目标:
- 如果这些测试在 GitHub Actions 中失败(NPE),证明测试有效
- 如果全部通过,需要调整延迟时间或重复次数
- 为后续修复提供可靠的验证基准
下一步:
- 推送到 99.99.x 分支触发 GitHub Actions
- 观察测试结果,确认能够复现 NPE
- 然后添加修复代码,再次验证
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 9d405de commit 1e70fb1
File tree
1 file changed
+57
-0
lines changed- framework/fel/java/fel-flow/src/test/java/modelengine/fel/engine/operators
1 file changed
+57
-0
lines changedLines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
100 | 157 | | |
101 | 158 | | |
102 | 159 | | |
| |||
0 commit comments