Commit a131f12
test: give the debug cases and annual integration their own predbat instance (#4530)
The debug regression cases planned against the shared instance, and read_debug_yaml only restores the
attributes its dump actually carries - so anything the dump omits inherited whatever the previous test
left behind. That made the golden plans depend on test ordering, and made the plan produced inside the
suite differ from the one `--debug <case>` produces standalone. Both have caused real confusion: the
goldens have had to be regenerated simply because the registry order changed, and a case that passes
alone could fail in the suite.
Each case now gets a freshly created instance, built the same way the standalone path builds one. The
three now agree exactly - verified that predbat_debug_pre_saving1 produces an identical plan standalone,
running debug_cases alone, and in the full suite.
Doing that removed a mask. debug_cases had been overwriting most of the shared instance immediately
before annual_integration ran, and annual_integration never sets up the state it plans against; left
with the ambient state instead it went from 34s to 463s - silently, still passing. It gets a fresh
instance for the same reason, which also makes it faster than it was before any of this (55s -> 34s).
Full suite 144.77s -> 119.86s, and it no longer depends on what ran before what.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9ae81c1 commit a131f12
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
238 | | - | |
239 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
254 | 274 | | |
255 | 275 | | |
256 | 276 | | |
| |||
499 | 519 | | |
500 | 520 | | |
501 | 521 | | |
502 | | - | |
| 522 | + | |
503 | 523 | | |
504 | 524 | | |
505 | 525 | | |
| |||
0 commit comments