| // Copyright 2025 The Chromium Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| syntax = "proto3"; | |
| package turboci.graph.executor.v1; | |
| import "turboci/graph/ids/v1/identifier.proto"; | |
| import "turboci/graph/orchestrator/v1/stage.proto"; | |
| import "turboci/graph/orchestrator/v1/value_data.proto"; | |
| import "turboci/graph/orchestrator/v1/workplan.proto"; | |
| option go_package = "go.chromium.org/turboci/proto/go/graph/executor/v1;executorpb"; | |
| option java_multiple_files = true; | |
| // Request to run a stage attempt. | |
| // | |
| // Next ID: 6 | |
| message RunStageRequest { | |
| // Stage to run. | |
| optional orchestrator.v1.Stage stage = 1; | |
| // The partial view of the parent work plan. | |
| // | |
| // Stages and Checks are omitted. | |
| optional orchestrator.v1.WorkPlan workplan = 5; | |
| // A map containing [ValueData] for `stage`. | |
| // | |
| // This is key'd by [ValueRef].digest. | |
| map<string, orchestrator.v1.ValueData> value_data = 4; | |
| // ID of the stage attempt to run. | |
| optional ids.v1.StageAttempt attempt = 2; | |
| // A token generated by the orchestrator. | |
| // The executor should pass this token to the stage for it to | |
| // perform updates to the workflow resources (checks and/or stages). | |
| optional string stage_attempt_token = 3; | |
| } | |
| // Response to run a stage attempt. | |
| message RunStageResponse { | |
| // Nothing for now. All work is done by calling back the orchestrator from | |
| // inside RunStage implementation. By the time orchestrator sees | |
| // RunStageResponse the stage may be finished already. | |
| } |