зеркало из https://github.com/golang/build.git
internal/task: work around no LUCI support for release-branch.go1.19
We've switched to using LUCI trybots that require release-branch.go1.20 or higher. Add a work around for one more Go 1.19 release that needs it. For golang/go#62076. Change-Id: I3c66f50392f4c249d2c063b8ff46423bd42a3dbe Reviewed-on: https://go-review.googlesource.com/c/build/+/526215 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Родитель
6ed658a430
Коммит
ed87657276
|
@ -184,6 +184,11 @@ func (t *VersionTasks) GenerateVersionFile(_ *workflow.TaskContext, distpack boo
|
|||
|
||||
// CreateAutoSubmitVersionCL mails an auto-submit change to update VERSION file on branch.
|
||||
func (t *VersionTasks) CreateAutoSubmitVersionCL(ctx *workflow.TaskContext, branch, version string, reviewers []string, versionFile string) (string, error) {
|
||||
// TODO(go.dev/issue/62076): Remove after Go 1.19.13 is out.
|
||||
if branch == "release-branch.go1.19" && version == "go1.19.13" {
|
||||
return "go~526138", nil // Use the CL it already created (but failed to add votes/reviewers to).
|
||||
}
|
||||
|
||||
return t.Gerrit.CreateAutoSubmitChange(ctx, gerrit.ChangeInput{
|
||||
Project: t.GoProject,
|
||||
Branch: branch,
|
||||
|
|
Загрузка…
Ссылка в новой задаче