Skip to content

Commit a877d3d

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add field check_preceding_lifecycle_events_present to PublishBuildToolEventStreamRequest and PublishLifecycleEventRequest proto messages
PiperOrigin-RevId: 441557687
1 parent 2a27391 commit a877d3d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

google/devtools/build/v1/publish_build_event.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ message PublishLifecycleEventRequest {
126126
// This should match the project used for the initial call to
127127
// PublishLifecycleEvent (containing a BuildEnqueued message).
128128
string project_id = 6 [(google.api.field_behavior) = REQUIRED];
129+
130+
// Whether to require a previously received matching parent lifecycle event
131+
// for the current request's event before continuing processing.
132+
// - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
133+
// parent event.
134+
// - InvocationAttemptFinished events require an InvocationAttemptStarted
135+
// parent event.
136+
bool check_preceding_lifecycle_events_present = 7;
129137
}
130138

131139
// States which event has been committed. Any failure to commit will cause
@@ -170,4 +178,10 @@ message PublishBuildToolEventStreamRequest {
170178
// This should match the project used for the initial call to
171179
// PublishLifecycleEvent (containing a BuildEnqueued message).
172180
string project_id = 6 [(google.api.field_behavior) = REQUIRED];
181+
182+
// Whether to require a previously received matching InvocationAttemptStarted
183+
// event before continuing event processing for the event in the current
184+
// request. BES only performs this check for events with sequence_number 1
185+
// i.e. the first event in the stream.
186+
bool check_preceding_lifecycle_events_present = 7;
173187
}

0 commit comments

Comments
 (0)