Repository navigation
Commit dc622e6
authored
fix(orchestrator): repair Created record when dependency-analysis re-announces (#875)
## Summary
### Why?
`corebatch.Transition` CASes the batch before filing its per-state
membership record, and the transition protocol relies on the
already-in-target-state retry calling `EnsureRecord` to repair a crash
between the two. The dependency-analysis re-announce branch (batch
already `Created`) skipped it, so a crash there left a `Created` batch
invisible to `ListByStates` — the next batch's analysis would not
serialize behind it until speculate happened to admit it.
### What?
- Call `corebatch.EnsureRecord` in the `Created` re-announce branch
before re-publishing to speculate.
- Update the pipeline diagram in the `Stages` doc to include the
`dependency-analysis` stage.
## Test Plan
✅ `bazel test
//submitqueue/orchestrator/controller/dependencyanalysis/...`
(re-announce test now requires the `Created` record put)
✅ `make lint`
## Stack
1. @ #875
1. #876
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 0707f58 commit dc622e6
3 files changed
Lines changed: 22 additions & 8 deletions
File tree
- submitqueue/orchestrator
- controller/dependencyanalysis
| 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 | + | |
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
317 | 325 | | |
318 | 326 | | |
319 | 327 | | |
| 328 | + | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments