@mark1russell7/harness 0.11.17 → 0.11.19
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 +13 -1
- package/build/{cell-BBPhdtav.d.ts → cell-PYx_218L.d.ts} +18 -7
- package/build/{image-67OW9r9u.js → image-Dqji7rnm.js} +42 -6
- package/build/image-Dqji7rnm.js.map +1 -0
- package/build/index.d.ts +5 -1
- package/build/index.js +32 -5
- package/build/index.js.map +1 -1
- package/build/schema.d.ts +1 -1
- package/build/schema.js +1 -1
- package/image/etcd/Dockerfile +9 -0
- package/image/grpc/Dockerfile +11 -0
- package/image/grpc/client-grpc.mjs +257 -0
- package/image/grpc/npm-lock.json +338 -0
- package/image/grpc/package.json +8 -0
- package/image/grpc-go/Dockerfile +16 -0
- package/image/grpc-go/go.mod +5 -0
- package/image/grpc-go/main.go +173 -0
- package/image/pgbouncer/Dockerfile +26 -0
- package/image/pgpool/Dockerfile +29 -0
- package/package.json +11 -1
- package/build/image-67OW9r9u.js.map +0 -1
package/build/schema.d.ts
CHANGED
package/build/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as SHIPPED_NAMES, p as imageProblems, t as CLIENT_NAMES, w as subjectProblems } from "./image-Dqji7rnm.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/schema.ts
|
|
4
4
|
/** This function adds each problem that a check finds as an issue of a schema. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# The etcd target of the harness: etcd v3.6.15 from its image, pinned by digest, on Alpine. The image of
|
|
2
|
+
# etcd is distroless: it has no shell. A cell holds the server as the child of a shell, thus a `fin`
|
|
3
|
+
# can stop it with SIGKILL while the container stays up, and a sidecar can freeze it by its name.
|
|
4
|
+
# The binaries are the ones of the image of etcd, unchanged.
|
|
5
|
+
# lab.ts stages the build context: this folder, under harness/image/etcd.
|
|
6
|
+
FROM quay.io/coreos/etcd:v3.6.15@sha256:7cf6622cb09b111289eed8a0cce3478e4f01d5048b0e0a1ed208299f3419334d AS etcd
|
|
7
|
+
|
|
8
|
+
FROM alpine:3.22@sha256:5291449c3df73caf6ed85e649dec1b9e818b39a5d8c871e97afc13e9cd5e8fa8
|
|
9
|
+
COPY --from=etcd /usr/local/bin/etcd /usr/local/bin/etcdctl /usr/local/bin/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The harness's gRPC client: grpc-js 1.14.6 on Node 24.21.0. It runs as a container in the client's
|
|
2
|
+
# network namespace, as the harness's own TCP client does, and prints the same JSON lines, with the
|
|
3
|
+
# sockets and the connectivity states of the channel beside them.
|
|
4
|
+
# lab.ts stages the build context: this folder, under harness/image/grpc. The lockfile is
|
|
5
|
+
# npm-lock.json here, because npm leaves each package-lock.json out of a published tarball.
|
|
6
|
+
FROM node:24.21.0-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1
|
|
7
|
+
WORKDIR /opt/harness/grpc
|
|
8
|
+
COPY harness/image/grpc/package.json ./
|
|
9
|
+
COPY harness/image/grpc/npm-lock.json ./package-lock.json
|
|
10
|
+
RUN npm ci --omit=dev --ignore-scripts --no-audit --no-fund
|
|
11
|
+
COPY harness/image/grpc/client-grpc.mjs ./
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
// client-grpc HOST PORT --mode idle|inflight|stream [--interval-ms N] [--max-s N] [--go PATH] [--before]
|
|
2
|
+
// [--options JSON] [--hold-ms N] [--op check|watch]
|
|
3
|
+
//
|
|
4
|
+
// The client of a gRPC cell: grpc-js 1.14.6 on Node 24.21.0, with one channel to one server and no TLS.
|
|
5
|
+
// Each event is a JSON line with `ev` and `t`, the time on CLOCK_MONOTONIC in nanoseconds
|
|
6
|
+
// (process.hrtime, which libuv reads from it). The prober stamps the records of the kernel on the
|
|
7
|
+
// same clock, and the injector stamps each fault on it.
|
|
8
|
+
//
|
|
9
|
+
// Each operation is a unary call of grpc.health.v1.Health/Check, with no deadline and no
|
|
10
|
+
// waitForReady at the defaults: the health service of grpc-go and of etcd answers at once with
|
|
11
|
+
// SERVING. The messages are encoded here: a HealthCheckRequest has one string (field 1), and a
|
|
12
|
+
// HealthCheckResponse has one enum (field 1). Operation 1 makes the connection: the channel connects
|
|
13
|
+
// at its first call. With --hold-ms, the call in flight asks for the service `hold:<ms>`, and the
|
|
14
|
+
// server of the harness holds its reply for that time. Another server answers NOT_FOUND to it.
|
|
15
|
+
// With --op watch, the operation in flight is a stream of grpc.health.v1.Health/Watch. The server sends
|
|
16
|
+
// SERVING, and the stream stays open: a stream for the policy of a server for the PINGs of a client.
|
|
17
|
+
//
|
|
18
|
+
// The options (--options JSON): each name that starts with `grpc.` is a channel option of grpc-js,
|
|
19
|
+
// for example grpc.keepalive_time_ms. `deadline_ms` is the deadline of each call.
|
|
20
|
+
//
|
|
21
|
+
// The lines:
|
|
22
|
+
// - start: the versions of grpc-js and Node, the mode and the options.
|
|
23
|
+
// - connecting: the start of operation 1. Its stamp is the stamp of the first sent line.
|
|
24
|
+
// - socket, socket-eof, socket-end, socket-error: each TCP socket of the channel, with its local
|
|
25
|
+
// address. connect-error: a connect that failed, with its error.
|
|
26
|
+
// - connected: the first of them. The TCP client of the harness names its own socket so.
|
|
27
|
+
// - state: each change of the connectivity state of the channel.
|
|
28
|
+
// - log: a line that grpc-js logs, for example the refusal of its PINGs by the server. That refusal
|
|
29
|
+
// (a GOAWAY with too_many_pings) is the cause of the end of the connection: its errno is too_many_pings.
|
|
30
|
+
// - watch-data: each message of the stream of a Watch.
|
|
31
|
+
// - ready: the reply to operation 1: the channel is idle (idle, inflight), or the stream starts.
|
|
32
|
+
// - sent, ack, fail: each operation by its sequence number, with its status.
|
|
33
|
+
// - data, error: the end of the operation in flight, as the TCP client of the harness tells it. In
|
|
34
|
+
// idle mode, the first end of the connected socket is an error line too. The errno of an error
|
|
35
|
+
// line is the error of the socket when it has one (ECONNRESET), EOF for an end of the socket by
|
|
36
|
+
// the server, or the status of the call (UNAVAILABLE).
|
|
37
|
+
// - done, deadline: the end of the client.
|
|
38
|
+
//
|
|
39
|
+
// The modes: idle does operation 1, then holds until --max-s. inflight does operation 1, waits for
|
|
40
|
+
// the file --go, does one more operation into the fault, and holds after its end. stream does an
|
|
41
|
+
// operation each --interval-ms after the end of the one before, until --max-s or SIGTERM: grpc-js
|
|
42
|
+
// connects again by itself, thus the stream goes on after a failed call. --before starts the client
|
|
43
|
+
// into a fault that holds already: its connect meets it.
|
|
44
|
+
|
|
45
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
46
|
+
import net from "node:net";
|
|
47
|
+
|
|
48
|
+
const now = () => process.hrtime.bigint();
|
|
49
|
+
const emit = (ev, fields = {}, at = now()) => process.stdout.write(`${JSON.stringify({ ev, t: Number(at), ...fields })}\n`);
|
|
50
|
+
|
|
51
|
+
const argv = process.argv.slice(2);
|
|
52
|
+
const flag = (name) => {
|
|
53
|
+
const at = argv.indexOf(name);
|
|
54
|
+
return at === -1 ? undefined : argv[at + 1];
|
|
55
|
+
};
|
|
56
|
+
const [host, port] = argv;
|
|
57
|
+
const mode = flag("--mode");
|
|
58
|
+
if (host === undefined || port === undefined || !["idle", "inflight", "stream"].includes(mode)) {
|
|
59
|
+
emit("fail", { why: "client-grpc HOST PORT --mode idle|inflight|stream" });
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
const interval = Number(flag("--interval-ms") ?? 50);
|
|
63
|
+
const max = Number(flag("--max-s") ?? 120) * 1000;
|
|
64
|
+
const go = flag("--go") ?? "/tmp/go";
|
|
65
|
+
const before = argv.includes("--before");
|
|
66
|
+
const hold = flag("--hold-ms");
|
|
67
|
+
const op = flag("--op") ?? "check";
|
|
68
|
+
if (op !== "check" && op !== "watch") {
|
|
69
|
+
emit("fail", { why: "--op check|watch" });
|
|
70
|
+
process.exit(1);
|
|
71
|
+
}
|
|
72
|
+
// the options of the channel. A cell gives each option that it changes, and grpc-js gives the others
|
|
73
|
+
const options = JSON.parse(flag("--options") ?? "{}");
|
|
74
|
+
const { deadline_ms: deadlineMs, ...channelOptions } = options;
|
|
75
|
+
const unknown = Object.keys(channelOptions).filter((name) => !name.startsWith("grpc.") && !name.startsWith("grpc-node."));
|
|
76
|
+
if (unknown.length > 0) {
|
|
77
|
+
emit("fail", { why: `options that are not channel options of grpc-js: ${unknown.join(", ")}` });
|
|
78
|
+
process.exit(1);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ---- each TCP socket of the channel: grpc-js connects with net.connect (transport.ts:830), on the
|
|
82
|
+
// module object that this patch changes. It loads after the patch
|
|
83
|
+
let connected = null;
|
|
84
|
+
// the first end of the connected socket: the cause of the end of the call in flight
|
|
85
|
+
let cause = null;
|
|
86
|
+
const connect = net.connect;
|
|
87
|
+
net.connect = function (...args) {
|
|
88
|
+
const socket = connect.apply(this, args);
|
|
89
|
+
let established = false;
|
|
90
|
+
socket.once("connect", () => {
|
|
91
|
+
established = true;
|
|
92
|
+
const local = `${socket.localAddress}:${socket.localPort}`;
|
|
93
|
+
emit("socket", { role: "connection", local });
|
|
94
|
+
const first = connected === null;
|
|
95
|
+
if (first) {
|
|
96
|
+
connected = local;
|
|
97
|
+
emit("connected", { local });
|
|
98
|
+
}
|
|
99
|
+
let failed = null;
|
|
100
|
+
socket.once("error", (error) => {
|
|
101
|
+
failed = error.code ?? error.errno ?? error.message;
|
|
102
|
+
emit("socket-error", { role: "connection", local, errno: failed, message: error.message });
|
|
103
|
+
});
|
|
104
|
+
socket.once("end", () => emit("socket-eof", { role: "connection", local }));
|
|
105
|
+
socket.once("close", (hadError) => {
|
|
106
|
+
emit("socket-end", { role: "connection", local, error: hadError });
|
|
107
|
+
if (!first || cause !== null || stopped) return;
|
|
108
|
+
// the end of the connected socket: an error of its own, the end by the server, or the end by grpc-js
|
|
109
|
+
cause = { errno: failed ?? (socket.readableEnded ? "EOF" : "CLOSED") };
|
|
110
|
+
if (mode === "idle") emit("error", { errno: cause.errno });
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
// a connect that fails: the reset of the SYN, or a give-up of the kernel. The socket has no
|
|
114
|
+
// connection, thus its line is not a socket line
|
|
115
|
+
socket.once("error", (error) => {
|
|
116
|
+
if (!established) emit("connect-error", { errno: error.code ?? error.errno ?? null, message: error.message });
|
|
117
|
+
});
|
|
118
|
+
return socket;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const grpc = await import("@grpc/grpc-js");
|
|
122
|
+
const version = JSON.parse(readFileSync(new URL("./node_modules/@grpc/grpc-js/package.json", import.meta.url), "utf8")).version;
|
|
123
|
+
// each line that grpc-js logs, with no trace: an error of a subchannel, or the doubled keepalive after
|
|
124
|
+
// too_many_pings. grpc-js logs that refusal when the GOAWAY comes, before the end of the socket (subchannel.ts:280-289)
|
|
125
|
+
grpc.setLogger({
|
|
126
|
+
error: (...parts) => {
|
|
127
|
+
const text = parts.map(String).join(" ");
|
|
128
|
+
emit("log", { text });
|
|
129
|
+
if (/excess pings/.test(text) && cause === null && !stopped) {
|
|
130
|
+
cause = { errno: "too_many_pings" };
|
|
131
|
+
if (mode === "idle") emit("error", { errno: cause.errno });
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
grpc.setLogVerbosity(grpc.logVerbosity.ERROR);
|
|
136
|
+
|
|
137
|
+
const bootId = () => {
|
|
138
|
+
try {
|
|
139
|
+
return readFileSync("/proc/sys/kernel/random/boot_id", "utf8").trim();
|
|
140
|
+
} catch {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
emit("start", { boot_id: bootId(), client: "grpc", driver: version, node: process.versions.node, mode, op, options, hold: hold === undefined ? null : Number(hold) });
|
|
145
|
+
|
|
146
|
+
// ---- the messages of grpc.health.v1, encoded by hand
|
|
147
|
+
const encodeRequest = (service) => {
|
|
148
|
+
const bytes = Buffer.from(service, "utf8");
|
|
149
|
+
if (bytes.length > 127) throw new Error("a service name of more than 127 bytes");
|
|
150
|
+
return bytes.length === 0 ? Buffer.alloc(0) : Buffer.concat([Buffer.from([0x0a, bytes.length]), bytes]);
|
|
151
|
+
};
|
|
152
|
+
const SERVING = ["UNKNOWN", "SERVING", "NOT_SERVING", "SERVICE_UNKNOWN"];
|
|
153
|
+
const decodeResponse = (buffer) => ({ status: buffer.length >= 2 && buffer[0] === 0x08 ? (SERVING[buffer[1]] ?? buffer[1]) : "UNKNOWN" });
|
|
154
|
+
|
|
155
|
+
const client = new grpc.Client(`${host}:${port}`, grpc.credentials.createInsecure(), channelOptions);
|
|
156
|
+
const channel = client.getChannel();
|
|
157
|
+
const STATES = ["IDLE", "CONNECTING", "READY", "TRANSIENT_FAILURE", "SHUTDOWN"];
|
|
158
|
+
const watch = (state) =>
|
|
159
|
+
channel.watchConnectivityState(state, Infinity, () => {
|
|
160
|
+
const next = channel.getConnectivityState(false);
|
|
161
|
+
emit("state", { from: STATES[state], to: STATES[next] });
|
|
162
|
+
if (next !== grpc.connectivityState.SHUTDOWN) watch(next);
|
|
163
|
+
});
|
|
164
|
+
watch(channel.getConnectivityState(false));
|
|
165
|
+
|
|
166
|
+
/** This function gives the status of a failed call as data: its code, its name and its details. */
|
|
167
|
+
const failure = (error) => ({ code: error.code ?? null, name: grpc.status[error.code] ?? null, details: error.details ?? error.message });
|
|
168
|
+
|
|
169
|
+
// ---- the end of the client
|
|
170
|
+
let stopped = false;
|
|
171
|
+
const stop = (code = 0) => {
|
|
172
|
+
if (stopped) return;
|
|
173
|
+
stopped = true;
|
|
174
|
+
emit("done");
|
|
175
|
+
client.close();
|
|
176
|
+
setTimeout(() => process.exit(code), 50);
|
|
177
|
+
};
|
|
178
|
+
process.on("SIGTERM", () => stop(0));
|
|
179
|
+
setTimeout(() => {
|
|
180
|
+
emit("deadline");
|
|
181
|
+
stop(0);
|
|
182
|
+
}, max);
|
|
183
|
+
|
|
184
|
+
/** This function does operation n. Its stamp is before the call. It gives null for a reply, or the error. */
|
|
185
|
+
const operate = (n, service = "") =>
|
|
186
|
+
new Promise((resolve) => {
|
|
187
|
+
const at = now();
|
|
188
|
+
// a band of a cell that starts into a fault counts from the start of the connect
|
|
189
|
+
if (n === 1) emit("connecting", { at: `${host}:${port}` }, at);
|
|
190
|
+
emit("sent", { n, service }, at);
|
|
191
|
+
const callOptions = deadlineMs === undefined ? {} : { deadline: Date.now() + deadlineMs };
|
|
192
|
+
client.makeUnaryRequest("/grpc.health.v1.Health/Check", encodeRequest, decodeResponse, service, new grpc.Metadata(), callOptions, (error, reply) => {
|
|
193
|
+
if (error === null || error === undefined) {
|
|
194
|
+
emit("ack", { n, status: reply.status });
|
|
195
|
+
resolve(null);
|
|
196
|
+
} else {
|
|
197
|
+
emit("fail", { n, ...failure(error) });
|
|
198
|
+
resolve(error);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
/** This function opens the stream of a Watch as operation n. It gives null when the server ends the stream, or the error. */
|
|
204
|
+
const watchOf = (n) =>
|
|
205
|
+
new Promise((resolve) => {
|
|
206
|
+
emit("sent", { n, op: "watch" });
|
|
207
|
+
const stream = client.makeServerStreamRequest("/grpc.health.v1.Health/Watch", encodeRequest, decodeResponse, "", new grpc.Metadata(), {});
|
|
208
|
+
stream.on("data", (reply) => emit("watch-data", { n, status: reply.status }));
|
|
209
|
+
stream.on("error", (error) => {
|
|
210
|
+
emit("fail", { n, ...failure(error) });
|
|
211
|
+
resolve(error);
|
|
212
|
+
});
|
|
213
|
+
stream.on("end", () => {
|
|
214
|
+
emit("ack", { n });
|
|
215
|
+
resolve(null);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
/** This function gives the errno of the end of a call: the end of its socket when it has one, else its status. */
|
|
220
|
+
const errnoOf = (error) => cause?.errno ?? grpc.status[error.code] ?? error.message;
|
|
221
|
+
|
|
222
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
223
|
+
|
|
224
|
+
if (mode === "stream") {
|
|
225
|
+
const failed = await operate(1);
|
|
226
|
+
if (failed === null) {
|
|
227
|
+
emit("ready", { at: `${host}:${port}` });
|
|
228
|
+
for (let n = 2; !stopped; n += 1) {
|
|
229
|
+
await operate(n);
|
|
230
|
+
await sleep(interval);
|
|
231
|
+
}
|
|
232
|
+
} else {
|
|
233
|
+
emit("error", { errno: errnoOf(failed), message: failed.details ?? failed.message });
|
|
234
|
+
stop(1);
|
|
235
|
+
}
|
|
236
|
+
} else {
|
|
237
|
+
// operation 1 makes the connection. Its reply is the last data before the fault
|
|
238
|
+
const failed = await operate(1);
|
|
239
|
+
if (failed !== null) {
|
|
240
|
+
emit("error", { errno: errnoOf(failed), message: failed.details ?? failed.message });
|
|
241
|
+
stop(before ? 0 : 1);
|
|
242
|
+
} else {
|
|
243
|
+
emit("ready", { reply: "ack" });
|
|
244
|
+
if (mode === "inflight") {
|
|
245
|
+
await new Promise((resolve) => {
|
|
246
|
+
const wait = setInterval(() => {
|
|
247
|
+
if (!existsSync(go)) return;
|
|
248
|
+
clearInterval(wait);
|
|
249
|
+
resolve();
|
|
250
|
+
}, 2);
|
|
251
|
+
});
|
|
252
|
+
const error = op === "watch" ? await watchOf(2) : await operate(2, hold === undefined ? "" : `hold:${hold}`);
|
|
253
|
+
if (error === null) emit("data", { n: 2 });
|
|
254
|
+
else emit("error", { errno: errnoOf(error), message: error.details ?? error.message });
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "loom-harness-grpc-client",
|
|
3
|
+
"lockfileVersion": 3,
|
|
4
|
+
"requires": true,
|
|
5
|
+
"packages": {
|
|
6
|
+
"": {
|
|
7
|
+
"name": "loom-harness-grpc-client",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@grpc/grpc-js": "1.14.6"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"node_modules/@grpc/grpc-js": {
|
|
13
|
+
"version": "1.14.6",
|
|
14
|
+
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.6.tgz",
|
|
15
|
+
"integrity": "sha512-SgC/B3/VZ8lTyOZ4Cwk6f1skWhmkNAaVfiX90qd5u1rRXGKk1//8FTUEN9GvOUq7rfWIqAYkA3CoyumYVpOS6g==",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@grpc/proto-loader": "^0.8.0",
|
|
19
|
+
"@js-sdsl/ordered-map": "^4.4.2"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=12.10.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"node_modules/@grpc/proto-loader": {
|
|
26
|
+
"version": "0.8.1",
|
|
27
|
+
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",
|
|
28
|
+
"integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"lodash.camelcase": "^4.3.0",
|
|
32
|
+
"long": "^5.0.0",
|
|
33
|
+
"protobufjs": "^7.5.5",
|
|
34
|
+
"yargs": "^17.7.2"
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=6"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"node_modules/@js-sdsl/ordered-map": {
|
|
44
|
+
"version": "4.4.2",
|
|
45
|
+
"resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",
|
|
46
|
+
"integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"funding": {
|
|
49
|
+
"type": "opencollective",
|
|
50
|
+
"url": "https://opencollective.com/js-sdsl"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node_modules/@protobufjs/aspromise": {
|
|
54
|
+
"version": "1.1.2",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
|
56
|
+
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
|
57
|
+
"license": "BSD-3-Clause"
|
|
58
|
+
},
|
|
59
|
+
"node_modules/@protobufjs/base64": {
|
|
60
|
+
"version": "1.1.2",
|
|
61
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
|
62
|
+
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
|
63
|
+
"license": "BSD-3-Clause"
|
|
64
|
+
},
|
|
65
|
+
"node_modules/@protobufjs/codegen": {
|
|
66
|
+
"version": "2.0.5",
|
|
67
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz",
|
|
68
|
+
"integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",
|
|
69
|
+
"license": "BSD-3-Clause"
|
|
70
|
+
},
|
|
71
|
+
"node_modules/@protobufjs/eventemitter": {
|
|
72
|
+
"version": "1.1.1",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
|
|
74
|
+
"integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
|
|
75
|
+
"license": "BSD-3-Clause"
|
|
76
|
+
},
|
|
77
|
+
"node_modules/@protobufjs/fetch": {
|
|
78
|
+
"version": "1.1.1",
|
|
79
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz",
|
|
80
|
+
"integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==",
|
|
81
|
+
"license": "BSD-3-Clause",
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@protobufjs/aspromise": "^1.1.1"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"node_modules/@protobufjs/float": {
|
|
87
|
+
"version": "1.0.2",
|
|
88
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
|
89
|
+
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
|
90
|
+
"license": "BSD-3-Clause"
|
|
91
|
+
},
|
|
92
|
+
"node_modules/@protobufjs/path": {
|
|
93
|
+
"version": "1.1.2",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
|
95
|
+
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
|
96
|
+
"license": "BSD-3-Clause"
|
|
97
|
+
},
|
|
98
|
+
"node_modules/@protobufjs/pool": {
|
|
99
|
+
"version": "1.1.0",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
|
101
|
+
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
|
102
|
+
"license": "BSD-3-Clause"
|
|
103
|
+
},
|
|
104
|
+
"node_modules/@protobufjs/utf8": {
|
|
105
|
+
"version": "1.1.2",
|
|
106
|
+
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz",
|
|
107
|
+
"integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==",
|
|
108
|
+
"license": "BSD-3-Clause"
|
|
109
|
+
},
|
|
110
|
+
"node_modules/@types/node": {
|
|
111
|
+
"version": "26.6.5",
|
|
112
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz",
|
|
113
|
+
"integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
|
|
114
|
+
"license": "MIT",
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"undici-types": "~8.9.0"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"node_modules/ansi-regex": {
|
|
120
|
+
"version": "5.0.1",
|
|
121
|
+
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
|
122
|
+
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
|
123
|
+
"license": "MIT",
|
|
124
|
+
"engines": {
|
|
125
|
+
"node": ">=8"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"node_modules/ansi-styles": {
|
|
129
|
+
"version": "4.3.0",
|
|
130
|
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
131
|
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
132
|
+
"license": "MIT",
|
|
133
|
+
"dependencies": {
|
|
134
|
+
"color-convert": "^2.0.1"
|
|
135
|
+
},
|
|
136
|
+
"engines": {
|
|
137
|
+
"node": ">=8"
|
|
138
|
+
},
|
|
139
|
+
"funding": {
|
|
140
|
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"node_modules/cliui": {
|
|
144
|
+
"version": "8.0.1",
|
|
145
|
+
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
|
146
|
+
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
|
147
|
+
"license": "ISC",
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"string-width": "^4.2.0",
|
|
150
|
+
"strip-ansi": "^6.0.1",
|
|
151
|
+
"wrap-ansi": "^7.0.0"
|
|
152
|
+
},
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=12"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"node_modules/color-convert": {
|
|
158
|
+
"version": "2.0.1",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
|
160
|
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
161
|
+
"license": "MIT",
|
|
162
|
+
"dependencies": {
|
|
163
|
+
"color-name": "~1.1.4"
|
|
164
|
+
},
|
|
165
|
+
"engines": {
|
|
166
|
+
"node": ">=7.0.0"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"node_modules/color-name": {
|
|
170
|
+
"version": "1.1.4",
|
|
171
|
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
|
172
|
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
173
|
+
"license": "MIT"
|
|
174
|
+
},
|
|
175
|
+
"node_modules/emoji-regex": {
|
|
176
|
+
"version": "8.0.0",
|
|
177
|
+
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
178
|
+
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
179
|
+
"license": "MIT"
|
|
180
|
+
},
|
|
181
|
+
"node_modules/escalade": {
|
|
182
|
+
"version": "3.2.0",
|
|
183
|
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
|
184
|
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
|
185
|
+
"license": "MIT",
|
|
186
|
+
"engines": {
|
|
187
|
+
"node": ">=6"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"node_modules/get-caller-file": {
|
|
191
|
+
"version": "2.0.5",
|
|
192
|
+
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
|
193
|
+
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
|
194
|
+
"license": "ISC",
|
|
195
|
+
"engines": {
|
|
196
|
+
"node": "6.* || 8.* || >= 10.*"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"node_modules/is-fullwidth-code-point": {
|
|
200
|
+
"version": "3.0.0",
|
|
201
|
+
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
|
202
|
+
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
|
203
|
+
"license": "MIT",
|
|
204
|
+
"engines": {
|
|
205
|
+
"node": ">=8"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"node_modules/lodash.camelcase": {
|
|
209
|
+
"version": "4.3.0",
|
|
210
|
+
"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
|
|
211
|
+
"integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
|
|
212
|
+
"license": "MIT"
|
|
213
|
+
},
|
|
214
|
+
"node_modules/long": {
|
|
215
|
+
"version": "5.3.2",
|
|
216
|
+
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
|
217
|
+
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
|
218
|
+
"license": "Apache-2.0"
|
|
219
|
+
},
|
|
220
|
+
"node_modules/protobufjs": {
|
|
221
|
+
"version": "7.6.6",
|
|
222
|
+
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz",
|
|
223
|
+
"integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==",
|
|
224
|
+
"hasInstallScript": true,
|
|
225
|
+
"license": "BSD-3-Clause",
|
|
226
|
+
"dependencies": {
|
|
227
|
+
"@protobufjs/aspromise": "^1.1.2",
|
|
228
|
+
"@protobufjs/base64": "^1.1.2",
|
|
229
|
+
"@protobufjs/codegen": "^2.0.5",
|
|
230
|
+
"@protobufjs/eventemitter": "^1.1.1",
|
|
231
|
+
"@protobufjs/fetch": "^1.1.1",
|
|
232
|
+
"@protobufjs/float": "^1.0.2",
|
|
233
|
+
"@protobufjs/path": "^1.1.2",
|
|
234
|
+
"@protobufjs/pool": "^1.1.0",
|
|
235
|
+
"@protobufjs/utf8": "^1.1.1",
|
|
236
|
+
"@types/node": ">=13.7.0",
|
|
237
|
+
"long": "^5.3.2"
|
|
238
|
+
},
|
|
239
|
+
"engines": {
|
|
240
|
+
"node": ">=12.0.0"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"node_modules/require-directory": {
|
|
244
|
+
"version": "2.1.1",
|
|
245
|
+
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
|
246
|
+
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
|
|
247
|
+
"license": "MIT",
|
|
248
|
+
"engines": {
|
|
249
|
+
"node": ">=0.10.0"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"node_modules/string-width": {
|
|
253
|
+
"version": "4.2.3",
|
|
254
|
+
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
255
|
+
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
|
256
|
+
"license": "MIT",
|
|
257
|
+
"dependencies": {
|
|
258
|
+
"emoji-regex": "^8.0.0",
|
|
259
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
260
|
+
"strip-ansi": "^6.0.1"
|
|
261
|
+
},
|
|
262
|
+
"engines": {
|
|
263
|
+
"node": ">=8"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"node_modules/strip-ansi": {
|
|
267
|
+
"version": "6.0.1",
|
|
268
|
+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
|
269
|
+
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
|
270
|
+
"license": "MIT",
|
|
271
|
+
"dependencies": {
|
|
272
|
+
"ansi-regex": "^5.0.1"
|
|
273
|
+
},
|
|
274
|
+
"engines": {
|
|
275
|
+
"node": ">=8"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"node_modules/undici-types": {
|
|
279
|
+
"version": "8.9.0",
|
|
280
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
|
|
281
|
+
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
|
|
282
|
+
"license": "MIT"
|
|
283
|
+
},
|
|
284
|
+
"node_modules/wrap-ansi": {
|
|
285
|
+
"version": "7.0.0",
|
|
286
|
+
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
|
287
|
+
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
|
288
|
+
"license": "MIT",
|
|
289
|
+
"dependencies": {
|
|
290
|
+
"ansi-styles": "^4.0.0",
|
|
291
|
+
"string-width": "^4.1.0",
|
|
292
|
+
"strip-ansi": "^6.0.0"
|
|
293
|
+
},
|
|
294
|
+
"engines": {
|
|
295
|
+
"node": ">=10"
|
|
296
|
+
},
|
|
297
|
+
"funding": {
|
|
298
|
+
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"node_modules/y18n": {
|
|
302
|
+
"version": "5.0.8",
|
|
303
|
+
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
|
304
|
+
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
|
|
305
|
+
"license": "ISC",
|
|
306
|
+
"engines": {
|
|
307
|
+
"node": ">=10"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"node_modules/yargs": {
|
|
311
|
+
"version": "17.7.3",
|
|
312
|
+
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
|
|
313
|
+
"integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
|
|
314
|
+
"license": "MIT",
|
|
315
|
+
"dependencies": {
|
|
316
|
+
"cliui": "^8.0.1",
|
|
317
|
+
"escalade": "^3.1.1",
|
|
318
|
+
"get-caller-file": "^2.0.5",
|
|
319
|
+
"require-directory": "^2.1.1",
|
|
320
|
+
"string-width": "^4.2.3",
|
|
321
|
+
"y18n": "^5.0.5",
|
|
322
|
+
"yargs-parser": "^21.1.1"
|
|
323
|
+
},
|
|
324
|
+
"engines": {
|
|
325
|
+
"node": ">=12"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"node_modules/yargs-parser": {
|
|
329
|
+
"version": "21.1.1",
|
|
330
|
+
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
|
331
|
+
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
|
332
|
+
"license": "ISC",
|
|
333
|
+
"engines": {
|
|
334
|
+
"node": ">=12"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# The gRPC server of the harness: a server of grpc-go v1.84.0, built with Go 1.27.2, at the defaults of
|
|
2
|
+
# grpc-go with the settings of a cell over them. It runs as the target of a cell.
|
|
3
|
+
# go mod tidy resolves the modules of grpc-go at its tag by the go.mod of each module, and the go
|
|
4
|
+
# command checks each module against the checksum database of Go (sum.golang.org). The build log
|
|
5
|
+
# prints the go.sum that it gets.
|
|
6
|
+
# lab.ts stages the build context: this folder, under harness/image/grpc-go.
|
|
7
|
+
FROM golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d AS build
|
|
8
|
+
WORKDIR /src
|
|
9
|
+
COPY harness/image/grpc-go/go.mod harness/image/grpc-go/main.go ./
|
|
10
|
+
RUN go mod tidy && cat go.sum
|
|
11
|
+
# the format and the vet of the source come first, as for the Go client of the harness
|
|
12
|
+
RUN test -z "$(gofmt -l .)" || { gofmt -d .; exit 1; }
|
|
13
|
+
RUN CGO_ENABLED=0 go vet ./... && CGO_ENABLED=0 go build -trimpath -o /grpc-go-server .
|
|
14
|
+
|
|
15
|
+
FROM alpine:3.22@sha256:5291449c3df73caf6ed85e649dec1b9e818b39a5d8c871e97afc13e9cd5e8fa8
|
|
16
|
+
COPY --from=build /grpc-go-server /usr/local/bin/grpc-go-server
|