Commit 6919721
fix(cli): correct parse_parameters doc; cap consecutive poll errors; warn on empty status
Three follow-ups on PR #602:
1. `parse_parameters` doc-comment bug: the first bullet was tagged
✅ but described the same broken case as the third (✅
`--parameters 'urls=a,b' --parameters mode=fast` still splits on
the comma inside `urls=a,b` and fails on the trailing `b`
fragment). Rewrote the bullet list so all broken examples are ❌
and only the genuine "one pair per flag, no commas in values"
workaround is ✅. Also clarified that there is currently no way
to escape a comma inside a single `--parameters` argument, and
pointed at the existing
`parse_parameters_values_with_commas_split_pre_equals` unit
test as the behaviour anchor.
2. `poll_until_complete` couldn't distinguish a permanent error
(deleted build, revoked PAT, 404) from a transient one — both
pushed the target back onto `next_pending` and silently retried
until `--timeout`. Added a per-build `consecutive_errors:
HashMap<u64, usize>` counter that resets on any successful poll
and bails out of that specific build after
`MAX_CONSECUTIVE_POLL_ERRORS = 3` consecutive failures, counting
it as failed. Transient blips still retry; persistent failures
surface within `3 × poll_interval` (default 30s) instead of
waiting out the full `--timeout` (default 1800s).
3. `status` was silently rendering `(no matched definitions)` when
the fixture matcher returned zero hits, which is
indistinguishable from running in the wrong directory. Added an
`eprintln!` warning that mirrors the existing
`failed to scan local pipelines: …` message. The command stays
non-fatal (read-only) by design, unlike `disable` which bails.
`cargo test` (1568 unit + 14 integration crates, all green) and
`cargo clippy --all-targets --all-features` pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 435a55f commit 6919721
2 files changed
Lines changed: 89 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 28 | + | |
| 29 | + | |
32 | 30 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
259 | 272 | | |
260 | 273 | | |
261 | 274 | | |
| |||
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
270 | 291 | | |
271 | 292 | | |
272 | 293 | | |
| |||
305 | 326 | | |
306 | 327 | | |
307 | 328 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
313 | 348 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
322 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
323 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
324 | 375 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | 376 | | |
335 | 377 | | |
336 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
0 commit comments