Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/coordinator,cmd/retrybuilds: add wipe API to coordinator
As part of our migration to combine codebases of the Build Dashboard and the Coordinator, the first step is to start calling a Coordinator API for wiping release status of failed builds. This adds a gRPC API to the coordinator, listening on the same port as the HTTPS listeners. The Coordinator API in this implementation simply validates and forwards a request to the dashboard API. This change also updates cmd/retrybuilds to optionally use the Coordinator gRPC API for wiping. Tested locally using the live Dashboard API. Updates golang/go#34744 Change-Id: I4b34b064625193eb11a280565d701605064a8443 Reviewed-on: https://go-review.googlesource.com/c/build/+/219120 Run-TryBot: Alexander Rakoczy <alex@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
- Loading branch information
Showing
10 changed files
with
687 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2020 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
syntax = "proto3"; | ||
|
||
package protos; | ||
|
||
service Coordinator { | ||
// ClearResults clears build failures from the coordinator to force them to rebuild. | ||
rpc ClearResults(ClearResultsRequest) returns (ClearResultsResponse) {} | ||
} | ||
|
||
// ClearResultsRequest specifies the data needed to clear a result. | ||
message ClearResultsRequest { | ||
// builder is the builder to clear results. | ||
string builder = 1; | ||
// hash is the commit hash to clear results. | ||
string hash = 2; | ||
} | ||
|
||
message ClearResultsResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2020 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
package protos | ||
|
||
// Run "go generate" in this directory to update. You need to have: | ||
// | ||
// - a protoc binary (see https://github.com/golang/protobuf#installation) | ||
// - go get -u github.com/golang/protobuf/protoc-gen-go | ||
|
||
//go:generate protoc --proto_path=$GOPATH/src:. --go_out=plugins=grpc:. coordinator.proto |
Oops, something went wrong.