@xeonr/pipelines-sdk 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +334 -2
- package/dist/auth.d.ts +72 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +139 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +129 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +106 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +113 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +115 -0
- package/dist/errors.js.map +1 -0
- package/dist/gen/buf/validate/validate_pb.d.ts +4828 -0
- package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/gen/buf/validate/validate_pb.js +357 -0
- package/dist/gen/buf/validate/validate_pb.js.map +1 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts +24 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts.map +1 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.js +37 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.js.map +1 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts +2245 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts.map +1 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js +410 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +1031 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +219 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts +190 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js +53 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +1161 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +269 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +1061 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +221 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +580 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.js +483 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +762 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js +190 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +919 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js +272 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +895 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js +277 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1237 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js +204 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +647 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +181 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +381 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +145 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts +313 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.js +235 -0
- package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -0
- package/dist/handler.d.ts +94 -0
- package/dist/handler.d.ts.map +1 -0
- package/dist/handler.js +18 -0
- package/dist/handler.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/time.d.ts +8 -0
- package/dist/internal/time.d.ts.map +1 -0
- package/dist/internal/time.js +25 -0
- package/dist/internal/time.js.map +1 -0
- package/dist/logship.d.ts +117 -0
- package/dist/logship.d.ts.map +1 -0
- package/dist/logship.js +319 -0
- package/dist/logship.js.map +1 -0
- package/dist/testing/index.d.ts +215 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +1015 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/transport.d.ts +43 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +44 -0
- package/dist/transport.js.map +1 -0
- package/dist/worker.d.ts +236 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +733 -0
- package/dist/worker.js.map +1 -0
- package/package.json +70 -3
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file xeonr/pipelines/v1/common.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_xeonr_pipelines_v1_common: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Resource is what a run is about: a repository, an upload, a library.
|
|
9
|
+
* Kinds and their JSON are the consuming product's. The platform stores
|
|
10
|
+
* them, lets definitions read the JSON, and scopes step locks and
|
|
11
|
+
* resource-level secrets to (kind, id). It never interprets them.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message xeonr.pipelines.v1.Resource
|
|
14
|
+
*/
|
|
15
|
+
export type Resource = Message<"xeonr.pipelines.v1.Resource"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Kind names the product's resource type.
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string kind = 1;
|
|
20
|
+
*/
|
|
21
|
+
kind: string;
|
|
22
|
+
/**
|
|
23
|
+
* ID is the product's stable identifier for the resource. Use one that
|
|
24
|
+
* survives a rename.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string id = 2;
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* JSON is the resource as the product describes it when the run starts,
|
|
31
|
+
* denormalised onto the run. Definitions read it as `${{ resource.<path> }}`.
|
|
32
|
+
* At most 64 KiB encoded.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: google.protobuf.Struct json = 3;
|
|
35
|
+
*/
|
|
36
|
+
json?: JsonObject | undefined;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message xeonr.pipelines.v1.Resource.
|
|
40
|
+
* Use `create(ResourceSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ResourceSchema: GenMessage<Resource>;
|
|
43
|
+
/**
|
|
44
|
+
* ResourceRef names a resource without its JSON, for filters and scopes.
|
|
45
|
+
*
|
|
46
|
+
* @generated from message xeonr.pipelines.v1.ResourceRef
|
|
47
|
+
*/
|
|
48
|
+
export type ResourceRef = Message<"xeonr.pipelines.v1.ResourceRef"> & {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: string kind = 1;
|
|
51
|
+
*/
|
|
52
|
+
kind: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string id = 2;
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message xeonr.pipelines.v1.ResourceRef.
|
|
60
|
+
* Use `create(ResourceRefSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const ResourceRefSchema: GenMessage<ResourceRef>;
|
|
63
|
+
/**
|
|
64
|
+
* Resources is an amount of compute. On a node's `runs_on` it is the least
|
|
65
|
+
* the node needs; on a pool it is what one slot of one instance offers. A
|
|
66
|
+
* zero field asks for, or promises, nothing in particular.
|
|
67
|
+
*
|
|
68
|
+
* @generated from message xeonr.pipelines.v1.Resources
|
|
69
|
+
*/
|
|
70
|
+
export type Resources = Message<"xeonr.pipelines.v1.Resources"> & {
|
|
71
|
+
/**
|
|
72
|
+
* CPUMillis is CPU in thousandths of a core.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: uint32 cpu_millis = 1;
|
|
75
|
+
*/
|
|
76
|
+
cpuMillis: number;
|
|
77
|
+
/**
|
|
78
|
+
* MemoryBytes is memory in bytes.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: uint64 memory_bytes = 2;
|
|
81
|
+
*/
|
|
82
|
+
memoryBytes: bigint;
|
|
83
|
+
/**
|
|
84
|
+
* GPUCount is whole GPUs.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: uint32 gpu_count = 3;
|
|
87
|
+
*/
|
|
88
|
+
gpuCount: number;
|
|
89
|
+
/**
|
|
90
|
+
* EphemeralStorageBytes is scratch disk in bytes.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: uint64 ephemeral_storage_bytes = 4;
|
|
93
|
+
*/
|
|
94
|
+
ephemeralStorageBytes: bigint;
|
|
95
|
+
/**
|
|
96
|
+
* Extended holds anything else a pool advertises and a node may require,
|
|
97
|
+
* matched by exact value: a GPU model, a CPU feature.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: map<string, string> extended = 5;
|
|
100
|
+
*/
|
|
101
|
+
extended: {
|
|
102
|
+
[key: string]: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message xeonr.pipelines.v1.Resources.
|
|
107
|
+
* Use `create(ResourcesSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
export declare const ResourcesSchema: GenMessage<Resources>;
|
|
110
|
+
/**
|
|
111
|
+
* PackageRef pins one version of one step package.
|
|
112
|
+
*
|
|
113
|
+
* @generated from message xeonr.pipelines.v1.PackageRef
|
|
114
|
+
*/
|
|
115
|
+
export type PackageRef = Message<"xeonr.pipelines.v1.PackageRef"> & {
|
|
116
|
+
/**
|
|
117
|
+
* Name is `<namespace>/<name>`.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string name = 1;
|
|
120
|
+
*/
|
|
121
|
+
name: string;
|
|
122
|
+
/**
|
|
123
|
+
* Version is an exact semantic version. Ranges and tags are not accepted:
|
|
124
|
+
* a snapshot freezes exactly what ran.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string version = 2;
|
|
127
|
+
*/
|
|
128
|
+
version: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message xeonr.pipelines.v1.PackageRef.
|
|
132
|
+
* Use `create(PackageRefSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export declare const PackageRefSchema: GenMessage<PackageRef>;
|
|
135
|
+
/**
|
|
136
|
+
* RunState is where a run is. A run is terminal in SUCCEEDED, FAILED or
|
|
137
|
+
* CANCELLED, and only once every one of its nodes is terminal.
|
|
138
|
+
*
|
|
139
|
+
* @generated from enum xeonr.pipelines.v1.RunState
|
|
140
|
+
*/
|
|
141
|
+
export declare enum RunState {
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum value: RUN_STATE_UNSPECIFIED = 0;
|
|
144
|
+
*/
|
|
145
|
+
UNSPECIFIED = 0,
|
|
146
|
+
/**
|
|
147
|
+
* Accepted and snapshotted, with no node dispatched yet. A delayed job
|
|
148
|
+
* (CreateJob with a delay) stays here until its `not_before`.
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum value: RUN_STATE_QUEUED = 1;
|
|
151
|
+
*/
|
|
152
|
+
QUEUED = 1,
|
|
153
|
+
/**
|
|
154
|
+
* At least one node has been made ready.
|
|
155
|
+
*
|
|
156
|
+
* @generated from enum value: RUN_STATE_RUNNING = 2;
|
|
157
|
+
*/
|
|
158
|
+
RUNNING = 2,
|
|
159
|
+
/**
|
|
160
|
+
* A cancel was requested. No new attempt is created; running attempts are
|
|
161
|
+
* being told to stop and get the cancel grace to finish.
|
|
162
|
+
*
|
|
163
|
+
* @generated from enum value: RUN_STATE_CANCELLING = 3;
|
|
164
|
+
*/
|
|
165
|
+
CANCELLING = 3,
|
|
166
|
+
/**
|
|
167
|
+
* Every node ended SUCCEEDED, SKIPPED or FAILED_ALLOWED. A run that
|
|
168
|
+
* succeeded with allowed failures says so in `Run.has_allowed_failures`.
|
|
169
|
+
*
|
|
170
|
+
* @generated from enum value: RUN_STATE_SUCCEEDED = 4;
|
|
171
|
+
*/
|
|
172
|
+
SUCCEEDED = 4,
|
|
173
|
+
/**
|
|
174
|
+
* At least one node ended FAILED. Independent branches still ran to
|
|
175
|
+
* completion first; the run reports the first hard failure's class.
|
|
176
|
+
*
|
|
177
|
+
* @generated from enum value: RUN_STATE_FAILED = 5;
|
|
178
|
+
*/
|
|
179
|
+
FAILED = 5,
|
|
180
|
+
/**
|
|
181
|
+
* Cancelled by a caller, or superseded by a newer run.
|
|
182
|
+
*
|
|
183
|
+
* @generated from enum value: RUN_STATE_CANCELLED = 6;
|
|
184
|
+
*/
|
|
185
|
+
CANCELLED = 6
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Describes the enum xeonr.pipelines.v1.RunState.
|
|
189
|
+
*/
|
|
190
|
+
export declare const RunStateSchema: GenEnum<RunState>;
|
|
191
|
+
/**
|
|
192
|
+
* NodeState is where one node of a run is (the plan's `step_runs.state`).
|
|
193
|
+
* Retries happen inside a node and never show here: a node is RUNNING while
|
|
194
|
+
* any of its attempts is live or another is still owed.
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum xeonr.pipelines.v1.NodeState
|
|
197
|
+
*/
|
|
198
|
+
export declare enum NodeState {
|
|
199
|
+
/**
|
|
200
|
+
* @generated from enum value: NODE_STATE_UNSPECIFIED = 0;
|
|
201
|
+
*/
|
|
202
|
+
UNSPECIFIED = 0,
|
|
203
|
+
/**
|
|
204
|
+
* Waiting for its needs to become terminal.
|
|
205
|
+
*
|
|
206
|
+
* @generated from enum value: NODE_STATE_PENDING = 1;
|
|
207
|
+
*/
|
|
208
|
+
PENDING = 1,
|
|
209
|
+
/**
|
|
210
|
+
* Its needs are satisfied and an attempt is offered, or about to be.
|
|
211
|
+
*
|
|
212
|
+
* @generated from enum value: NODE_STATE_READY = 2;
|
|
213
|
+
*/
|
|
214
|
+
READY = 2,
|
|
215
|
+
/**
|
|
216
|
+
* Ready, but waiting for a step lock another node holds. Milestone 2.
|
|
217
|
+
*
|
|
218
|
+
* @generated from enum value: NODE_STATE_BLOCKED = 3;
|
|
219
|
+
*/
|
|
220
|
+
BLOCKED = 3,
|
|
221
|
+
/**
|
|
222
|
+
* A manual node waiting for ReleaseNode, within its bounded wait.
|
|
223
|
+
* Milestone 2.
|
|
224
|
+
*
|
|
225
|
+
* @generated from enum value: NODE_STATE_WAITING_MANUAL = 4;
|
|
226
|
+
*/
|
|
227
|
+
WAITING_MANUAL = 4,
|
|
228
|
+
/**
|
|
229
|
+
* An attempt has started user code.
|
|
230
|
+
*
|
|
231
|
+
* @generated from enum value: NODE_STATE_RUNNING = 5;
|
|
232
|
+
*/
|
|
233
|
+
RUNNING = 5,
|
|
234
|
+
/**
|
|
235
|
+
* @generated from enum value: NODE_STATE_SUCCEEDED = 6;
|
|
236
|
+
*/
|
|
237
|
+
SUCCEEDED = 6,
|
|
238
|
+
/**
|
|
239
|
+
* Failed with no retry left. Its transitive dependents are skipped, unless
|
|
240
|
+
* they set `run_after_failure`.
|
|
241
|
+
*
|
|
242
|
+
* @generated from enum value: NODE_STATE_FAILED = 7;
|
|
243
|
+
*/
|
|
244
|
+
FAILED = 7,
|
|
245
|
+
/**
|
|
246
|
+
* Failed, and `continue_on_error` allowed it: dependents proceed and the
|
|
247
|
+
* run can still succeed, with a warning.
|
|
248
|
+
*
|
|
249
|
+
* @generated from enum value: NODE_STATE_FAILED_ALLOWED = 8;
|
|
250
|
+
*/
|
|
251
|
+
FAILED_ALLOWED = 8,
|
|
252
|
+
/**
|
|
253
|
+
* Never ran: a need failed or was skipped, or the run was cancelled before
|
|
254
|
+
* the node started.
|
|
255
|
+
*
|
|
256
|
+
* @generated from enum value: NODE_STATE_SKIPPED = 9;
|
|
257
|
+
*/
|
|
258
|
+
SKIPPED = 9,
|
|
259
|
+
/**
|
|
260
|
+
* Was running, or about to, when the run was cancelled.
|
|
261
|
+
*
|
|
262
|
+
* @generated from enum value: NODE_STATE_CANCELLED = 10;
|
|
263
|
+
*/
|
|
264
|
+
CANCELLED = 10
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Describes the enum xeonr.pipelines.v1.NodeState.
|
|
268
|
+
*/
|
|
269
|
+
export declare const NodeStateSchema: GenEnum<NodeState>;
|
|
270
|
+
/**
|
|
271
|
+
* AttemptState is where one attempt of a node is. Every transition is a
|
|
272
|
+
* compare-and-swap on (state, runner, claim epoch):
|
|
273
|
+
*
|
|
274
|
+
* OFFERED -> CLAIMED a worker claimed it
|
|
275
|
+
* CLAIMED -> RUNNING the worker started it; user
|
|
276
|
+
* code starts only after this
|
|
277
|
+
* RUNNING -> SUCCEEDED | FAILED | CANCELLED the worker completed it
|
|
278
|
+
* CLAIMED -> OFFERED the lease lapsed before the
|
|
279
|
+
* start: nothing ran, the claim
|
|
280
|
+
* epoch is bumped and no retry
|
|
281
|
+
* is spent
|
|
282
|
+
* CLAIMED -> OFFERED the worker released it
|
|
283
|
+
* (ReleaseAttempt): the same,
|
|
284
|
+
* at once
|
|
285
|
+
* RUNNING -> ABANDONED the lease lapsed after the
|
|
286
|
+
* start
|
|
287
|
+
* OFFERED -> CANCELLED the run was cancelled first
|
|
288
|
+
*
|
|
289
|
+
* @generated from enum xeonr.pipelines.v1.AttemptState
|
|
290
|
+
*/
|
|
291
|
+
export declare enum AttemptState {
|
|
292
|
+
/**
|
|
293
|
+
* @generated from enum value: ATTEMPT_STATE_UNSPECIFIED = 0;
|
|
294
|
+
*/
|
|
295
|
+
UNSPECIFIED = 0,
|
|
296
|
+
/**
|
|
297
|
+
* @generated from enum value: ATTEMPT_STATE_OFFERED = 1;
|
|
298
|
+
*/
|
|
299
|
+
OFFERED = 1,
|
|
300
|
+
/**
|
|
301
|
+
* @generated from enum value: ATTEMPT_STATE_CLAIMED = 2;
|
|
302
|
+
*/
|
|
303
|
+
CLAIMED = 2,
|
|
304
|
+
/**
|
|
305
|
+
* @generated from enum value: ATTEMPT_STATE_RUNNING = 3;
|
|
306
|
+
*/
|
|
307
|
+
RUNNING = 3,
|
|
308
|
+
/**
|
|
309
|
+
* @generated from enum value: ATTEMPT_STATE_SUCCEEDED = 4;
|
|
310
|
+
*/
|
|
311
|
+
SUCCEEDED = 4,
|
|
312
|
+
/**
|
|
313
|
+
* @generated from enum value: ATTEMPT_STATE_FAILED = 5;
|
|
314
|
+
*/
|
|
315
|
+
FAILED = 5,
|
|
316
|
+
/**
|
|
317
|
+
* @generated from enum value: ATTEMPT_STATE_CANCELLED = 6;
|
|
318
|
+
*/
|
|
319
|
+
CANCELLED = 6,
|
|
320
|
+
/**
|
|
321
|
+
* The worker stopped renewing its lease while RUNNING. Late writes from it
|
|
322
|
+
* are refused and its outputs stay invisible.
|
|
323
|
+
*
|
|
324
|
+
* @generated from enum value: ATTEMPT_STATE_ABANDONED = 7;
|
|
325
|
+
*/
|
|
326
|
+
ABANDONED = 7
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Describes the enum xeonr.pipelines.v1.AttemptState.
|
|
330
|
+
*/
|
|
331
|
+
export declare const AttemptStateSchema: GenEnum<AttemptState>;
|
|
332
|
+
/**
|
|
333
|
+
* FailureClass is why an attempt, and so a node or run, did not succeed. It
|
|
334
|
+
* is a closed set: the platform classifies, a step never names its own class.
|
|
335
|
+
* `Retry.when` selects which classes are retried. The platform's default
|
|
336
|
+
* retries only classes where no user code can have misbehaved (ABANDONED,
|
|
337
|
+
* RUNNER_CRASHED, IMAGE_PULL, STAGING_FAILED, INTERRUPTED, INTERNAL), and
|
|
338
|
+
* never OOM. An SDK worker can say a HANDLER_ERROR is transient or permanent
|
|
339
|
+
* (CompleteAttemptRequest.handler_failure_kind); the class stays
|
|
340
|
+
* HANDLER_ERROR and the server decides the retry.
|
|
341
|
+
*
|
|
342
|
+
* @generated from enum xeonr.pipelines.v1.FailureClass
|
|
343
|
+
*/
|
|
344
|
+
export declare enum FailureClass {
|
|
345
|
+
/**
|
|
346
|
+
* @generated from enum value: FAILURE_CLASS_UNSPECIFIED = 0;
|
|
347
|
+
*/
|
|
348
|
+
UNSPECIFIED = 0,
|
|
349
|
+
/**
|
|
350
|
+
* User code exited non-zero. The exit code is on the attempt.
|
|
351
|
+
*
|
|
352
|
+
* @generated from enum value: FAILURE_CLASS_EXIT_CODE = 1;
|
|
353
|
+
*/
|
|
354
|
+
EXIT_CODE = 1,
|
|
355
|
+
/**
|
|
356
|
+
* The step was killed for exceeding its memory.
|
|
357
|
+
*
|
|
358
|
+
* @generated from enum value: FAILURE_CLASS_OOM = 2;
|
|
359
|
+
*/
|
|
360
|
+
OOM = 2,
|
|
361
|
+
/**
|
|
362
|
+
* The attempt ran past the node's timeout.
|
|
363
|
+
*
|
|
364
|
+
* @generated from enum value: FAILURE_CLASS_TIMEOUT = 3;
|
|
365
|
+
*/
|
|
366
|
+
TIMEOUT = 3,
|
|
367
|
+
/**
|
|
368
|
+
* The step image, or a service image, could not be pulled.
|
|
369
|
+
*
|
|
370
|
+
* @generated from enum value: FAILURE_CLASS_IMAGE_PULL = 4;
|
|
371
|
+
*/
|
|
372
|
+
IMAGE_PULL = 4,
|
|
373
|
+
/**
|
|
374
|
+
* Inputs could not be staged, or the sandbox could not be prepared, before
|
|
375
|
+
* user code started.
|
|
376
|
+
*
|
|
377
|
+
* @generated from enum value: FAILURE_CLASS_STAGING_FAILED = 5;
|
|
378
|
+
*/
|
|
379
|
+
STAGING_FAILED = 5,
|
|
380
|
+
/**
|
|
381
|
+
* Granted secrets could not be fetched, decrypted or sealed. The attempt
|
|
382
|
+
* never degrades to running without them.
|
|
383
|
+
*
|
|
384
|
+
* @generated from enum value: FAILURE_CLASS_SECRETS_UNAVAILABLE = 6;
|
|
385
|
+
*/
|
|
386
|
+
SECRETS_UNAVAILABLE = 6,
|
|
387
|
+
/**
|
|
388
|
+
* A granted secret's policy refused this attempt (its attested facts, step
|
|
389
|
+
* package or tier). A policy denies by default, so this is also the class
|
|
390
|
+
* for a dimension the policy left empty without setting its wildcard.
|
|
391
|
+
* Decided when secrets are sealed, against the policy as it is then.
|
|
392
|
+
*
|
|
393
|
+
* @generated from enum value: FAILURE_CLASS_POLICY_DENIED = 7;
|
|
394
|
+
*/
|
|
395
|
+
POLICY_DENIED = 7,
|
|
396
|
+
/**
|
|
397
|
+
* The worker's lease lapsed while the attempt was running.
|
|
398
|
+
*
|
|
399
|
+
* @generated from enum value: FAILURE_CLASS_ABANDONED = 8;
|
|
400
|
+
*/
|
|
401
|
+
ABANDONED = 8,
|
|
402
|
+
/**
|
|
403
|
+
* The runner reported that it, not the step, failed.
|
|
404
|
+
*
|
|
405
|
+
* @generated from enum value: FAILURE_CLASS_RUNNER_CRASHED = 9;
|
|
406
|
+
*/
|
|
407
|
+
RUNNER_CRASHED = 9,
|
|
408
|
+
/**
|
|
409
|
+
* The attempt was stopped because its run was cancelled.
|
|
410
|
+
*
|
|
411
|
+
* @generated from enum value: FAILURE_CLASS_CANCELLED = 10;
|
|
412
|
+
*/
|
|
413
|
+
CANCELLED = 10,
|
|
414
|
+
/**
|
|
415
|
+
* User code exited zero without writing an output its manifest requires.
|
|
416
|
+
*
|
|
417
|
+
* @generated from enum value: FAILURE_CLASS_MISSING_OUTPUT = 11;
|
|
418
|
+
*/
|
|
419
|
+
MISSING_OUTPUT = 11,
|
|
420
|
+
/**
|
|
421
|
+
* An input reference could not be resolved at dispatch, or a resolved
|
|
422
|
+
* input or a written output did not match the manifest's schema.
|
|
423
|
+
*
|
|
424
|
+
* @generated from enum value: FAILURE_CLASS_INVALID_IO = 12;
|
|
425
|
+
*/
|
|
426
|
+
INVALID_IO = 12,
|
|
427
|
+
/**
|
|
428
|
+
* A worker handler returned an error or panicked (SDK workers have no exit
|
|
429
|
+
* code). Milestone 2.
|
|
430
|
+
*
|
|
431
|
+
* @generated from enum value: FAILURE_CLASS_HANDLER_ERROR = 13;
|
|
432
|
+
*/
|
|
433
|
+
HANDLER_ERROR = 13,
|
|
434
|
+
/**
|
|
435
|
+
* A manual node was not released within its bounded wait. Milestone 2.
|
|
436
|
+
*
|
|
437
|
+
* @generated from enum value: FAILURE_CLASS_MANUAL_EXPIRED = 14;
|
|
438
|
+
*/
|
|
439
|
+
MANUAL_EXPIRED = 14,
|
|
440
|
+
/**
|
|
441
|
+
* A trigger node's downstream run did not succeed. Milestone 2.
|
|
442
|
+
*
|
|
443
|
+
* @generated from enum value: FAILURE_CLASS_DOWNSTREAM_FAILED = 15;
|
|
444
|
+
*/
|
|
445
|
+
DOWNSTREAM_FAILED = 15,
|
|
446
|
+
/**
|
|
447
|
+
* The platform itself failed. Never the author's fault.
|
|
448
|
+
*
|
|
449
|
+
* @generated from enum value: FAILURE_CLASS_INTERNAL = 16;
|
|
450
|
+
*/
|
|
451
|
+
INTERNAL = 16,
|
|
452
|
+
/**
|
|
453
|
+
* The worker stopped user code because it was shutting down, and said so
|
|
454
|
+
* (TERMINATION_INTERRUPTED). Transient. On an `interruptible` node the
|
|
455
|
+
* next attempt is offered at once and does not count against
|
|
456
|
+
* `Retry.max`, up to a bound the platform's policy sets; on any other node
|
|
457
|
+
* it is retried like any transient class, counted, and only if the node's
|
|
458
|
+
* policy retries it (a step with outside effects declares `retry: 0` and
|
|
459
|
+
* is not run again). Milestone 2.
|
|
460
|
+
*
|
|
461
|
+
* @generated from enum value: FAILURE_CLASS_INTERRUPTED = 17;
|
|
462
|
+
*/
|
|
463
|
+
INTERRUPTED = 17
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Describes the enum xeonr.pipelines.v1.FailureClass.
|
|
467
|
+
*/
|
|
468
|
+
export declare const FailureClassSchema: GenEnum<FailureClass>;
|
|
469
|
+
/**
|
|
470
|
+
* Termination is how an attempt ended as the worker saw it, reported on
|
|
471
|
+
* CompleteAttempt. The platform derives the FailureClass from it together
|
|
472
|
+
* with the exit code and its own checks (required outputs, schemas).
|
|
473
|
+
*
|
|
474
|
+
* @generated from enum xeonr.pipelines.v1.Termination
|
|
475
|
+
*/
|
|
476
|
+
export declare enum Termination {
|
|
477
|
+
/**
|
|
478
|
+
* @generated from enum value: TERMINATION_UNSPECIFIED = 0;
|
|
479
|
+
*/
|
|
480
|
+
UNSPECIFIED = 0,
|
|
481
|
+
/**
|
|
482
|
+
* The process exited by itself; the exit code says how.
|
|
483
|
+
*
|
|
484
|
+
* @generated from enum value: TERMINATION_EXITED = 1;
|
|
485
|
+
*/
|
|
486
|
+
EXITED = 1,
|
|
487
|
+
/**
|
|
488
|
+
* Killed for exceeding its memory.
|
|
489
|
+
*
|
|
490
|
+
* @generated from enum value: TERMINATION_OOM_KILLED = 2;
|
|
491
|
+
*/
|
|
492
|
+
OOM_KILLED = 2,
|
|
493
|
+
/**
|
|
494
|
+
* Killed by the worker at the deadline.
|
|
495
|
+
*
|
|
496
|
+
* @generated from enum value: TERMINATION_TIMED_OUT = 3;
|
|
497
|
+
*/
|
|
498
|
+
TIMED_OUT = 3,
|
|
499
|
+
/**
|
|
500
|
+
* Stopped by the worker because a heartbeat answered cancel.
|
|
501
|
+
*
|
|
502
|
+
* @generated from enum value: TERMINATION_CANCELLED = 4;
|
|
503
|
+
*/
|
|
504
|
+
CANCELLED = 4,
|
|
505
|
+
/**
|
|
506
|
+
* The step or a service image could not be pulled.
|
|
507
|
+
*
|
|
508
|
+
* @generated from enum value: TERMINATION_IMAGE_PULL_FAILED = 5;
|
|
509
|
+
*/
|
|
510
|
+
IMAGE_PULL_FAILED = 5,
|
|
511
|
+
/**
|
|
512
|
+
* Staging failed before user code started.
|
|
513
|
+
*
|
|
514
|
+
* @generated from enum value: TERMINATION_STAGING_FAILED = 6;
|
|
515
|
+
*/
|
|
516
|
+
STAGING_FAILED = 6,
|
|
517
|
+
/**
|
|
518
|
+
* The sealed secrets could not be obtained or opened by the worker.
|
|
519
|
+
*
|
|
520
|
+
* @generated from enum value: TERMINATION_SECRETS_FAILED = 7;
|
|
521
|
+
*/
|
|
522
|
+
SECRETS_FAILED = 7,
|
|
523
|
+
/**
|
|
524
|
+
* The worker itself failed (container runtime error, disk full).
|
|
525
|
+
*
|
|
526
|
+
* @generated from enum value: TERMINATION_RUNNER_ERROR = 8;
|
|
527
|
+
*/
|
|
528
|
+
RUNNER_ERROR = 8,
|
|
529
|
+
/**
|
|
530
|
+
* A worker handler returned an error or panicked. An SDK worker may say
|
|
531
|
+
* whether it is transient or permanent with
|
|
532
|
+
* CompleteAttemptRequest.handler_failure_kind.
|
|
533
|
+
*
|
|
534
|
+
* @generated from enum value: TERMINATION_HANDLER_ERROR = 9;
|
|
535
|
+
*/
|
|
536
|
+
HANDLER_ERROR = 9,
|
|
537
|
+
/**
|
|
538
|
+
* The worker stopped user code because the worker itself is shutting down
|
|
539
|
+
* (a deploy, a drain), not because the step failed or a cancel was asked.
|
|
540
|
+
* Classed FAILURE_CLASS_INTERRUPTED. A worker reports it only for a
|
|
541
|
+
* RUNNING attempt it stopped; one it claimed but never started it hands
|
|
542
|
+
* back with WorkerService.ReleaseAttempt instead. Milestone 2.
|
|
543
|
+
*
|
|
544
|
+
* @generated from enum value: TERMINATION_INTERRUPTED = 10;
|
|
545
|
+
*/
|
|
546
|
+
INTERRUPTED = 10
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Describes the enum xeonr.pipelines.v1.Termination.
|
|
550
|
+
*/
|
|
551
|
+
export declare const TerminationSchema: GenEnum<Termination>;
|
|
552
|
+
/**
|
|
553
|
+
* SecretType is how a granted secret reaches the step.
|
|
554
|
+
*
|
|
555
|
+
* @generated from enum xeonr.pipelines.v1.SecretType
|
|
556
|
+
*/
|
|
557
|
+
export declare enum SecretType {
|
|
558
|
+
/**
|
|
559
|
+
* @generated from enum value: SECRET_TYPE_UNSPECIFIED = 0;
|
|
560
|
+
*/
|
|
561
|
+
UNSPECIFIED = 0,
|
|
562
|
+
/**
|
|
563
|
+
* An environment variable of the step's process.
|
|
564
|
+
*
|
|
565
|
+
* @generated from enum value: SECRET_TYPE_ENV = 1;
|
|
566
|
+
*/
|
|
567
|
+
ENV = 1,
|
|
568
|
+
/**
|
|
569
|
+
* A file the step can read. Its path is given to the step in an
|
|
570
|
+
* environment variable named after the grant's target.
|
|
571
|
+
*
|
|
572
|
+
* @generated from enum value: SECRET_TYPE_FILE = 2;
|
|
573
|
+
*/
|
|
574
|
+
FILE = 2
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Describes the enum xeonr.pipelines.v1.SecretType.
|
|
578
|
+
*/
|
|
579
|
+
export declare const SecretTypeSchema: GenEnum<SecretType>;
|
|
580
|
+
//# sourceMappingURL=common_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/common_pb.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAKjF,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,OACoxH,CAAC;AAEl0H;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,6BAA6B,CAAC,GAAG;IAC9D;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,CACA,CAAC;AAEjD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,gCAAgC,CAAC,GAAG;IACpE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,CACN,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,8BAA8B,CAAC,GAAG;IAChE;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,qBAAqB,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