Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field check_preceding_lifecycle_events_present to PublishLifecycleEventRequest and PublishBuildToolEventStreamRequest protos. #15247

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}