Skip to content

Commit

Permalink
Add field check_preceding_lifecycle_events_present to PublishLifecycl…
Browse files Browse the repository at this point in the history
…eEventRequest and PublishBuildToolEventStreamRequest protos.

Closes #15247.
  • Loading branch information
andrewpaekgoogle authored and katre committed Apr 21, 2022
1 parent d5c788f commit df96163
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ message PublishLifecycleEventRequest {
// This should match the project used for the initial call to
// PublishLifecycleEvent (containing a BuildEnqueued message).
string project_id = 6;

// Whether to require a previously received matching parent lifecycle event
// for the current request's event before continuing processing.
// - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
// parent event.
// - InvocationAttemptFinished events require an InvocationAttemptStarted
// parent event.
bool check_preceding_lifecycle_events_present = 7;
}

// States which event has been committed. Any failure to commit will cause
Expand Down Expand Up @@ -161,4 +169,10 @@ message PublishBuildToolEventStreamRequest {
// This should match the project used for the initial call to
// PublishLifecycleEvent (containing a BuildEnqueued message).
string project_id = 6;

// Whether to require a previously received matching InvocationAttemptStarted
// event before continuing event processing for the event in the current
// request. BES only performs this check for events with sequence_number 1
// i.e. the first event in the stream.
bool check_preceding_lifecycle_events_present = 7;
}

0 comments on commit df96163

Please sign in to comment.