From ca9cb2e5bd282cc26696bc227d9bf02f381d5082 Mon Sep 17 00:00:00 2001 From: Liz Kammer Date: Wed, 14 Jul 2021 15:29:57 -0400 Subject: [PATCH] Include bazel-status of build in metrics Currently within metrics we cannot distinguish between Bazel-involved configurations: Bazel as Ninja vs Ninja as Ninja builds Bazel mixed builds vs non-mixed builds Add these to the build configuration in order to distinguish between and track them independently. Test: go soong tests Test: USE_BAZEL_ANALYSIS=1 m nothing and verify out/soong_metrics Bug: 193672397 Change-Id: I94ce56c1a98a76d929598d9fe3070df16ffa1376 --- ui/build/config.go | 17 ++- ui/build/config_test.go | 111 ++++++++++++++ ui/metrics/metrics_proto/metrics.pb.go | 203 ++++++++++++++----------- ui/metrics/metrics_proto/metrics.proto | 7 + 4 files changed, 241 insertions(+), 97 deletions(-) diff --git a/ui/build/config.go b/ui/build/config.go index 737062732..cd6d549ea 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -345,12 +345,7 @@ func storeConfigMetrics(ctx Context, config Config) { return } - b := &smpb.BuildConfig{ - ForceUseGoma: proto.Bool(config.ForceUseGoma()), - UseGoma: proto.Bool(config.UseGoma()), - UseRbe: proto.Bool(config.UseRBE()), - } - ctx.Metrics.BuildConfig(b) + ctx.Metrics.BuildConfig(buildConfig(config)) s := &smpb.SystemResourceInfo{ TotalPhysicalMemory: proto.Uint64(config.TotalRAM()), @@ -359,6 +354,16 @@ func storeConfigMetrics(ctx Context, config Config) { ctx.Metrics.SystemResourceInfo(s) } +func buildConfig(config Config) *smpb.BuildConfig { + return &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(config.ForceUseGoma()), + UseGoma: proto.Bool(config.UseGoma()), + UseRbe: proto.Bool(config.UseRBE()), + BazelAsNinja: proto.Bool(config.UseBazel()), + BazelMixedBuild: proto.Bool(config.bazelBuildMode() == mixedBuild), + } +} + // getConfigArgs processes the command arguments based on the build action and creates a set of new // arguments to be accepted by Config. func getConfigArgs(action BuildAction, dir string, ctx Context, args []string) []string { diff --git a/ui/build/config_test.go b/ui/build/config_test.go index 7b14c4703..7d4c76b83 100644 --- a/ui/build/config_test.go +++ b/ui/build/config_test.go @@ -26,7 +26,10 @@ import ( "testing" "android/soong/ui/logger" + smpb "android/soong/ui/metrics/metrics_proto" "android/soong/ui/status" + + "github.com/golang/protobuf/proto" ) func testContext() Context { @@ -995,3 +998,111 @@ func TestGetConfigArgsBuildModulesInDirectories(t *testing.T) { }) } } + +func TestBuildConfig(t *testing.T) { + tests := []struct { + name string + environ Environment + useBazel bool + expectedBuildConfig *smpb.BuildConfig + }{ + { + name: "none set", + environ: Environment{}, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(false), + UseGoma: proto.Bool(false), + UseRbe: proto.Bool(false), + BazelAsNinja: proto.Bool(false), + BazelMixedBuild: proto.Bool(false), + }, + }, + { + name: "force use goma", + environ: Environment{"FORCE_USE_GOMA=1"}, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(true), + UseGoma: proto.Bool(false), + UseRbe: proto.Bool(false), + BazelAsNinja: proto.Bool(false), + BazelMixedBuild: proto.Bool(false), + }, + }, + { + name: "use goma", + environ: Environment{"USE_GOMA=1"}, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(false), + UseGoma: proto.Bool(true), + UseRbe: proto.Bool(false), + BazelAsNinja: proto.Bool(false), + BazelMixedBuild: proto.Bool(false), + }, + }, + { + name: "use rbe", + environ: Environment{"USE_RBE=1"}, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(false), + UseGoma: proto.Bool(false), + UseRbe: proto.Bool(true), + BazelAsNinja: proto.Bool(false), + BazelMixedBuild: proto.Bool(false), + }, + }, + { + name: "use bazel as ninja", + environ: Environment{}, + useBazel: true, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(false), + UseGoma: proto.Bool(false), + UseRbe: proto.Bool(false), + BazelAsNinja: proto.Bool(true), + BazelMixedBuild: proto.Bool(false), + }, + }, + { + name: "bazel mixed build", + environ: Environment{"USE_BAZEL_ANALYSIS=1"}, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(false), + UseGoma: proto.Bool(false), + UseRbe: proto.Bool(false), + BazelAsNinja: proto.Bool(false), + BazelMixedBuild: proto.Bool(true), + }, + }, + { + name: "all set", + environ: Environment{ + "FORCE_USE_GOMA=1", + "USE_GOMA=1", + "USE_RBE=1", + "USE_BAZEL_ANALYSIS=1", + }, + useBazel: true, + expectedBuildConfig: &smpb.BuildConfig{ + ForceUseGoma: proto.Bool(true), + UseGoma: proto.Bool(true), + UseRbe: proto.Bool(true), + BazelAsNinja: proto.Bool(true), + BazelMixedBuild: proto.Bool(true), + }, + }, + } + + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + c := &configImpl{ + environ: &tc.environ, + useBazel: tc.useBazel, + } + config := Config{c} + actualBuildConfig := buildConfig(config) + if expected := tc.expectedBuildConfig; !proto.Equal(expected, actualBuildConfig) { + t.Errorf("Expected build config != actual build config: %#v != %#v", *expected, *actualBuildConfig) + } + }) + } +} diff --git a/ui/metrics/metrics_proto/metrics.pb.go b/ui/metrics/metrics_proto/metrics.pb.go index fc2cfa492..106333707 100644 --- a/ui/metrics/metrics_proto/metrics.pb.go +++ b/ui/metrics/metrics_proto/metrics.pb.go @@ -433,9 +433,14 @@ func (m *MetricsBase) GetBazelRuns() []*PerfInfo { } type BuildConfig struct { - UseGoma *bool `protobuf:"varint,1,opt,name=use_goma,json=useGoma" json:"use_goma,omitempty"` - UseRbe *bool `protobuf:"varint,2,opt,name=use_rbe,json=useRbe" json:"use_rbe,omitempty"` - ForceUseGoma *bool `protobuf:"varint,3,opt,name=force_use_goma,json=forceUseGoma" json:"force_use_goma,omitempty"` + UseGoma *bool `protobuf:"varint,1,opt,name=use_goma,json=useGoma" json:"use_goma,omitempty"` + UseRbe *bool `protobuf:"varint,2,opt,name=use_rbe,json=useRbe" json:"use_rbe,omitempty"` + ForceUseGoma *bool `protobuf:"varint,3,opt,name=force_use_goma,json=forceUseGoma" json:"force_use_goma,omitempty"` + // Whether the Bazel is acting as the Ninja executor for this build. + BazelAsNinja *bool `protobuf:"varint,4,opt,name=bazel_as_ninja,json=bazelAsNinja" json:"bazel_as_ninja,omitempty"` + // Whether build is occurring in a mixed build mode, where Bazel maintains the + // definition and build of some modules in cooperation with Soong. + BazelMixedBuild *bool `protobuf:"varint,5,opt,name=bazel_mixed_build,json=bazelMixedBuild" json:"bazel_mixed_build,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -487,6 +492,20 @@ func (m *BuildConfig) GetForceUseGoma() bool { return false } +func (m *BuildConfig) GetBazelAsNinja() bool { + if m != nil && m.BazelAsNinja != nil { + return *m.BazelAsNinja + } + return false +} + +func (m *BuildConfig) GetBazelMixedBuild() bool { + if m != nil && m.BazelMixedBuild != nil { + return *m.BazelMixedBuild + } + return false +} + type SystemResourceInfo struct { // The total physical memory in bytes. TotalPhysicalMemory *uint64 `protobuf:"varint,1,opt,name=total_physical_memory,json=totalPhysicalMemory" json:"total_physical_memory,omitempty"` @@ -990,92 +1009,94 @@ func init() { } var fileDescriptor_6039342a2ba47b72 = []byte{ - // 1380 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xef, 0x52, 0x1b, 0x37, - 0x10, 0x8f, 0xc1, 0x60, 0x7b, 0xfd, 0x07, 0x23, 0xa0, 0x5c, 0x48, 0xd2, 0x52, 0xb7, 0x49, 0x99, - 0x4e, 0x43, 0x32, 0x34, 0xc3, 0x64, 0x98, 0x4c, 0xa7, 0xe0, 0xd0, 0x34, 0x65, 0xc0, 0x8c, 0x08, - 0x69, 0xda, 0x7e, 0x50, 0xe5, 0xb3, 0x0c, 0x97, 0xdc, 0x9d, 0x6e, 0x24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x05, 0xf5, 0x28, 0x78, 0x2b, 0xec, 0xef, 0x31, 0x5b, 0x93, 0xa7, 0x82, 0x27, 0x8e, - 0xe6, 0x2a, 0xae, 0x1e, 0xf1, 0xf3, 0x1f, 0x05, 0x4f, 0x2c, 0x67, 0x67, 0xe9, 0xd7, 0x6c, 0xe4, - 0x67, 0xe7, 0x66, 0xf8, 0x97, 0xe4, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcb, 0xfb, 0x8e, 0xf5, - 0xa2, 0x0c, 0x00, 0x00, + // 1423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x52, 0x1b, 0xc7, + 0x12, 0xb6, 0x40, 0x20, 0xa9, 0xf5, 0x83, 0x18, 0xe0, 0xb0, 0xc6, 0xf6, 0x39, 0x1c, 0xc5, 0x76, + 0xa8, 0x54, 0x8c, 0x5d, 0xc4, 0x45, 0xb9, 0x28, 0x57, 0x2a, 0x20, 0x13, 0xc7, 0xa1, 0x84, 0xa8, + 0xc1, 0x38, 0x4e, 0x72, 0x31, 0x19, 0xad, 0x46, 0xb0, 0xf6, 0xee, 0xce, 0xd6, 0xcc, 0x2c, 0x01, + 0xbf, 0x99, 0xaf, 0xf3, 0x12, 0x79, 0x81, 0x3c, 0x41, 0x5e, 0x20, 0x35, 0x3d, 0xbb, 0x62, 0xc1, + 0x8a, 0x4d, 0xf9, 0x4e, 0xfb, 0xf5, 0xf7, 0xf5, 0x76, 0xf7, 0xf4, 0x74, 0xaf, 0xa0, 0x19, 0x09, + 0xa3, 0x02, 0x5f, 0xaf, 0x27, 0x4a, 0x1a, 0x49, 0x16, 0xb4, 0x94, 0xf1, 0x31, 0x1b, 0xa4, 0x41, + 0x38, 0x64, 0x99, 0xa9, 0xf3, 0x67, 0x03, 0xea, 0x3d, 0xf7, 0x7b, 0x87, 0x6b, 0x41, 0x1e, 0xc1, + 0xa2, 0x23, 0x0c, 0xb9, 0x11, 0xcc, 0x04, 0x91, 0xd0, 0x86, 0x47, 0x89, 0x57, 0x5a, 0x2d, 0xad, + 0x4d, 0x53, 0x82, 0xb6, 0x67, 0xdc, 0x88, 0x97, 0xb9, 0x85, 0xdc, 0x84, 0xaa, 0x53, 0x04, 0x43, + 0x6f, 0x6a, 0xb5, 0xb4, 0x56, 0xa3, 0x15, 0x7c, 0x7e, 0x31, 0x24, 0x5b, 0x70, 0x33, 0x09, 0xb9, + 0x19, 0x49, 0x15, 0xb1, 0x53, 0xa1, 0x74, 0x20, 0x63, 0xe6, 0xcb, 0xa1, 0x88, 0x79, 0x24, 0xbc, + 0x69, 0xe4, 0x2e, 0xe7, 0x84, 0x57, 0xce, 0xde, 0xcd, 0xcc, 0xe4, 0x1e, 0xb4, 0x0c, 0x57, 0xc7, + 0xc2, 0xb0, 0x44, 0xc9, 0x61, 0xea, 0x1b, 0xaf, 0x8c, 0x82, 0xa6, 0x43, 0x0f, 0x1c, 0x48, 0x86, + 0xb0, 0x98, 0xd1, 0x5c, 0x10, 0xa7, 0x5c, 0x05, 0x3c, 0x36, 0xde, 0xcc, 0x6a, 0x69, 0xad, 0xb5, + 0xf1, 0x60, 0x7d, 0x42, 0xce, 0xeb, 0x85, 0x7c, 0xd7, 0x77, 0xac, 0xe5, 0x95, 0x13, 0x6d, 0x4d, + 0xef, 0xee, 0x3f, 0xa7, 0xc4, 0xf9, 0x2b, 0x1a, 0x48, 0x1f, 0xea, 0xd9, 0x5b, 0xb8, 0xf2, 0x4f, + 0xbc, 0x59, 0x74, 0x7e, 0xef, 0x93, 0xce, 0xb7, 0x95, 0x7f, 0xb2, 0x55, 0x39, 0xda, 0xdf, 0xdb, + 0xef, 0xff, 0xb4, 0x4f, 0xc1, 0xb9, 0xb0, 0x20, 0x59, 0x87, 0x85, 0x82, 0xc3, 0x71, 0xd4, 0x15, + 0x4c, 0x71, 0xfe, 0x82, 0x98, 0x07, 0xf0, 0x35, 0x64,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0x79, 0x33, 0xfc, 0x97, + 0xf3, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x63, 0x09, 0x14, 0xf5, 0x0c, 0x00, 0x00, } diff --git a/ui/metrics/metrics_proto/metrics.proto b/ui/metrics/metrics_proto/metrics.proto index 91d8dd9b7..b284bf982 100644 --- a/ui/metrics/metrics_proto/metrics.proto +++ b/ui/metrics/metrics_proto/metrics.proto @@ -116,6 +116,13 @@ message BuildConfig { optional bool use_rbe = 2; optional bool force_use_goma = 3; + + // Whether the Bazel is acting as the Ninja executor for this build. + optional bool bazel_as_ninja = 4; + + // Whether build is occurring in a mixed build mode, where Bazel maintains the + // definition and build of some modules in cooperation with Soong. + optional bool bazel_mixed_build = 5; } message SystemResourceInfo {