Skip to content

Commit 36af148

Browse files
committed
Minor tweaks after self-review + full dummy release
Signed-off-by: Florent Poinsard <[email protected]>
1 parent e4b1d9c commit 36af148

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

go/releaser/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ const (
284284
{{- end }}
285285
{{- if .DoVtOp }}
286286
- [{{fmtStatus .VtopCreateReleasePR.Done}}] Create vitess-operator Release PR.
287-
{{- range $item := .VtopCreateReleasePR.URLs }}
288-
- {{$item}}
287+
{{- if .VtopCreateReleasePR.URL }}
288+
- {{ .VtopCreateReleasePR.URL }}
289289
{{- end }}
290290
{{- end }}
291291
- [{{fmtStatus .ReleaseNotesOnMain.Done}}] Update release notes on main.

go/releaser/release/vtop_manual_update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
)
2525

2626
func VtopManualUpdateMessage(state *releaser.State) []string {
27-
var urlVtopReleasePRMsg string
28-
var vtopHeadReleaseBranch string
27+
urlVtopReleasePRMsg := state.Issue.VtopBackToDevMode.URL
28+
vtopHeadReleaseBranch := state.Issue.VtopBackToDevMode.URL
2929

3030
// The steps in the 'release' section are sequential, it is therefor not possible to not have a release PR.
3131
// Unless, there was a bug/issue or the release team manually modified the release issue.

go/releaser/release/vtop_merge_pr.go

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ limitations under the License.
1717
package release
1818

1919
import (
20-
"os"
21-
"os/signal"
2220
"strconv"
2321
"strings"
2422
"time"
@@ -31,7 +29,7 @@ import (
3129

3230
func VtopMergeReleasePR(state *releaser.State) (*logging.ProgressLogging, func() string) {
3331
pl := &logging.ProgressLogging{
34-
TotalSteps: 6,
32+
TotalSteps: 5,
3533
}
3634

3735
return pl, func() string {
@@ -47,28 +45,13 @@ func VtopMergeReleasePR(state *releaser.State) (*logging.ProgressLogging, func()
4745

4846
pl.NewStepf("Waiting for %s to be merged", url)
4947

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-
6148
outer:
6249
for {
6350
select {
6451
case <-time.After(5 * time.Second):
6552
if github.IsPRMerged(state.VtOpRelease.Repo, nb) {
6653
break outer
6754
}
68-
case <-c:
69-
pl.TotalSteps -= 2
70-
pl.NewStepf("Interruption detected, canceling the step.")
71-
return url
7255
}
7356
}
7457

0 commit comments

Comments
 (0)