Commit bd1e4e1
committed
fix(testing-drivers): stop polling once the pre-aggregation build has settled
The `failure` branch rejected from inside the status tally, where a `failure`
status is neither `done` nor `missing_partition`, so `inProcess` stayed
non-empty and neither timer was cleared. The helper went on POSTing to the jobs
endpoint once a second for the remaining ~120s after the promise had settled,
then the backstop called reject on an already-settled promise. `--forceExit`
kept that from stalling the run, but it interleaved the polling output with
every following test at exactly the moment someone is reading it to find out
why the build failed.
Hoist the check out of the loop so it settles and stops, and route every
settle path through one `stop()` that clears both timers - the two guarded
rejects added in the previous commit cleared the interval but left the 120s
backstop pending.
Postgres driver suite re-run green: 127 passed, 20 skipped, pre-aggregations
still building.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDVoT5YNCrewPZ87jyzmkF1 parent 6283c6b commit bd1e4e1
1 file changed
Lines changed: 24 additions & 7 deletions
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
120 | 137 | | |
121 | 138 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 139 | | |
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
129 | 143 | | |
130 | | - | |
131 | | - | |
| 144 | + | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
135 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
136 | 153 | | |
137 | 154 | | |
138 | 155 | | |
| |||
0 commit comments