@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
package/dist/logship.js
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { Code, ConnectError } from "@connectrpc/connect";
|
|
2
|
+
import { errorKind } from "./errors.js";
|
|
3
|
+
import { backoff, sleep } from "./internal/time.js";
|
|
4
|
+
const encoder = new TextEncoder();
|
|
5
|
+
/** The line a renumbered log carries where output was lost. */
|
|
6
|
+
export function lostMarker(lost) {
|
|
7
|
+
return `\n[pipelines] ${lost} bytes of output were lost: pipelines-api no longer held them and the worker had already let them go\n`;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The seq an `out_of_range` answer names as expected: the last number in its
|
|
11
|
+
* message (the api says "seq: the next expected seq is N"), as the Go
|
|
12
|
+
* runner's `workerclient.ExpectedSeq` reads it. Undefined when it names none.
|
|
13
|
+
*/
|
|
14
|
+
export function expectedSeq(err) {
|
|
15
|
+
const ce = ConnectError.from(err);
|
|
16
|
+
if (ce.code !== Code.OutOfRange)
|
|
17
|
+
return undefined;
|
|
18
|
+
const m = /(\d+)\D*$/.exec(ce.rawMessage);
|
|
19
|
+
return m ? BigInt(m[1]) : undefined;
|
|
20
|
+
}
|
|
21
|
+
class Stop extends Error {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Ships one attempt's log, the runner's way (pkg/logship): chunks are
|
|
25
|
+
* numbered from 0, each is sent until acknowledged before the next, so a
|
|
26
|
+
* retry after a lost reply cannot duplicate or reorder anything; the last
|
|
27
|
+
* chunk carries `final`.
|
|
28
|
+
*
|
|
29
|
+
* - `failed_precondition`: the attempt is lost. Shipping stops and `onLost`
|
|
30
|
+
* is told.
|
|
31
|
+
* - `out_of_range` naming the expected seq: the server holds fewer chunks
|
|
32
|
+
* than it acknowledged. The held chunks from the expected one are sent
|
|
33
|
+
* again; if they are no longer held, the log is renumbered from the
|
|
34
|
+
* expected seq after one marker line saying how much output was lost.
|
|
35
|
+
* Never fatal to the attempt.
|
|
36
|
+
* - The server's `truncated`: the log is at its cap; shipping stops.
|
|
37
|
+
* - Another final code (`invalid_argument`, `unimplemented`): the rest of
|
|
38
|
+
* the log is dropped; the attempt carries on.
|
|
39
|
+
* - Anything else is retried with backoff.
|
|
40
|
+
*/
|
|
41
|
+
export class LogShipper {
|
|
42
|
+
sink;
|
|
43
|
+
opt;
|
|
44
|
+
pending = [];
|
|
45
|
+
pendingBytes = 0;
|
|
46
|
+
total = 0;
|
|
47
|
+
dropped = 0;
|
|
48
|
+
capped = false;
|
|
49
|
+
stopped = false;
|
|
50
|
+
closing = false;
|
|
51
|
+
seq = 0n;
|
|
52
|
+
/** Acknowledged chunks, oldest first, kept to resend; bounded by maxBuffered. */
|
|
53
|
+
sent = [];
|
|
54
|
+
sentBytes = 0;
|
|
55
|
+
/** offsets[i] is how many bytes the chunks before seq i held; its length is seq + 1. */
|
|
56
|
+
offsets = [0];
|
|
57
|
+
wake;
|
|
58
|
+
done;
|
|
59
|
+
abort = new AbortController();
|
|
60
|
+
constructor(sink, opt = {}) {
|
|
61
|
+
this.sink = sink;
|
|
62
|
+
this.opt = {
|
|
63
|
+
maxChunk: opt.maxChunk ?? 256 << 10,
|
|
64
|
+
flushIntervalMs: opt.flushIntervalMs ?? 500,
|
|
65
|
+
maxBuffered: opt.maxBuffered ?? 8 << 20,
|
|
66
|
+
maxBytes: opt.maxBytes ?? 0,
|
|
67
|
+
onLost: opt.onLost,
|
|
68
|
+
onRetry: opt.onRetry,
|
|
69
|
+
onRenumber: opt.onRenumber,
|
|
70
|
+
};
|
|
71
|
+
this.done = this.run();
|
|
72
|
+
}
|
|
73
|
+
/** Queues text. Never blocks. */
|
|
74
|
+
write(text) {
|
|
75
|
+
if (this.stopped || this.closing || this.capped || text.length === 0)
|
|
76
|
+
return;
|
|
77
|
+
let bytes = encoder.encode(text);
|
|
78
|
+
if (this.opt.maxBytes > 0 && this.total + bytes.length > this.opt.maxBytes) {
|
|
79
|
+
bytes = bytes.subarray(0, this.opt.maxBytes - this.total);
|
|
80
|
+
this.capped = true;
|
|
81
|
+
}
|
|
82
|
+
if (this.pendingBytes + bytes.length > this.opt.maxBuffered) {
|
|
83
|
+
this.dropped += bytes.length;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (bytes.length === 0)
|
|
87
|
+
return;
|
|
88
|
+
this.pending.push(bytes);
|
|
89
|
+
this.pendingBytes += bytes.length;
|
|
90
|
+
this.total += bytes.length;
|
|
91
|
+
if (this.pendingBytes >= this.opt.maxChunk)
|
|
92
|
+
this.wake?.();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Ends the log with `trailer` and waits until the final chunk is
|
|
96
|
+
* acknowledged, shipping stops, or `timeoutMs` passes.
|
|
97
|
+
*/
|
|
98
|
+
async close(trailer, timeoutMs) {
|
|
99
|
+
if (!this.closing) {
|
|
100
|
+
if (this.capped)
|
|
101
|
+
trailer = `\n[pipelines] log truncated at ${this.opt.maxBytes} bytes\n${trailer}`;
|
|
102
|
+
if (this.dropped > 0)
|
|
103
|
+
trailer = `\n[pipelines] ${this.dropped} bytes of log dropped: the API was not taking them fast enough\n${trailer}`;
|
|
104
|
+
const t = encoder.encode(trailer || "\n");
|
|
105
|
+
this.pending.push(t);
|
|
106
|
+
this.pendingBytes += t.length;
|
|
107
|
+
this.closing = true;
|
|
108
|
+
this.wake?.();
|
|
109
|
+
}
|
|
110
|
+
const timer = sleep(timeoutMs, this.abort.signal).then(() => this.abort.abort());
|
|
111
|
+
await this.done;
|
|
112
|
+
this.abort.abort();
|
|
113
|
+
await timer.catch(() => undefined);
|
|
114
|
+
}
|
|
115
|
+
/** Stops shipping at once; nothing more is sent. */
|
|
116
|
+
stop() {
|
|
117
|
+
this.stopped = true;
|
|
118
|
+
this.abort.abort();
|
|
119
|
+
this.wake?.();
|
|
120
|
+
}
|
|
121
|
+
take() {
|
|
122
|
+
if (this.pendingBytes === 0)
|
|
123
|
+
return undefined;
|
|
124
|
+
const size = Math.min(this.pendingBytes, this.opt.maxChunk);
|
|
125
|
+
const data = new Uint8Array(size);
|
|
126
|
+
let off = 0;
|
|
127
|
+
while (off < size) {
|
|
128
|
+
const head = this.pending[0];
|
|
129
|
+
const n = Math.min(head.length, size - off);
|
|
130
|
+
data.set(head.subarray(0, n), off);
|
|
131
|
+
off += n;
|
|
132
|
+
if (n === head.length)
|
|
133
|
+
this.pending.shift();
|
|
134
|
+
else
|
|
135
|
+
this.pending[0] = head.subarray(n);
|
|
136
|
+
}
|
|
137
|
+
this.pendingBytes -= size;
|
|
138
|
+
return { data, final: this.closing && this.pendingBytes === 0 };
|
|
139
|
+
}
|
|
140
|
+
async run() {
|
|
141
|
+
const signal = this.abort.signal;
|
|
142
|
+
for (;;) {
|
|
143
|
+
if (this.stopped || signal.aborted)
|
|
144
|
+
return;
|
|
145
|
+
if (!this.closing && this.pendingBytes < this.opt.maxChunk) {
|
|
146
|
+
await new Promise((resolve) => {
|
|
147
|
+
const t = setTimeout(resolve, this.opt.flushIntervalMs);
|
|
148
|
+
this.wake = () => {
|
|
149
|
+
clearTimeout(t);
|
|
150
|
+
resolve();
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
this.wake = undefined;
|
|
154
|
+
if (this.stopped || signal.aborted)
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const chunk = this.take();
|
|
158
|
+
if (!chunk) {
|
|
159
|
+
if (this.closing)
|
|
160
|
+
return;
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
await this.send(chunk.data, chunk.final, signal);
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
if (!(err instanceof Stop))
|
|
168
|
+
this.opt.onRetry?.(err);
|
|
169
|
+
this.stopped = true;
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (chunk.final || this.stopped)
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Delivers one chunk at the current seq. A refusal as ahead of the server
|
|
178
|
+
* is answered by resending what it lost, or by renumbering, and then this
|
|
179
|
+
* chunk again; a server that refuses again is answered the same way, a
|
|
180
|
+
* bounded number of times.
|
|
181
|
+
*/
|
|
182
|
+
async send(data, final, signal) {
|
|
183
|
+
let replayed = false;
|
|
184
|
+
for (let round = 0;; round++) {
|
|
185
|
+
const seq = this.seq;
|
|
186
|
+
try {
|
|
187
|
+
const res = await this.deliver(seq, data, final, signal);
|
|
188
|
+
this.acknowledged(seq, data, res.nextSeq, res.truncated);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
catch (err) {
|
|
192
|
+
const expected = expectedSeq(err);
|
|
193
|
+
if (expected === undefined || round >= 8)
|
|
194
|
+
throw err;
|
|
195
|
+
if (expected > seq) {
|
|
196
|
+
// The server already holds this seq: it counts as acknowledged.
|
|
197
|
+
this.acknowledged(seq, data, expected, false);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
if (!replayed && (await this.replay(expected, seq, signal))) {
|
|
201
|
+
replayed = true;
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
await this.renumber(expected, seq, signal);
|
|
205
|
+
replayed = true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Sends one chunk at `seq` until it is acknowledged. Throws Stop when the
|
|
211
|
+
* attempt is lost, shipping stopped, or the server answered something
|
|
212
|
+
* final; and the error itself for an `out_of_range` naming a seq other
|
|
213
|
+
* than this one, which the caller answers.
|
|
214
|
+
*/
|
|
215
|
+
async deliver(seq, data, final, signal) {
|
|
216
|
+
let delay = 0;
|
|
217
|
+
for (;;) {
|
|
218
|
+
if (this.stopped || signal.aborted)
|
|
219
|
+
throw new Stop();
|
|
220
|
+
try {
|
|
221
|
+
return await this.sink(seq, data, final, signal);
|
|
222
|
+
}
|
|
223
|
+
catch (err) {
|
|
224
|
+
if (signal.aborted)
|
|
225
|
+
throw new Stop();
|
|
226
|
+
const expected = expectedSeq(err);
|
|
227
|
+
if (expected !== undefined && expected !== seq)
|
|
228
|
+
throw err;
|
|
229
|
+
const kind = errorKind(err);
|
|
230
|
+
this.opt.onRetry?.(err);
|
|
231
|
+
if (kind === "lost") {
|
|
232
|
+
this.opt.onLost?.();
|
|
233
|
+
throw new Stop();
|
|
234
|
+
}
|
|
235
|
+
if (kind !== "transient" && expected === undefined) {
|
|
236
|
+
// invalid_argument, unimplemented, an out_of_range naming no seq:
|
|
237
|
+
// drop the rest of the log, keep the attempt.
|
|
238
|
+
throw new Stop();
|
|
239
|
+
}
|
|
240
|
+
delay = backoff(delay, 200, 10_000);
|
|
241
|
+
if (!(await sleep(delay, signal)))
|
|
242
|
+
throw new Stop();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
/** Records chunk `seq` as stored and keeps it for a resend. */
|
|
247
|
+
acknowledged(seq, data, next, truncated) {
|
|
248
|
+
this.seq = next > seq ? next : seq + 1n;
|
|
249
|
+
if (truncated)
|
|
250
|
+
this.stopped = true;
|
|
251
|
+
const i = Number(seq);
|
|
252
|
+
if (this.offsets.length > i + 1)
|
|
253
|
+
this.offsets.length = i + 1;
|
|
254
|
+
const end = this.offsets[this.offsets.length - 1] + data.length;
|
|
255
|
+
while (this.offsets.length < Number(this.seq) + 1)
|
|
256
|
+
this.offsets.push(end);
|
|
257
|
+
this.sent.push({ seq, data });
|
|
258
|
+
this.sentBytes += data.length;
|
|
259
|
+
while (this.sent.length > 1 && this.sentBytes > this.opt.maxBuffered) {
|
|
260
|
+
this.sentBytes -= this.sent.shift().data.length;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Sends the held chunks from `expected` up to (not including) `upTo`
|
|
265
|
+
* again. False when they are not all held, or the server refused one.
|
|
266
|
+
*/
|
|
267
|
+
async replay(expected, upTo, signal) {
|
|
268
|
+
if (expected >= upTo || this.sent.length === 0 || this.sent[0].seq > expected)
|
|
269
|
+
return false;
|
|
270
|
+
for (const c of this.sent) {
|
|
271
|
+
if (c.seq < expected || c.seq >= upTo)
|
|
272
|
+
continue;
|
|
273
|
+
try {
|
|
274
|
+
await this.deliver(c.seq, c.data, false, signal);
|
|
275
|
+
}
|
|
276
|
+
catch (err) {
|
|
277
|
+
if (err instanceof Stop)
|
|
278
|
+
throw err;
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Continues the log at `expected` when the chunks from there to `upTo`
|
|
286
|
+
* are not all held: one marker with the size of what is gone, then the
|
|
287
|
+
* held chunks that ran without a gap up to `upTo`, under new seqs.
|
|
288
|
+
*/
|
|
289
|
+
async renumber(expected, upTo, signal) {
|
|
290
|
+
let first = upTo;
|
|
291
|
+
for (let i = this.sent.length - 1; i >= 0 && this.sent[i].seq === first - 1n && this.sent[i].seq >= expected; i--)
|
|
292
|
+
first--;
|
|
293
|
+
const keep = this.sent.filter((c) => c.seq >= first && c.seq < upTo).map((c) => c.data);
|
|
294
|
+
const lost = Number(first) < this.offsets.length && Number(expected) < this.offsets.length
|
|
295
|
+
? this.offsets[Number(first)] - this.offsets[Number(expected)]
|
|
296
|
+
: 0;
|
|
297
|
+
this.opt.onRenumber?.(upTo, expected, lost);
|
|
298
|
+
// Forget everything from `expected` on: it is being numbered again.
|
|
299
|
+
this.seq = expected;
|
|
300
|
+
this.offsets.length = Number(expected) + 1;
|
|
301
|
+
this.sent = this.sent.filter((c) => c.seq < expected);
|
|
302
|
+
this.sentBytes = this.sent.reduce((n, c) => n + c.data.length, 0);
|
|
303
|
+
for (const data of [encoder.encode(lostMarker(lost)), ...keep]) {
|
|
304
|
+
if (this.stopped)
|
|
305
|
+
return;
|
|
306
|
+
const seq = this.seq;
|
|
307
|
+
try {
|
|
308
|
+
const res = await this.deliver(seq, data, false, signal);
|
|
309
|
+
this.acknowledged(seq, data, res.nextSeq, res.truncated);
|
|
310
|
+
}
|
|
311
|
+
catch (err) {
|
|
312
|
+
if (err instanceof Stop)
|
|
313
|
+
throw err;
|
|
314
|
+
return; // refused again: the caller answers what the server says now
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
//# sourceMappingURL=logship.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logship.js","sourceRoot":"","sources":["../src/logship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAgCpD,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAElC,+DAA+D;AAC/D,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,iBAAiB,IAAI,wGAAwG,CAAC;AACvI,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,MAAM,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU;QAAE,OAAO,SAAS,CAAC;IAClD,MAAM,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC1C,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvC,CAAC;AAED,MAAM,IAAK,SAAQ,KAAK;CAAG;AAE3B;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,UAAU;IAwBF;IAvBF,GAAG,CAIlB;IACM,OAAO,GAAiB,EAAE,CAAC;IAC3B,YAAY,GAAG,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AAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAElE,KAAK,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;YAC/D,IAAI,IAAI,CAAC,OAAO;gBAAE,OAAO;YACzB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;YACrB,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;gBACzD,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;YAC3D,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,IAAI;oBAAE,MAAM,GAAG,CAAC;gBACnC,OAAO,CAAC,6DAA6D;YACvE,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { JsonObject, JsonValue } from "@bufbuild/protobuf";
|
|
2
|
+
import { Code } from "@connectrpc/connect";
|
|
3
|
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
|
4
|
+
import type { TokenProvider } from "../auth.js";
|
|
5
|
+
import { AttemptState, FailureClass, NodeState, RunState, Termination } from "../gen/xeonr/pipelines/v1/common_pb.js";
|
|
6
|
+
import type { Pool } from "../gen/xeonr/pipelines/v1/pools_pb.js";
|
|
7
|
+
import type { Manifest } from "../gen/xeonr/pipelines/v1/registry_pb.js";
|
|
8
|
+
import { HandlerFailureKind } from "../gen/xeonr/pipelines/private/v1/worker_pb.js";
|
|
9
|
+
/** The tenant the default account acts for. */
|
|
10
|
+
export declare const FAKE_TENANT = "urn:xeonr:auth:team:00000000-0000-4000-8000-000000000001";
|
|
11
|
+
/** The default account's token. */
|
|
12
|
+
export declare const FAKE_TOKEN = "fake-token";
|
|
13
|
+
/** Every scope pipelines' RPCs use. */
|
|
14
|
+
export declare const ALL_SCOPES: readonly ["pipelines:run:read", "pipelines:run:edit", "pipelines:package:read", "pipelines:package:edit", "pipelines:pool:read", "pipelines:pool:edit", "pipelines:worker:edit"];
|
|
15
|
+
/** A service account the fake recognises by its token. */
|
|
16
|
+
export interface FakeAccount {
|
|
17
|
+
/** The team it may act for. */
|
|
18
|
+
tenant: string;
|
|
19
|
+
scopes: readonly string[];
|
|
20
|
+
/** The product (Auth application) it belongs to; scopes idempotency keys. Default the tenant. */
|
|
21
|
+
product?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Options for {@link FakePipelines}. */
|
|
24
|
+
export interface FakePipelinesOptions {
|
|
25
|
+
/** Accounts by token. Default one, {@link FAKE_TOKEN}, for {@link FAKE_TENANT} with every scope. */
|
|
26
|
+
accounts?: Record<string, FakeAccount>;
|
|
27
|
+
/** The lease. Default 60 s; tests use far less. */
|
|
28
|
+
leaseMs?: number;
|
|
29
|
+
/** The heartbeat interval claims carry. Default a quarter of the lease. */
|
|
30
|
+
heartbeatIntervalMs?: number;
|
|
31
|
+
/** The cancel grace claims carry. Default 10 s. */
|
|
32
|
+
cancelGraceMs?: number;
|
|
33
|
+
/** The timeout of a node that sets none. Default none. */
|
|
34
|
+
defaultTimeoutMs?: number;
|
|
35
|
+
/** The retry count when a node sets no policy. Default 2. */
|
|
36
|
+
defaultRetries?: number;
|
|
37
|
+
/** The wait before a retry is offered. Default 0. */
|
|
38
|
+
retryBackoffMs?: number;
|
|
39
|
+
/** The attempt log cap. Default 0, none. */
|
|
40
|
+
logMaxBytes?: number;
|
|
41
|
+
/** How often leases, delays and long-polls are looked at. Default 10 ms. */
|
|
42
|
+
tickMs?: number;
|
|
43
|
+
}
|
|
44
|
+
/** A node of a fake run. */
|
|
45
|
+
export interface FakeNode {
|
|
46
|
+
readonly id: string;
|
|
47
|
+
/** The handler, for a worker node; empty for an external (image) node. */
|
|
48
|
+
readonly handler: string;
|
|
49
|
+
/** The step package, for an external node. */
|
|
50
|
+
readonly uses: string;
|
|
51
|
+
state: NodeState;
|
|
52
|
+
failureClass: FailureClass;
|
|
53
|
+
kv: Record<string, JsonValue>;
|
|
54
|
+
readonly attempts: FakeAttempt[];
|
|
55
|
+
readonly needs: string[];
|
|
56
|
+
readonly with: Record<string, JsonValue>;
|
|
57
|
+
readonly retry: {
|
|
58
|
+
max: number;
|
|
59
|
+
when: FailureClass[];
|
|
60
|
+
};
|
|
61
|
+
readonly timeoutMs: number;
|
|
62
|
+
/** May be stopped by its worker shutting down without spending a retry. */
|
|
63
|
+
readonly interruptible: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** An attempt of a fake node. */
|
|
66
|
+
export interface FakeAttempt {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
readonly runId: string;
|
|
69
|
+
readonly nodeId: string;
|
|
70
|
+
readonly number: number;
|
|
71
|
+
state: AttemptState;
|
|
72
|
+
epoch: bigint;
|
|
73
|
+
workerId: string;
|
|
74
|
+
poolId: string;
|
|
75
|
+
leaseExpiresAt: number;
|
|
76
|
+
notBefore: number;
|
|
77
|
+
inputs: JsonObject;
|
|
78
|
+
termination: Termination;
|
|
79
|
+
failureClass: FailureClass;
|
|
80
|
+
exitCode: number | undefined;
|
|
81
|
+
message: string;
|
|
82
|
+
kv: Record<string, JsonValue>;
|
|
83
|
+
/** Log chunks by seq. */
|
|
84
|
+
readonly chunks: Uint8Array[];
|
|
85
|
+
logFinal: boolean;
|
|
86
|
+
logTruncated: boolean;
|
|
87
|
+
completedAt: number | undefined;
|
|
88
|
+
/** What the worker said of a handler error. */
|
|
89
|
+
handlerFailureKind: HandlerFailureKind;
|
|
90
|
+
/** How many times a worker handed this attempt back (ReleaseAttempt). */
|
|
91
|
+
releases: number;
|
|
92
|
+
}
|
|
93
|
+
/** A fake run. */
|
|
94
|
+
export interface FakeRun {
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly tenant: string;
|
|
97
|
+
readonly product: string;
|
|
98
|
+
readonly idempotencyKey: string;
|
|
99
|
+
readonly createdBy: string;
|
|
100
|
+
readonly resource: {
|
|
101
|
+
kind: string;
|
|
102
|
+
id: string;
|
|
103
|
+
json?: JsonObject;
|
|
104
|
+
} | undefined;
|
|
105
|
+
readonly variables: JsonObject;
|
|
106
|
+
state: RunState;
|
|
107
|
+
failureClass: FailureClass;
|
|
108
|
+
failedNodeId: string;
|
|
109
|
+
readonly notBefore: number;
|
|
110
|
+
readonly createdAt: number;
|
|
111
|
+
startedAt: number | undefined;
|
|
112
|
+
finishedAt: number | undefined;
|
|
113
|
+
cancelRequestedAt: number | undefined;
|
|
114
|
+
cancelReason: string;
|
|
115
|
+
readonly nodes: Map<string, FakeNode>;
|
|
116
|
+
}
|
|
117
|
+
/** The RPCs errors can be injected into. */
|
|
118
|
+
export type FakeMethod = "ClaimAttempts" | "StartAttempt" | "Heartbeat" | "AppendLogs" | "CompleteAttempt" | "CreateJob" | "CreateRun" | "GetRun" | "CancelRun" | "PublishVersion" | "SetPool" | "ReleaseAttempt";
|
|
119
|
+
/**
|
|
120
|
+
* An in-memory pipelines-api for tests. Call {@link close} when done (it
|
|
121
|
+
* stops the timer that looks at leases and delays).
|
|
122
|
+
*/
|
|
123
|
+
export declare class FakePipelines {
|
|
124
|
+
/** Runs by id. */
|
|
125
|
+
readonly runs: Map<string, FakeRun>;
|
|
126
|
+
/** Every call that reached the fake, in order. */
|
|
127
|
+
readonly calls: {
|
|
128
|
+
method: FakeMethod;
|
|
129
|
+
token: string;
|
|
130
|
+
}[];
|
|
131
|
+
private readonly accounts;
|
|
132
|
+
private readonly opts;
|
|
133
|
+
private readonly packages;
|
|
134
|
+
private readonly namespaces;
|
|
135
|
+
private readonly pools;
|
|
136
|
+
private readonly attemptsById;
|
|
137
|
+
private readonly idempotency;
|
|
138
|
+
private readonly injected;
|
|
139
|
+
private readonly timer;
|
|
140
|
+
private changed;
|
|
141
|
+
constructor(opts?: FakePipelinesOptions);
|
|
142
|
+
/**
|
|
143
|
+
* A transport to the fake that authenticates with `token` (default
|
|
144
|
+
* {@link FAKE_TOKEN}) through the SDK's own auth interceptor, so token
|
|
145
|
+
* refresh behaves as it does against the real API.
|
|
146
|
+
*/
|
|
147
|
+
transport(token?: TokenProvider | string, interceptors?: Interceptor[]): Transport;
|
|
148
|
+
/** Adds or replaces an account. */
|
|
149
|
+
setAccount(token: string, account: FakeAccount): void;
|
|
150
|
+
/** Forgets a token: calls bearing it answer `unauthenticated`. */
|
|
151
|
+
revoke(token: string): void;
|
|
152
|
+
/** Makes the next `times` calls of `method` fail with `code`. */
|
|
153
|
+
inject(method: FakeMethod, code: Code, times?: number, message?: string): void;
|
|
154
|
+
/** How many calls of `method` reached the fake. */
|
|
155
|
+
count(method: FakeMethod): number;
|
|
156
|
+
/** One run, or throws. */
|
|
157
|
+
run(runId: string): FakeRun;
|
|
158
|
+
/** One attempt, or throws. */
|
|
159
|
+
attempt(attemptId: string): FakeAttempt;
|
|
160
|
+
/** Every attempt of a run, in creation order. */
|
|
161
|
+
attemptsOf(runId: string): FakeAttempt[];
|
|
162
|
+
/** An attempt's log as text. */
|
|
163
|
+
logOf(attemptId: string): string;
|
|
164
|
+
/** A registered pool, by name. */
|
|
165
|
+
pool(name: string): Pool | undefined;
|
|
166
|
+
/** Whether `name@version` was published. */
|
|
167
|
+
published(name: string, version: string): Manifest | undefined;
|
|
168
|
+
/** Waits until a run is terminal and returns it. */
|
|
169
|
+
waitForRun(runId: string, timeoutMs?: number): Promise<FakeRun>;
|
|
170
|
+
/** Waits until `check` returns something other than undefined. */
|
|
171
|
+
waitFor<T>(check: () => T | undefined, timeoutMs?: number): Promise<T>;
|
|
172
|
+
/** Lapses an attempt's lease now, as the reaper would at its expiry. */
|
|
173
|
+
/**
|
|
174
|
+
* Forgets an attempt's log chunks from `fromSeq` on, as a server that lost
|
|
175
|
+
* chunks it had acknowledged would: the worker's next chunk is refused as
|
|
176
|
+
* ahead (`out_of_range` naming `fromSeq`).
|
|
177
|
+
*/
|
|
178
|
+
loseLogChunks(attemptId: string, fromSeq: number): void;
|
|
179
|
+
expireLease(attemptId: string): void;
|
|
180
|
+
/**
|
|
181
|
+
* Settles an external (image) node, standing in for a runner: succeeded
|
|
182
|
+
* with `kv`, or failed with `failureClass`.
|
|
183
|
+
*/
|
|
184
|
+
completeNode(runId: string, nodeId: string, result?: {
|
|
185
|
+
kv?: Record<string, JsonValue>;
|
|
186
|
+
failureClass?: FailureClass;
|
|
187
|
+
}): void;
|
|
188
|
+
/** Stops the fake's timer. */
|
|
189
|
+
close(): void;
|
|
190
|
+
private buildRouter;
|
|
191
|
+
private enter;
|
|
192
|
+
private actsFor;
|
|
193
|
+
private visible;
|
|
194
|
+
/** The server's held(): the attempt at this epoch, held by a pool of the caller's team. */
|
|
195
|
+
private held;
|
|
196
|
+
private requireHandler;
|
|
197
|
+
private newRun;
|
|
198
|
+
private addNode;
|
|
199
|
+
/** Makes ready what can be, skips what cannot run, and settles the run. */
|
|
200
|
+
private advance;
|
|
201
|
+
private resolve;
|
|
202
|
+
private offer;
|
|
203
|
+
private claim;
|
|
204
|
+
private describe;
|
|
205
|
+
private started;
|
|
206
|
+
/** After an attempt ends: settle the node, or offer a retry. */
|
|
207
|
+
private settle;
|
|
208
|
+
private cancel;
|
|
209
|
+
/** The reaper and the delay clock. */
|
|
210
|
+
private tick;
|
|
211
|
+
private notify;
|
|
212
|
+
private runMessage;
|
|
213
|
+
private nodeMessage;
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,EAAE,IAAI,EAAuC,MAAM,qBAAqB,CAAC;AAChF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