Commit c900c12
committed
fix(testing-drivers): count outstanding partitions across the whole job list
`hookPreaggs` is the twin of the loop the previous commit fixed, and had the
same defect plus a worse one. `postBuildJobs` returns one token per partition
and the outstanding tally was tested inside the loop over them, so a first
token reporting `done` resolved the build while later partitions were still
scheduled - the suite then queried a rollup table that did not exist yet.
Count over the whole array instead.
The `failure` branch also rejected without stopping the poll, and an empty job
list never settled at all because the check lived in a loop body that never
ran; both follow from the same restructuring.
Verified with the postgres-core suite, which is what exercises this function:
6 passed, snapshots unchanged, so the recorded driver calls are identical.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDVoT5YNCrewPZ87jyzmkF1 parent bd1e4e1 commit c900c12
1 file changed
Lines changed: 25 additions & 15 deletions
Lines changed: 25 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | | - | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
0 commit comments