Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 syntax = "proto3"; | 1 syntax = "proto3"; |
| 2 | 2 |
| 3 package recipe_engine; | |
| 4 | |
| 5 import "package.proto"; | |
| 6 | |
| 3 // The result of a recipe execution. | 7 // The result of a recipe execution. |
| 4 message Result { | 8 message Result { |
| 5 oneof oneof_result { | 9 oneof oneof_result { |
| 6 // The json result of a recipe. Guaranteed to be a JSON 'object' (e.g. | 10 // The json result of a recipe. Guaranteed to be a JSON 'object' (e.g. |
| 7 // "{...}") or omitted. | 11 // "{...}") or omitted. |
| 8 string json_result = 1; | 12 string json_result = 1; |
| 9 | 13 |
| 10 // The cause of the failure of a recipe. | 14 // The cause of the failure of a recipe. |
| 11 Failure failure = 2; | 15 Failure failure = 2; |
| 12 } | 16 } |
| 17 | |
| 18 // Description of the recipe's package. | |
|
iannucci
2017/04/05 19:33:53
"Initial recipe repo's package spec (recipes.cfg)"
| |
| 19 Package recipe_package = 3; | |
| 13 } | 20 } |
| 14 | 21 |
| 15 message Failure { | 22 message Failure { |
| 16 // A reason readable by humans. Printed to the UI, and will be seen by users. | 23 // A reason readable by humans. Printed to the UI, and will be seen by users. |
| 17 string human_reason = 1; | 24 string human_reason = 1; |
| 18 | 25 |
| 19 // The cause of this failure. | 26 // The cause of this failure. |
| 20 oneof failure_type { | 27 oneof failure_type { |
| 21 // Step timed out. | 28 // Step timed out. |
| 22 Timeout timeout = 2; | 29 Timeout timeout = 2; |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 53 string step = 1; | 60 string step = 1; |
| 54 } | 61 } |
| 55 | 62 |
| 56 // A step failed to execute "correctly". Correct generally is indicated by a | 63 // A step failed to execute "correctly". Correct generally is indicated by a |
| 57 // return code of 0, but the step can allow for other return codes as well. | 64 // return code of 0, but the step can allow for other return codes as well. |
| 58 message StepFailure { | 65 message StepFailure { |
| 59 // The step which failed. | 66 // The step which failed. |
| 60 string step = 1; | 67 string step = 1; |
| 61 } | 68 } |
| 62 | 69 |
| OLD | NEW |