Repository navigation
Commit 2dd2296
committed
fix(release): fail the audit on a truncated listing instead of shortening it
Each of the three `gh` listings the audit makes is a completeness claim
-- these are all the labelled PRs, this is every release, this is every
PR on the branch -- and gh stops at --limit in silence. A saturated
query therefore does not make the audit partial, it makes its verdicts
wrong: the PRs past the cut are reported nowhere and the exit code says
clean. That is the same silent-green failure this tool exists to catch,
reached from the inside.
None of the three was near its cap when they were chosen and two are
now inside 30% of it: 290 labelled PRs against a 400 default, 217
releases against 300, and at most 54 PRs on a release branch against
500. The labelled-PR count is the one that grows with every backport.
Check each listing against its cap and exit 2 naming the cap to raise,
rather than returning a short list. Raise the caps well clear of the
current populations while at it: gh stops as soon as the result set is
exhausted, so a higher cap costs nothing when it is not reached -- 12.2s
against 13.2s for the same two lines at 400 and at 1000 -- and the
reason to bound them at all is only to stop a runaway query paginating
forever.
Output over release-1.6, release-1.5 and release-1.4 is unchanged.
Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 2b53cf9 commit 2dd2296
2 files changed
Lines changed: 48 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
320 | 332 | | |
321 | 333 | | |
322 | 334 | | |
323 | | - | |
| 335 | + | |
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
| |||
424 | 436 | | |
425 | 437 | | |
426 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
427 | 455 | | |
428 | 456 | | |
429 | 457 | | |
| |||
489 | 517 | | |
490 | 518 | | |
491 | 519 | | |
492 | | - | |
| 520 | + | |
493 | 521 | | |
494 | 522 | | |
495 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
496 | 528 | | |
497 | 529 | | |
498 | 530 | | |
| |||
624 | 656 | | |
625 | 657 | | |
626 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
627 | 663 | | |
628 | 664 | | |
629 | 665 | | |
| |||
706 | 742 | | |
707 | 743 | | |
708 | 744 | | |
709 | | - | |
| 745 | + | |
710 | 746 | | |
711 | 747 | | |
712 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
713 | 753 | | |
714 | 754 | | |
715 | 755 | | |
| |||
0 commit comments