@@ -17,8 +17,6 @@ limitations under the License.
17
17
package release
18
18
19
19
import (
20
- "os"
21
- "os/signal"
22
20
"strconv"
23
21
"strings"
24
22
"time"
@@ -31,7 +29,7 @@ import (
31
29
32
30
func VtopMergeReleasePR (state * releaser.State ) (* logging.ProgressLogging , func () string ) {
33
31
pl := & logging.ProgressLogging {
34
- TotalSteps : 6 ,
32
+ TotalSteps : 5 ,
35
33
}
36
34
37
35
return pl , func () string {
@@ -47,28 +45,13 @@ func VtopMergeReleasePR(state *releaser.State) (*logging.ProgressLogging, func()
47
45
48
46
pl .NewStepf ("Waiting for %s to be merged" , url )
49
47
50
- // The vtop release PR is created at the very last minute when the Vitess release just
51
- // get released, in this case, CI may not have time to complete before reaching the
52
- // 'vitess-operator merge release PR'. If the release team runs this step, but the PR
53
- // is not green or ready to be merged yet, then they will be forced to 'kill' the vitess-releaser
54
- // process in order to get out of the current step, for this specific situation we are catching
55
- // interruption signals to allow the release team to cancel this step if they realize they're not ready.
56
- c := make (chan os.Signal , 1 )
57
- signal .Notify (c , os .Interrupt )
58
- defer signal .Stop (c )
59
- pl .NewStepf ("If the PR is not ready, this step may be canceled cleanly by doing 'CMD+C'/'CTRL+C'." )
60
-
61
48
outer:
62
49
for {
63
50
select {
64
51
case <- time .After (5 * time .Second ):
65
52
if github .IsPRMerged (state .VtOpRelease .Repo , nb ) {
66
53
break outer
67
54
}
68
- case <- c :
69
- pl .TotalSteps -= 2
70
- pl .NewStepf ("Interruption detected, canceling the step." )
71
- return url
72
55
}
73
56
}
74
57
0 commit comments