fix(api): rename the CI status and conclusion enums to CiStatus and CiConclusion
Avoids clashing with future generic names before the first release.
- commit
- 0e0b3acb29a5e10b2218f0a605e88e65f946cbee
- author
- brice · · 2026-10-12 14:12 UTC
- parent
- 8b00839
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
6 files · +207 -208
M gen/ermite/ermiteconnect/runner.connect.go +4 -4
| @@ -112,7 +112,7 @@ type RunnerServiceClient interface { | |||
| 112 | 112 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | |
| 113 | 113 | // the server (text, timestamps and separators). The call that would exceed | |
| 114 | 114 | // it appends nothing; the server adds a last line saying that the limit was | |
| 115 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | |
| 115 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and | |
| 116 | 116 | // answers resource_exhausted. The runner then stops the job and sends | |
| 117 | 117 | // nothing more: its calls get unauthenticated. | |
| 118 | 118 | // | |
| @@ -122,7 +122,7 @@ type RunnerServiceClient interface { | |||
| 122 | 122 | // Heartbeat tells the server that the runner is alive and still working on | |
| 123 | 123 | // the job. Needs the job token. The runner calls it every 30 seconds for as | |
| 124 | 124 | // long as the job runs, from assignment to the end. Without a heartbeat for | |
| 125 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | |
| 125 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message | |
| 126 | 126 | // "The self-hosted runner: <name> lost communication with the server...". | |
| 127 | 127 | // Only Heartbeat counts: other calls do not keep a job alive. | |
| 128 | 128 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | |
| @@ -294,7 +294,7 @@ type RunnerServiceHandler interface { | |||
| 294 | 294 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | |
| 295 | 295 | // the server (text, timestamps and separators). The call that would exceed | |
| 296 | 296 | // it appends nothing; the server adds a last line saying that the limit was | |
| 297 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | |
| 297 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and | |
| 298 | 298 | // answers resource_exhausted. The runner then stops the job and sends | |
| 299 | 299 | // nothing more: its calls get unauthenticated. | |
| 300 | 300 | // | |
| @@ -304,7 +304,7 @@ type RunnerServiceHandler interface { | |||
| 304 | 304 | // Heartbeat tells the server that the runner is alive and still working on | |
| 305 | 305 | // the job. Needs the job token. The runner calls it every 30 seconds for as | |
| 306 | 306 | // long as the job runs, from assignment to the end. Without a heartbeat for | |
| 307 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | |
| 307 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message | |
| 308 | 308 | // "The self-hosted runner: <name> lost communication with the server...". | |
| 309 | 309 | // Only Heartbeat counts: other calls do not keep a job alive. | |
| 310 | 310 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | |
| @@ -112,7 +112,7 @@ type RunnerServiceClient interface { | |||||
| 112 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | 112 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | ||
| 113 | // the server (text, timestamps and separators). The call that would exceed | 113 | // the server (text, timestamps and separators). The call that would exceed | ||
| 114 | // it appends nothing; the server adds a last line saying that the limit was | 114 | // it appends nothing; the server adds a last line saying that the limit was | ||
| 115 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | 115 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and |
| 116 | // answers resource_exhausted. The runner then stops the job and sends | 116 | // answers resource_exhausted. The runner then stops the job and sends | ||
| 117 | // nothing more: its calls get unauthenticated. | 117 | // nothing more: its calls get unauthenticated. | ||
| 118 | // | 118 | // | ||
| @@ -122,7 +122,7 @@ type RunnerServiceClient interface { | |||||
| 122 | // Heartbeat tells the server that the runner is alive and still working on | 122 | // Heartbeat tells the server that the runner is alive and still working on | ||
| 123 | // the job. Needs the job token. The runner calls it every 30 seconds for as | 123 | // the job. Needs the job token. The runner calls it every 30 seconds for as | ||
| 124 | // long as the job runs, from assignment to the end. Without a heartbeat for | 124 | // long as the job runs, from assignment to the end. Without a heartbeat for | ||
| 125 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | 125 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message |
| 126 | // "The self-hosted runner: <name> lost communication with the server...". | 126 | // "The self-hosted runner: <name> lost communication with the server...". | ||
| 127 | // Only Heartbeat counts: other calls do not keep a job alive. | 127 | // Only Heartbeat counts: other calls do not keep a job alive. | ||
| 128 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | 128 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | ||
| @@ -294,7 +294,7 @@ type RunnerServiceHandler interface { | |||||
| 294 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | 294 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | ||
| 295 | // the server (text, timestamps and separators). The call that would exceed | 295 | // the server (text, timestamps and separators). The call that would exceed | ||
| 296 | // it appends nothing; the server adds a last line saying that the limit was | 296 | // it appends nothing; the server adds a last line saying that the limit was | ||
| 297 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | 297 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and |
| 298 | // answers resource_exhausted. The runner then stops the job and sends | 298 | // answers resource_exhausted. The runner then stops the job and sends | ||
| 299 | // nothing more: its calls get unauthenticated. | 299 | // nothing more: its calls get unauthenticated. | ||
| 300 | // | 300 | // | ||
| @@ -304,7 +304,7 @@ type RunnerServiceHandler interface { | |||||
| 304 | // Heartbeat tells the server that the runner is alive and still working on | 304 | // Heartbeat tells the server that the runner is alive and still working on | ||
| 305 | // the job. Needs the job token. The runner calls it every 30 seconds for as | 305 | // the job. Needs the job token. The runner calls it every 30 seconds for as | ||
| 306 | // long as the job runs, from assignment to the end. Without a heartbeat for | 306 | // long as the job runs, from assignment to the end. Without a heartbeat for | ||
| 307 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | 307 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message |
| 308 | // "The self-hosted runner: <name> lost communication with the server...". | 308 | // "The self-hosted runner: <name> lost communication with the server...". | ||
| 309 | // Only Heartbeat counts: other calls do not keep a job alive. | 309 | // Only Heartbeat counts: other calls do not keep a job alive. | ||
| 310 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | 310 | Heartbeat(context.Context, *connect.Request[ermite.HeartbeatRequest]) (*connect.Response[ermite.HeartbeatResponse], error) | ||
M gen/ermite/run.pb.go +53 -53 generated file: collapsed
M gen/ermite/runner.pb.go +106 -107
| @@ -24,143 +24,143 @@ const ( | |||
| 24 | 24 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |
| 25 | 25 | ) | |
| 26 | 26 | ||
| 27 | - | // RunStatus is where a run, a job or a check is in its life. It is the same | |
| 27 | + | // CiStatus is where a run, a job or a check is in its life. It is the same | |
| 28 | 28 | // as GitHub's status, without the rarely used values. | |
| 29 | - | type RunStatus int32 | |
| 29 | + | type CiStatus int32 | |
| 30 | 30 | ||
| 31 | 31 | const ( | |
| 32 | 32 | // Not set. In a filter it means every status. Never returned by the server. | |
| 33 | - | RunStatus_RUN_STATUS_UNSPECIFIED RunStatus = 0 | |
| 33 | + | CiStatus_CI_STATUS_UNSPECIFIED CiStatus = 0 | |
| 34 | 34 | // Waiting: for a runner, for the jobs it needs, or for its turn | |
| 35 | 35 | // (max-parallel). | |
| 36 | - | RunStatus_RUN_STATUS_QUEUED RunStatus = 1 | |
| 36 | + | CiStatus_CI_STATUS_QUEUED CiStatus = 1 | |
| 37 | 37 | // At least one job has been given to a runner and has not ended. | |
| 38 | - | RunStatus_RUN_STATUS_IN_PROGRESS RunStatus = 2 | |
| 38 | + | CiStatus_CI_STATUS_IN_PROGRESS CiStatus = 2 | |
| 39 | 39 | // Over. The conclusion says how it ended. | |
| 40 | - | RunStatus_RUN_STATUS_COMPLETED RunStatus = 3 | |
| 40 | + | CiStatus_CI_STATUS_COMPLETED CiStatus = 3 | |
| 41 | 41 | ) | |
| 42 | 42 | ||
| 43 | - | // Enum value maps for RunStatus. | |
| 43 | + | // Enum value maps for CiStatus. | |
| 44 | 44 | var ( | |
| 45 | - | RunStatus_name = map[int32]string{ | |
| 46 | - | 0: "RUN_STATUS_UNSPECIFIED", | |
| 47 | - | 1: "RUN_STATUS_QUEUED", | |
| 48 | - | 2: "RUN_STATUS_IN_PROGRESS", | |
| 49 | - | 3: "RUN_STATUS_COMPLETED", | |
| 50 | - | } | |
| 51 | - | RunStatus_value = map[string]int32{ | |
| 52 | - | "RUN_STATUS_UNSPECIFIED": 0, | |
| 53 | - | "RUN_STATUS_QUEUED": 1, | |
| 54 | - | "RUN_STATUS_IN_PROGRESS": 2, | |
| 55 | - | "RUN_STATUS_COMPLETED": 3, | |
| 45 | + | CiStatus_name = map[int32]string{ | |
| 46 | + | 0: "CI_STATUS_UNSPECIFIED", | |
| 47 | + | 1: "CI_STATUS_QUEUED", | |
| 48 | + | 2: "CI_STATUS_IN_PROGRESS", | |
| 49 | + | 3: "CI_STATUS_COMPLETED", | |
| 50 | + | } | |
| 51 | + | CiStatus_value = map[string]int32{ | |
| 52 | + | "CI_STATUS_UNSPECIFIED": 0, | |
| 53 | + | "CI_STATUS_QUEUED": 1, | |
| 54 | + | "CI_STATUS_IN_PROGRESS": 2, | |
| 55 | + | "CI_STATUS_COMPLETED": 3, | |
| 56 | 56 | } | |
| 57 | 57 | ) | |
| 58 | 58 | ||
| 59 | - | func (x RunStatus) Enum() *RunStatus { | |
| 60 | - | p := new(RunStatus) | |
| 59 | + | func (x CiStatus) Enum() *CiStatus { | |
| 60 | + | p := new(CiStatus) | |
| 61 | 61 | *p = x | |
| 62 | 62 | return p | |
| 63 | 63 | } | |
| 64 | 64 | ||
| 65 | - | func (x RunStatus) String() string { | |
| 65 | + | func (x CiStatus) String() string { | |
| 66 | 66 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | |
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | - | func (RunStatus) Descriptor() protoreflect.EnumDescriptor { | |
| 69 | + | func (CiStatus) Descriptor() protoreflect.EnumDescriptor { | |
| 70 | 70 | return file_ermite_runner_proto_enumTypes[0].Descriptor() | |
| 71 | 71 | } | |
| 72 | 72 | ||
| 73 | - | func (RunStatus) Type() protoreflect.EnumType { | |
| 73 | + | func (CiStatus) Type() protoreflect.EnumType { | |
| 74 | 74 | return &file_ermite_runner_proto_enumTypes[0] | |
| 75 | 75 | } | |
| 76 | 76 | ||
| 77 | - | func (x RunStatus) Number() protoreflect.EnumNumber { | |
| 77 | + | func (x CiStatus) Number() protoreflect.EnumNumber { | |
| 78 | 78 | return protoreflect.EnumNumber(x) | |
| 79 | 79 | } | |
| 80 | 80 | ||
| 81 | - | // Deprecated: Use RunStatus.Descriptor instead. | |
| 82 | - | func (RunStatus) EnumDescriptor() ([]byte, []int) { | |
| 81 | + | // Deprecated: Use CiStatus.Descriptor instead. | |
| 82 | + | func (CiStatus) EnumDescriptor() ([]byte, []int) { | |
| 83 | 83 | return file_ermite_runner_proto_rawDescGZIP(), []int{0} | |
| 84 | 84 | } | |
| 85 | 85 | ||
| 86 | - | // Conclusion is how a run, a job, a step or a check ended, with GitHub's | |
| 87 | - | // values and meaning. It is unset (CONCLUSION_UNSPECIFIED) until the status is | |
| 86 | + | // CiConclusion is how a run, a job, a step or a check ended, with GitHub's | |
| 87 | + | // values and meaning. It is unset (CI_CONCLUSION_UNSPECIFIED) until the status is | |
| 88 | 88 | // COMPLETED. | |
| 89 | - | type Conclusion int32 | |
| 89 | + | type CiConclusion int32 | |
| 90 | 90 | ||
| 91 | 91 | const ( | |
| 92 | 92 | // Not completed yet. Never returned by the server for a completed item. | |
| 93 | - | Conclusion_CONCLUSION_UNSPECIFIED Conclusion = 0 | |
| 93 | + | CiConclusion_CI_CONCLUSION_UNSPECIFIED CiConclusion = 0 | |
| 94 | 94 | // Everything it ran succeeded. | |
| 95 | - | Conclusion_CONCLUSION_SUCCESS Conclusion = 1 | |
| 95 | + | CiConclusion_CI_CONCLUSION_SUCCESS CiConclusion = 1 | |
| 96 | 96 | // A step failed, or the job failed for another reason described in | |
| 97 | 97 | // RunJob.error (runner lost, queue timeout, log limit, feature not | |
| 98 | 98 | // supported yet, invalid workflow file). | |
| 99 | - | Conclusion_CONCLUSION_FAILURE Conclusion = 2 | |
| 99 | + | CiConclusion_CI_CONCLUSION_FAILURE CiConclusion = 2 | |
| 100 | 100 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | |
| 101 | - | Conclusion_CONCLUSION_CANCELLED Conclusion = 3 | |
| 101 | + | CiConclusion_CI_CONCLUSION_CANCELLED CiConclusion = 3 | |
| 102 | 102 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | |
| 103 | 103 | // not selected. Never reported by a runner. | |
| 104 | - | Conclusion_CONCLUSION_SKIPPED Conclusion = 4 | |
| 104 | + | CiConclusion_CI_CONCLUSION_SKIPPED CiConclusion = 4 | |
| 105 | 105 | // Exceeded its timeout. | |
| 106 | - | Conclusion_CONCLUSION_TIMED_OUT Conclusion = 5 | |
| 106 | + | CiConclusion_CI_CONCLUSION_TIMED_OUT CiConclusion = 5 | |
| 107 | 107 | // Neither a success nor a failure. Defined for parity with GitHub; no | |
| 108 | 108 | // workflow job ends this way yet. For merging it counts as a success. | |
| 109 | - | Conclusion_CONCLUSION_NEUTRAL Conclusion = 6 | |
| 109 | + | CiConclusion_CI_CONCLUSION_NEUTRAL CiConclusion = 6 | |
| 110 | 110 | // Waits for a human action (for example the approval of an environment). | |
| 111 | 111 | // Defined for parity with GitHub; the server does not produce it before | |
| 112 | 112 | // environments exist. For merging it counts as a failure. | |
| 113 | - | Conclusion_CONCLUSION_ACTION_REQUIRED Conclusion = 7 | |
| 113 | + | CiConclusion_CI_CONCLUSION_ACTION_REQUIRED CiConclusion = 7 | |
| 114 | 114 | ) | |
| 115 | 115 | ||
| 116 | - | // Enum value maps for Conclusion. | |
| 116 | + | // Enum value maps for CiConclusion. | |
| 117 | 117 | var ( | |
| 118 | - | Conclusion_name = map[int32]string{ | |
| 119 | - | 0: "CONCLUSION_UNSPECIFIED", | |
| 120 | - | 1: "CONCLUSION_SUCCESS", | |
| 121 | - | 2: "CONCLUSION_FAILURE", | |
| 122 | - | 3: "CONCLUSION_CANCELLED", | |
| 123 | - | 4: "CONCLUSION_SKIPPED", | |
| 124 | - | 5: "CONCLUSION_TIMED_OUT", | |
| 125 | - | 6: "CONCLUSION_NEUTRAL", | |
| 126 | - | 7: "CONCLUSION_ACTION_REQUIRED", | |
| 127 | - | } | |
| 128 | - | Conclusion_value = map[string]int32{ | |
| 129 | - | "CONCLUSION_UNSPECIFIED": 0, | |
| 130 | - | "CONCLUSION_SUCCESS": 1, | |
| 131 | - | "CONCLUSION_FAILURE": 2, | |
| 132 | - | "CONCLUSION_CANCELLED": 3, | |
| 133 | - | "CONCLUSION_SKIPPED": 4, | |
| 134 | - | "CONCLUSION_TIMED_OUT": 5, | |
| 135 | - | "CONCLUSION_NEUTRAL": 6, | |
| 136 | - | "CONCLUSION_ACTION_REQUIRED": 7, | |
| 118 | + | CiConclusion_name = map[int32]string{ | |
| 119 | + | 0: "CI_CONCLUSION_UNSPECIFIED", | |
| 120 | + | 1: "CI_CONCLUSION_SUCCESS", | |
| 121 | + | 2: "CI_CONCLUSION_FAILURE", | |
| 122 | + | 3: "CI_CONCLUSION_CANCELLED", | |
| 123 | + | 4: "CI_CONCLUSION_SKIPPED", | |
| 124 | + | 5: "CI_CONCLUSION_TIMED_OUT", | |
| 125 | + | 6: "CI_CONCLUSION_NEUTRAL", | |
| 126 | + | 7: "CI_CONCLUSION_ACTION_REQUIRED", | |
| 127 | + | } | |
| 128 | + | CiConclusion_value = map[string]int32{ | |
| 129 | + | "CI_CONCLUSION_UNSPECIFIED": 0, | |
| 130 | + | "CI_CONCLUSION_SUCCESS": 1, | |
| 131 | + | "CI_CONCLUSION_FAILURE": 2, | |
| 132 | + | "CI_CONCLUSION_CANCELLED": 3, | |
| 133 | + | "CI_CONCLUSION_SKIPPED": 4, | |
| 134 | + | "CI_CONCLUSION_TIMED_OUT": 5, | |
| 135 | + | "CI_CONCLUSION_NEUTRAL": 6, | |
| 136 | + | "CI_CONCLUSION_ACTION_REQUIRED": 7, | |
| 137 | 137 | } | |
| 138 | 138 | ) | |
| 139 | 139 | ||
| 140 | - | func (x Conclusion) Enum() *Conclusion { | |
| 141 | - | p := new(Conclusion) | |
| 140 | + | func (x CiConclusion) Enum() *CiConclusion { | |
| 141 | + | p := new(CiConclusion) | |
| 142 | 142 | *p = x | |
| 143 | 143 | return p | |
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | - | func (x Conclusion) String() string { | |
| 146 | + | func (x CiConclusion) String() string { | |
| 147 | 147 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | |
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | - | func (Conclusion) Descriptor() protoreflect.EnumDescriptor { | |
| 150 | + | func (CiConclusion) Descriptor() protoreflect.EnumDescriptor { | |
| 151 | 151 | return file_ermite_runner_proto_enumTypes[1].Descriptor() | |
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | - | func (Conclusion) Type() protoreflect.EnumType { | |
| 154 | + | func (CiConclusion) Type() protoreflect.EnumType { | |
| 155 | 155 | return &file_ermite_runner_proto_enumTypes[1] | |
| 156 | 156 | } | |
| 157 | 157 | ||
| 158 | - | func (x Conclusion) Number() protoreflect.EnumNumber { | |
| 158 | + | func (x CiConclusion) Number() protoreflect.EnumNumber { | |
| 159 | 159 | return protoreflect.EnumNumber(x) | |
| 160 | 160 | } | |
| 161 | 161 | ||
| 162 | - | // Deprecated: Use Conclusion.Descriptor instead. | |
| 163 | - | func (Conclusion) EnumDescriptor() ([]byte, []int) { | |
| 162 | + | // Deprecated: Use CiConclusion.Descriptor instead. | |
| 163 | + | func (CiConclusion) EnumDescriptor() ([]byte, []int) { | |
| 164 | 164 | return file_ermite_runner_proto_rawDescGZIP(), []int{1} | |
| 165 | 165 | } | |
| 166 | 166 | ||
| @@ -175,7 +175,7 @@ const ( | |||
| 175 | 175 | // Running. | |
| 176 | 176 | StepState_STEP_STATE_IN_PROGRESS StepState = 2 | |
| 177 | 177 | // Over. The conclusion says how it ended. A step that did not run because | |
| 178 | - | // of its "if" or an earlier failure is COMPLETED with CONCLUSION_SKIPPED. | |
| 178 | + | // of its "if" or an earlier failure is COMPLETED with CI_CONCLUSION_SKIPPED. | |
| 179 | 179 | StepState_STEP_STATE_COMPLETED StepState = 3 | |
| 180 | 180 | ) | |
| 181 | 181 | ||
| @@ -291,13 +291,13 @@ const ( | |||
| 291 | 291 | // no request. | |
| 292 | 292 | CancelReason_CANCEL_REASON_UNSPECIFIED CancelReason = 0 | |
| 293 | 293 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | |
| 294 | - | // ends CONCLUSION_CANCELLED. | |
| 294 | + | // ends CI_CONCLUSION_CANCELLED. | |
| 295 | 295 | CancelReason_CANCEL_REASON_USER CancelReason = 1 | |
| 296 | 296 | // Another job of the same matrix failed and the strategy has fail-fast. The | |
| 297 | - | // job ends CONCLUSION_CANCELLED. | |
| 297 | + | // job ends CI_CONCLUSION_CANCELLED. | |
| 298 | 298 | CancelReason_CANCEL_REASON_FAIL_FAST CancelReason = 2 | |
| 299 | 299 | // The job exceeded its timeout_minutes without the runner ending it. The | |
| 300 | - | // job ends CONCLUSION_TIMED_OUT. | |
| 300 | + | // job ends CI_CONCLUSION_TIMED_OUT. | |
| 301 | 301 | CancelReason_CANCEL_REASON_TIMEOUT CancelReason = 3 | |
| 302 | 302 | ) | |
| 303 | 303 | ||
| @@ -806,15 +806,15 @@ type UpdateJobRequest struct { | |||
| 806 | 806 | // the whole call is rejected with invalid_argument and the runner reports | |
| 807 | 807 | // the failure of the job without outputs, with a line in the log. | |
| 808 | 808 | Outputs map[string]string `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` | |
| 809 | - | // Conclusion ends the job when set. A runner reports CONCLUSION_SUCCESS, | |
| 810 | - | // CONCLUSION_FAILURE, CONCLUSION_CANCELLED or CONCLUSION_TIMED_OUT; any | |
| 811 | - | // other value is invalid_argument. CONCLUSION_UNSPECIFIED means the job goes | |
| 809 | + | // Conclusion ends the job when set. A runner reports CI_CONCLUSION_SUCCESS, | |
| 810 | + | // CI_CONCLUSION_FAILURE, CI_CONCLUSION_CANCELLED or CI_CONCLUSION_TIMED_OUT; any | |
| 811 | + | // other value is invalid_argument. CI_CONCLUSION_UNSPECIFIED means the job goes | |
| 812 | 812 | // on. Steps that were not reported COMPLETED when the job ends are | |
| 813 | - | // completed by the server as CONCLUSION_CANCELLED (or SKIPPED when they | |
| 813 | + | // completed by the server as CI_CONCLUSION_CANCELLED (or SKIPPED when they | |
| 814 | 814 | // never started and the job did not fail by cancellation). | |
| 815 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 815 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 816 | 816 | // RunnerShutdown is true when the runner ends the job because it was told to | |
| 817 | - | // stop (service stopped, signal). Only allowed with CONCLUSION_CANCELLED. | |
| 817 | + | // stop (service stopped, signal). Only allowed with CI_CONCLUSION_CANCELLED. | |
| 818 | 818 | // The server then annotates the job with GitHub's message "The runner has | |
| 819 | 819 | // received a shutdown signal. This can happen when the runner service is | |
| 820 | 820 | // stopped, or a manually started runner is canceled." | |
| @@ -874,11 +874,11 @@ func (x *UpdateJobRequest) GetOutputs() map[string]string { | |||
| 874 | 874 | return nil | |
| 875 | 875 | } | |
| 876 | 876 | ||
| 877 | - | func (x *UpdateJobRequest) GetConclusion() Conclusion { | |
| 877 | + | func (x *UpdateJobRequest) GetConclusion() CiConclusion { | |
| 878 | 878 | if x != nil { | |
| 879 | 879 | return x.Conclusion | |
| 880 | 880 | } | |
| 881 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 881 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 882 | 882 | } | |
| 883 | 883 | ||
| 884 | 884 | func (x *UpdateJobRequest) GetRunnerShutdown() bool { | |
| @@ -903,7 +903,7 @@ type StepUpdate struct { | |||
| 903 | 903 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | |
| 904 | 904 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | |
| 905 | 905 | // failure, cancelled, skipped. | |
| 906 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 906 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 907 | 907 | // StartedAt is when the step started, by the clock of the runner. Required | |
| 908 | 908 | // from IN_PROGRESS on. | |
| 909 | 909 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | |
| @@ -965,11 +965,11 @@ func (x *StepUpdate) GetState() StepState { | |||
| 965 | 965 | return StepState_STEP_STATE_UNSPECIFIED | |
| 966 | 966 | } | |
| 967 | 967 | ||
| 968 | - | func (x *StepUpdate) GetConclusion() Conclusion { | |
| 968 | + | func (x *StepUpdate) GetConclusion() CiConclusion { | |
| 969 | 969 | if x != nil { | |
| 970 | 970 | return x.Conclusion | |
| 971 | 971 | } | |
| 972 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 972 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 973 | 973 | } | |
| 974 | 974 | ||
| 975 | 975 | func (x *StepUpdate) GetStartedAt() *timestamppb.Timestamp { | |
| @@ -1342,7 +1342,7 @@ type WatchJobResponse struct { | |||
| 1342 | 1342 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | |
| 1343 | 1343 | // keep-alive: the other fields are empty and the client ignores it. New | |
| 1344 | 1344 | // reasons may be added; a runner that does not know one cancels the job and | |
| 1345 | - | // reports CONCLUSION_CANCELLED. | |
| 1345 | + | // reports CI_CONCLUSION_CANCELLED. | |
| 1346 | 1346 | Reason CancelReason `protobuf:"varint,1,opt,name=reason,proto3,enum=ermite.CancelReason" json:"reason,omitempty"` | |
| 1347 | 1347 | // Message is a short human-readable explanation, for the job log, for | |
| 1348 | 1348 | // example "Canceled by the owner". At most 1,024 characters. | |
| @@ -1439,25 +1439,25 @@ const file_ermite_runner_proto_rawDesc = "" + | |||
| 1439 | 1439 | "\x0ftimeout_minutes\x18\v \x01(\x05R\x0etimeoutMinutes\x12\x12\n" + | |
| 1440 | 1440 | "\x04repo\x18\f \x01(\tR\x04repo\x12\x10\n" + | |
| 1441 | 1441 | "\x03sha\x18\r \x01(\tR\x03sha\x12\x10\n" + | |
| 1442 | - | "\x03ref\x18\x0e \x01(\tR\x03ref\"\xad\x02\n" + | |
| 1442 | + | "\x03ref\x18\x0e \x01(\tR\x03ref\"\xaf\x02\n" + | |
| 1443 | 1443 | "\x10UpdateJobRequest\x12\x15\n" + | |
| 1444 | 1444 | "\x06job_id\x18\x01 \x01(\tR\x05jobId\x12(\n" + | |
| 1445 | 1445 | "\x05steps\x18\x02 \x03(\v2\x12.ermite.StepUpdateR\x05steps\x12?\n" + | |
| 1446 | - | "\aoutputs\x18\x03 \x03(\v2%.ermite.UpdateJobRequest.OutputsEntryR\aoutputs\x122\n" + | |
| 1446 | + | "\aoutputs\x18\x03 \x03(\v2%.ermite.UpdateJobRequest.OutputsEntryR\aoutputs\x124\n" + | |
| 1447 | 1447 | "\n" + | |
| 1448 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 1448 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 1449 | 1449 | "conclusion\x12'\n" + | |
| 1450 | 1450 | "\x0frunner_shutdown\x18\x05 \x01(\bR\x0erunnerShutdown\x1a:\n" + | |
| 1451 | 1451 | "\fOutputsEntry\x12\x10\n" + | |
| 1452 | 1452 | "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + | |
| 1453 | - | "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x8f\x02\n" + | |
| 1453 | + | "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x91\x02\n" + | |
| 1454 | 1454 | "\n" + | |
| 1455 | 1455 | "StepUpdate\x12\x16\n" + | |
| 1456 | 1456 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | |
| 1457 | 1457 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | |
| 1458 | - | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x122\n" + | |
| 1458 | + | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x124\n" + | |
| 1459 | 1459 | "\n" + | |
| 1460 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 1460 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 1461 | 1461 | "conclusion\x129\n" + | |
| 1462 | 1462 | "\n" + | |
| 1463 | 1463 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | |
| @@ -1482,22 +1482,21 @@ const file_ermite_runner_proto_rawDesc = "" + | |||
| 1482 | 1482 | "\x10WatchJobResponse\x12,\n" + | |
| 1483 | 1483 | "\x06reason\x18\x01 \x01(\x0e2\x14.ermite.CancelReasonR\x06reason\x12\x18\n" + | |
| 1484 | 1484 | "\amessage\x18\x02 \x01(\tR\amessage\x12=\n" + | |
| 1485 | - | "\frequested_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestedAt*t\n" + | |
| 1486 | - | "\tRunStatus\x12\x1a\n" + | |
| 1487 | - | "\x16RUN_STATUS_UNSPECIFIED\x10\x00\x12\x15\n" + | |
| 1488 | - | "\x11RUN_STATUS_QUEUED\x10\x01\x12\x1a\n" + | |
| 1489 | - | "\x16RUN_STATUS_IN_PROGRESS\x10\x02\x12\x18\n" + | |
| 1490 | - | "\x14RUN_STATUS_COMPLETED\x10\x03*\xdc\x01\n" + | |
| 1491 | - | "\n" + | |
| 1492 | - | "Conclusion\x12\x1a\n" + | |
| 1493 | - | "\x16CONCLUSION_UNSPECIFIED\x10\x00\x12\x16\n" + | |
| 1494 | - | "\x12CONCLUSION_SUCCESS\x10\x01\x12\x16\n" + | |
| 1495 | - | "\x12CONCLUSION_FAILURE\x10\x02\x12\x18\n" + | |
| 1496 | - | "\x14CONCLUSION_CANCELLED\x10\x03\x12\x16\n" + | |
| 1497 | - | "\x12CONCLUSION_SKIPPED\x10\x04\x12\x18\n" + | |
| 1498 | - | "\x14CONCLUSION_TIMED_OUT\x10\x05\x12\x16\n" + | |
| 1499 | - | "\x12CONCLUSION_NEUTRAL\x10\x06\x12\x1e\n" + | |
| 1500 | - | "\x1aCONCLUSION_ACTION_REQUIRED\x10\a*u\n" + | |
| 1485 | + | "\frequested_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestedAt*o\n" + | |
| 1486 | + | "\bCiStatus\x12\x19\n" + | |
| 1487 | + | "\x15CI_STATUS_UNSPECIFIED\x10\x00\x12\x14\n" + | |
| 1488 | + | "\x10CI_STATUS_QUEUED\x10\x01\x12\x19\n" + | |
| 1489 | + | "\x15CI_STATUS_IN_PROGRESS\x10\x02\x12\x17\n" + | |
| 1490 | + | "\x13CI_STATUS_COMPLETED\x10\x03*\xf6\x01\n" + | |
| 1491 | + | "\fCiConclusion\x12\x1d\n" + | |
| 1492 | + | "\x19CI_CONCLUSION_UNSPECIFIED\x10\x00\x12\x19\n" + | |
| 1493 | + | "\x15CI_CONCLUSION_SUCCESS\x10\x01\x12\x19\n" + | |
| 1494 | + | "\x15CI_CONCLUSION_FAILURE\x10\x02\x12\x1b\n" + | |
| 1495 | + | "\x17CI_CONCLUSION_CANCELLED\x10\x03\x12\x19\n" + | |
| 1496 | + | "\x15CI_CONCLUSION_SKIPPED\x10\x04\x12\x1b\n" + | |
| 1497 | + | "\x17CI_CONCLUSION_TIMED_OUT\x10\x05\x12\x19\n" + | |
| 1498 | + | "\x15CI_CONCLUSION_NEUTRAL\x10\x06\x12!\n" + | |
| 1499 | + | "\x1dCI_CONCLUSION_ACTION_REQUIRED\x10\a*u\n" + | |
| 1501 | 1500 | "\tStepState\x12\x1a\n" + | |
| 1502 | 1501 | "\x16STEP_STATE_UNSPECIFIED\x10\x00\x12\x16\n" + | |
| 1503 | 1502 | "\x12STEP_STATE_PENDING\x10\x01\x12\x1a\n" + | |
| @@ -1538,8 +1537,8 @@ func file_ermite_runner_proto_rawDescGZIP() []byte { | |||
| 1538 | 1537 | var file_ermite_runner_proto_enumTypes = make([]protoimpl.EnumInfo, 5) | |
| 1539 | 1538 | var file_ermite_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 16) | |
| 1540 | 1539 | var file_ermite_runner_proto_goTypes = []any{ | |
| 1541 | - | (RunStatus)(0), // 0: ermite.RunStatus | |
| 1542 | - | (Conclusion)(0), // 1: ermite.Conclusion | |
| 1540 | + | (CiStatus)(0), // 0: ermite.CiStatus | |
| 1541 | + | (CiConclusion)(0), // 1: ermite.CiConclusion | |
| 1543 | 1542 | (StepState)(0), // 2: ermite.StepState | |
| 1544 | 1543 | (RunnerIsolation)(0), // 3: ermite.RunnerIsolation | |
| 1545 | 1544 | (CancelReason)(0), // 4: ermite.CancelReason | |
| @@ -1566,9 +1565,9 @@ var file_ermite_runner_proto_depIdxs = []int32{ | |||
| 1566 | 1565 | 9, // 1: ermite.FetchJobResponse.job:type_name -> ermite.Job | |
| 1567 | 1566 | 11, // 2: ermite.UpdateJobRequest.steps:type_name -> ermite.StepUpdate | |
| 1568 | 1567 | 20, // 3: ermite.UpdateJobRequest.outputs:type_name -> ermite.UpdateJobRequest.OutputsEntry | |
| 1569 | - | 1, // 4: ermite.UpdateJobRequest.conclusion:type_name -> ermite.Conclusion | |
| 1568 | + | 1, // 4: ermite.UpdateJobRequest.conclusion:type_name -> ermite.CiConclusion | |
| 1570 | 1569 | 2, // 5: ermite.StepUpdate.state:type_name -> ermite.StepState | |
| 1571 | - | 1, // 6: ermite.StepUpdate.conclusion:type_name -> ermite.Conclusion | |
| 1570 | + | 1, // 6: ermite.StepUpdate.conclusion:type_name -> ermite.CiConclusion | |
| 1572 | 1571 | 21, // 7: ermite.StepUpdate.started_at:type_name -> google.protobuf.Timestamp | |
| 1573 | 1572 | 21, // 8: ermite.StepUpdate.completed_at:type_name -> google.protobuf.Timestamp | |
| 1574 | 1573 | 14, // 9: ermite.AppendLogRequest.lines:type_name -> ermite.LogLine | |
| @@ -24,143 +24,143 @@ const ( | |||||
| 24 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | 24 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | ||
| 25 | ) | 25 | ) | ||
| 26 | 26 | ||||
| 27 | - | // RunStatus is where a run, a job or a check is in its life. It is the same | 27 | + | // CiStatus is where a run, a job or a check is in its life. It is the same |
| 28 | // as GitHub's status, without the rarely used values. | 28 | // as GitHub's status, without the rarely used values. | ||
| 29 | - | type RunStatus int32 | 29 | + | type CiStatus int32 |
| 30 | 30 | ||||
| 31 | const ( | 31 | const ( | ||
| 32 | // Not set. In a filter it means every status. Never returned by the server. | 32 | // Not set. In a filter it means every status. Never returned by the server. | ||
| 33 | - | RunStatus_RUN_STATUS_UNSPECIFIED RunStatus = 0 | 33 | + | CiStatus_CI_STATUS_UNSPECIFIED CiStatus = 0 |
| 34 | // Waiting: for a runner, for the jobs it needs, or for its turn | 34 | // Waiting: for a runner, for the jobs it needs, or for its turn | ||
| 35 | // (max-parallel). | 35 | // (max-parallel). | ||
| 36 | - | RunStatus_RUN_STATUS_QUEUED RunStatus = 1 | 36 | + | CiStatus_CI_STATUS_QUEUED CiStatus = 1 |
| 37 | // At least one job has been given to a runner and has not ended. | 37 | // At least one job has been given to a runner and has not ended. | ||
| 38 | - | RunStatus_RUN_STATUS_IN_PROGRESS RunStatus = 2 | 38 | + | CiStatus_CI_STATUS_IN_PROGRESS CiStatus = 2 |
| 39 | // Over. The conclusion says how it ended. | 39 | // Over. The conclusion says how it ended. | ||
| 40 | - | RunStatus_RUN_STATUS_COMPLETED RunStatus = 3 | 40 | + | CiStatus_CI_STATUS_COMPLETED CiStatus = 3 |
| 41 | ) | 41 | ) | ||
| 42 | 42 | ||||
| 43 | - | // Enum value maps for RunStatus. | 43 | + | // Enum value maps for CiStatus. |
| 44 | var ( | 44 | var ( | ||
| 45 | - | RunStatus_name = map[int32]string{ | 45 | + | CiStatus_name = map[int32]string{ |
| 46 | - | 0: "RUN_STATUS_UNSPECIFIED", | 46 | + | 0: "CI_STATUS_UNSPECIFIED", |
| 47 | - | 1: "RUN_STATUS_QUEUED", | 47 | + | 1: "CI_STATUS_QUEUED", |
| 48 | - | 2: "RUN_STATUS_IN_PROGRESS", | 48 | + | 2: "CI_STATUS_IN_PROGRESS", |
| 49 | - | 3: "RUN_STATUS_COMPLETED", | 49 | + | 3: "CI_STATUS_COMPLETED", |
| 50 | - | } | 50 | + | } |
| 51 | - | RunStatus_value = map[string]int32{ | 51 | + | CiStatus_value = map[string]int32{ |
| 52 | - | "RUN_STATUS_UNSPECIFIED": 0, | 52 | + | "CI_STATUS_UNSPECIFIED": 0, |
| 53 | - | "RUN_STATUS_QUEUED": 1, | 53 | + | "CI_STATUS_QUEUED": 1, |
| 54 | - | "RUN_STATUS_IN_PROGRESS": 2, | 54 | + | "CI_STATUS_IN_PROGRESS": 2, |
| 55 | - | "RUN_STATUS_COMPLETED": 3, | 55 | + | "CI_STATUS_COMPLETED": 3, |
| 56 | } | 56 | } | ||
| 57 | ) | 57 | ) | ||
| 58 | 58 | ||||
| 59 | - | func (x RunStatus) Enum() *RunStatus { | 59 | + | func (x CiStatus) Enum() *CiStatus { |
| 60 | - | p := new(RunStatus) | 60 | + | p := new(CiStatus) |
| 61 | *p = x | 61 | *p = x | ||
| 62 | return p | 62 | return p | ||
| 63 | } | 63 | } | ||
| 64 | 64 | ||||
| 65 | - | func (x RunStatus) String() string { | 65 | + | func (x CiStatus) String() string { |
| 66 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | 66 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | ||
| 67 | } | 67 | } | ||
| 68 | 68 | ||||
| 69 | - | func (RunStatus) Descriptor() protoreflect.EnumDescriptor { | 69 | + | func (CiStatus) Descriptor() protoreflect.EnumDescriptor { |
| 70 | return file_ermite_runner_proto_enumTypes[0].Descriptor() | 70 | return file_ermite_runner_proto_enumTypes[0].Descriptor() | ||
| 71 | } | 71 | } | ||
| 72 | 72 | ||||
| 73 | - | func (RunStatus) Type() protoreflect.EnumType { | 73 | + | func (CiStatus) Type() protoreflect.EnumType { |
| 74 | return &file_ermite_runner_proto_enumTypes[0] | 74 | return &file_ermite_runner_proto_enumTypes[0] | ||
| 75 | } | 75 | } | ||
| 76 | 76 | ||||
| 77 | - | func (x RunStatus) Number() protoreflect.EnumNumber { | 77 | + | func (x CiStatus) Number() protoreflect.EnumNumber { |
| 78 | return protoreflect.EnumNumber(x) | 78 | return protoreflect.EnumNumber(x) | ||
| 79 | } | 79 | } | ||
| 80 | 80 | ||||
| 81 | - | // Deprecated: Use RunStatus.Descriptor instead. | 81 | + | // Deprecated: Use CiStatus.Descriptor instead. |
| 82 | - | func (RunStatus) EnumDescriptor() ([]byte, []int) { | 82 | + | func (CiStatus) EnumDescriptor() ([]byte, []int) { |
| 83 | return file_ermite_runner_proto_rawDescGZIP(), []int{0} | 83 | return file_ermite_runner_proto_rawDescGZIP(), []int{0} | ||
| 84 | } | 84 | } | ||
| 85 | 85 | ||||
| 86 | - | // Conclusion is how a run, a job, a step or a check ended, with GitHub's | 86 | + | // CiConclusion is how a run, a job, a step or a check ended, with GitHub's |
| 87 | - | // values and meaning. It is unset (CONCLUSION_UNSPECIFIED) until the status is | 87 | + | // values and meaning. It is unset (CI_CONCLUSION_UNSPECIFIED) until the status is |
| 88 | // COMPLETED. | 88 | // COMPLETED. | ||
| 89 | - | type Conclusion int32 | 89 | + | type CiConclusion int32 |
| 90 | 90 | ||||
| 91 | const ( | 91 | const ( | ||
| 92 | // Not completed yet. Never returned by the server for a completed item. | 92 | // Not completed yet. Never returned by the server for a completed item. | ||
| 93 | - | Conclusion_CONCLUSION_UNSPECIFIED Conclusion = 0 | 93 | + | CiConclusion_CI_CONCLUSION_UNSPECIFIED CiConclusion = 0 |
| 94 | // Everything it ran succeeded. | 94 | // Everything it ran succeeded. | ||
| 95 | - | Conclusion_CONCLUSION_SUCCESS Conclusion = 1 | 95 | + | CiConclusion_CI_CONCLUSION_SUCCESS CiConclusion = 1 |
| 96 | // A step failed, or the job failed for another reason described in | 96 | // A step failed, or the job failed for another reason described in | ||
| 97 | // RunJob.error (runner lost, queue timeout, log limit, feature not | 97 | // RunJob.error (runner lost, queue timeout, log limit, feature not | ||
| 98 | // supported yet, invalid workflow file). | 98 | // supported yet, invalid workflow file). | ||
| 99 | - | Conclusion_CONCLUSION_FAILURE Conclusion = 2 | 99 | + | CiConclusion_CI_CONCLUSION_FAILURE CiConclusion = 2 |
| 100 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | 100 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | ||
| 101 | - | Conclusion_CONCLUSION_CANCELLED Conclusion = 3 | 101 | + | CiConclusion_CI_CONCLUSION_CANCELLED CiConclusion = 3 |
| 102 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | 102 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | ||
| 103 | // not selected. Never reported by a runner. | 103 | // not selected. Never reported by a runner. | ||
| 104 | - | Conclusion_CONCLUSION_SKIPPED Conclusion = 4 | 104 | + | CiConclusion_CI_CONCLUSION_SKIPPED CiConclusion = 4 |
| 105 | // Exceeded its timeout. | 105 | // Exceeded its timeout. | ||
| 106 | - | Conclusion_CONCLUSION_TIMED_OUT Conclusion = 5 | 106 | + | CiConclusion_CI_CONCLUSION_TIMED_OUT CiConclusion = 5 |
| 107 | // Neither a success nor a failure. Defined for parity with GitHub; no | 107 | // Neither a success nor a failure. Defined for parity with GitHub; no | ||
| 108 | // workflow job ends this way yet. For merging it counts as a success. | 108 | // workflow job ends this way yet. For merging it counts as a success. | ||
| 109 | - | Conclusion_CONCLUSION_NEUTRAL Conclusion = 6 | 109 | + | CiConclusion_CI_CONCLUSION_NEUTRAL CiConclusion = 6 |
| 110 | // Waits for a human action (for example the approval of an environment). | 110 | // Waits for a human action (for example the approval of an environment). | ||
| 111 | // Defined for parity with GitHub; the server does not produce it before | 111 | // Defined for parity with GitHub; the server does not produce it before | ||
| 112 | // environments exist. For merging it counts as a failure. | 112 | // environments exist. For merging it counts as a failure. | ||
| 113 | - | Conclusion_CONCLUSION_ACTION_REQUIRED Conclusion = 7 | 113 | + | CiConclusion_CI_CONCLUSION_ACTION_REQUIRED CiConclusion = 7 |
| 114 | ) | 114 | ) | ||
| 115 | 115 | ||||
| 116 | - | // Enum value maps for Conclusion. | 116 | + | // Enum value maps for CiConclusion. |
| 117 | var ( | 117 | var ( | ||
| 118 | - | Conclusion_name = map[int32]string{ | 118 | + | CiConclusion_name = map[int32]string{ |
| 119 | - | 0: "CONCLUSION_UNSPECIFIED", | 119 | + | 0: "CI_CONCLUSION_UNSPECIFIED", |
| 120 | - | 1: "CONCLUSION_SUCCESS", | 120 | + | 1: "CI_CONCLUSION_SUCCESS", |
| 121 | - | 2: "CONCLUSION_FAILURE", | 121 | + | 2: "CI_CONCLUSION_FAILURE", |
| 122 | - | 3: "CONCLUSION_CANCELLED", | 122 | + | 3: "CI_CONCLUSION_CANCELLED", |
| 123 | - | 4: "CONCLUSION_SKIPPED", | 123 | + | 4: "CI_CONCLUSION_SKIPPED", |
| 124 | - | 5: "CONCLUSION_TIMED_OUT", | 124 | + | 5: "CI_CONCLUSION_TIMED_OUT", |
| 125 | - | 6: "CONCLUSION_NEUTRAL", | 125 | + | 6: "CI_CONCLUSION_NEUTRAL", |
| 126 | - | 7: "CONCLUSION_ACTION_REQUIRED", | 126 | + | 7: "CI_CONCLUSION_ACTION_REQUIRED", |
| 127 | - | } | 127 | + | } |
| 128 | - | Conclusion_value = map[string]int32{ | 128 | + | CiConclusion_value = map[string]int32{ |
| 129 | - | "CONCLUSION_UNSPECIFIED": 0, | 129 | + | "CI_CONCLUSION_UNSPECIFIED": 0, |
| 130 | - | "CONCLUSION_SUCCESS": 1, | 130 | + | "CI_CONCLUSION_SUCCESS": 1, |
| 131 | - | "CONCLUSION_FAILURE": 2, | 131 | + | "CI_CONCLUSION_FAILURE": 2, |
| 132 | - | "CONCLUSION_CANCELLED": 3, | 132 | + | "CI_CONCLUSION_CANCELLED": 3, |
| 133 | - | "CONCLUSION_SKIPPED": 4, | 133 | + | "CI_CONCLUSION_SKIPPED": 4, |
| 134 | - | "CONCLUSION_TIMED_OUT": 5, | 134 | + | "CI_CONCLUSION_TIMED_OUT": 5, |
| 135 | - | "CONCLUSION_NEUTRAL": 6, | 135 | + | "CI_CONCLUSION_NEUTRAL": 6, |
| 136 | - | "CONCLUSION_ACTION_REQUIRED": 7, | 136 | + | "CI_CONCLUSION_ACTION_REQUIRED": 7, |
| 137 | } | 137 | } | ||
| 138 | ) | 138 | ) | ||
| 139 | 139 | ||||
| 140 | - | func (x Conclusion) Enum() *Conclusion { | 140 | + | func (x CiConclusion) Enum() *CiConclusion { |
| 141 | - | p := new(Conclusion) | 141 | + | p := new(CiConclusion) |
| 142 | *p = x | 142 | *p = x | ||
| 143 | return p | 143 | return p | ||
| 144 | } | 144 | } | ||
| 145 | 145 | ||||
| 146 | - | func (x Conclusion) String() string { | 146 | + | func (x CiConclusion) String() string { |
| 147 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | 147 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | ||
| 148 | } | 148 | } | ||
| 149 | 149 | ||||
| 150 | - | func (Conclusion) Descriptor() protoreflect.EnumDescriptor { | 150 | + | func (CiConclusion) Descriptor() protoreflect.EnumDescriptor { |
| 151 | return file_ermite_runner_proto_enumTypes[1].Descriptor() | 151 | return file_ermite_runner_proto_enumTypes[1].Descriptor() | ||
| 152 | } | 152 | } | ||
| 153 | 153 | ||||
| 154 | - | func (Conclusion) Type() protoreflect.EnumType { | 154 | + | func (CiConclusion) Type() protoreflect.EnumType { |
| 155 | return &file_ermite_runner_proto_enumTypes[1] | 155 | return &file_ermite_runner_proto_enumTypes[1] | ||
| 156 | } | 156 | } | ||
| 157 | 157 | ||||
| 158 | - | func (x Conclusion) Number() protoreflect.EnumNumber { | 158 | + | func (x CiConclusion) Number() protoreflect.EnumNumber { |
| 159 | return protoreflect.EnumNumber(x) | 159 | return protoreflect.EnumNumber(x) | ||
| 160 | } | 160 | } | ||
| 161 | 161 | ||||
| 162 | - | // Deprecated: Use Conclusion.Descriptor instead. | 162 | + | // Deprecated: Use CiConclusion.Descriptor instead. |
| 163 | - | func (Conclusion) EnumDescriptor() ([]byte, []int) { | 163 | + | func (CiConclusion) EnumDescriptor() ([]byte, []int) { |
| 164 | return file_ermite_runner_proto_rawDescGZIP(), []int{1} | 164 | return file_ermite_runner_proto_rawDescGZIP(), []int{1} | ||
| 165 | } | 165 | } | ||
| 166 | 166 | ||||
| @@ -175,7 +175,7 @@ const ( | |||||
| 175 | // Running. | 175 | // Running. | ||
| 176 | StepState_STEP_STATE_IN_PROGRESS StepState = 2 | 176 | StepState_STEP_STATE_IN_PROGRESS StepState = 2 | ||
| 177 | // Over. The conclusion says how it ended. A step that did not run because | 177 | // Over. The conclusion says how it ended. A step that did not run because | ||
| 178 | - | // of its "if" or an earlier failure is COMPLETED with CONCLUSION_SKIPPED. | 178 | + | // of its "if" or an earlier failure is COMPLETED with CI_CONCLUSION_SKIPPED. |
| 179 | StepState_STEP_STATE_COMPLETED StepState = 3 | 179 | StepState_STEP_STATE_COMPLETED StepState = 3 | ||
| 180 | ) | 180 | ) | ||
| 181 | 181 | ||||
| @@ -291,13 +291,13 @@ const ( | |||||
| 291 | // no request. | 291 | // no request. | ||
| 292 | CancelReason_CANCEL_REASON_UNSPECIFIED CancelReason = 0 | 292 | CancelReason_CANCEL_REASON_UNSPECIFIED CancelReason = 0 | ||
| 293 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | 293 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | ||
| 294 | - | // ends CONCLUSION_CANCELLED. | 294 | + | // ends CI_CONCLUSION_CANCELLED. |
| 295 | CancelReason_CANCEL_REASON_USER CancelReason = 1 | 295 | CancelReason_CANCEL_REASON_USER CancelReason = 1 | ||
| 296 | // Another job of the same matrix failed and the strategy has fail-fast. The | 296 | // Another job of the same matrix failed and the strategy has fail-fast. The | ||
| 297 | - | // job ends CONCLUSION_CANCELLED. | 297 | + | // job ends CI_CONCLUSION_CANCELLED. |
| 298 | CancelReason_CANCEL_REASON_FAIL_FAST CancelReason = 2 | 298 | CancelReason_CANCEL_REASON_FAIL_FAST CancelReason = 2 | ||
| 299 | // The job exceeded its timeout_minutes without the runner ending it. The | 299 | // The job exceeded its timeout_minutes without the runner ending it. The | ||
| 300 | - | // job ends CONCLUSION_TIMED_OUT. | 300 | + | // job ends CI_CONCLUSION_TIMED_OUT. |
| 301 | CancelReason_CANCEL_REASON_TIMEOUT CancelReason = 3 | 301 | CancelReason_CANCEL_REASON_TIMEOUT CancelReason = 3 | ||
| 302 | ) | 302 | ) | ||
| 303 | 303 | ||||
| @@ -806,15 +806,15 @@ type UpdateJobRequest struct { | |||||
| 806 | // the whole call is rejected with invalid_argument and the runner reports | 806 | // the whole call is rejected with invalid_argument and the runner reports | ||
| 807 | // the failure of the job without outputs, with a line in the log. | 807 | // the failure of the job without outputs, with a line in the log. | ||
| 808 | Outputs map[string]string `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` | 808 | Outputs map[string]string `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` | ||
| 809 | - | // Conclusion ends the job when set. A runner reports CONCLUSION_SUCCESS, | 809 | + | // Conclusion ends the job when set. A runner reports CI_CONCLUSION_SUCCESS, |
| 810 | - | // CONCLUSION_FAILURE, CONCLUSION_CANCELLED or CONCLUSION_TIMED_OUT; any | 810 | + | // CI_CONCLUSION_FAILURE, CI_CONCLUSION_CANCELLED or CI_CONCLUSION_TIMED_OUT; any |
| 811 | - | // other value is invalid_argument. CONCLUSION_UNSPECIFIED means the job goes | 811 | + | // other value is invalid_argument. CI_CONCLUSION_UNSPECIFIED means the job goes |
| 812 | // on. Steps that were not reported COMPLETED when the job ends are | 812 | // on. Steps that were not reported COMPLETED when the job ends are | ||
| 813 | - | // completed by the server as CONCLUSION_CANCELLED (or SKIPPED when they | 813 | + | // completed by the server as CI_CONCLUSION_CANCELLED (or SKIPPED when they |
| 814 | // never started and the job did not fail by cancellation). | 814 | // never started and the job did not fail by cancellation). | ||
| 815 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 815 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 816 | // RunnerShutdown is true when the runner ends the job because it was told to | 816 | // RunnerShutdown is true when the runner ends the job because it was told to | ||
| 817 | - | // stop (service stopped, signal). Only allowed with CONCLUSION_CANCELLED. | 817 | + | // stop (service stopped, signal). Only allowed with CI_CONCLUSION_CANCELLED. |
| 818 | // The server then annotates the job with GitHub's message "The runner has | 818 | // The server then annotates the job with GitHub's message "The runner has | ||
| 819 | // received a shutdown signal. This can happen when the runner service is | 819 | // received a shutdown signal. This can happen when the runner service is | ||
| 820 | // stopped, or a manually started runner is canceled." | 820 | // stopped, or a manually started runner is canceled." | ||
| @@ -874,11 +874,11 @@ func (x *UpdateJobRequest) GetOutputs() map[string]string { | |||||
| 874 | return nil | 874 | return nil | ||
| 875 | } | 875 | } | ||
| 876 | 876 | ||||
| 877 | - | func (x *UpdateJobRequest) GetConclusion() Conclusion { | 877 | + | func (x *UpdateJobRequest) GetConclusion() CiConclusion { |
| 878 | if x != nil { | 878 | if x != nil { | ||
| 879 | return x.Conclusion | 879 | return x.Conclusion | ||
| 880 | } | 880 | } | ||
| 881 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 881 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 882 | } | 882 | } | ||
| 883 | 883 | ||||
| 884 | func (x *UpdateJobRequest) GetRunnerShutdown() bool { | 884 | func (x *UpdateJobRequest) GetRunnerShutdown() bool { | ||
| @@ -903,7 +903,7 @@ type StepUpdate struct { | |||||
| 903 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | 903 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | ||
| 904 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | 904 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | ||
| 905 | // failure, cancelled, skipped. | 905 | // failure, cancelled, skipped. | ||
| 906 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 906 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 907 | // StartedAt is when the step started, by the clock of the runner. Required | 907 | // StartedAt is when the step started, by the clock of the runner. Required | ||
| 908 | // from IN_PROGRESS on. | 908 | // from IN_PROGRESS on. | ||
| 909 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | 909 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | ||
| @@ -965,11 +965,11 @@ func (x *StepUpdate) GetState() StepState { | |||||
| 965 | return StepState_STEP_STATE_UNSPECIFIED | 965 | return StepState_STEP_STATE_UNSPECIFIED | ||
| 966 | } | 966 | } | ||
| 967 | 967 | ||||
| 968 | - | func (x *StepUpdate) GetConclusion() Conclusion { | 968 | + | func (x *StepUpdate) GetConclusion() CiConclusion { |
| 969 | if x != nil { | 969 | if x != nil { | ||
| 970 | return x.Conclusion | 970 | return x.Conclusion | ||
| 971 | } | 971 | } | ||
| 972 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 972 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 973 | } | 973 | } | ||
| 974 | 974 | ||||
| 975 | func (x *StepUpdate) GetStartedAt() *timestamppb.Timestamp { | 975 | func (x *StepUpdate) GetStartedAt() *timestamppb.Timestamp { | ||
| @@ -1342,7 +1342,7 @@ type WatchJobResponse struct { | |||||
| 1342 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | 1342 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | ||
| 1343 | // keep-alive: the other fields are empty and the client ignores it. New | 1343 | // keep-alive: the other fields are empty and the client ignores it. New | ||
| 1344 | // reasons may be added; a runner that does not know one cancels the job and | 1344 | // reasons may be added; a runner that does not know one cancels the job and | ||
| 1345 | - | // reports CONCLUSION_CANCELLED. | 1345 | + | // reports CI_CONCLUSION_CANCELLED. |
| 1346 | Reason CancelReason `protobuf:"varint,1,opt,name=reason,proto3,enum=ermite.CancelReason" json:"reason,omitempty"` | 1346 | Reason CancelReason `protobuf:"varint,1,opt,name=reason,proto3,enum=ermite.CancelReason" json:"reason,omitempty"` | ||
| 1347 | // Message is a short human-readable explanation, for the job log, for | 1347 | // Message is a short human-readable explanation, for the job log, for | ||
| 1348 | // example "Canceled by the owner". At most 1,024 characters. | 1348 | // example "Canceled by the owner". At most 1,024 characters. | ||
| @@ -1439,25 +1439,25 @@ const file_ermite_runner_proto_rawDesc = "" + | |||||
| 1439 | "\x0ftimeout_minutes\x18\v \x01(\x05R\x0etimeoutMinutes\x12\x12\n" + | 1439 | "\x0ftimeout_minutes\x18\v \x01(\x05R\x0etimeoutMinutes\x12\x12\n" + | ||
| 1440 | "\x04repo\x18\f \x01(\tR\x04repo\x12\x10\n" + | 1440 | "\x04repo\x18\f \x01(\tR\x04repo\x12\x10\n" + | ||
| 1441 | "\x03sha\x18\r \x01(\tR\x03sha\x12\x10\n" + | 1441 | "\x03sha\x18\r \x01(\tR\x03sha\x12\x10\n" + | ||
| 1442 | - | "\x03ref\x18\x0e \x01(\tR\x03ref\"\xad\x02\n" + | 1442 | + | "\x03ref\x18\x0e \x01(\tR\x03ref\"\xaf\x02\n" + |
| 1443 | "\x10UpdateJobRequest\x12\x15\n" + | 1443 | "\x10UpdateJobRequest\x12\x15\n" + | ||
| 1444 | "\x06job_id\x18\x01 \x01(\tR\x05jobId\x12(\n" + | 1444 | "\x06job_id\x18\x01 \x01(\tR\x05jobId\x12(\n" + | ||
| 1445 | "\x05steps\x18\x02 \x03(\v2\x12.ermite.StepUpdateR\x05steps\x12?\n" + | 1445 | "\x05steps\x18\x02 \x03(\v2\x12.ermite.StepUpdateR\x05steps\x12?\n" + | ||
| 1446 | - | "\aoutputs\x18\x03 \x03(\v2%.ermite.UpdateJobRequest.OutputsEntryR\aoutputs\x122\n" + | 1446 | + | "\aoutputs\x18\x03 \x03(\v2%.ermite.UpdateJobRequest.OutputsEntryR\aoutputs\x124\n" + |
| 1447 | "\n" + | 1447 | "\n" + | ||
| 1448 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | 1448 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 1449 | "conclusion\x12'\n" + | 1449 | "conclusion\x12'\n" + | ||
| 1450 | "\x0frunner_shutdown\x18\x05 \x01(\bR\x0erunnerShutdown\x1a:\n" + | 1450 | "\x0frunner_shutdown\x18\x05 \x01(\bR\x0erunnerShutdown\x1a:\n" + | ||
| 1451 | "\fOutputsEntry\x12\x10\n" + | 1451 | "\fOutputsEntry\x12\x10\n" + | ||
| 1452 | "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + | 1452 | "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + | ||
| 1453 | - | "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x8f\x02\n" + | 1453 | + | "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x91\x02\n" + |
| 1454 | "\n" + | 1454 | "\n" + | ||
| 1455 | "StepUpdate\x12\x16\n" + | 1455 | "StepUpdate\x12\x16\n" + | ||
| 1456 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | 1456 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | ||
| 1457 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | 1457 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | ||
| 1458 | - | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x122\n" + | 1458 | + | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x124\n" + |
| 1459 | "\n" + | 1459 | "\n" + | ||
| 1460 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | 1460 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 1461 | "conclusion\x129\n" + | 1461 | "conclusion\x129\n" + | ||
| 1462 | "\n" + | 1462 | "\n" + | ||
| 1463 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | 1463 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | ||
| @@ -1482,22 +1482,21 @@ const file_ermite_runner_proto_rawDesc = "" + | |||||
| 1482 | "\x10WatchJobResponse\x12,\n" + | 1482 | "\x10WatchJobResponse\x12,\n" + | ||
| 1483 | "\x06reason\x18\x01 \x01(\x0e2\x14.ermite.CancelReasonR\x06reason\x12\x18\n" + | 1483 | "\x06reason\x18\x01 \x01(\x0e2\x14.ermite.CancelReasonR\x06reason\x12\x18\n" + | ||
| 1484 | "\amessage\x18\x02 \x01(\tR\amessage\x12=\n" + | 1484 | "\amessage\x18\x02 \x01(\tR\amessage\x12=\n" + | ||
| 1485 | - | "\frequested_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestedAt*t\n" + | 1485 | + | "\frequested_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestedAt*o\n" + |
| 1486 | - | "\tRunStatus\x12\x1a\n" + | 1486 | + | "\bCiStatus\x12\x19\n" + |
| 1487 | - | "\x16RUN_STATUS_UNSPECIFIED\x10\x00\x12\x15\n" + | 1487 | + | "\x15CI_STATUS_UNSPECIFIED\x10\x00\x12\x14\n" + |
| 1488 | - | "\x11RUN_STATUS_QUEUED\x10\x01\x12\x1a\n" + | 1488 | + | "\x10CI_STATUS_QUEUED\x10\x01\x12\x19\n" + |
| 1489 | - | "\x16RUN_STATUS_IN_PROGRESS\x10\x02\x12\x18\n" + | 1489 | + | "\x15CI_STATUS_IN_PROGRESS\x10\x02\x12\x17\n" + |
| 1490 | - | "\x14RUN_STATUS_COMPLETED\x10\x03*\xdc\x01\n" + | 1490 | + | "\x13CI_STATUS_COMPLETED\x10\x03*\xf6\x01\n" + |
| 1491 | - | "\n" + | 1491 | + | "\fCiConclusion\x12\x1d\n" + |
| 1492 | - | "Conclusion\x12\x1a\n" + | 1492 | + | "\x19CI_CONCLUSION_UNSPECIFIED\x10\x00\x12\x19\n" + |
| 1493 | - | "\x16CONCLUSION_UNSPECIFIED\x10\x00\x12\x16\n" + | 1493 | + | "\x15CI_CONCLUSION_SUCCESS\x10\x01\x12\x19\n" + |
| 1494 | - | "\x12CONCLUSION_SUCCESS\x10\x01\x12\x16\n" + | 1494 | + | "\x15CI_CONCLUSION_FAILURE\x10\x02\x12\x1b\n" + |
| 1495 | - | "\x12CONCLUSION_FAILURE\x10\x02\x12\x18\n" + | 1495 | + | "\x17CI_CONCLUSION_CANCELLED\x10\x03\x12\x19\n" + |
| 1496 | - | "\x14CONCLUSION_CANCELLED\x10\x03\x12\x16\n" + | 1496 | + | "\x15CI_CONCLUSION_SKIPPED\x10\x04\x12\x1b\n" + |
| 1497 | - | "\x12CONCLUSION_SKIPPED\x10\x04\x12\x18\n" + | 1497 | + | "\x17CI_CONCLUSION_TIMED_OUT\x10\x05\x12\x19\n" + |
| 1498 | - | "\x14CONCLUSION_TIMED_OUT\x10\x05\x12\x16\n" + | 1498 | + | "\x15CI_CONCLUSION_NEUTRAL\x10\x06\x12!\n" + |
| 1499 | - | "\x12CONCLUSION_NEUTRAL\x10\x06\x12\x1e\n" + | 1499 | + | "\x1dCI_CONCLUSION_ACTION_REQUIRED\x10\a*u\n" + |
| 1500 | - | "\x1aCONCLUSION_ACTION_REQUIRED\x10\a*u\n" + | |||
| 1501 | "\tStepState\x12\x1a\n" + | 1500 | "\tStepState\x12\x1a\n" + | ||
| 1502 | "\x16STEP_STATE_UNSPECIFIED\x10\x00\x12\x16\n" + | 1501 | "\x16STEP_STATE_UNSPECIFIED\x10\x00\x12\x16\n" + | ||
| 1503 | "\x12STEP_STATE_PENDING\x10\x01\x12\x1a\n" + | 1502 | "\x12STEP_STATE_PENDING\x10\x01\x12\x1a\n" + | ||
| @@ -1538,8 +1537,8 @@ func file_ermite_runner_proto_rawDescGZIP() []byte { | |||||
| 1538 | var file_ermite_runner_proto_enumTypes = make([]protoimpl.EnumInfo, 5) | 1537 | var file_ermite_runner_proto_enumTypes = make([]protoimpl.EnumInfo, 5) | ||
| 1539 | var file_ermite_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 16) | 1538 | var file_ermite_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 16) | ||
| 1540 | var file_ermite_runner_proto_goTypes = []any{ | 1539 | var file_ermite_runner_proto_goTypes = []any{ | ||
| 1541 | - | (RunStatus)(0), // 0: ermite.RunStatus | 1540 | + | (CiStatus)(0), // 0: ermite.CiStatus |
| 1542 | - | (Conclusion)(0), // 1: ermite.Conclusion | 1541 | + | (CiConclusion)(0), // 1: ermite.CiConclusion |
| 1543 | (StepState)(0), // 2: ermite.StepState | 1542 | (StepState)(0), // 2: ermite.StepState | ||
| 1544 | (RunnerIsolation)(0), // 3: ermite.RunnerIsolation | 1543 | (RunnerIsolation)(0), // 3: ermite.RunnerIsolation | ||
| 1545 | (CancelReason)(0), // 4: ermite.CancelReason | 1544 | (CancelReason)(0), // 4: ermite.CancelReason | ||
| @@ -1566,9 +1565,9 @@ var file_ermite_runner_proto_depIdxs = []int32{ | |||||
| 1566 | 9, // 1: ermite.FetchJobResponse.job:type_name -> ermite.Job | 1565 | 9, // 1: ermite.FetchJobResponse.job:type_name -> ermite.Job | ||
| 1567 | 11, // 2: ermite.UpdateJobRequest.steps:type_name -> ermite.StepUpdate | 1566 | 11, // 2: ermite.UpdateJobRequest.steps:type_name -> ermite.StepUpdate | ||
| 1568 | 20, // 3: ermite.UpdateJobRequest.outputs:type_name -> ermite.UpdateJobRequest.OutputsEntry | 1567 | 20, // 3: ermite.UpdateJobRequest.outputs:type_name -> ermite.UpdateJobRequest.OutputsEntry | ||
| 1569 | - | 1, // 4: ermite.UpdateJobRequest.conclusion:type_name -> ermite.Conclusion | 1568 | + | 1, // 4: ermite.UpdateJobRequest.conclusion:type_name -> ermite.CiConclusion |
| 1570 | 2, // 5: ermite.StepUpdate.state:type_name -> ermite.StepState | 1569 | 2, // 5: ermite.StepUpdate.state:type_name -> ermite.StepState | ||
| 1571 | - | 1, // 6: ermite.StepUpdate.conclusion:type_name -> ermite.Conclusion | 1570 | + | 1, // 6: ermite.StepUpdate.conclusion:type_name -> ermite.CiConclusion |
| 1572 | 21, // 7: ermite.StepUpdate.started_at:type_name -> google.protobuf.Timestamp | 1571 | 21, // 7: ermite.StepUpdate.started_at:type_name -> google.protobuf.Timestamp | ||
| 1573 | 21, // 8: ermite.StepUpdate.completed_at:type_name -> google.protobuf.Timestamp | 1572 | 21, // 8: ermite.StepUpdate.completed_at:type_name -> google.protobuf.Timestamp | ||
| 1574 | 14, // 9: ermite.AppendLogRequest.lines:type_name -> ermite.LogLine | 1573 | 14, // 9: ermite.AppendLogRequest.lines:type_name -> ermite.LogLine | ||
M gen_test.go +4 -4
| @@ -87,10 +87,10 @@ func TestEnumNumbers(t *testing.T) { | |||
| 87 | 87 | if got := ermite.DiffSide_DIFF_SIDE_NEW; got != 2 { | |
| 88 | 88 | t.Errorf("DIFF_SIDE_NEW = %d, want 2", got) | |
| 89 | 89 | } | |
| 90 | - | if got := ermite.RunStatus_RUN_STATUS_COMPLETED; got != 3 { | |
| 90 | + | if got := ermite.CiStatus_CI_STATUS_COMPLETED; got != 3 { | |
| 91 | 91 | t.Errorf("RUN_STATUS_COMPLETED = %d, want 3", got) | |
| 92 | 92 | } | |
| 93 | - | if got := ermite.Conclusion_CONCLUSION_ACTION_REQUIRED; got != 7 { | |
| 93 | + | if got := ermite.CiConclusion_CI_CONCLUSION_ACTION_REQUIRED; got != 7 { | |
| 94 | 94 | t.Errorf("CONCLUSION_ACTION_REQUIRED = %d, want 7", got) | |
| 95 | 95 | } | |
| 96 | 96 | if got := ermite.StepState_STEP_STATE_COMPLETED; got != 3 { | |
| @@ -193,8 +193,8 @@ func TestCIEventRoundTrip(t *testing.T) { | |||
| 193 | 193 | Id: "j1", | |
| 194 | 194 | RunId: 9, | |
| 195 | 195 | Attempt: 2, | |
| 196 | - | Status: ermite.RunStatus_RUN_STATUS_COMPLETED, | |
| 197 | - | Conclusion: ermite.Conclusion_CONCLUSION_TIMED_OUT, | |
| 196 | + | Status: ermite.CiStatus_CI_STATUS_COMPLETED, | |
| 197 | + | Conclusion: ermite.CiConclusion_CI_CONCLUSION_TIMED_OUT, | |
| 198 | 198 | Isolation: ermite.RunnerIsolation_RUNNER_ISOLATION_VM, | |
| 199 | 199 | Steps: []*ermite.Step{{Number: 1, Name: "Set up job", LogStart: 0, LogEnd: 3}}, | |
| 200 | 200 | }}}, | |
| @@ -87,10 +87,10 @@ func TestEnumNumbers(t *testing.T) { | |||||
| 87 | if got := ermite.DiffSide_DIFF_SIDE_NEW; got != 2 { | 87 | if got := ermite.DiffSide_DIFF_SIDE_NEW; got != 2 { | ||
| 88 | t.Errorf("DIFF_SIDE_NEW = %d, want 2", got) | 88 | t.Errorf("DIFF_SIDE_NEW = %d, want 2", got) | ||
| 89 | } | 89 | } | ||
| 90 | - | if got := ermite.RunStatus_RUN_STATUS_COMPLETED; got != 3 { | 90 | + | if got := ermite.CiStatus_CI_STATUS_COMPLETED; got != 3 { |
| 91 | t.Errorf("RUN_STATUS_COMPLETED = %d, want 3", got) | 91 | t.Errorf("RUN_STATUS_COMPLETED = %d, want 3", got) | ||
| 92 | } | 92 | } | ||
| 93 | - | if got := ermite.Conclusion_CONCLUSION_ACTION_REQUIRED; got != 7 { | 93 | + | if got := ermite.CiConclusion_CI_CONCLUSION_ACTION_REQUIRED; got != 7 { |
| 94 | t.Errorf("CONCLUSION_ACTION_REQUIRED = %d, want 7", got) | 94 | t.Errorf("CONCLUSION_ACTION_REQUIRED = %d, want 7", got) | ||
| 95 | } | 95 | } | ||
| 96 | if got := ermite.StepState_STEP_STATE_COMPLETED; got != 3 { | 96 | if got := ermite.StepState_STEP_STATE_COMPLETED; got != 3 { | ||
| @@ -193,8 +193,8 @@ func TestCIEventRoundTrip(t *testing.T) { | |||||
| 193 | Id: "j1", | 193 | Id: "j1", | ||
| 194 | RunId: 9, | 194 | RunId: 9, | ||
| 195 | Attempt: 2, | 195 | Attempt: 2, | ||
| 196 | - | Status: ermite.RunStatus_RUN_STATUS_COMPLETED, | 196 | + | Status: ermite.CiStatus_CI_STATUS_COMPLETED, |
| 197 | - | Conclusion: ermite.Conclusion_CONCLUSION_TIMED_OUT, | 197 | + | Conclusion: ermite.CiConclusion_CI_CONCLUSION_TIMED_OUT, |
| 198 | Isolation: ermite.RunnerIsolation_RUNNER_ISOLATION_VM, | 198 | Isolation: ermite.RunnerIsolation_RUNNER_ISOLATION_VM, | ||
| 199 | Steps: []*ermite.Step{{Number: 1, Name: "Set up job", LogStart: 0, LogEnd: 3}}, | 199 | Steps: []*ermite.Step{{Number: 1, Name: "Set up job", LogStart: 0, LogEnd: 3}}, | ||
| 200 | }}}, | 200 | }}}, | ||
M proto/ermite/run.proto +9 -9
| @@ -48,12 +48,12 @@ message Run { | |||
| 48 | 48 | string actor = 11; | |
| 49 | 49 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | |
| 50 | 50 | // while jobs run or wait, COMPLETED when every job is over. | |
| 51 | - | RunStatus status = 12; | |
| 51 | + | CiStatus status = 12; | |
| 52 | 52 | // Conclusion is how this attempt ended, from its jobs' conclusions like | |
| 53 | 53 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | |
| 54 | 54 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | |
| 55 | 55 | // status is COMPLETED. | |
| 56 | - | Conclusion conclusion = 13; | |
| 56 | + | CiConclusion conclusion = 13; | |
| 57 | 57 | // Error is set when the run failed without running a job because the | |
| 58 | 58 | // workflow could not be used: an invalid workflow file (the run then has | |
| 59 | 59 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | |
| @@ -94,9 +94,9 @@ message RunJob { | |||
| 94 | 94 | string name = 6; | |
| 95 | 95 | // Status is where the job is. A job waits QUEUED for a runner and for the | |
| 96 | 96 | // jobs it needs. | |
| 97 | - | RunStatus status = 7; | |
| 97 | + | CiStatus status = 7; | |
| 98 | 98 | // Conclusion is how the job ended. Unset until status is COMPLETED. | |
| 99 | - | Conclusion conclusion = 8; | |
| 99 | + | CiConclusion conclusion = 8; | |
| 100 | 100 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | |
| 101 | 101 | // GitHub's words where it has them: the runner was lost ("The self-hosted | |
| 102 | 102 | // runner: <name> lost communication with the server..."), it received a | |
| @@ -139,7 +139,7 @@ message Step { | |||
| 139 | 139 | // State is where the step is. | |
| 140 | 140 | StepState state = 3; | |
| 141 | 141 | // Conclusion is how the step ended. Unset until state is COMPLETED. | |
| 142 | - | Conclusion conclusion = 4; | |
| 142 | + | CiConclusion conclusion = 4; | |
| 143 | 143 | // StartedAt is when the step started. Unset while PENDING. | |
| 144 | 144 | google.protobuf.Timestamp started_at = 5; | |
| 145 | 145 | // CompletedAt is when the step ended. Unset until COMPLETED. | |
| @@ -166,10 +166,10 @@ message Check { | |||
| 166 | 166 | // Name is the name of the check: the RunJob.name of the job. | |
| 167 | 167 | string name = 4; | |
| 168 | 168 | // Status is where the check is. | |
| 169 | - | RunStatus status = 5; | |
| 169 | + | CiStatus status = 5; | |
| 170 | 170 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | |
| 171 | 171 | // value "stale" of GitHub is never used. | |
| 172 | - | Conclusion conclusion = 6; | |
| 172 | + | CiConclusion conclusion = 6; | |
| 173 | 173 | // RunId is the run of the job. | |
| 174 | 174 | int64 run_id = 7; | |
| 175 | 175 | // JobId is the RunJob.id of the job, to open its page and log. | |
| @@ -319,9 +319,9 @@ message ListRunsRequest { | |||
| 319 | 319 | // "ci.runs.filters". | |
| 320 | 320 | string branch = 5; | |
| 321 | 321 | // Status restricts the result to the runs whose latest attempt has this | |
| 322 | - | // status. RUN_STATUS_UNSPECIFIED means every status. Ignored by servers | |
| 322 | + | // status. CI_STATUS_UNSPECIFIED means every status. Ignored by servers | |
| 323 | 323 | // without "ci.runs.filters". | |
| 324 | - | RunStatus status = 6; | |
| 324 | + | CiStatus status = 6; | |
| 325 | 325 | } | |
| 326 | 326 | ||
| 327 | 327 | // ListRunsResponse is one page of runs. | |
| @@ -48,12 +48,12 @@ message Run { | |||||
| 48 | string actor = 11; | 48 | string actor = 11; | ||
| 49 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | 49 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | ||
| 50 | // while jobs run or wait, COMPLETED when every job is over. | 50 | // while jobs run or wait, COMPLETED when every job is over. | ||
| 51 | - | RunStatus status = 12; | 51 | + | CiStatus status = 12; |
| 52 | // Conclusion is how this attempt ended, from its jobs' conclusions like | 52 | // Conclusion is how this attempt ended, from its jobs' conclusions like | ||
| 53 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | 53 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | ||
| 54 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | 54 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | ||
| 55 | // status is COMPLETED. | 55 | // status is COMPLETED. | ||
| 56 | - | Conclusion conclusion = 13; | 56 | + | CiConclusion conclusion = 13; |
| 57 | // Error is set when the run failed without running a job because the | 57 | // Error is set when the run failed without running a job because the | ||
| 58 | // workflow could not be used: an invalid workflow file (the run then has | 58 | // workflow could not be used: an invalid workflow file (the run then has | ||
| 59 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | 59 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | ||
| @@ -94,9 +94,9 @@ message RunJob { | |||||
| 94 | string name = 6; | 94 | string name = 6; | ||
| 95 | // Status is where the job is. A job waits QUEUED for a runner and for the | 95 | // Status is where the job is. A job waits QUEUED for a runner and for the | ||
| 96 | // jobs it needs. | 96 | // jobs it needs. | ||
| 97 | - | RunStatus status = 7; | 97 | + | CiStatus status = 7; |
| 98 | // Conclusion is how the job ended. Unset until status is COMPLETED. | 98 | // Conclusion is how the job ended. Unset until status is COMPLETED. | ||
| 99 | - | Conclusion conclusion = 8; | 99 | + | CiConclusion conclusion = 8; |
| 100 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | 100 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | ||
| 101 | // GitHub's words where it has them: the runner was lost ("The self-hosted | 101 | // GitHub's words where it has them: the runner was lost ("The self-hosted | ||
| 102 | // runner: <name> lost communication with the server..."), it received a | 102 | // runner: <name> lost communication with the server..."), it received a | ||
| @@ -139,7 +139,7 @@ message Step { | |||||
| 139 | // State is where the step is. | 139 | // State is where the step is. | ||
| 140 | StepState state = 3; | 140 | StepState state = 3; | ||
| 141 | // Conclusion is how the step ended. Unset until state is COMPLETED. | 141 | // Conclusion is how the step ended. Unset until state is COMPLETED. | ||
| 142 | - | Conclusion conclusion = 4; | 142 | + | CiConclusion conclusion = 4; |
| 143 | // StartedAt is when the step started. Unset while PENDING. | 143 | // StartedAt is when the step started. Unset while PENDING. | ||
| 144 | google.protobuf.Timestamp started_at = 5; | 144 | google.protobuf.Timestamp started_at = 5; | ||
| 145 | // CompletedAt is when the step ended. Unset until COMPLETED. | 145 | // CompletedAt is when the step ended. Unset until COMPLETED. | ||
| @@ -166,10 +166,10 @@ message Check { | |||||
| 166 | // Name is the name of the check: the RunJob.name of the job. | 166 | // Name is the name of the check: the RunJob.name of the job. | ||
| 167 | string name = 4; | 167 | string name = 4; | ||
| 168 | // Status is where the check is. | 168 | // Status is where the check is. | ||
| 169 | - | RunStatus status = 5; | 169 | + | CiStatus status = 5; |
| 170 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | 170 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | ||
| 171 | // value "stale" of GitHub is never used. | 171 | // value "stale" of GitHub is never used. | ||
| 172 | - | Conclusion conclusion = 6; | 172 | + | CiConclusion conclusion = 6; |
| 173 | // RunId is the run of the job. | 173 | // RunId is the run of the job. | ||
| 174 | int64 run_id = 7; | 174 | int64 run_id = 7; | ||
| 175 | // JobId is the RunJob.id of the job, to open its page and log. | 175 | // JobId is the RunJob.id of the job, to open its page and log. | ||
| @@ -319,9 +319,9 @@ message ListRunsRequest { | |||||
| 319 | // "ci.runs.filters". | 319 | // "ci.runs.filters". | ||
| 320 | string branch = 5; | 320 | string branch = 5; | ||
| 321 | // Status restricts the result to the runs whose latest attempt has this | 321 | // Status restricts the result to the runs whose latest attempt has this | ||
| 322 | - | // status. RUN_STATUS_UNSPECIFIED means every status. Ignored by servers | 322 | + | // status. CI_STATUS_UNSPECIFIED means every status. Ignored by servers |
| 323 | // without "ci.runs.filters". | 323 | // without "ci.runs.filters". | ||
| 324 | - | RunStatus status = 6; | 324 | + | CiStatus status = 6; |
| 325 | } | 325 | } | ||
| 326 | 326 | ||||
| 327 | // ListRunsResponse is one page of runs. | 327 | // ListRunsResponse is one page of runs. | ||
M proto/ermite/runner.proto +31 -31
| @@ -6,46 +6,46 @@ package ermite; | |||
| 6 | 6 | ||
| 7 | 7 | import "google/protobuf/timestamp.proto"; | |
| 8 | 8 | ||
| 9 | - | // RunStatus is where a run, a job or a check is in its life. It is the same | |
| 9 | + | // CiStatus is where a run, a job or a check is in its life. It is the same | |
| 10 | 10 | // as GitHub's status, without the rarely used values. | |
| 11 | - | enum RunStatus { | |
| 11 | + | enum CiStatus { | |
| 12 | 12 | // Not set. In a filter it means every status. Never returned by the server. | |
| 13 | - | RUN_STATUS_UNSPECIFIED = 0; | |
| 13 | + | CI_STATUS_UNSPECIFIED = 0; | |
| 14 | 14 | // Waiting: for a runner, for the jobs it needs, or for its turn | |
| 15 | 15 | // (max-parallel). | |
| 16 | - | RUN_STATUS_QUEUED = 1; | |
| 16 | + | CI_STATUS_QUEUED = 1; | |
| 17 | 17 | // At least one job has been given to a runner and has not ended. | |
| 18 | - | RUN_STATUS_IN_PROGRESS = 2; | |
| 18 | + | CI_STATUS_IN_PROGRESS = 2; | |
| 19 | 19 | // Over. The conclusion says how it ended. | |
| 20 | - | RUN_STATUS_COMPLETED = 3; | |
| 20 | + | CI_STATUS_COMPLETED = 3; | |
| 21 | 21 | } | |
| 22 | 22 | ||
| 23 | - | // Conclusion is how a run, a job, a step or a check ended, with GitHub's | |
| 24 | - | // values and meaning. It is unset (CONCLUSION_UNSPECIFIED) until the status is | |
| 23 | + | // CiConclusion is how a run, a job, a step or a check ended, with GitHub's | |
| 24 | + | // values and meaning. It is unset (CI_CONCLUSION_UNSPECIFIED) until the status is | |
| 25 | 25 | // COMPLETED. | |
| 26 | - | enum Conclusion { | |
| 26 | + | enum CiConclusion { | |
| 27 | 27 | // Not completed yet. Never returned by the server for a completed item. | |
| 28 | - | CONCLUSION_UNSPECIFIED = 0; | |
| 28 | + | CI_CONCLUSION_UNSPECIFIED = 0; | |
| 29 | 29 | // Everything it ran succeeded. | |
| 30 | - | CONCLUSION_SUCCESS = 1; | |
| 30 | + | CI_CONCLUSION_SUCCESS = 1; | |
| 31 | 31 | // A step failed, or the job failed for another reason described in | |
| 32 | 32 | // RunJob.error (runner lost, queue timeout, log limit, feature not | |
| 33 | 33 | // supported yet, invalid workflow file). | |
| 34 | - | CONCLUSION_FAILURE = 2; | |
| 34 | + | CI_CONCLUSION_FAILURE = 2; | |
| 35 | 35 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | |
| 36 | - | CONCLUSION_CANCELLED = 3; | |
| 36 | + | CI_CONCLUSION_CANCELLED = 3; | |
| 37 | 37 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | |
| 38 | 38 | // not selected. Never reported by a runner. | |
| 39 | - | CONCLUSION_SKIPPED = 4; | |
| 39 | + | CI_CONCLUSION_SKIPPED = 4; | |
| 40 | 40 | // Exceeded its timeout. | |
| 41 | - | CONCLUSION_TIMED_OUT = 5; | |
| 41 | + | CI_CONCLUSION_TIMED_OUT = 5; | |
| 42 | 42 | // Neither a success nor a failure. Defined for parity with GitHub; no | |
| 43 | 43 | // workflow job ends this way yet. For merging it counts as a success. | |
| 44 | - | CONCLUSION_NEUTRAL = 6; | |
| 44 | + | CI_CONCLUSION_NEUTRAL = 6; | |
| 45 | 45 | // Waits for a human action (for example the approval of an environment). | |
| 46 | 46 | // Defined for parity with GitHub; the server does not produce it before | |
| 47 | 47 | // environments exist. For merging it counts as a failure. | |
| 48 | - | CONCLUSION_ACTION_REQUIRED = 7; | |
| 48 | + | CI_CONCLUSION_ACTION_REQUIRED = 7; | |
| 49 | 49 | } | |
| 50 | 50 | ||
| 51 | 51 | // StepState is where a step is in its life. | |
| @@ -57,7 +57,7 @@ enum StepState { | |||
| 57 | 57 | // Running. | |
| 58 | 58 | STEP_STATE_IN_PROGRESS = 2; | |
| 59 | 59 | // Over. The conclusion says how it ended. A step that did not run because | |
| 60 | - | // of its "if" or an earlier failure is COMPLETED with CONCLUSION_SKIPPED. | |
| 60 | + | // of its "if" or an earlier failure is COMPLETED with CI_CONCLUSION_SKIPPED. | |
| 61 | 61 | STEP_STATE_COMPLETED = 3; | |
| 62 | 62 | } | |
| 63 | 63 | ||
| @@ -83,13 +83,13 @@ enum CancelReason { | |||
| 83 | 83 | // no request. | |
| 84 | 84 | CANCEL_REASON_UNSPECIFIED = 0; | |
| 85 | 85 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | |
| 86 | - | // ends CONCLUSION_CANCELLED. | |
| 86 | + | // ends CI_CONCLUSION_CANCELLED. | |
| 87 | 87 | CANCEL_REASON_USER = 1; | |
| 88 | 88 | // Another job of the same matrix failed and the strategy has fail-fast. The | |
| 89 | - | // job ends CONCLUSION_CANCELLED. | |
| 89 | + | // job ends CI_CONCLUSION_CANCELLED. | |
| 90 | 90 | CANCEL_REASON_FAIL_FAST = 2; | |
| 91 | 91 | // The job exceeded its timeout_minutes without the runner ending it. The | |
| 92 | - | // job ends CONCLUSION_TIMED_OUT. | |
| 92 | + | // job ends CI_CONCLUSION_TIMED_OUT. | |
| 93 | 93 | CANCEL_REASON_TIMEOUT = 3; | |
| 94 | 94 | } | |
| 95 | 95 | ||
| @@ -184,7 +184,7 @@ service RunnerService { | |||
| 184 | 184 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | |
| 185 | 185 | // the server (text, timestamps and separators). The call that would exceed | |
| 186 | 186 | // it appends nothing; the server adds a last line saying that the limit was | |
| 187 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | |
| 187 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and | |
| 188 | 188 | // answers resource_exhausted. The runner then stops the job and sends | |
| 189 | 189 | // nothing more: its calls get unauthenticated. | |
| 190 | 190 | // | |
| @@ -194,7 +194,7 @@ service RunnerService { | |||
| 194 | 194 | // Heartbeat tells the server that the runner is alive and still working on | |
| 195 | 195 | // the job. Needs the job token. The runner calls it every 30 seconds for as | |
| 196 | 196 | // long as the job runs, from assignment to the end. Without a heartbeat for | |
| 197 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | |
| 197 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message | |
| 198 | 198 | // "The self-hosted runner: <name> lost communication with the server...". | |
| 199 | 199 | // Only Heartbeat counts: other calls do not keep a job alive. | |
| 200 | 200 | rpc Heartbeat(HeartbeatRequest) returns (HeartbeatResponse); | |
| @@ -342,15 +342,15 @@ message UpdateJobRequest { | |||
| 342 | 342 | // the whole call is rejected with invalid_argument and the runner reports | |
| 343 | 343 | // the failure of the job without outputs, with a line in the log. | |
| 344 | 344 | map<string, string> outputs = 3; | |
| 345 | - | // Conclusion ends the job when set. A runner reports CONCLUSION_SUCCESS, | |
| 346 | - | // CONCLUSION_FAILURE, CONCLUSION_CANCELLED or CONCLUSION_TIMED_OUT; any | |
| 347 | - | // other value is invalid_argument. CONCLUSION_UNSPECIFIED means the job goes | |
| 345 | + | // Conclusion ends the job when set. A runner reports CI_CONCLUSION_SUCCESS, | |
| 346 | + | // CI_CONCLUSION_FAILURE, CI_CONCLUSION_CANCELLED or CI_CONCLUSION_TIMED_OUT; any | |
| 347 | + | // other value is invalid_argument. CI_CONCLUSION_UNSPECIFIED means the job goes | |
| 348 | 348 | // on. Steps that were not reported COMPLETED when the job ends are | |
| 349 | - | // completed by the server as CONCLUSION_CANCELLED (or SKIPPED when they | |
| 349 | + | // completed by the server as CI_CONCLUSION_CANCELLED (or SKIPPED when they | |
| 350 | 350 | // never started and the job did not fail by cancellation). | |
| 351 | - | Conclusion conclusion = 4; | |
| 351 | + | CiConclusion conclusion = 4; | |
| 352 | 352 | // RunnerShutdown is true when the runner ends the job because it was told to | |
| 353 | - | // stop (service stopped, signal). Only allowed with CONCLUSION_CANCELLED. | |
| 353 | + | // stop (service stopped, signal). Only allowed with CI_CONCLUSION_CANCELLED. | |
| 354 | 354 | // The server then annotates the job with GitHub's message "The runner has | |
| 355 | 355 | // received a shutdown signal. This can happen when the runner service is | |
| 356 | 356 | // stopped, or a manually started runner is canceled." | |
| @@ -371,7 +371,7 @@ message StepUpdate { | |||
| 371 | 371 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | |
| 372 | 372 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | |
| 373 | 373 | // failure, cancelled, skipped. | |
| 374 | - | Conclusion conclusion = 4; | |
| 374 | + | CiConclusion conclusion = 4; | |
| 375 | 375 | // StartedAt is when the step started, by the clock of the runner. Required | |
| 376 | 376 | // from IN_PROGRESS on. | |
| 377 | 377 | google.protobuf.Timestamp started_at = 5; | |
| @@ -439,7 +439,7 @@ message WatchJobResponse { | |||
| 439 | 439 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | |
| 440 | 440 | // keep-alive: the other fields are empty and the client ignores it. New | |
| 441 | 441 | // reasons may be added; a runner that does not know one cancels the job and | |
| 442 | - | // reports CONCLUSION_CANCELLED. | |
| 442 | + | // reports CI_CONCLUSION_CANCELLED. | |
| 443 | 443 | CancelReason reason = 1; | |
| 444 | 444 | // Message is a short human-readable explanation, for the job log, for | |
| 445 | 445 | // example "Canceled by the owner". At most 1,024 characters. | |
| @@ -6,46 +6,46 @@ package ermite; | |||||
| 6 | 6 | ||||
| 7 | import "google/protobuf/timestamp.proto"; | 7 | import "google/protobuf/timestamp.proto"; | ||
| 8 | 8 | ||||
| 9 | - | // RunStatus is where a run, a job or a check is in its life. It is the same | 9 | + | // CiStatus is where a run, a job or a check is in its life. It is the same |
| 10 | // as GitHub's status, without the rarely used values. | 10 | // as GitHub's status, without the rarely used values. | ||
| 11 | - | enum RunStatus { | 11 | + | enum CiStatus { |
| 12 | // Not set. In a filter it means every status. Never returned by the server. | 12 | // Not set. In a filter it means every status. Never returned by the server. | ||
| 13 | - | RUN_STATUS_UNSPECIFIED = 0; | 13 | + | CI_STATUS_UNSPECIFIED = 0; |
| 14 | // Waiting: for a runner, for the jobs it needs, or for its turn | 14 | // Waiting: for a runner, for the jobs it needs, or for its turn | ||
| 15 | // (max-parallel). | 15 | // (max-parallel). | ||
| 16 | - | RUN_STATUS_QUEUED = 1; | 16 | + | CI_STATUS_QUEUED = 1; |
| 17 | // At least one job has been given to a runner and has not ended. | 17 | // At least one job has been given to a runner and has not ended. | ||
| 18 | - | RUN_STATUS_IN_PROGRESS = 2; | 18 | + | CI_STATUS_IN_PROGRESS = 2; |
| 19 | // Over. The conclusion says how it ended. | 19 | // Over. The conclusion says how it ended. | ||
| 20 | - | RUN_STATUS_COMPLETED = 3; | 20 | + | CI_STATUS_COMPLETED = 3; |
| 21 | } | 21 | } | ||
| 22 | 22 | ||||
| 23 | - | // Conclusion is how a run, a job, a step or a check ended, with GitHub's | 23 | + | // CiConclusion is how a run, a job, a step or a check ended, with GitHub's |
| 24 | - | // values and meaning. It is unset (CONCLUSION_UNSPECIFIED) until the status is | 24 | + | // values and meaning. It is unset (CI_CONCLUSION_UNSPECIFIED) until the status is |
| 25 | // COMPLETED. | 25 | // COMPLETED. | ||
| 26 | - | enum Conclusion { | 26 | + | enum CiConclusion { |
| 27 | // Not completed yet. Never returned by the server for a completed item. | 27 | // Not completed yet. Never returned by the server for a completed item. | ||
| 28 | - | CONCLUSION_UNSPECIFIED = 0; | 28 | + | CI_CONCLUSION_UNSPECIFIED = 0; |
| 29 | // Everything it ran succeeded. | 29 | // Everything it ran succeeded. | ||
| 30 | - | CONCLUSION_SUCCESS = 1; | 30 | + | CI_CONCLUSION_SUCCESS = 1; |
| 31 | // A step failed, or the job failed for another reason described in | 31 | // A step failed, or the job failed for another reason described in | ||
| 32 | // RunJob.error (runner lost, queue timeout, log limit, feature not | 32 | // RunJob.error (runner lost, queue timeout, log limit, feature not | ||
| 33 | // supported yet, invalid workflow file). | 33 | // supported yet, invalid workflow file). | ||
| 34 | - | CONCLUSION_FAILURE = 2; | 34 | + | CI_CONCLUSION_FAILURE = 2; |
| 35 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | 35 | // Cancelled by the owner, or by fail-fast, or because the runner shut down. | ||
| 36 | - | CONCLUSION_CANCELLED = 3; | 36 | + | CI_CONCLUSION_CANCELLED = 3; |
| 37 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | 37 | // Never ran: its "if" was false, or a job it needs did not succeed, or it was | ||
| 38 | // not selected. Never reported by a runner. | 38 | // not selected. Never reported by a runner. | ||
| 39 | - | CONCLUSION_SKIPPED = 4; | 39 | + | CI_CONCLUSION_SKIPPED = 4; |
| 40 | // Exceeded its timeout. | 40 | // Exceeded its timeout. | ||
| 41 | - | CONCLUSION_TIMED_OUT = 5; | 41 | + | CI_CONCLUSION_TIMED_OUT = 5; |
| 42 | // Neither a success nor a failure. Defined for parity with GitHub; no | 42 | // Neither a success nor a failure. Defined for parity with GitHub; no | ||
| 43 | // workflow job ends this way yet. For merging it counts as a success. | 43 | // workflow job ends this way yet. For merging it counts as a success. | ||
| 44 | - | CONCLUSION_NEUTRAL = 6; | 44 | + | CI_CONCLUSION_NEUTRAL = 6; |
| 45 | // Waits for a human action (for example the approval of an environment). | 45 | // Waits for a human action (for example the approval of an environment). | ||
| 46 | // Defined for parity with GitHub; the server does not produce it before | 46 | // Defined for parity with GitHub; the server does not produce it before | ||
| 47 | // environments exist. For merging it counts as a failure. | 47 | // environments exist. For merging it counts as a failure. | ||
| 48 | - | CONCLUSION_ACTION_REQUIRED = 7; | 48 | + | CI_CONCLUSION_ACTION_REQUIRED = 7; |
| 49 | } | 49 | } | ||
| 50 | 50 | ||||
| 51 | // StepState is where a step is in its life. | 51 | // StepState is where a step is in its life. | ||
| @@ -57,7 +57,7 @@ enum StepState { | |||||
| 57 | // Running. | 57 | // Running. | ||
| 58 | STEP_STATE_IN_PROGRESS = 2; | 58 | STEP_STATE_IN_PROGRESS = 2; | ||
| 59 | // Over. The conclusion says how it ended. A step that did not run because | 59 | // Over. The conclusion says how it ended. A step that did not run because | ||
| 60 | - | // of its "if" or an earlier failure is COMPLETED with CONCLUSION_SKIPPED. | 60 | + | // of its "if" or an earlier failure is COMPLETED with CI_CONCLUSION_SKIPPED. |
| 61 | STEP_STATE_COMPLETED = 3; | 61 | STEP_STATE_COMPLETED = 3; | ||
| 62 | } | 62 | } | ||
| 63 | 63 | ||||
| @@ -83,13 +83,13 @@ enum CancelReason { | |||||
| 83 | // no request. | 83 | // no request. | ||
| 84 | CANCEL_REASON_UNSPECIFIED = 0; | 84 | CANCEL_REASON_UNSPECIFIED = 0; | ||
| 85 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | 85 | // The owner cancelled the run (RunService.CancelRun, web or CLI). The job | ||
| 86 | - | // ends CONCLUSION_CANCELLED. | 86 | + | // ends CI_CONCLUSION_CANCELLED. |
| 87 | CANCEL_REASON_USER = 1; | 87 | CANCEL_REASON_USER = 1; | ||
| 88 | // Another job of the same matrix failed and the strategy has fail-fast. The | 88 | // Another job of the same matrix failed and the strategy has fail-fast. The | ||
| 89 | - | // job ends CONCLUSION_CANCELLED. | 89 | + | // job ends CI_CONCLUSION_CANCELLED. |
| 90 | CANCEL_REASON_FAIL_FAST = 2; | 90 | CANCEL_REASON_FAIL_FAST = 2; | ||
| 91 | // The job exceeded its timeout_minutes without the runner ending it. The | 91 | // The job exceeded its timeout_minutes without the runner ending it. The | ||
| 92 | - | // job ends CONCLUSION_TIMED_OUT. | 92 | + | // job ends CI_CONCLUSION_TIMED_OUT. |
| 93 | CANCEL_REASON_TIMEOUT = 3; | 93 | CANCEL_REASON_TIMEOUT = 3; | ||
| 94 | } | 94 | } | ||
| 95 | 95 | ||||
| @@ -184,7 +184,7 @@ service RunnerService { | |||||
| 184 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | 184 | // The log of a job is limited to 512 MiB (536,870,912 bytes) as stored by | ||
| 185 | // the server (text, timestamps and separators). The call that would exceed | 185 | // the server (text, timestamps and separators). The call that would exceed | ||
| 186 | // it appends nothing; the server adds a last line saying that the limit was | 186 | // it appends nothing; the server adds a last line saying that the limit was | ||
| 187 | - | // reached, ends the job with CONCLUSION_FAILURE and RunJob.error set, and | 187 | + | // reached, ends the job with CI_CONCLUSION_FAILURE and RunJob.error set, and |
| 188 | // answers resource_exhausted. The runner then stops the job and sends | 188 | // answers resource_exhausted. The runner then stops the job and sends | ||
| 189 | // nothing more: its calls get unauthenticated. | 189 | // nothing more: its calls get unauthenticated. | ||
| 190 | // | 190 | // | ||
| @@ -194,7 +194,7 @@ service RunnerService { | |||||
| 194 | // Heartbeat tells the server that the runner is alive and still working on | 194 | // Heartbeat tells the server that the runner is alive and still working on | ||
| 195 | // the job. Needs the job token. The runner calls it every 30 seconds for as | 195 | // the job. Needs the job token. The runner calls it every 30 seconds for as | ||
| 196 | // long as the job runs, from assignment to the end. Without a heartbeat for | 196 | // long as the job runs, from assignment to the end. Without a heartbeat for | ||
| 197 | - | // 2 minutes the server ends the job with CONCLUSION_FAILURE and the message | 197 | + | // 2 minutes the server ends the job with CI_CONCLUSION_FAILURE and the message |
| 198 | // "The self-hosted runner: <name> lost communication with the server...". | 198 | // "The self-hosted runner: <name> lost communication with the server...". | ||
| 199 | // Only Heartbeat counts: other calls do not keep a job alive. | 199 | // Only Heartbeat counts: other calls do not keep a job alive. | ||
| 200 | rpc Heartbeat(HeartbeatRequest) returns (HeartbeatResponse); | 200 | rpc Heartbeat(HeartbeatRequest) returns (HeartbeatResponse); | ||
| @@ -342,15 +342,15 @@ message UpdateJobRequest { | |||||
| 342 | // the whole call is rejected with invalid_argument and the runner reports | 342 | // the whole call is rejected with invalid_argument and the runner reports | ||
| 343 | // the failure of the job without outputs, with a line in the log. | 343 | // the failure of the job without outputs, with a line in the log. | ||
| 344 | map<string, string> outputs = 3; | 344 | map<string, string> outputs = 3; | ||
| 345 | - | // Conclusion ends the job when set. A runner reports CONCLUSION_SUCCESS, | 345 | + | // Conclusion ends the job when set. A runner reports CI_CONCLUSION_SUCCESS, |
| 346 | - | // CONCLUSION_FAILURE, CONCLUSION_CANCELLED or CONCLUSION_TIMED_OUT; any | 346 | + | // CI_CONCLUSION_FAILURE, CI_CONCLUSION_CANCELLED or CI_CONCLUSION_TIMED_OUT; any |
| 347 | - | // other value is invalid_argument. CONCLUSION_UNSPECIFIED means the job goes | 347 | + | // other value is invalid_argument. CI_CONCLUSION_UNSPECIFIED means the job goes |
| 348 | // on. Steps that were not reported COMPLETED when the job ends are | 348 | // on. Steps that were not reported COMPLETED when the job ends are | ||
| 349 | - | // completed by the server as CONCLUSION_CANCELLED (or SKIPPED when they | 349 | + | // completed by the server as CI_CONCLUSION_CANCELLED (or SKIPPED when they |
| 350 | // never started and the job did not fail by cancellation). | 350 | // never started and the job did not fail by cancellation). | ||
| 351 | - | Conclusion conclusion = 4; | 351 | + | CiConclusion conclusion = 4; |
| 352 | // RunnerShutdown is true when the runner ends the job because it was told to | 352 | // RunnerShutdown is true when the runner ends the job because it was told to | ||
| 353 | - | // stop (service stopped, signal). Only allowed with CONCLUSION_CANCELLED. | 353 | + | // stop (service stopped, signal). Only allowed with CI_CONCLUSION_CANCELLED. |
| 354 | // The server then annotates the job with GitHub's message "The runner has | 354 | // The server then annotates the job with GitHub's message "The runner has | ||
| 355 | // received a shutdown signal. This can happen when the runner service is | 355 | // received a shutdown signal. This can happen when the runner service is | ||
| 356 | // stopped, or a manually started runner is canceled." | 356 | // stopped, or a manually started runner is canceled." | ||
| @@ -371,7 +371,7 @@ message StepUpdate { | |||||
| 371 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | 371 | // Conclusion is how the step ended. Required (not UNSPECIFIED) when state is | ||
| 372 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | 372 | // COMPLETED, must be UNSPECIFIED otherwise. Allowed values: success, | ||
| 373 | // failure, cancelled, skipped. | 373 | // failure, cancelled, skipped. | ||
| 374 | - | Conclusion conclusion = 4; | 374 | + | CiConclusion conclusion = 4; |
| 375 | // StartedAt is when the step started, by the clock of the runner. Required | 375 | // StartedAt is when the step started, by the clock of the runner. Required | ||
| 376 | // from IN_PROGRESS on. | 376 | // from IN_PROGRESS on. | ||
| 377 | google.protobuf.Timestamp started_at = 5; | 377 | google.protobuf.Timestamp started_at = 5; | ||
| @@ -439,7 +439,7 @@ message WatchJobResponse { | |||||
| 439 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | 439 | // Reason is why the job must stop. CANCEL_REASON_UNSPECIFIED marks a | ||
| 440 | // keep-alive: the other fields are empty and the client ignores it. New | 440 | // keep-alive: the other fields are empty and the client ignores it. New | ||
| 441 | // reasons may be added; a runner that does not know one cancels the job and | 441 | // reasons may be added; a runner that does not know one cancels the job and | ||
| 442 | - | // reports CONCLUSION_CANCELLED. | 442 | + | // reports CI_CONCLUSION_CANCELLED. |
| 443 | CancelReason reason = 1; | 443 | CancelReason reason = 1; | ||
| 444 | // Message is a short human-readable explanation, for the job log, for | 444 | // Message is a short human-readable explanation, for the job log, for | ||
| 445 | // example "Canceled by the owner". At most 1,024 characters. | 445 | // example "Canceled by the owner". At most 1,024 characters. | ||