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
| @@ -66,12 +66,12 @@ type Run struct { | |||
| 66 | 66 | Actor string `protobuf:"bytes,11,opt,name=actor,proto3" json:"actor,omitempty"` | |
| 67 | 67 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | |
| 68 | 68 | // while jobs run or wait, COMPLETED when every job is over. | |
| 69 | - | Status RunStatus `protobuf:"varint,12,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | |
| 69 | + | Status CiStatus `protobuf:"varint,12,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` | |
| 70 | 70 | // Conclusion is how this attempt ended, from its jobs' conclusions like | |
| 71 | 71 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | |
| 72 | 72 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | |
| 73 | 73 | // status is COMPLETED. | |
| 74 | - | Conclusion Conclusion `protobuf:"varint,13,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 74 | + | Conclusion CiConclusion `protobuf:"varint,13,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 75 | 75 | // Error is set when the run failed without running a job because the | |
| 76 | 76 | // workflow could not be used: an invalid workflow file (the run then has | |
| 77 | 77 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | |
| @@ -197,18 +197,18 @@ func (x *Run) GetActor() string { | |||
| 197 | 197 | return "" | |
| 198 | 198 | } | |
| 199 | 199 | ||
| 200 | - | func (x *Run) GetStatus() RunStatus { | |
| 200 | + | func (x *Run) GetStatus() CiStatus { | |
| 201 | 201 | if x != nil { | |
| 202 | 202 | return x.Status | |
| 203 | 203 | } | |
| 204 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | |
| 204 | + | return CiStatus_CI_STATUS_UNSPECIFIED | |
| 205 | 205 | } | |
| 206 | 206 | ||
| 207 | - | func (x *Run) GetConclusion() Conclusion { | |
| 207 | + | func (x *Run) GetConclusion() CiConclusion { | |
| 208 | 208 | if x != nil { | |
| 209 | 209 | return x.Conclusion | |
| 210 | 210 | } | |
| 211 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 211 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 212 | 212 | } | |
| 213 | 213 | ||
| 214 | 214 | func (x *Run) GetError() string { | |
| @@ -264,9 +264,9 @@ type RunJob struct { | |||
| 264 | 264 | Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` | |
| 265 | 265 | // Status is where the job is. A job waits QUEUED for a runner and for the | |
| 266 | 266 | // jobs it needs. | |
| 267 | - | Status RunStatus `protobuf:"varint,7,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | |
| 267 | + | Status CiStatus `protobuf:"varint,7,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` | |
| 268 | 268 | // Conclusion is how the job ended. Unset until status is COMPLETED. | |
| 269 | - | Conclusion Conclusion `protobuf:"varint,8,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 269 | + | Conclusion CiConclusion `protobuf:"varint,8,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 270 | 270 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | |
| 271 | 271 | // GitHub's words where it has them: the runner was lost ("The self-hosted | |
| 272 | 272 | // runner: <name> lost communication with the server..."), it received a | |
| @@ -373,18 +373,18 @@ func (x *RunJob) GetName() string { | |||
| 373 | 373 | return "" | |
| 374 | 374 | } | |
| 375 | 375 | ||
| 376 | - | func (x *RunJob) GetStatus() RunStatus { | |
| 376 | + | func (x *RunJob) GetStatus() CiStatus { | |
| 377 | 377 | if x != nil { | |
| 378 | 378 | return x.Status | |
| 379 | 379 | } | |
| 380 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | |
| 380 | + | return CiStatus_CI_STATUS_UNSPECIFIED | |
| 381 | 381 | } | |
| 382 | 382 | ||
| 383 | - | func (x *RunJob) GetConclusion() Conclusion { | |
| 383 | + | func (x *RunJob) GetConclusion() CiConclusion { | |
| 384 | 384 | if x != nil { | |
| 385 | 385 | return x.Conclusion | |
| 386 | 386 | } | |
| 387 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 387 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 388 | 388 | } | |
| 389 | 389 | ||
| 390 | 390 | func (x *RunJob) GetError() string { | |
| @@ -468,7 +468,7 @@ type Step struct { | |||
| 468 | 468 | // State is where the step is. | |
| 469 | 469 | State StepState `protobuf:"varint,3,opt,name=state,proto3,enum=ermite.StepState" json:"state,omitempty"` | |
| 470 | 470 | // Conclusion is how the step ended. Unset until state is COMPLETED. | |
| 471 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 471 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 472 | 472 | // StartedAt is when the step started. Unset while PENDING. | |
| 473 | 473 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | |
| 474 | 474 | // CompletedAt is when the step ended. Unset until COMPLETED. | |
| @@ -535,11 +535,11 @@ func (x *Step) GetState() StepState { | |||
| 535 | 535 | return StepState_STEP_STATE_UNSPECIFIED | |
| 536 | 536 | } | |
| 537 | 537 | ||
| 538 | - | func (x *Step) GetConclusion() Conclusion { | |
| 538 | + | func (x *Step) GetConclusion() CiConclusion { | |
| 539 | 539 | if x != nil { | |
| 540 | 540 | return x.Conclusion | |
| 541 | 541 | } | |
| 542 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 542 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 543 | 543 | } | |
| 544 | 544 | ||
| 545 | 545 | func (x *Step) GetStartedAt() *timestamppb.Timestamp { | |
| @@ -584,10 +584,10 @@ type Check struct { | |||
| 584 | 584 | // Name is the name of the check: the RunJob.name of the job. | |
| 585 | 585 | Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` | |
| 586 | 586 | // Status is where the check is. | |
| 587 | - | Status RunStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | |
| 587 | + | Status CiStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` | |
| 588 | 588 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | |
| 589 | 589 | // value "stale" of GitHub is never used. | |
| 590 | - | Conclusion Conclusion `protobuf:"varint,6,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | |
| 590 | + | Conclusion CiConclusion `protobuf:"varint,6,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` | |
| 591 | 591 | // RunId is the run of the job. | |
| 592 | 592 | RunId int64 `protobuf:"varint,7,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` | |
| 593 | 593 | // JobId is the RunJob.id of the job, to open its page and log. | |
| @@ -662,18 +662,18 @@ func (x *Check) GetName() string { | |||
| 662 | 662 | return "" | |
| 663 | 663 | } | |
| 664 | 664 | ||
| 665 | - | func (x *Check) GetStatus() RunStatus { | |
| 665 | + | func (x *Check) GetStatus() CiStatus { | |
| 666 | 666 | if x != nil { | |
| 667 | 667 | return x.Status | |
| 668 | 668 | } | |
| 669 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | |
| 669 | + | return CiStatus_CI_STATUS_UNSPECIFIED | |
| 670 | 670 | } | |
| 671 | 671 | ||
| 672 | - | func (x *Check) GetConclusion() Conclusion { | |
| 672 | + | func (x *Check) GetConclusion() CiConclusion { | |
| 673 | 673 | if x != nil { | |
| 674 | 674 | return x.Conclusion | |
| 675 | 675 | } | |
| 676 | - | return Conclusion_CONCLUSION_UNSPECIFIED | |
| 676 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED | |
| 677 | 677 | } | |
| 678 | 678 | ||
| 679 | 679 | func (x *Check) GetRunId() int64 { | |
| @@ -870,9 +870,9 @@ type ListRunsRequest struct { | |||
| 870 | 870 | // "ci.runs.filters". | |
| 871 | 871 | Branch string `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"` | |
| 872 | 872 | // Status restricts the result to the runs whose latest attempt has this | |
| 873 | - | // status. RUN_STATUS_UNSPECIFIED means every status. Ignored by servers | |
| 873 | + | // status. CI_STATUS_UNSPECIFIED means every status. Ignored by servers | |
| 874 | 874 | // without "ci.runs.filters". | |
| 875 | - | Status RunStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | |
| 875 | + | Status CiStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` | |
| 876 | 876 | unknownFields protoimpl.UnknownFields | |
| 877 | 877 | sizeCache protoimpl.SizeCache | |
| 878 | 878 | } | |
| @@ -942,11 +942,11 @@ func (x *ListRunsRequest) GetBranch() string { | |||
| 942 | 942 | return "" | |
| 943 | 943 | } | |
| 944 | 944 | ||
| 945 | - | func (x *ListRunsRequest) GetStatus() RunStatus { | |
| 945 | + | func (x *ListRunsRequest) GetStatus() CiStatus { | |
| 946 | 946 | if x != nil { | |
| 947 | 947 | return x.Status | |
| 948 | 948 | } | |
| 949 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | |
| 949 | + | return CiStatus_CI_STATUS_UNSPECIFIED | |
| 950 | 950 | } | |
| 951 | 951 | ||
| 952 | 952 | // ListRunsResponse is one page of runs. | |
| @@ -1976,7 +1976,7 @@ var File_ermite_run_proto protoreflect.FileDescriptor | |||
| 1976 | 1976 | ||
| 1977 | 1977 | const file_ermite_run_proto_rawDesc = "" + | |
| 1978 | 1978 | "\n" + | |
| 1979 | - | "\x10ermite/run.proto\x12\x06ermite\x1a\x13ermite/runner.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x04\n" + | |
| 1979 | + | "\x10ermite/run.proto\x12\x06ermite\x1a\x13ermite/runner.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb6\x04\n" + | |
| 1980 | 1980 | "\x03Run\x12\x12\n" + | |
| 1981 | 1981 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x0e\n" + | |
| 1982 | 1982 | "\x02id\x18\x02 \x01(\x03R\x02id\x12\x16\n" + | |
| @@ -1989,27 +1989,27 @@ const file_ermite_run_proto_rawDesc = "" + | |||
| 1989 | 1989 | "\x03ref\x18\t \x01(\tR\x03ref\x12\x10\n" + | |
| 1990 | 1990 | "\x03sha\x18\n" + | |
| 1991 | 1991 | " \x01(\tR\x03sha\x12\x14\n" + | |
| 1992 | - | "\x05actor\x18\v \x01(\tR\x05actor\x12)\n" + | |
| 1993 | - | "\x06status\x18\f \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | |
| 1992 | + | "\x05actor\x18\v \x01(\tR\x05actor\x12(\n" + | |
| 1993 | + | "\x06status\x18\f \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + | |
| 1994 | 1994 | "\n" + | |
| 1995 | - | "conclusion\x18\r \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 1995 | + | "conclusion\x18\r \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 1996 | 1996 | "conclusion\x12\x14\n" + | |
| 1997 | 1997 | "\x05error\x18\x0e \x01(\tR\x05error\x129\n" + | |
| 1998 | 1998 | "\n" + | |
| 1999 | 1999 | "created_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | |
| 2000 | 2000 | "\n" + | |
| 2001 | 2001 | "started_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | |
| 2002 | - | "\fcompleted_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xf4\x04\n" + | |
| 2002 | + | "\fcompleted_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xf5\x04\n" + | |
| 2003 | 2003 | "\x06RunJob\x12\x0e\n" + | |
| 2004 | 2004 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n" + | |
| 2005 | 2005 | "\x06run_id\x18\x02 \x01(\x03R\x05runId\x12\x18\n" + | |
| 2006 | 2006 | "\aattempt\x18\x03 \x01(\x05R\aattempt\x12\x12\n" + | |
| 2007 | 2007 | "\x04repo\x18\x04 \x01(\tR\x04repo\x12\x10\n" + | |
| 2008 | 2008 | "\x03key\x18\x05 \x01(\tR\x03key\x12\x12\n" + | |
| 2009 | - | "\x04name\x18\x06 \x01(\tR\x04name\x12)\n" + | |
| 2010 | - | "\x06status\x18\a \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | |
| 2009 | + | "\x04name\x18\x06 \x01(\tR\x04name\x12(\n" + | |
| 2010 | + | "\x06status\x18\a \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + | |
| 2011 | 2011 | "\n" + | |
| 2012 | - | "conclusion\x18\b \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 2012 | + | "conclusion\x18\b \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 2013 | 2013 | "conclusion\x12\x14\n" + | |
| 2014 | 2014 | "\x05error\x18\t \x01(\tR\x05error\x12\x16\n" + | |
| 2015 | 2015 | "\x06labels\x18\n" + | |
| @@ -2024,27 +2024,27 @@ const file_ermite_run_proto_rawDesc = "" + | |||
| 2024 | 2024 | "created_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | |
| 2025 | 2025 | "\n" + | |
| 2026 | 2026 | "started_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | |
| 2027 | - | "\fcompleted_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xbf\x02\n" + | |
| 2027 | + | "\fcompleted_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xc1\x02\n" + | |
| 2028 | 2028 | "\x04Step\x12\x16\n" + | |
| 2029 | 2029 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | |
| 2030 | 2030 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | |
| 2031 | - | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x122\n" + | |
| 2031 | + | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x124\n" + | |
| 2032 | 2032 | "\n" + | |
| 2033 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 2033 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 2034 | 2034 | "conclusion\x129\n" + | |
| 2035 | 2035 | "\n" + | |
| 2036 | 2036 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | |
| 2037 | 2037 | "\fcompleted_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x12\x1b\n" + | |
| 2038 | 2038 | "\tlog_start\x18\a \x01(\x03R\blogStart\x12\x17\n" + | |
| 2039 | - | "\alog_end\x18\b \x01(\x03R\x06logEnd\"\x97\x03\n" + | |
| 2039 | + | "\alog_end\x18\b \x01(\x03R\x06logEnd\"\x98\x03\n" + | |
| 2040 | 2040 | "\x05Check\x12\x0e\n" + | |
| 2041 | 2041 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + | |
| 2042 | 2042 | "\x04repo\x18\x02 \x01(\tR\x04repo\x12\x10\n" + | |
| 2043 | 2043 | "\x03sha\x18\x03 \x01(\tR\x03sha\x12\x12\n" + | |
| 2044 | - | "\x04name\x18\x04 \x01(\tR\x04name\x12)\n" + | |
| 2045 | - | "\x06status\x18\x05 \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | |
| 2044 | + | "\x04name\x18\x04 \x01(\tR\x04name\x12(\n" + | |
| 2045 | + | "\x06status\x18\x05 \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + | |
| 2046 | 2046 | "\n" + | |
| 2047 | - | "conclusion\x18\x06 \x01(\x0e2\x12.ermite.ConclusionR\n" + | |
| 2047 | + | "conclusion\x18\x06 \x01(\x0e2\x14.ermite.CiConclusionR\n" + | |
| 2048 | 2048 | "conclusion\x12\x15\n" + | |
| 2049 | 2049 | "\x06run_id\x18\a \x01(\x03R\x05runId\x12\x15\n" + | |
| 2050 | 2050 | "\x06job_id\x18\b \x01(\tR\x05jobId\x12\x18\n" + | |
| @@ -2065,15 +2065,15 @@ const file_ermite_run_proto_rawDesc = "" + | |||
| 2065 | 2065 | "\rregistered_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\fregisteredAt\x127\n" + | |
| 2066 | 2066 | "\tlast_seen\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\blastSeen\x12\x12\n" + | |
| 2067 | 2067 | "\x04busy\x18\n" + | |
| 2068 | - | " \x01(\bR\x04busy\"\xc0\x01\n" + | |
| 2068 | + | " \x01(\bR\x04busy\"\xbf\x01\n" + | |
| 2069 | 2069 | "\x0fListRunsRequest\x12\x12\n" + | |
| 2070 | 2070 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1b\n" + | |
| 2071 | 2071 | "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + | |
| 2072 | 2072 | "\n" + | |
| 2073 | 2073 | "page_token\x18\x03 \x01(\tR\tpageToken\x12\x1a\n" + | |
| 2074 | 2074 | "\bworkflow\x18\x04 \x01(\tR\bworkflow\x12\x16\n" + | |
| 2075 | - | "\x06branch\x18\x05 \x01(\tR\x06branch\x12)\n" + | |
| 2076 | - | "\x06status\x18\x06 \x01(\x0e2\x11.ermite.RunStatusR\x06status\"[\n" + | |
| 2075 | + | "\x06branch\x18\x05 \x01(\tR\x06branch\x12(\n" + | |
| 2076 | + | "\x06status\x18\x06 \x01(\x0e2\x10.ermite.CiStatusR\x06status\"[\n" + | |
| 2077 | 2077 | "\x10ListRunsResponse\x12\x1f\n" + | |
| 2078 | 2078 | "\x04runs\x18\x01 \x03(\v2\v.ermite.RunR\x04runs\x12&\n" + | |
| 2079 | 2079 | "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"T\n" + | |
| @@ -2186,37 +2186,37 @@ var file_ermite_run_proto_goTypes = []any{ | |||
| 2186 | 2186 | (*ListRunnersResponse)(nil), // 21: ermite.ListRunnersResponse | |
| 2187 | 2187 | (*RemoveRunnerRequest)(nil), // 22: ermite.RemoveRunnerRequest | |
| 2188 | 2188 | (*RemoveRunnerResponse)(nil), // 23: ermite.RemoveRunnerResponse | |
| 2189 | - | (RunStatus)(0), // 24: ermite.RunStatus | |
| 2190 | - | (Conclusion)(0), // 25: ermite.Conclusion | |
| 2189 | + | (CiStatus)(0), // 24: ermite.CiStatus | |
| 2190 | + | (CiConclusion)(0), // 25: ermite.CiConclusion | |
| 2191 | 2191 | (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp | |
| 2192 | 2192 | (RunnerIsolation)(0), // 27: ermite.RunnerIsolation | |
| 2193 | 2193 | (StepState)(0), // 28: ermite.StepState | |
| 2194 | 2194 | } | |
| 2195 | 2195 | var file_ermite_run_proto_depIdxs = []int32{ | |
| 2196 | - | 24, // 0: ermite.Run.status:type_name -> ermite.RunStatus | |
| 2197 | - | 25, // 1: ermite.Run.conclusion:type_name -> ermite.Conclusion | |
| 2196 | + | 24, // 0: ermite.Run.status:type_name -> ermite.CiStatus | |
| 2197 | + | 25, // 1: ermite.Run.conclusion:type_name -> ermite.CiConclusion | |
| 2198 | 2198 | 26, // 2: ermite.Run.created_at:type_name -> google.protobuf.Timestamp | |
| 2199 | 2199 | 26, // 3: ermite.Run.started_at:type_name -> google.protobuf.Timestamp | |
| 2200 | 2200 | 26, // 4: ermite.Run.completed_at:type_name -> google.protobuf.Timestamp | |
| 2201 | - | 24, // 5: ermite.RunJob.status:type_name -> ermite.RunStatus | |
| 2202 | - | 25, // 6: ermite.RunJob.conclusion:type_name -> ermite.Conclusion | |
| 2201 | + | 24, // 5: ermite.RunJob.status:type_name -> ermite.CiStatus | |
| 2202 | + | 25, // 6: ermite.RunJob.conclusion:type_name -> ermite.CiConclusion | |
| 2203 | 2203 | 27, // 7: ermite.RunJob.isolation:type_name -> ermite.RunnerIsolation | |
| 2204 | 2204 | 2, // 8: ermite.RunJob.steps:type_name -> ermite.Step | |
| 2205 | 2205 | 26, // 9: ermite.RunJob.created_at:type_name -> google.protobuf.Timestamp | |
| 2206 | 2206 | 26, // 10: ermite.RunJob.started_at:type_name -> google.protobuf.Timestamp | |
| 2207 | 2207 | 26, // 11: ermite.RunJob.completed_at:type_name -> google.protobuf.Timestamp | |
| 2208 | 2208 | 28, // 12: ermite.Step.state:type_name -> ermite.StepState | |
| 2209 | - | 25, // 13: ermite.Step.conclusion:type_name -> ermite.Conclusion | |
| 2209 | + | 25, // 13: ermite.Step.conclusion:type_name -> ermite.CiConclusion | |
| 2210 | 2210 | 26, // 14: ermite.Step.started_at:type_name -> google.protobuf.Timestamp | |
| 2211 | 2211 | 26, // 15: ermite.Step.completed_at:type_name -> google.protobuf.Timestamp | |
| 2212 | - | 24, // 16: ermite.Check.status:type_name -> ermite.RunStatus | |
| 2213 | - | 25, // 17: ermite.Check.conclusion:type_name -> ermite.Conclusion | |
| 2212 | + | 24, // 16: ermite.Check.status:type_name -> ermite.CiStatus | |
| 2213 | + | 25, // 17: ermite.Check.conclusion:type_name -> ermite.CiConclusion | |
| 2214 | 2214 | 26, // 18: ermite.Check.started_at:type_name -> google.protobuf.Timestamp | |
| 2215 | 2215 | 26, // 19: ermite.Check.completed_at:type_name -> google.protobuf.Timestamp | |
| 2216 | 2216 | 27, // 20: ermite.Runner.isolation:type_name -> ermite.RunnerIsolation | |
| 2217 | 2217 | 26, // 21: ermite.Runner.registered_at:type_name -> google.protobuf.Timestamp | |
| 2218 | 2218 | 26, // 22: ermite.Runner.last_seen:type_name -> google.protobuf.Timestamp | |
| 2219 | - | 24, // 23: ermite.ListRunsRequest.status:type_name -> ermite.RunStatus | |
| 2219 | + | 24, // 23: ermite.ListRunsRequest.status:type_name -> ermite.CiStatus | |
| 2220 | 2220 | 0, // 24: ermite.ListRunsResponse.runs:type_name -> ermite.Run | |
| 2221 | 2221 | 0, // 25: ermite.GetRunResponse.run:type_name -> ermite.Run | |
| 2222 | 2222 | 1, // 26: ermite.GetRunResponse.jobs:type_name -> ermite.RunJob | |
| @@ -66,12 +66,12 @@ type Run struct { | |||||
| 66 | Actor string `protobuf:"bytes,11,opt,name=actor,proto3" json:"actor,omitempty"` | 66 | Actor string `protobuf:"bytes,11,opt,name=actor,proto3" json:"actor,omitempty"` | ||
| 67 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | 67 | // Status is where this attempt is: QUEUED until a job starts, IN_PROGRESS | ||
| 68 | // while jobs run or wait, COMPLETED when every job is over. | 68 | // while jobs run or wait, COMPLETED when every job is over. | ||
| 69 | - | Status RunStatus `protobuf:"varint,12,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | 69 | + | Status CiStatus `protobuf:"varint,12,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` |
| 70 | // Conclusion is how this attempt ended, from its jobs' conclusions like | 70 | // Conclusion is how this attempt ended, from its jobs' conclusions like | ||
| 71 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | 71 | // GitHub: CANCELLED if it was cancelled, else FAILURE if a job failed or | ||
| 72 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | 72 | // timed out, else SUCCESS (also when jobs were skipped). Unset until | ||
| 73 | // status is COMPLETED. | 73 | // status is COMPLETED. | ||
| 74 | - | Conclusion Conclusion `protobuf:"varint,13,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 74 | + | Conclusion CiConclusion `protobuf:"varint,13,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 75 | // Error is set when the run failed without running a job because the | 75 | // Error is set when the run failed without running a job because the | ||
| 76 | // workflow could not be used: an invalid workflow file (the run then has | 76 | // workflow could not be used: an invalid workflow file (the run then has | ||
| 77 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | 77 | // no jobs and conclusion FAILURE), as GitHub's "Invalid workflow file". | ||
| @@ -197,18 +197,18 @@ func (x *Run) GetActor() string { | |||||
| 197 | return "" | 197 | return "" | ||
| 198 | } | 198 | } | ||
| 199 | 199 | ||||
| 200 | - | func (x *Run) GetStatus() RunStatus { | 200 | + | func (x *Run) GetStatus() CiStatus { |
| 201 | if x != nil { | 201 | if x != nil { | ||
| 202 | return x.Status | 202 | return x.Status | ||
| 203 | } | 203 | } | ||
| 204 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | 204 | + | return CiStatus_CI_STATUS_UNSPECIFIED |
| 205 | } | 205 | } | ||
| 206 | 206 | ||||
| 207 | - | func (x *Run) GetConclusion() Conclusion { | 207 | + | func (x *Run) GetConclusion() CiConclusion { |
| 208 | if x != nil { | 208 | if x != nil { | ||
| 209 | return x.Conclusion | 209 | return x.Conclusion | ||
| 210 | } | 210 | } | ||
| 211 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 211 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 212 | } | 212 | } | ||
| 213 | 213 | ||||
| 214 | func (x *Run) GetError() string { | 214 | func (x *Run) GetError() string { | ||
| @@ -264,9 +264,9 @@ type RunJob struct { | |||||
| 264 | Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` | 264 | Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` | ||
| 265 | // Status is where the job is. A job waits QUEUED for a runner and for the | 265 | // Status is where the job is. A job waits QUEUED for a runner and for the | ||
| 266 | // jobs it needs. | 266 | // jobs it needs. | ||
| 267 | - | Status RunStatus `protobuf:"varint,7,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | 267 | + | Status CiStatus `protobuf:"varint,7,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` |
| 268 | // Conclusion is how the job ended. Unset until status is COMPLETED. | 268 | // Conclusion is how the job ended. Unset until status is COMPLETED. | ||
| 269 | - | Conclusion Conclusion `protobuf:"varint,8,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 269 | + | Conclusion CiConclusion `protobuf:"varint,8,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 270 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | 270 | // Error explains a FAILURE, CANCELLED or TIMED_OUT that no step explains, in | ||
| 271 | // GitHub's words where it has them: the runner was lost ("The self-hosted | 271 | // GitHub's words where it has them: the runner was lost ("The self-hosted | ||
| 272 | // runner: <name> lost communication with the server..."), it received a | 272 | // runner: <name> lost communication with the server..."), it received a | ||
| @@ -373,18 +373,18 @@ func (x *RunJob) GetName() string { | |||||
| 373 | return "" | 373 | return "" | ||
| 374 | } | 374 | } | ||
| 375 | 375 | ||||
| 376 | - | func (x *RunJob) GetStatus() RunStatus { | 376 | + | func (x *RunJob) GetStatus() CiStatus { |
| 377 | if x != nil { | 377 | if x != nil { | ||
| 378 | return x.Status | 378 | return x.Status | ||
| 379 | } | 379 | } | ||
| 380 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | 380 | + | return CiStatus_CI_STATUS_UNSPECIFIED |
| 381 | } | 381 | } | ||
| 382 | 382 | ||||
| 383 | - | func (x *RunJob) GetConclusion() Conclusion { | 383 | + | func (x *RunJob) GetConclusion() CiConclusion { |
| 384 | if x != nil { | 384 | if x != nil { | ||
| 385 | return x.Conclusion | 385 | return x.Conclusion | ||
| 386 | } | 386 | } | ||
| 387 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 387 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 388 | } | 388 | } | ||
| 389 | 389 | ||||
| 390 | func (x *RunJob) GetError() string { | 390 | func (x *RunJob) GetError() string { | ||
| @@ -468,7 +468,7 @@ type Step struct { | |||||
| 468 | // State is where the step is. | 468 | // State is where the step is. | ||
| 469 | State StepState `protobuf:"varint,3,opt,name=state,proto3,enum=ermite.StepState" json:"state,omitempty"` | 469 | State StepState `protobuf:"varint,3,opt,name=state,proto3,enum=ermite.StepState" json:"state,omitempty"` | ||
| 470 | // Conclusion is how the step ended. Unset until state is COMPLETED. | 470 | // Conclusion is how the step ended. Unset until state is COMPLETED. | ||
| 471 | - | Conclusion Conclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 471 | + | Conclusion CiConclusion `protobuf:"varint,4,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 472 | // StartedAt is when the step started. Unset while PENDING. | 472 | // StartedAt is when the step started. Unset while PENDING. | ||
| 473 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | 473 | StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` | ||
| 474 | // CompletedAt is when the step ended. Unset until COMPLETED. | 474 | // CompletedAt is when the step ended. Unset until COMPLETED. | ||
| @@ -535,11 +535,11 @@ func (x *Step) GetState() StepState { | |||||
| 535 | return StepState_STEP_STATE_UNSPECIFIED | 535 | return StepState_STEP_STATE_UNSPECIFIED | ||
| 536 | } | 536 | } | ||
| 537 | 537 | ||||
| 538 | - | func (x *Step) GetConclusion() Conclusion { | 538 | + | func (x *Step) GetConclusion() CiConclusion { |
| 539 | if x != nil { | 539 | if x != nil { | ||
| 540 | return x.Conclusion | 540 | return x.Conclusion | ||
| 541 | } | 541 | } | ||
| 542 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 542 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 543 | } | 543 | } | ||
| 544 | 544 | ||||
| 545 | func (x *Step) GetStartedAt() *timestamppb.Timestamp { | 545 | func (x *Step) GetStartedAt() *timestamppb.Timestamp { | ||
| @@ -584,10 +584,10 @@ type Check struct { | |||||
| 584 | // Name is the name of the check: the RunJob.name of the job. | 584 | // Name is the name of the check: the RunJob.name of the job. | ||
| 585 | Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` | 585 | Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` | ||
| 586 | // Status is where the check is. | 586 | // Status is where the check is. | ||
| 587 | - | Status RunStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | 587 | + | Status CiStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` |
| 588 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | 588 | // Conclusion is how the check ended. Unset until status is COMPLETED. The | ||
| 589 | // value "stale" of GitHub is never used. | 589 | // value "stale" of GitHub is never used. | ||
| 590 | - | Conclusion Conclusion `protobuf:"varint,6,opt,name=conclusion,proto3,enum=ermite.Conclusion" json:"conclusion,omitempty"` | 590 | + | Conclusion CiConclusion `protobuf:"varint,6,opt,name=conclusion,proto3,enum=ermite.CiConclusion" json:"conclusion,omitempty"` |
| 591 | // RunId is the run of the job. | 591 | // RunId is the run of the job. | ||
| 592 | RunId int64 `protobuf:"varint,7,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` | 592 | RunId int64 `protobuf:"varint,7,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` | ||
| 593 | // JobId is the RunJob.id of the job, to open its page and log. | 593 | // JobId is the RunJob.id of the job, to open its page and log. | ||
| @@ -662,18 +662,18 @@ func (x *Check) GetName() string { | |||||
| 662 | return "" | 662 | return "" | ||
| 663 | } | 663 | } | ||
| 664 | 664 | ||||
| 665 | - | func (x *Check) GetStatus() RunStatus { | 665 | + | func (x *Check) GetStatus() CiStatus { |
| 666 | if x != nil { | 666 | if x != nil { | ||
| 667 | return x.Status | 667 | return x.Status | ||
| 668 | } | 668 | } | ||
| 669 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | 669 | + | return CiStatus_CI_STATUS_UNSPECIFIED |
| 670 | } | 670 | } | ||
| 671 | 671 | ||||
| 672 | - | func (x *Check) GetConclusion() Conclusion { | 672 | + | func (x *Check) GetConclusion() CiConclusion { |
| 673 | if x != nil { | 673 | if x != nil { | ||
| 674 | return x.Conclusion | 674 | return x.Conclusion | ||
| 675 | } | 675 | } | ||
| 676 | - | return Conclusion_CONCLUSION_UNSPECIFIED | 676 | + | return CiConclusion_CI_CONCLUSION_UNSPECIFIED |
| 677 | } | 677 | } | ||
| 678 | 678 | ||||
| 679 | func (x *Check) GetRunId() int64 { | 679 | func (x *Check) GetRunId() int64 { | ||
| @@ -870,9 +870,9 @@ type ListRunsRequest struct { | |||||
| 870 | // "ci.runs.filters". | 870 | // "ci.runs.filters". | ||
| 871 | Branch string `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"` | 871 | Branch string `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"` | ||
| 872 | // Status restricts the result to the runs whose latest attempt has this | 872 | // Status restricts the result to the runs whose latest attempt has this | ||
| 873 | - | // status. RUN_STATUS_UNSPECIFIED means every status. Ignored by servers | 873 | + | // status. CI_STATUS_UNSPECIFIED means every status. Ignored by servers |
| 874 | // without "ci.runs.filters". | 874 | // without "ci.runs.filters". | ||
| 875 | - | Status RunStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ermite.RunStatus" json:"status,omitempty"` | 875 | + | Status CiStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ermite.CiStatus" json:"status,omitempty"` |
| 876 | unknownFields protoimpl.UnknownFields | 876 | unknownFields protoimpl.UnknownFields | ||
| 877 | sizeCache protoimpl.SizeCache | 877 | sizeCache protoimpl.SizeCache | ||
| 878 | } | 878 | } | ||
| @@ -942,11 +942,11 @@ func (x *ListRunsRequest) GetBranch() string { | |||||
| 942 | return "" | 942 | return "" | ||
| 943 | } | 943 | } | ||
| 944 | 944 | ||||
| 945 | - | func (x *ListRunsRequest) GetStatus() RunStatus { | 945 | + | func (x *ListRunsRequest) GetStatus() CiStatus { |
| 946 | if x != nil { | 946 | if x != nil { | ||
| 947 | return x.Status | 947 | return x.Status | ||
| 948 | } | 948 | } | ||
| 949 | - | return RunStatus_RUN_STATUS_UNSPECIFIED | 949 | + | return CiStatus_CI_STATUS_UNSPECIFIED |
| 950 | } | 950 | } | ||
| 951 | 951 | ||||
| 952 | // ListRunsResponse is one page of runs. | 952 | // ListRunsResponse is one page of runs. | ||
| @@ -1976,7 +1976,7 @@ var File_ermite_run_proto protoreflect.FileDescriptor | |||||
| 1976 | 1976 | ||||
| 1977 | const file_ermite_run_proto_rawDesc = "" + | 1977 | const file_ermite_run_proto_rawDesc = "" + | ||
| 1978 | "\n" + | 1978 | "\n" + | ||
| 1979 | - | "\x10ermite/run.proto\x12\x06ermite\x1a\x13ermite/runner.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x04\n" + | 1979 | + | "\x10ermite/run.proto\x12\x06ermite\x1a\x13ermite/runner.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb6\x04\n" + |
| 1980 | "\x03Run\x12\x12\n" + | 1980 | "\x03Run\x12\x12\n" + | ||
| 1981 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x0e\n" + | 1981 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x0e\n" + | ||
| 1982 | "\x02id\x18\x02 \x01(\x03R\x02id\x12\x16\n" + | 1982 | "\x02id\x18\x02 \x01(\x03R\x02id\x12\x16\n" + | ||
| @@ -1989,27 +1989,27 @@ const file_ermite_run_proto_rawDesc = "" + | |||||
| 1989 | "\x03ref\x18\t \x01(\tR\x03ref\x12\x10\n" + | 1989 | "\x03ref\x18\t \x01(\tR\x03ref\x12\x10\n" + | ||
| 1990 | "\x03sha\x18\n" + | 1990 | "\x03sha\x18\n" + | ||
| 1991 | " \x01(\tR\x03sha\x12\x14\n" + | 1991 | " \x01(\tR\x03sha\x12\x14\n" + | ||
| 1992 | - | "\x05actor\x18\v \x01(\tR\x05actor\x12)\n" + | 1992 | + | "\x05actor\x18\v \x01(\tR\x05actor\x12(\n" + |
| 1993 | - | "\x06status\x18\f \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | 1993 | + | "\x06status\x18\f \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + |
| 1994 | "\n" + | 1994 | "\n" + | ||
| 1995 | - | "conclusion\x18\r \x01(\x0e2\x12.ermite.ConclusionR\n" + | 1995 | + | "conclusion\x18\r \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 1996 | "conclusion\x12\x14\n" + | 1996 | "conclusion\x12\x14\n" + | ||
| 1997 | "\x05error\x18\x0e \x01(\tR\x05error\x129\n" + | 1997 | "\x05error\x18\x0e \x01(\tR\x05error\x129\n" + | ||
| 1998 | "\n" + | 1998 | "\n" + | ||
| 1999 | "created_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | 1999 | "created_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | ||
| 2000 | "\n" + | 2000 | "\n" + | ||
| 2001 | "started_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | 2001 | "started_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | ||
| 2002 | - | "\fcompleted_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xf4\x04\n" + | 2002 | + | "\fcompleted_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xf5\x04\n" + |
| 2003 | "\x06RunJob\x12\x0e\n" + | 2003 | "\x06RunJob\x12\x0e\n" + | ||
| 2004 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n" + | 2004 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n" + | ||
| 2005 | "\x06run_id\x18\x02 \x01(\x03R\x05runId\x12\x18\n" + | 2005 | "\x06run_id\x18\x02 \x01(\x03R\x05runId\x12\x18\n" + | ||
| 2006 | "\aattempt\x18\x03 \x01(\x05R\aattempt\x12\x12\n" + | 2006 | "\aattempt\x18\x03 \x01(\x05R\aattempt\x12\x12\n" + | ||
| 2007 | "\x04repo\x18\x04 \x01(\tR\x04repo\x12\x10\n" + | 2007 | "\x04repo\x18\x04 \x01(\tR\x04repo\x12\x10\n" + | ||
| 2008 | "\x03key\x18\x05 \x01(\tR\x03key\x12\x12\n" + | 2008 | "\x03key\x18\x05 \x01(\tR\x03key\x12\x12\n" + | ||
| 2009 | - | "\x04name\x18\x06 \x01(\tR\x04name\x12)\n" + | 2009 | + | "\x04name\x18\x06 \x01(\tR\x04name\x12(\n" + |
| 2010 | - | "\x06status\x18\a \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | 2010 | + | "\x06status\x18\a \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + |
| 2011 | "\n" + | 2011 | "\n" + | ||
| 2012 | - | "conclusion\x18\b \x01(\x0e2\x12.ermite.ConclusionR\n" + | 2012 | + | "conclusion\x18\b \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 2013 | "conclusion\x12\x14\n" + | 2013 | "conclusion\x12\x14\n" + | ||
| 2014 | "\x05error\x18\t \x01(\tR\x05error\x12\x16\n" + | 2014 | "\x05error\x18\t \x01(\tR\x05error\x12\x16\n" + | ||
| 2015 | "\x06labels\x18\n" + | 2015 | "\x06labels\x18\n" + | ||
| @@ -2024,27 +2024,27 @@ const file_ermite_run_proto_rawDesc = "" + | |||||
| 2024 | "created_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | 2024 | "created_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + | ||
| 2025 | "\n" + | 2025 | "\n" + | ||
| 2026 | "started_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | 2026 | "started_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | ||
| 2027 | - | "\fcompleted_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xbf\x02\n" + | 2027 | + | "\fcompleted_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\"\xc1\x02\n" + |
| 2028 | "\x04Step\x12\x16\n" + | 2028 | "\x04Step\x12\x16\n" + | ||
| 2029 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | 2029 | "\x06number\x18\x01 \x01(\x05R\x06number\x12\x12\n" + | ||
| 2030 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | 2030 | "\x04name\x18\x02 \x01(\tR\x04name\x12'\n" + | ||
| 2031 | - | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x122\n" + | 2031 | + | "\x05state\x18\x03 \x01(\x0e2\x11.ermite.StepStateR\x05state\x124\n" + |
| 2032 | "\n" + | 2032 | "\n" + | ||
| 2033 | - | "conclusion\x18\x04 \x01(\x0e2\x12.ermite.ConclusionR\n" + | 2033 | + | "conclusion\x18\x04 \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 2034 | "conclusion\x129\n" + | 2034 | "conclusion\x129\n" + | ||
| 2035 | "\n" + | 2035 | "\n" + | ||
| 2036 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | 2036 | "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" + | ||
| 2037 | "\fcompleted_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x12\x1b\n" + | 2037 | "\fcompleted_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x12\x1b\n" + | ||
| 2038 | "\tlog_start\x18\a \x01(\x03R\blogStart\x12\x17\n" + | 2038 | "\tlog_start\x18\a \x01(\x03R\blogStart\x12\x17\n" + | ||
| 2039 | - | "\alog_end\x18\b \x01(\x03R\x06logEnd\"\x97\x03\n" + | 2039 | + | "\alog_end\x18\b \x01(\x03R\x06logEnd\"\x98\x03\n" + |
| 2040 | "\x05Check\x12\x0e\n" + | 2040 | "\x05Check\x12\x0e\n" + | ||
| 2041 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + | 2041 | "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + | ||
| 2042 | "\x04repo\x18\x02 \x01(\tR\x04repo\x12\x10\n" + | 2042 | "\x04repo\x18\x02 \x01(\tR\x04repo\x12\x10\n" + | ||
| 2043 | "\x03sha\x18\x03 \x01(\tR\x03sha\x12\x12\n" + | 2043 | "\x03sha\x18\x03 \x01(\tR\x03sha\x12\x12\n" + | ||
| 2044 | - | "\x04name\x18\x04 \x01(\tR\x04name\x12)\n" + | 2044 | + | "\x04name\x18\x04 \x01(\tR\x04name\x12(\n" + |
| 2045 | - | "\x06status\x18\x05 \x01(\x0e2\x11.ermite.RunStatusR\x06status\x122\n" + | 2045 | + | "\x06status\x18\x05 \x01(\x0e2\x10.ermite.CiStatusR\x06status\x124\n" + |
| 2046 | "\n" + | 2046 | "\n" + | ||
| 2047 | - | "conclusion\x18\x06 \x01(\x0e2\x12.ermite.ConclusionR\n" + | 2047 | + | "conclusion\x18\x06 \x01(\x0e2\x14.ermite.CiConclusionR\n" + |
| 2048 | "conclusion\x12\x15\n" + | 2048 | "conclusion\x12\x15\n" + | ||
| 2049 | "\x06run_id\x18\a \x01(\x03R\x05runId\x12\x15\n" + | 2049 | "\x06run_id\x18\a \x01(\x03R\x05runId\x12\x15\n" + | ||
| 2050 | "\x06job_id\x18\b \x01(\tR\x05jobId\x12\x18\n" + | 2050 | "\x06job_id\x18\b \x01(\tR\x05jobId\x12\x18\n" + | ||
| @@ -2065,15 +2065,15 @@ const file_ermite_run_proto_rawDesc = "" + | |||||
| 2065 | "\rregistered_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\fregisteredAt\x127\n" + | 2065 | "\rregistered_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\fregisteredAt\x127\n" + | ||
| 2066 | "\tlast_seen\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\blastSeen\x12\x12\n" + | 2066 | "\tlast_seen\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\blastSeen\x12\x12\n" + | ||
| 2067 | "\x04busy\x18\n" + | 2067 | "\x04busy\x18\n" + | ||
| 2068 | - | " \x01(\bR\x04busy\"\xc0\x01\n" + | 2068 | + | " \x01(\bR\x04busy\"\xbf\x01\n" + |
| 2069 | "\x0fListRunsRequest\x12\x12\n" + | 2069 | "\x0fListRunsRequest\x12\x12\n" + | ||
| 2070 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1b\n" + | 2070 | "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1b\n" + | ||
| 2071 | "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + | 2071 | "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + | ||
| 2072 | "\n" + | 2072 | "\n" + | ||
| 2073 | "page_token\x18\x03 \x01(\tR\tpageToken\x12\x1a\n" + | 2073 | "page_token\x18\x03 \x01(\tR\tpageToken\x12\x1a\n" + | ||
| 2074 | "\bworkflow\x18\x04 \x01(\tR\bworkflow\x12\x16\n" + | 2074 | "\bworkflow\x18\x04 \x01(\tR\bworkflow\x12\x16\n" + | ||
| 2075 | - | "\x06branch\x18\x05 \x01(\tR\x06branch\x12)\n" + | 2075 | + | "\x06branch\x18\x05 \x01(\tR\x06branch\x12(\n" + |
| 2076 | - | "\x06status\x18\x06 \x01(\x0e2\x11.ermite.RunStatusR\x06status\"[\n" + | 2076 | + | "\x06status\x18\x06 \x01(\x0e2\x10.ermite.CiStatusR\x06status\"[\n" + |
| 2077 | "\x10ListRunsResponse\x12\x1f\n" + | 2077 | "\x10ListRunsResponse\x12\x1f\n" + | ||
| 2078 | "\x04runs\x18\x01 \x03(\v2\v.ermite.RunR\x04runs\x12&\n" + | 2078 | "\x04runs\x18\x01 \x03(\v2\v.ermite.RunR\x04runs\x12&\n" + | ||
| 2079 | "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"T\n" + | 2079 | "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"T\n" + | ||
| @@ -2186,37 +2186,37 @@ var file_ermite_run_proto_goTypes = []any{ | |||||
| 2186 | (*ListRunnersResponse)(nil), // 21: ermite.ListRunnersResponse | 2186 | (*ListRunnersResponse)(nil), // 21: ermite.ListRunnersResponse | ||
| 2187 | (*RemoveRunnerRequest)(nil), // 22: ermite.RemoveRunnerRequest | 2187 | (*RemoveRunnerRequest)(nil), // 22: ermite.RemoveRunnerRequest | ||
| 2188 | (*RemoveRunnerResponse)(nil), // 23: ermite.RemoveRunnerResponse | 2188 | (*RemoveRunnerResponse)(nil), // 23: ermite.RemoveRunnerResponse | ||
| 2189 | - | (RunStatus)(0), // 24: ermite.RunStatus | 2189 | + | (CiStatus)(0), // 24: ermite.CiStatus |
| 2190 | - | (Conclusion)(0), // 25: ermite.Conclusion | 2190 | + | (CiConclusion)(0), // 25: ermite.CiConclusion |
| 2191 | (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp | 2191 | (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp | ||
| 2192 | (RunnerIsolation)(0), // 27: ermite.RunnerIsolation | 2192 | (RunnerIsolation)(0), // 27: ermite.RunnerIsolation | ||
| 2193 | (StepState)(0), // 28: ermite.StepState | 2193 | (StepState)(0), // 28: ermite.StepState | ||
| 2194 | } | 2194 | } | ||
| 2195 | var file_ermite_run_proto_depIdxs = []int32{ | 2195 | var file_ermite_run_proto_depIdxs = []int32{ | ||
| 2196 | - | 24, // 0: ermite.Run.status:type_name -> ermite.RunStatus | 2196 | + | 24, // 0: ermite.Run.status:type_name -> ermite.CiStatus |
| 2197 | - | 25, // 1: ermite.Run.conclusion:type_name -> ermite.Conclusion | 2197 | + | 25, // 1: ermite.Run.conclusion:type_name -> ermite.CiConclusion |
| 2198 | 26, // 2: ermite.Run.created_at:type_name -> google.protobuf.Timestamp | 2198 | 26, // 2: ermite.Run.created_at:type_name -> google.protobuf.Timestamp | ||
| 2199 | 26, // 3: ermite.Run.started_at:type_name -> google.protobuf.Timestamp | 2199 | 26, // 3: ermite.Run.started_at:type_name -> google.protobuf.Timestamp | ||
| 2200 | 26, // 4: ermite.Run.completed_at:type_name -> google.protobuf.Timestamp | 2200 | 26, // 4: ermite.Run.completed_at:type_name -> google.protobuf.Timestamp | ||
| 2201 | - | 24, // 5: ermite.RunJob.status:type_name -> ermite.RunStatus | 2201 | + | 24, // 5: ermite.RunJob.status:type_name -> ermite.CiStatus |
| 2202 | - | 25, // 6: ermite.RunJob.conclusion:type_name -> ermite.Conclusion | 2202 | + | 25, // 6: ermite.RunJob.conclusion:type_name -> ermite.CiConclusion |
| 2203 | 27, // 7: ermite.RunJob.isolation:type_name -> ermite.RunnerIsolation | 2203 | 27, // 7: ermite.RunJob.isolation:type_name -> ermite.RunnerIsolation | ||
| 2204 | 2, // 8: ermite.RunJob.steps:type_name -> ermite.Step | 2204 | 2, // 8: ermite.RunJob.steps:type_name -> ermite.Step | ||
| 2205 | 26, // 9: ermite.RunJob.created_at:type_name -> google.protobuf.Timestamp | 2205 | 26, // 9: ermite.RunJob.created_at:type_name -> google.protobuf.Timestamp | ||
| 2206 | 26, // 10: ermite.RunJob.started_at:type_name -> google.protobuf.Timestamp | 2206 | 26, // 10: ermite.RunJob.started_at:type_name -> google.protobuf.Timestamp | ||
| 2207 | 26, // 11: ermite.RunJob.completed_at:type_name -> google.protobuf.Timestamp | 2207 | 26, // 11: ermite.RunJob.completed_at:type_name -> google.protobuf.Timestamp | ||
| 2208 | 28, // 12: ermite.Step.state:type_name -> ermite.StepState | 2208 | 28, // 12: ermite.Step.state:type_name -> ermite.StepState | ||
| 2209 | - | 25, // 13: ermite.Step.conclusion:type_name -> ermite.Conclusion | 2209 | + | 25, // 13: ermite.Step.conclusion:type_name -> ermite.CiConclusion |
| 2210 | 26, // 14: ermite.Step.started_at:type_name -> google.protobuf.Timestamp | 2210 | 26, // 14: ermite.Step.started_at:type_name -> google.protobuf.Timestamp | ||
| 2211 | 26, // 15: ermite.Step.completed_at:type_name -> google.protobuf.Timestamp | 2211 | 26, // 15: ermite.Step.completed_at:type_name -> google.protobuf.Timestamp | ||
| 2212 | - | 24, // 16: ermite.Check.status:type_name -> ermite.RunStatus | 2212 | + | 24, // 16: ermite.Check.status:type_name -> ermite.CiStatus |
| 2213 | - | 25, // 17: ermite.Check.conclusion:type_name -> ermite.Conclusion | 2213 | + | 25, // 17: ermite.Check.conclusion:type_name -> ermite.CiConclusion |
| 2214 | 26, // 18: ermite.Check.started_at:type_name -> google.protobuf.Timestamp | 2214 | 26, // 18: ermite.Check.started_at:type_name -> google.protobuf.Timestamp | ||
| 2215 | 26, // 19: ermite.Check.completed_at:type_name -> google.protobuf.Timestamp | 2215 | 26, // 19: ermite.Check.completed_at:type_name -> google.protobuf.Timestamp | ||
| 2216 | 27, // 20: ermite.Runner.isolation:type_name -> ermite.RunnerIsolation | 2216 | 27, // 20: ermite.Runner.isolation:type_name -> ermite.RunnerIsolation | ||
| 2217 | 26, // 21: ermite.Runner.registered_at:type_name -> google.protobuf.Timestamp | 2217 | 26, // 21: ermite.Runner.registered_at:type_name -> google.protobuf.Timestamp | ||
| 2218 | 26, // 22: ermite.Runner.last_seen:type_name -> google.protobuf.Timestamp | 2218 | 26, // 22: ermite.Runner.last_seen:type_name -> google.protobuf.Timestamp | ||
| 2219 | - | 24, // 23: ermite.ListRunsRequest.status:type_name -> ermite.RunStatus | 2219 | + | 24, // 23: ermite.ListRunsRequest.status:type_name -> ermite.CiStatus |
| 2220 | 0, // 24: ermite.ListRunsResponse.runs:type_name -> ermite.Run | 2220 | 0, // 24: ermite.ListRunsResponse.runs:type_name -> ermite.Run | ||
| 2221 | 0, // 25: ermite.GetRunResponse.run:type_name -> ermite.Run | 2221 | 0, // 25: ermite.GetRunResponse.run:type_name -> ermite.Run | ||
| 2222 | 1, // 26: ermite.GetRunResponse.jobs:type_name -> ermite.RunJob | 2222 | 1, // 26: ermite.GetRunResponse.jobs:type_name -> ermite.RunJob | ||
M gen/ermite/runner.pb.go +106 -107 generated file: collapsed
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. | ||