Commit 36aec4a
fix(cicd): don't cut a second patch when a bump is already pending (#14997)
Bug in the stranded-commits check from #14429, which is live and
currently misfiring once a day.
## What happens
The idempotency guard asked "is a Release bump PR open against this
branch?". Once that PR merges but the tag is never cut, the answer is
no, so the next scheduled run dispatches another patch release.
Observed on `core/1.48`:
```
2026-08-09 16:10 check finds e136c13 stranded, dispatches a patch
2026-08-09 16:13 #14973 "1.48.8" opened
2026-08-10 04:58 #14973 merged; draft_release fails 403, v1.48.8 never created
2026-08-10 16:20 check runs again, sees no open bump PR, dispatches
2026-08-10 16:21 #14991 "1.48.9" opened
```
`core/1.48` now has `package.json` at 1.48.8 with `v1.48.7` as its
newest tag. Left alone this burns one version per day for as long as the
underlying failure persists.
## Fix
Compare the branch's `package.json` against its newest tag. When they
differ, a bump has already landed unreleased, so the release needs
recovering rather than restarting, and no dispatch is requested.
Stranded commits are still reported and the job still fails, so nothing
goes quiet.
Verified against the live state that caused the loop:
```
[FAIL] 1 fix commit(s) sit past v1.48.7 on core/1.48 and have not shipped:
e136c13 [backport core/1.48] fix(billing): stop reporting "processing" ...
core/1.48 is at 1.48.8 but its newest tag is v1.48.7: a bump already landed and
was never released. Recover that release rather than cutting another patch; not
requesting a dispatch.
```
`needs_patch_branch` is not emitted, so the dispatch step is skipped.
## Separate, and the actual blocker
`draft_release` fails with `403 Resource not accessible by integration`
when creating the GitHub release. No core release can be tagged until
that is resolved, and this PR does not address it.
#14991 should probably be closed so the version stops advancing, leaving
`core/1.48` at 1.48.8 ready to tag.
---------
Co-authored-by: Connor Byrne <c.byrne@comfy.org>1 parent dbc37c1 commit 36aec4a
2 files changed
Lines changed: 124 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
140 | 174 | | |
141 | 175 | | |
142 | 176 | | |
| |||
174 | 208 | | |
175 | 209 | | |
176 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
177 | 226 | | |
178 | 227 | | |
179 | 228 | | |
| |||
261 | 310 | | |
262 | 311 | | |
263 | 312 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
268 | 335 | | |
269 | 336 | | |
270 | 337 | | |
| |||
0 commit comments