diff options
| author | 2021-03-21 22:35:26 -0400 | |
|---|---|---|
| committer | 2021-03-21 22:39:04 -0400 | |
| commit | 20810525928bb589e33c8271da66f6cdd16f007e (patch) | |
| tree | 8f24a9917d16c13005f771c2a36898d6d9bf91b8 | |
| parent | 5e737ad1d54e499151969da48da5e16034ced71c (diff) | |
Print the output from RBE bootstrap shutdown
The output from bootstrap would contain the a one-line summary of RBE
download / upload stats.
Bug: b/183007125
Change-Id: I90082a8433504e40bbf92992c3c8d1d656c49429
| -rw-r--r-- | ui/build/rbe.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/build/rbe.go b/ui/build/rbe.go index 1fabd9262..45ccd04cc 100644 --- a/ui/build/rbe.go +++ b/ui/build/rbe.go @@ -112,9 +112,15 @@ func startRBE(ctx Context, config Config) { func stopRBE(ctx Context, config Config) { cmd := Command(ctx, config, "stopRBE bootstrap", rbeCommand(ctx, config, bootstrapCmd), "-shutdown") - if output, err := cmd.CombinedOutput(); err != nil { + output, err := cmd.CombinedOutput() + if err != nil { ctx.Fatalf("rbe bootstrap with shutdown failed with: %v\n%s\n", err, output) } + + if len(output) > 0 { + fmt.Fprintln(ctx.Writer, "") + fmt.Fprintln(ctx.Writer, fmt.Sprintf("%s", output)) + } } // DumpRBEMetrics creates a metrics protobuf file containing RBE related metrics. |