Skip to content

Commit 7701995

Browse files
committed
cmd/coordinator: add health check for M1 Mac minis
Make the health dashboard more useful by displaying the status of the darwin/arm64 reverse builders. For golang/go#39782. For golang/go#45336. Change-Id: I3536d5716b048722fe36e905b182a0a4972b9bc3 Reviewed-on: https://go-review.googlesource.com/c/build/+/306649 Trust: Dmitri Shuralyov <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]>
1 parent f0fb708 commit 7701995

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmd/coordinator/status.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ var basePinErr atomic.Value
146146

147147
func addHealthCheckers(ctx context.Context, sc *secret.Client) {
148148
addHealthChecker(newMacHealthChecker())
149+
addHealthChecker(newMacOSARM64Checker())
149150
addHealthChecker(newScalewayHealthChecker())
150151
addHealthChecker(newPacketHealthChecker())
151152
addHealthChecker(newOSUPPC64Checker())
@@ -432,6 +433,15 @@ func fetchMakeMacStatus() (errs, warns []string) {
432433
return resj.Errors, resj.Warnings
433434
}
434435

436+
func newMacOSARM64Checker() *healthChecker {
437+
return &healthChecker{
438+
ID: "macos-arm64",
439+
Title: "macOS ARM64 (M1 Mac minis)",
440+
DocURL: "https://golang.org/issue/39782",
441+
Check: hostTypeChecker("host-darwin-arm64-11_0-toothrot"),
442+
}
443+
}
444+
435445
func hostTypeChecker(hostType string) func(cw *checkWriter) {
436446
want := expectedHosts(hostType)
437447
return func(cw *checkWriter) {

0 commit comments

Comments
 (0)