package build_event_stream

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message Aborted

build_event_stream.proto:309

Payload of an event indicating that an expected event will not come, as the build is aborted prematurely for some reason.

Used in: BuildEvent

enum Aborted.AbortReason

build_event_stream.proto:310

Used in: Aborted

message ActionExecuted

build_event_stream.proto:551

Payload of the event indicating the completion of an action. The main purpose of posting those events is to provide details on the root cause for a target failing; however, consumers of the build-event protocol must not assume that only failed actions are posted.

Used in: BuildEvent

message BuildEvent

build_event_stream.proto:1414

Message describing a build event. Events will have an identifier that is unique within a given build invocation; they also announce follow-up events as children. More details, which are specific to the kind of event that is observed, is provided in the payload. More options for the payload might be added in the future.

message BuildEventId

build_event_stream.proto:41

Identifier for a build event. It is deliberately structured to also provide information about which build target etc the event is related to. Events are chained via the event id as follows: each event has an id and a set of ids of children events such that apart from the initial event each event has an id that is mentioned as child id in an earlier event and a build invocation is complete if and only if all direct and indirect children of the initial event have been posted.

Used in: BuildEvent

message BuildEventId.ActionCompletedId

build_event_stream.proto:168

Identifier of an event reporting that an action was completed (not all actions are reported, only the ones that can be considered important; this includes all failed actions).

Used in: BuildEventId

message BuildEventId.BuildFinishedId

build_event_stream.proto:238

Identifier of the BuildFinished event, indicating the end of a build.

Used in: BuildEventId

(message has no fields)

message BuildEventId.BuildMetadataId

build_event_stream.proto:101

Used in: BuildEventId

(message has no fields)

message BuildEventId.BuildMetricsId

build_event_stream.proto:246

Identifier of an event providing build metrics after completion of the build.

Used in: BuildEventId

(message has no fields)

message BuildEventId.BuildStartedId

build_event_stream.proto:60

Identifier of an event indicating the beginning of a build; this will normally be the first event.

Used in: BuildEventId

(message has no fields)

message BuildEventId.BuildToolLogsId

build_event_stream.proto:242

Identifier of an event providing additional logs/statistics after completion of the build.

Used in: BuildEventId

(message has no fields)

message BuildEventId.ConfigurationId

build_event_stream.proto:132

Identifier of an event introducing a configuration.

Used in: ActionExecuted, BuildEventId, ActionCompletedId, ConfiguredLabelId, TargetCompletedId, TargetSummaryId, TestProgressId, TestResultId, TestSummaryId

message BuildEventId.ConfiguredLabelId

build_event_stream.proto:189

Identifier of an event reporting an event associated with a configured label, usually a visibility error. In any case, an event with such an id will always report some form of error (i.e., the payload will be an Aborted event); there are no regular events using this identifier.

Used in: BuildEventId

message BuildEventId.ConvenienceSymlinksIdentifiedId

build_event_stream.proto:249

Identifier of an event providing convenience symlinks information.

Used in: BuildEventId

(message has no fields)

message BuildEventId.ExecRequestId

build_event_stream.proto:252

Identifier of an event providing the ExecRequest of a run command.

Used in: BuildEventId

(message has no fields)

message BuildEventId.FetchId

build_event_stream.proto:84

Identifier of an event reporting that an external resource was fetched from.

Used in: BuildEventId

message BuildEventId.NamedSetOfFilesId

build_event_stream.proto:125

Identifier of an event introducing a named set of files (usually artifacts) to be referred to in later messages.

Used in: BuildEventId, NamedSetOfFiles, OutputGroup

message BuildEventId.OptionsParsedId

build_event_stream.proto:80

Identifier on an event reporting on the options included in the command line, both explicitly and implicitly.

Used in: BuildEventId

(message has no fields)

message BuildEventId.PatternExpandedId

build_event_stream.proto:95

Identifier of an event indicating that a target pattern has been expanded further. Messages of this shape are also used to describe parts of a pattern that have been skipped for some reason, if the actual expansion was still carried out (e.g., if keep_going is set). In this case, the pattern_skipped choice in the id field is to be made.

Used in: BuildEventId

message BuildEventId.ProgressId

build_event_stream.proto:51

Identifier of an event reporting progress. Those events are also used to chain in events that come early.

Used in: BuildEventId

message BuildEventId.StructuredCommandLineId

build_event_stream.proto:67

Identifier on an event describing the commandline received by Bazel.

Used in: BuildEventId

message BuildEventId.TargetCompletedId

build_event_stream.proto:144

Identifier of an event indicating that a target was built completely; this does not include running the test if the target is a test target.

Used in: BuildEventId

message BuildEventId.TargetConfiguredId

build_event_stream.proto:105

Identifier of an event indicating that a target has been expanded by identifying for which configurations it should be build.

Used in: BuildEventId

message BuildEventId.TargetSummaryId

build_event_stream.proto:232

Identifier of an event reporting the summary of a target.

Used in: BuildEventId

message BuildEventId.TestProgressId

build_event_stream.proto:208

Identifier of an event reporting progress of an individual test run.

Used in: BuildEventId

message BuildEventId.TestResultId

build_event_stream.proto:199

Identifier of an event reporting on an individual test run. The label identifies the test that is reported about, the remaining fields are in such a way as to uniquely identify the action within a build. In fact, attempts for the same test, run, shard triple are counted sequentially, starting with 1.

Used in: BuildEventId

message BuildEventId.TestSummaryId

build_event_stream.proto:226

Identifier of an event reporting the summary of a test.

Used in: BuildEventId

message BuildEventId.UnconfiguredLabelId

build_event_stream.proto:181

Identifier of an event reporting an event associated with an unconfigured label. Usually, this indicates a failure due to a missing input file. In any case, it will report some form of error (i.e., the payload will be an Aborted event); there are no regular events using this identifier. The purpose of those events is to serve as the root cause of a failed target.

Used in: BuildEventId

message BuildEventId.UnknownBuildEventId

build_event_stream.proto:45

Generic identifier for a build event. This is the default type of BuildEventId, but should not be used outside testing; nevertheless, tools should handle build events with this kind of id gracefully.

Used in: BuildEventId

message BuildEventId.UnstructuredCommandLineId

build_event_stream.proto:64

Identifier on an event indicating the original commandline received by the bazel server.

Used in: BuildEventId

(message has no fields)

message BuildEventId.WorkspaceConfigId

build_event_stream.proto:99

Used in: BuildEventId

(message has no fields)

message BuildEventId.WorkspaceStatusId

build_event_stream.proto:76

Identifier of an event indicating the workspace status.

Used in: BuildEventId

(message has no fields)

message BuildFinished

build_event_stream.proto:852

Event indicating the end of a build.

Used in: BuildEvent

message BuildFinished.AnomalyReport

build_event_stream.proto:868

Things that happened during the build that could be of interest.

Used in: BuildFinished

message BuildFinished.ExitCode

build_event_stream.proto:859

Exit code of a build. The possible values correspond to the predefined codes in bazel's lib.ExitCode class, as well as any custom exit code a module might define. The predefined exit codes are subject to change (but rarely do) and are not part of the public API. A build was successful iff ExitCode.code equals 0.

Used in: BuildFinished

message BuildMetadata

build_event_stream.proto:441

Payload of an event reporting custom key-value metadata associated with the build.

Used in: BuildEvent

message BuildMetrics

build_event_stream.proto:900

Used in: BuildEvent

message BuildMetrics.ActionSummary

build_event_stream.proto:901

Used in: BuildMetrics

message BuildMetrics.ActionSummary.ActionData

build_event_stream.proto:921

Used in: ActionSummary

message BuildMetrics.ActionSummary.RunnerCount

build_event_stream.proto:950

Used in: ActionSummary

message BuildMetrics.ArtifactMetrics

build_event_stream.proto:1066

Used in: BuildMetrics

message BuildMetrics.ArtifactMetrics.FilesMetric

build_event_stream.proto:1069

Used in: ArtifactMetrics

message BuildMetrics.BuildGraphMetrics

build_event_stream.proto:1104

Information about the size and shape of the build graph. Some fields may not be populated if Bazel was able to skip steps due to caching.

Used in: BuildMetrics

message BuildMetrics.BuildGraphMetrics.AspectCount

build_event_stream.proto:1179

For SkyKeys whose function name is ASPECT break out that information

Used in: BuildGraphMetrics

message BuildMetrics.BuildGraphMetrics.RuleClassCount

build_event_stream.proto:1163

For SkyKeys in 'done values' where the SkyValue is of type RuleConfiguredTargetValue, we pull those out separately and report the ruleClass and action count.

Used in: BuildGraphMetrics

message BuildMetrics.CumulativeMetrics

build_event_stream.proto:1053

Used in: BuildMetrics

message BuildMetrics.DynamicExecutionMetrics

build_event_stream.proto:1328

Information about dynamic execution.

Used in: BuildMetrics

message BuildMetrics.DynamicExecutionMetrics.RaceStatistics

build_event_stream.proto:1329

Used in: DynamicExecutionMetrics

message BuildMetrics.EvaluationStat

build_event_stream.proto:1095

Data about the evaluation of Skyfunctions.

Used in: BuildGraphMetrics

message BuildMetrics.MemoryMetrics

build_event_stream.proto:961

Used in: BuildMetrics

message BuildMetrics.MemoryMetrics.GarbageMetrics

build_event_stream.proto:974

Used in: MemoryMetrics

message BuildMetrics.NetworkMetrics

build_event_stream.proto:1265

Information about host network.

Used in: BuildMetrics

message BuildMetrics.NetworkMetrics.SystemNetworkStats

build_event_stream.proto:1268

Information for all the network traffic going on on the host machine during the invocation.

Used in: NetworkMetrics

message BuildMetrics.PackageMetrics

build_event_stream.proto:1007

Used in: BuildMetrics

message BuildMetrics.TargetMetrics

build_event_stream.proto:986

Used in: BuildMetrics

message BuildMetrics.TimingMetrics

build_event_stream.proto:1029

Used in: BuildMetrics

message BuildMetrics.WorkerMetrics

build_event_stream.proto:1201

Information about all workers that were alive during the invocation.

Used in: BuildMetrics

message BuildMetrics.WorkerMetrics.WorkerStats

build_event_stream.proto:1247

Information collected from worker at some point.

Used in: WorkerMetrics

enum BuildMetrics.WorkerMetrics.WorkerStatus

build_event_stream.proto:1224

Used in: WorkerMetrics

message BuildMetrics.WorkerPoolMetrics

build_event_stream.proto:1293

Information about worker pool actions.

Used in: BuildMetrics

message BuildMetrics.WorkerPoolMetrics.WorkerPoolStats

build_event_stream.proto:1298

Used in: WorkerPoolMetrics

message BuildStarted

build_event_stream.proto:361

Payload of an event indicating the beginning of a new build. Usually, events of those type start a new build-event stream. The target pattern requested to be build is contained in one of the announced child events; it is an invariant that precisely one of the announced child events has a non-empty target pattern.

Used in: BuildEvent

message BuildToolLogs

build_event_stream.proto:1349

Event providing additional statistics/logs after completion of the build.

Used in: BuildEvent

message Configuration

build_event_stream.proto:448

Payload of an event reporting details of a given configuration.

Used in: BuildEvent

build_event_stream.proto:1365

The message that contains what type of action to perform on a given path and target of a symlink.

Used in: ConvenienceSymlinksIdentified

enum ConvenienceSymlink.Action

build_event_stream.proto:1366

Used in: ConvenienceSymlink

message ConvenienceSymlinksIdentified

build_event_stream.proto:1359

Event describing all convenience symlinks (i.e., workspace symlinks) to be created or deleted once the execution phase has begun. Note that this event does not say anything about whether or not the build tool actually executed these filesystem operations; it only says what logical operations should be performed. This event is emitted exactly once per build; if no symlinks are to be modified, the event is still emitted with empty contents.

Used in: BuildEvent

message EnvironmentVariable

build_event_stream.proto:1404

An environment variable provided by a run command after a successful build.

Used in: ExecRequestConstructed

message ExecRequestConstructed

build_event_stream.proto:1395

Event that contains the ExecRequest of a run command announced only after a successful build and before trying to execute the requested command-line.

Used in: BuildEvent

message Fetch

build_event_stream.proto:423

Payload of an event indicating that an external resource was fetched. This event will only occur in streams where an actual fetch happened, not in ones where a cached copy of the entity to be fetched was used.

Used in: BuildEvent

message File

build_event_stream.proto:507

Used in: ActionExecuted, BuildToolLogs, NamedSetOfFiles, OutputGroup, TargetComplete, TestResult, TestSummary

message NamedSetOfFiles

build_event_stream.proto:539

Payload of a message to describe a set of files, usually build artifacts, to be referred to later by their name. In this way, files that occur identically as outputs of several targets have to be named only once.

Used in: BuildEvent

message OptionsParsed

build_event_stream.proto:411

Payload of an event reporting on the parsed options, grouped in various ways.

Used in: BuildEvent

message OutputGroup

build_event_stream.proto:601

Collection of all output files belonging to that output group.

Used in: TargetComplete

message PatternExpanded

build_event_stream.proto:462

Payload of the event indicating the expansion of a target pattern. The main information is in the chaining part: the id will contain the target pattern that was expanded and the children id will contain the target or target pattern it was expanded to.

Used in: BuildEvent

message PatternExpanded.TestSuiteExpansion

build_event_stream.proto:466

Represents a test_suite target and the tests that it expanded to. Nested test suites are recursively expanded. The test labels only contain the final test targets, not any nested suites.

Used in: PatternExpanded

message Progress

build_event_stream.proto:291

Payload of an event summarizing the progress of the build so far. Those events are also used to be parents of events where the more logical parent event cannot be posted yet as the needed information is not yet complete.

Used in: BuildEvent

message TargetComplete

build_event_stream.proto:623

Payload of the event indicating the completion of a target. The target is specified in the id. If the target failed the root causes are provided as children events.

Used in: BuildEvent

message TargetConfigured

build_event_stream.proto:494

Payload of the event indicating that the configurations for a target have been identified. As with pattern expansion the main information is in the chaining part: the id will contain the target that was configured and the children id will contain the configured targets it was configured to.

Used in: BuildEvent

message TargetSummary

build_event_stream.proto:843

Payload of the event summarizing a target (test or non-test).

Used in: BuildEvent

message TestProgress

build_event_stream.proto:772

Event payload providing information about an active, individual test run.

Used in: BuildEvent

message TestResult

build_event_stream.proto:682

Payload on events reporting about individual test action.

Used in: BuildEvent

message TestResult.ExecutionInfo

build_event_stream.proto:730

Message providing optional meta data on the execution of the test action, if available.

Used in: TestResult

message TestResult.ExecutionInfo.ResourceUsage

build_event_stream.proto:762

Used in: ExecutionInfo

message TestResult.ExecutionInfo.TimingBreakdown

build_event_stream.proto:751

Represents a hierarchical timing breakdown of an activity. The top level time should be the total time of the activity. Invariant: `time` >= sum of `time`s of all direct children.

Used in: ExecutionInfo

enum TestSize

build_event_stream.proto:482

Enumeration type characterizing the size of a test, as specified by the test rule.

Used in: TargetComplete, TargetConfigured

enum TestStatus

build_event_stream.proto:669

Used in: TargetSummary, TestResult, TestSummary

message TestSummary

build_event_stream.proto:781

Payload of the event summarizing a test.

Used in: BuildEvent

message UnstructuredCommandLine

build_event_stream.proto:406

Payload of an event reporting the command-line of the invocation as originally received by the server. Note that this is not the command-line given by the user, as the client adds information about the invocation, like name and relevant entries of rc-files and client environment variables. However, it does contain enough information to reproduce the build invocation.

Used in: BuildEvent

message WorkspaceConfig

build_event_stream.proto:394

Configuration related to the blaze workspace and output tree.

Used in: BuildEvent

message WorkspaceStatus

build_event_stream.proto:431

Payload of an event reporting the workspace status. Key-value pairs can be provided by specifying the workspace_status_command to an executable that returns one key-value pair per line of output (key and value separated by a space).

Used in: BuildEvent

message WorkspaceStatus.Item

build_event_stream.proto:432

Used in: WorkspaceStatus