Commit 7b49058
committed
Fix --green retry counter reset after pushing new commits
When --green pushes a fix commit, it should reset the retry counter to 0
since it's a new commit that deserves its own set of retry attempts.
Previous behavior:
- Attempt 1: Check commit A, fail, fix, push commit B, retryCount = 1
- Attempt 2: Check commit B, fail, fix, push commit C, retryCount = 2
- Attempt 3: Check commit C, fail, give up (retryCount >= maxRetries-1)
Fixed behavior:
- Attempt 1: Check commit A, fail, fix, push commit B, retryCount = 0
- Attempt 1: Check commit B, fail, fix, push commit C, retryCount = 0
- Attempt 1: Check commit C, fail, fix, push commit D, retryCount = 0
- (continues with proper retry attempts for each new commit)
Also adds 15-second wait after pushing to allow new CI run to start.1 parent 88712b1 commit 7b49058
1 file changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3397 | 3397 | | |
3398 | 3398 | | |
3399 | 3399 | | |
3400 | | - | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
3401 | 3409 | | |
3402 | 3410 | | |
3403 | 3411 | | |
| |||
3591 | 3599 | | |
3592 | 3600 | | |
3593 | 3601 | | |
| 3602 | + | |
| 3603 | + | |
3594 | 3604 | | |
3595 | 3605 | | |
3596 | 3606 | | |
| |||
3638 | 3648 | | |
3639 | 3649 | | |
3640 | 3650 | | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
3641 | 3662 | | |
3642 | 3663 | | |
3643 | 3664 | | |
3644 | 3665 | | |
3645 | 3666 | | |
3646 | 3667 | | |
3647 | 3668 | | |
3648 | | - | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
3649 | 3673 | | |
3650 | 3674 | | |
3651 | 3675 | | |
| |||
0 commit comments