@mark1russell7/harness 0.16.30 → 0.16.32
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 +38 -2
- package/build/index.d.ts +317 -46
- package/build/index.js +491 -22
- package/build/index.js.map +1 -1
- package/image/lazyfs/Dockerfile +6 -2
- package/image/lazyfs/faultfs.c +452 -0
- package/image/lazyfs/start.mts +31 -6
- package/package.json +2 -1
package/build/index.js
CHANGED
|
@@ -855,7 +855,7 @@ const ERRNO$1 = {
|
|
|
855
855
|
113: "EHOSTUNREACH"
|
|
856
856
|
};
|
|
857
857
|
const between$3 = (from, to) => quantity(Math.round((to - from) / 1e3) / 1e6, "s");
|
|
858
|
-
const round = (seconds) => Math.round(seconds * 1e6) / 1e6;
|
|
858
|
+
const round$1 = (seconds) => Math.round(seconds * 1e6) / 1e6;
|
|
859
859
|
/** This function gives the value of a field of a line by its name. A dotted name is a field in a field. */
|
|
860
860
|
const fieldOf = (line, path) => path.split(".").reduce((value, key) => value !== null && typeof value === "object" ? value[key] : void 0, line);
|
|
861
861
|
/** This function tells if a line of the client matches a line match: its `ev`, and each field that the match names. */
|
|
@@ -1190,7 +1190,7 @@ const measureDriver = (cell, run) => {
|
|
|
1190
1190
|
else if (last === void 0) findings.push(`the ${socket.role} socket got no segment before the fault`);
|
|
1191
1191
|
else {
|
|
1192
1192
|
const at = between$3(last, forgot.t).value;
|
|
1193
|
-
const [low, high] = [round(valueIn(expected.low, "s") - noise), round(valueIn(expected.high, "s") + noise)];
|
|
1193
|
+
const [low, high] = [round$1(valueIn(expected.low, "s") - noise), round$1(valueIn(expected.high, "s") + noise)];
|
|
1194
1194
|
if (at < low || at > high) findings.push(`a router forgot the flow of the ${socket.role} socket ${at} s after its last segment, outside [${low}, ${high}] s`);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
@@ -1209,7 +1209,7 @@ const measureDriver = (cell, run) => {
|
|
|
1209
1209
|
const elapsed = between$3(from, line.t);
|
|
1210
1210
|
const name = nameOf$1(line, step.ends);
|
|
1211
1211
|
if (step.name !== "OK" && name !== step.name) findings.push(`${step.what}: it ended with ${name}, not ${step.name}`);
|
|
1212
|
-
const [low, high] = [round(valueIn(step.low, "s") - noise), round(valueIn(step.high, "s") + noise)];
|
|
1212
|
+
const [low, high] = [round$1(valueIn(step.low, "s") - noise), round$1(valueIn(step.high, "s") + noise)];
|
|
1213
1213
|
if (elapsed.value < low || elapsed.value > high) findings.push(`${step.what}: ${elapsed.value} s is outside [${low}, ${high}] s`);
|
|
1214
1214
|
return {
|
|
1215
1215
|
what: step.what,
|
|
@@ -3779,8 +3779,37 @@ const leafLacks = (views) => {
|
|
|
3779
3779
|
* the outage in the two directions.
|
|
3780
3780
|
*/
|
|
3781
3781
|
const laterMove = (routes, after) => {
|
|
3782
|
-
const firsts = LEAVES.map((leaf) => routes
|
|
3783
|
-
return firsts.every((t) => t !==
|
|
3782
|
+
const firsts = LEAVES.map((leaf) => leafRouteAfter(routes, leaf.name, after, "spine2"));
|
|
3783
|
+
return firsts.every((t) => t !== null) ? Math.max(...firsts) : null;
|
|
3784
|
+
};
|
|
3785
|
+
/**
|
|
3786
|
+
* This function gives the time of the first route of a leaf to its far network after an instant, through a spine. It
|
|
3787
|
+
* gives null when the leaf has no such route. A route that leaves spine1 is a move, and a route back to spine1 is a return.
|
|
3788
|
+
*/
|
|
3789
|
+
const leafRouteAfter = (routes, leaf, after, spine) => {
|
|
3790
|
+
const remote = LEAVES.find((each) => each.name === leaf)?.remote;
|
|
3791
|
+
return routes.find((route) => route.leaf === leaf && route.prefix === remote && route.t > after && !route.deleted && route.dev === PREFERRED_DEVICE === (spine === "spine1"))?.t ?? null;
|
|
3792
|
+
};
|
|
3793
|
+
/**
|
|
3794
|
+
* This function reads the drops of a silence from the output of `iptables-save -c`. It gives null when a chain has no
|
|
3795
|
+
* rule of a silence: a rule with no match and the target `DROP`.
|
|
3796
|
+
*/
|
|
3797
|
+
const silenceDrops = (text) => {
|
|
3798
|
+
const counts = /* @__PURE__ */ new Map();
|
|
3799
|
+
for (const line of text.split("\n")) {
|
|
3800
|
+
const found = /^\[(\d+):\d+\] -A (INPUT|OUTPUT|FORWARD) -j DROP$/.exec(line.trim());
|
|
3801
|
+
if (found !== null) counts.set(found[2], (counts.get(found[2]) ?? 0) + Number(found[1]));
|
|
3802
|
+
}
|
|
3803
|
+
const [input, output, forward] = [
|
|
3804
|
+
"INPUT",
|
|
3805
|
+
"OUTPUT",
|
|
3806
|
+
"FORWARD"
|
|
3807
|
+
].map((chain) => counts.get(chain));
|
|
3808
|
+
return input === void 0 || output === void 0 || forward === void 0 ? null : {
|
|
3809
|
+
input,
|
|
3810
|
+
output,
|
|
3811
|
+
forward
|
|
3812
|
+
};
|
|
3784
3813
|
};
|
|
3785
3814
|
/** This function runs a program on the host and gives its output. Its error holds the stderr of the program. */
|
|
3786
3815
|
const host = (program, args) => new Promise((resolve, reject) => {
|
|
@@ -3917,6 +3946,12 @@ const openFabric = async (parts) => {
|
|
|
3917
3946
|
routes,
|
|
3918
3947
|
silence: () => stamp("silence"),
|
|
3919
3948
|
clear: () => stamp("clear-silence"),
|
|
3949
|
+
drops: async () => silenceDrops(await output(silencer, [
|
|
3950
|
+
"iptables-save",
|
|
3951
|
+
"-c",
|
|
3952
|
+
"-t",
|
|
3953
|
+
"filter"
|
|
3954
|
+
])),
|
|
3920
3955
|
async ready() {
|
|
3921
3956
|
const deadline = Date.now() + READY_MS;
|
|
3922
3957
|
for (;;) {
|
|
@@ -3947,6 +3982,11 @@ const openFabric = async (parts) => {
|
|
|
3947
3982
|
for (const leaf of LEAVES) out[leaf.name] = sessionsOf(await vtysh(leaf.name, "show bgp neighbors json")).established;
|
|
3948
3983
|
return out;
|
|
3949
3984
|
},
|
|
3985
|
+
async bgp() {
|
|
3986
|
+
const out = {};
|
|
3987
|
+
for (const leaf of LEAVES) out[leaf.name] = sessionsOf(await vtysh(leaf.name, "show bgp neighbors json"));
|
|
3988
|
+
return out;
|
|
3989
|
+
},
|
|
3950
3990
|
manifest: () => ({
|
|
3951
3991
|
...fabric,
|
|
3952
3992
|
image: FRR_IMAGE,
|
|
@@ -5619,6 +5659,372 @@ const recordProblems = (record) => [.../* @__PURE__ */ new Set([
|
|
|
5619
5659
|
...record.manifests.flatMap((manifest) => manifestProblems(manifest)),
|
|
5620
5660
|
...record.debug === true ? [DEBUG] : []
|
|
5621
5661
|
])];
|
|
5662
|
+
// src/fabric-tier.ts
|
|
5663
|
+
/**
|
|
5664
|
+
* The fabric tier applies a fault to the routed fabric of `fabric.ts` (layer E3), and records what the routers and a
|
|
5665
|
+
* stream of datagrams did. Four routers of FRRouting, two leaves and two spines, run eBGP under containerlab. A client
|
|
5666
|
+
* behind leaf1 sends a numbered UDP datagram to a target behind leaf2 each 50 ms. The path goes through spine1.
|
|
5667
|
+
*
|
|
5668
|
+
* Each fault uses the silence of `fabric.ts`: the injector drops each packet of spine1 in one commit, and the links stay
|
|
5669
|
+
* up. Thus only the BGP hold timer can see the fault.
|
|
5670
|
+
*
|
|
5671
|
+
* - `stall` silences spine1 for `ms`, then ends the silence. Under the hold time, no route changes.
|
|
5672
|
+
* - `blackhole` silences spine1 until each leaf moves its route to spine2. Then the stream goes through spine2.
|
|
5673
|
+
* - `route-flap` is a blackhole, then the end of the silence, until each leaf is back on spine1.
|
|
5674
|
+
*
|
|
5675
|
+
* The tier needs Docker, containerlab and sudo on a Linux host. Thus it operates only in CI, in the workflow `fabric.yml`.
|
|
5676
|
+
*/
|
|
5677
|
+
/** The format of a record of the fabric tier. */
|
|
5678
|
+
const FABRIC_RECORD_FORMAT = "harness-fabric/1";
|
|
5679
|
+
/** The kinds of fault that the fabric tier applies, in a stable sequence. The rig `systems.fabric-tier` names the same kinds. */
|
|
5680
|
+
const FABRIC_TIER_FAULTS = [
|
|
5681
|
+
"stall",
|
|
5682
|
+
"blackhole",
|
|
5683
|
+
"route-flap"
|
|
5684
|
+
];
|
|
5685
|
+
/**
|
|
5686
|
+
* The BGP timers of the tier: keepalive 2 s, hold 6 s, and no BFD. Only the hold timer detects a silence, thus a move
|
|
5687
|
+
* comes 4 s to 6 s after the start of a silence.
|
|
5688
|
+
*/
|
|
5689
|
+
const FABRIC_TIER_TIMERS = {
|
|
5690
|
+
keepalive: {
|
|
5691
|
+
value: 2,
|
|
5692
|
+
unit: "s"
|
|
5693
|
+
},
|
|
5694
|
+
hold: {
|
|
5695
|
+
value: 6,
|
|
5696
|
+
unit: "s"
|
|
5697
|
+
},
|
|
5698
|
+
bfd: null
|
|
5699
|
+
};
|
|
5700
|
+
/** The image of the client and the target of the stream: Node.js 24.21.0, pinned by digest. */
|
|
5701
|
+
const FABRIC_STREAM_IMAGE = "node:24.21.0-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1";
|
|
5702
|
+
/** The UDP port of the target of the stream. */
|
|
5703
|
+
const FABRIC_STREAM_PORT = 9e3;
|
|
5704
|
+
/** The client sends one datagram in each interval of this length in ms. */
|
|
5705
|
+
const FABRIC_STREAM_INTERVAL_MS = 50;
|
|
5706
|
+
/** The folder of the scripts of the stream in the client and in the target. */
|
|
5707
|
+
const SCRIPTS = "/opt/fabric";
|
|
5708
|
+
/** The client starts the stream when this file exists. */
|
|
5709
|
+
const GO = "/tmp/fabric-go";
|
|
5710
|
+
/** A record holds each interval between two datagrams that is longer than this time in ms: two intervals of the stream. */
|
|
5711
|
+
const GAP_MS = 100;
|
|
5712
|
+
/** The stream operates for this time in ms before a fault, thus a record shows the stream before the fault. */
|
|
5713
|
+
const LEAD_MS = 1e3;
|
|
5714
|
+
/** The stream operates for this time in ms after a stall or a route flap, thus a record shows the stream after the fault. */
|
|
5715
|
+
const TAIL_MS$4 = 2e3;
|
|
5716
|
+
/** After a move, a blackhole holds the silence for this time in ms, thus a record shows the stream on spine2. */
|
|
5717
|
+
const RESUME_MS = 1e3;
|
|
5718
|
+
/** The limit in ms for the move of each leaf after the start of a silence: the hold time of 6 s, with a margin. */
|
|
5719
|
+
const MOVE_MS = 15e3;
|
|
5720
|
+
/** The limit in ms for the first datagram of the stream after its start. */
|
|
5721
|
+
const FIRST_MS = 1e4;
|
|
5722
|
+
const POLL_MS$1 = 50;
|
|
5723
|
+
/**
|
|
5724
|
+
* The target of the stream writes one JSON line for each datagram: its number and its time on CLOCK_MONOTONIC in ns.
|
|
5725
|
+
* `process.hrtime` of Node.js reads CLOCK_MONOTONIC. The clock is the same in each container and on the host.
|
|
5726
|
+
*/
|
|
5727
|
+
const FABRIC_SINK_SCRIPT = String.raw`import { createSocket } from "node:dgram";
|
|
5728
|
+
const port = Number(process.argv[2]);
|
|
5729
|
+
const socket = createSocket("udp4");
|
|
5730
|
+
socket.on("message", (data) => {
|
|
5731
|
+
const t = process.hrtime.bigint();
|
|
5732
|
+
const seq = Number(data.toString("utf8"));
|
|
5733
|
+
if (Number.isInteger(seq)) process.stdout.write('{"ev":"got","seq":' + seq + ',"t":' + t + '}\n');
|
|
5734
|
+
});
|
|
5735
|
+
socket.bind(port, () => process.stdout.write('{"ev":"ready","port":' + port + '}\n'));
|
|
5736
|
+
`;
|
|
5737
|
+
/**
|
|
5738
|
+
* The client of the stream waits for the file of its fourth argument. Then it sends a datagram with the next number
|
|
5739
|
+
* each interval of its third argument in ms, on a schedule from its start. A send that fails does not stop the stream.
|
|
5740
|
+
*/
|
|
5741
|
+
const FABRIC_STREAM_SCRIPT = String.raw`import { createSocket } from "node:dgram";
|
|
5742
|
+
import { existsSync } from "node:fs";
|
|
5743
|
+
const [host, portText, intervalText, go] = process.argv.slice(2);
|
|
5744
|
+
const port = Number(portText);
|
|
5745
|
+
const interval = BigInt(Number(intervalText) * 1000000);
|
|
5746
|
+
const socket = createSocket("udp4");
|
|
5747
|
+
socket.on("error", () => undefined);
|
|
5748
|
+
const start = () => {
|
|
5749
|
+
const origin = process.hrtime.bigint();
|
|
5750
|
+
process.stdout.write('{"ev":"go","t":' + origin + '}\n');
|
|
5751
|
+
let seq = 0;
|
|
5752
|
+
const tick = () => {
|
|
5753
|
+
socket.send(String(seq), port, host, () => undefined);
|
|
5754
|
+
seq += 1;
|
|
5755
|
+
const next = origin + BigInt(seq) * interval;
|
|
5756
|
+
setTimeout(tick, Math.max(0, Number(next - process.hrtime.bigint()) / 1e6));
|
|
5757
|
+
};
|
|
5758
|
+
tick();
|
|
5759
|
+
};
|
|
5760
|
+
const wait = () => (existsSync(go) ? start() : setTimeout(wait, 100));
|
|
5761
|
+
wait();
|
|
5762
|
+
`;
|
|
5763
|
+
/** This function reads one line of the target of the stream, or it gives null for another line. */
|
|
5764
|
+
const arrivalOf = (line) => {
|
|
5765
|
+
try {
|
|
5766
|
+
const value = JSON.parse(line);
|
|
5767
|
+
return value.ev === "got" && Number.isInteger(value.seq) && typeof value.t === "number" ? {
|
|
5768
|
+
seq: value.seq,
|
|
5769
|
+
t: value.t
|
|
5770
|
+
} : null;
|
|
5771
|
+
} catch {
|
|
5772
|
+
return null;
|
|
5773
|
+
}
|
|
5774
|
+
};
|
|
5775
|
+
/** This function gives each problem of a fault of the fabric tier. An empty list means that the fault is correct. */
|
|
5776
|
+
const fabricFaultProblems = (fault) => {
|
|
5777
|
+
const kind = fault.kind;
|
|
5778
|
+
if (kind !== "none" && !FABRIC_TIER_FAULTS.includes(kind)) return [`the fabric tier does not apply the kind ${String(kind)}. It applies ${FABRIC_TIER_FAULTS.join(", ")} and the control none.`];
|
|
5779
|
+
if (kind === "none" || kind === "stall") {
|
|
5780
|
+
const ms = fault.ms;
|
|
5781
|
+
if (!(typeof ms === "number" && Number.isFinite(ms) && ms > 0)) return [`the ms of a ${kind} is a positive number, not ${String(ms)}`];
|
|
5782
|
+
}
|
|
5783
|
+
return [];
|
|
5784
|
+
};
|
|
5785
|
+
/**
|
|
5786
|
+
* This function gives the stream of a window from the arrivals of the target. `from` and `to` are times on
|
|
5787
|
+
* CLOCK_MONOTONIC in ns, and each time of the stream is in ms from `from`.
|
|
5788
|
+
*/
|
|
5789
|
+
const fabricStreamOf = (arrivals, from, to) => {
|
|
5790
|
+
const inside = arrivals.filter((each) => each.t >= from && each.t <= to).sort((a, b) => a.t - b.t);
|
|
5791
|
+
const seqs = new Set(inside.map((each) => each.seq));
|
|
5792
|
+
const firstSeq = inside.length === 0 ? null : Math.min(...seqs);
|
|
5793
|
+
const lastSeq = inside.length === 0 ? null : Math.max(...seqs);
|
|
5794
|
+
const gaps = [];
|
|
5795
|
+
let longest = 0;
|
|
5796
|
+
for (let at = 1; at < inside.length; at += 1) {
|
|
5797
|
+
const [before, after] = [inside[at - 1], inside[at]];
|
|
5798
|
+
const ms = (after.t - before.t) / 1e6;
|
|
5799
|
+
longest = Math.max(longest, ms);
|
|
5800
|
+
if (ms > GAP_MS) gaps.push({
|
|
5801
|
+
at: msFrom(before.t, from),
|
|
5802
|
+
ms: round(ms),
|
|
5803
|
+
after: before.seq,
|
|
5804
|
+
before: after.seq
|
|
5805
|
+
});
|
|
5806
|
+
}
|
|
5807
|
+
return {
|
|
5808
|
+
intervalMs: 50,
|
|
5809
|
+
received: inside.length,
|
|
5810
|
+
firstSeq,
|
|
5811
|
+
lastSeq,
|
|
5812
|
+
lost: firstSeq === null || lastSeq === null ? 0 : lastSeq - firstSeq + 1 - seqs.size,
|
|
5813
|
+
first: inside.length === 0 ? null : msFrom(inside[0].t, from),
|
|
5814
|
+
last: inside.length === 0 ? null : msFrom(inside.at(-1).t, from),
|
|
5815
|
+
longest: round(longest),
|
|
5816
|
+
gaps
|
|
5817
|
+
};
|
|
5818
|
+
};
|
|
5819
|
+
const round = (ms) => Math.round(ms * 1e3) / 1e3;
|
|
5820
|
+
const msFrom = (t, origin) => round((t - origin) / 1e6);
|
|
5821
|
+
const now = () => Number(process.hrtime.bigint());
|
|
5822
|
+
/** This function waits until a value is not null, or until a limit in ms passes. Then it gives null. */
|
|
5823
|
+
const until$1 = async (read, limitMs) => {
|
|
5824
|
+
const deadline = performance.now() + limitMs;
|
|
5825
|
+
for (;;) {
|
|
5826
|
+
const value = read();
|
|
5827
|
+
if (value !== null || performance.now() > deadline) return value;
|
|
5828
|
+
await setTimeout$1(POLL_MS$1);
|
|
5829
|
+
}
|
|
5830
|
+
};
|
|
5831
|
+
/**
|
|
5832
|
+
* This function opens the lab of the fabric tier. It builds the image of the harness once, and starts the target and
|
|
5833
|
+
* the client of the stream. Then it deploys the routers with the timers of `FABRIC_TIER_TIMERS`, and starts the stream.
|
|
5834
|
+
* The promise rejects when the fabric is not ready, or when no datagram arrives.
|
|
5835
|
+
*/
|
|
5836
|
+
const openFabricLab = async (options) => {
|
|
5837
|
+
const image = await harnessImage();
|
|
5838
|
+
const build = buildRecordOf(shippedSource("harness"));
|
|
5839
|
+
const { GenericContainer, Wait } = await containers();
|
|
5840
|
+
const opened = [];
|
|
5841
|
+
const arrivals = [];
|
|
5842
|
+
let fabric;
|
|
5843
|
+
const close = async () => {
|
|
5844
|
+
await fabric?.close();
|
|
5845
|
+
for (const container of opened.reverse()) await container.stop(STOP).catch(() => void 0);
|
|
5846
|
+
};
|
|
5847
|
+
try {
|
|
5848
|
+
const server = await new GenericContainer(FABRIC_STREAM_IMAGE).withCopyContentToContainer([{
|
|
5849
|
+
content: FABRIC_SINK_SCRIPT,
|
|
5850
|
+
target: `${SCRIPTS}/sink.mjs`
|
|
5851
|
+
}]).withCommand([
|
|
5852
|
+
"node",
|
|
5853
|
+
`${SCRIPTS}/sink.mjs`,
|
|
5854
|
+
String(FABRIC_STREAM_PORT)
|
|
5855
|
+
]).withWaitStrategy(Wait.forLogMessage(/"ev":"ready"/)).withLogConsumer((stream) => {
|
|
5856
|
+
let rest = "";
|
|
5857
|
+
stream.on("data", (chunk) => {
|
|
5858
|
+
const lines = (rest + chunk.toString()).split("\n");
|
|
5859
|
+
rest = lines.pop() ?? "";
|
|
5860
|
+
for (const line of lines) {
|
|
5861
|
+
const arrival = arrivalOf(line);
|
|
5862
|
+
if (arrival !== null) arrivals.push(arrival);
|
|
5863
|
+
}
|
|
5864
|
+
});
|
|
5865
|
+
}).start();
|
|
5866
|
+
opened.push(server);
|
|
5867
|
+
const client = await new GenericContainer(FABRIC_STREAM_IMAGE).withCopyContentToContainer([{
|
|
5868
|
+
content: FABRIC_STREAM_SCRIPT,
|
|
5869
|
+
target: `${SCRIPTS}/stream.mjs`
|
|
5870
|
+
}]).withCommand([
|
|
5871
|
+
"node",
|
|
5872
|
+
`${SCRIPTS}/stream.mjs`,
|
|
5873
|
+
FABRIC_TARGET,
|
|
5874
|
+
String(FABRIC_STREAM_PORT),
|
|
5875
|
+
String(50),
|
|
5876
|
+
GO
|
|
5877
|
+
]).start();
|
|
5878
|
+
opened.push(client);
|
|
5879
|
+
const admin = await new GenericContainer(image).withNetworkMode(`container:${client.getId()}`).withPrivilegedMode().start();
|
|
5880
|
+
opened.push(admin);
|
|
5881
|
+
const injector = await new GenericContainer(image).withNetworkMode(`container:${server.getId()}`).withAddedCapabilities("NET_ADMIN", "NET_RAW").start();
|
|
5882
|
+
opened.push(injector);
|
|
5883
|
+
fabric = await openFabric({
|
|
5884
|
+
fabric: FABRIC_TIER_TIMERS,
|
|
5885
|
+
image,
|
|
5886
|
+
client,
|
|
5887
|
+
server,
|
|
5888
|
+
admin,
|
|
5889
|
+
injector,
|
|
5890
|
+
opened,
|
|
5891
|
+
output
|
|
5892
|
+
});
|
|
5893
|
+
await fabric.ready();
|
|
5894
|
+
await output(client, ["touch", GO]);
|
|
5895
|
+
if (await until$1(() => arrivals.length > 0 ? true : null, FIRST_MS) === null) throw new Error(`openFabricLab: no datagram of the stream arrived in ${FIRST_MS} ms.`);
|
|
5896
|
+
return {
|
|
5897
|
+
fabric,
|
|
5898
|
+
arrivals,
|
|
5899
|
+
image: {
|
|
5900
|
+
tag: image,
|
|
5901
|
+
...build === void 0 ? {} : { build }
|
|
5902
|
+
},
|
|
5903
|
+
code: options.code,
|
|
5904
|
+
substrate: substrateHere("E3"),
|
|
5905
|
+
close
|
|
5906
|
+
};
|
|
5907
|
+
} catch (error) {
|
|
5908
|
+
await close();
|
|
5909
|
+
throw error;
|
|
5910
|
+
}
|
|
5911
|
+
};
|
|
5912
|
+
/**
|
|
5913
|
+
* This function applies one fault, or the control, to the lab, and gives its record. It throws a `RangeError` for a
|
|
5914
|
+
* fault with problems. First it waits until each leaf is on spine1 with each session up. The window of the record starts
|
|
5915
|
+
* `LEAD_MS` before the fault.
|
|
5916
|
+
*/
|
|
5917
|
+
const runFabricFault = async (lab, fault) => {
|
|
5918
|
+
const problems = fabricFaultProblems(fault);
|
|
5919
|
+
if (problems.length > 0) throw new RangeError(`runFabricFault: ${problems.join(" ")}`);
|
|
5920
|
+
const { fabric } = lab;
|
|
5921
|
+
await fabric.ready();
|
|
5922
|
+
const at = (/* @__PURE__ */ new Date()).toISOString();
|
|
5923
|
+
const before = await fabric.bgp();
|
|
5924
|
+
const origin = now();
|
|
5925
|
+
await setTimeout$1(LEAD_MS);
|
|
5926
|
+
let silence = null;
|
|
5927
|
+
let clear = null;
|
|
5928
|
+
let drops = null;
|
|
5929
|
+
let after;
|
|
5930
|
+
switch (fault.kind) {
|
|
5931
|
+
case "none":
|
|
5932
|
+
await setTimeout$1(fault.ms);
|
|
5933
|
+
break;
|
|
5934
|
+
case "stall":
|
|
5935
|
+
silence = await fabric.silence();
|
|
5936
|
+
await setTimeout$1(fault.ms);
|
|
5937
|
+
drops = await fabric.drops();
|
|
5938
|
+
clear = await fabric.clear();
|
|
5939
|
+
await setTimeout$1(TAIL_MS$4);
|
|
5940
|
+
break;
|
|
5941
|
+
case "blackhole":
|
|
5942
|
+
case "route-flap": {
|
|
5943
|
+
silence = await fabric.silence();
|
|
5944
|
+
const t0 = silence.t0;
|
|
5945
|
+
if (await until$1(() => laterMove(fabric.routes, t0), MOVE_MS) !== null) await setTimeout$1(RESUME_MS);
|
|
5946
|
+
drops = await fabric.drops();
|
|
5947
|
+
if (fault.kind === "blackhole") after = await fabric.bgp();
|
|
5948
|
+
clear = await fabric.clear();
|
|
5949
|
+
if (fault.kind === "route-flap") {
|
|
5950
|
+
await fabric.ready();
|
|
5951
|
+
await setTimeout$1(TAIL_MS$4);
|
|
5952
|
+
}
|
|
5953
|
+
break;
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5956
|
+
after ??= await fabric.bgp();
|
|
5957
|
+
const end = now();
|
|
5958
|
+
const stamp = (pair) => pair === null ? null : {
|
|
5959
|
+
t0: msFrom(pair.t0, origin),
|
|
5960
|
+
t1: msFrom(pair.t1, origin)
|
|
5961
|
+
};
|
|
5962
|
+
const routes = fabric.routes.filter((route) => route.t >= origin && route.t <= end);
|
|
5963
|
+
const leaves = ROUTERS.filter((router) => router.remote !== void 0).map((leaf) => {
|
|
5964
|
+
const away = silence === null ? null : leafRouteAfter(routes, leaf.name, silence.t0, "spine2");
|
|
5965
|
+
const back = clear === null ? null : leafRouteAfter(routes, leaf.name, clear.t0, "spine1");
|
|
5966
|
+
return {
|
|
5967
|
+
leaf: leaf.name,
|
|
5968
|
+
away: away === null || silence === null ? null : round((away - silence.t0) / 1e6),
|
|
5969
|
+
back: back === null || clear === null ? null : round((back - clear.t0) / 1e6),
|
|
5970
|
+
changes: routes.filter((route) => route.leaf === leaf.name && route.prefix === leaf.remote).length
|
|
5971
|
+
};
|
|
5972
|
+
});
|
|
5973
|
+
const moved = silence === null ? null : laterMove(routes, silence.t0);
|
|
5974
|
+
const resumedAt = moved === null || clear === null ? void 0 : lab.arrivals.find((each) => each.t > moved && each.t < clear.t0)?.t;
|
|
5975
|
+
const manifest = fabric.manifest();
|
|
5976
|
+
return {
|
|
5977
|
+
format: FABRIC_RECORD_FORMAT,
|
|
5978
|
+
fault,
|
|
5979
|
+
at,
|
|
5980
|
+
code: lab.code,
|
|
5981
|
+
substrate: lab.substrate,
|
|
5982
|
+
image: lab.image,
|
|
5983
|
+
frr: {
|
|
5984
|
+
image: FRR_IMAGE,
|
|
5985
|
+
digest: FRR_IMAGE.slice(FRR_IMAGE.indexOf("@") + 1)
|
|
5986
|
+
},
|
|
5987
|
+
stream: {
|
|
5988
|
+
...fabricStreamOf(lab.arrivals, origin, end),
|
|
5989
|
+
image: FABRIC_STREAM_IMAGE,
|
|
5990
|
+
port: FABRIC_STREAM_PORT
|
|
5991
|
+
},
|
|
5992
|
+
containerlab: manifest.containerlab,
|
|
5993
|
+
timers: {
|
|
5994
|
+
keepaliveS: valueIn(FABRIC_TIER_TIMERS.keepalive, "s"),
|
|
5995
|
+
holdS: valueIn(FABRIC_TIER_TIMERS.hold, "s"),
|
|
5996
|
+
bfd: null
|
|
5997
|
+
},
|
|
5998
|
+
window: msFrom(end, origin),
|
|
5999
|
+
injector: {
|
|
6000
|
+
silence: stamp(silence),
|
|
6001
|
+
clear: stamp(clear),
|
|
6002
|
+
drops
|
|
6003
|
+
},
|
|
6004
|
+
resumed: resumedAt === void 0 || moved === null ? null : round((resumedAt - moved) / 1e6),
|
|
6005
|
+
leaves,
|
|
6006
|
+
routes: routes.map((route) => ({
|
|
6007
|
+
...route,
|
|
6008
|
+
t: msFrom(route.t, origin)
|
|
6009
|
+
})),
|
|
6010
|
+
sessions: {
|
|
6011
|
+
before,
|
|
6012
|
+
after
|
|
6013
|
+
}
|
|
6014
|
+
};
|
|
6015
|
+
};
|
|
6016
|
+
/**
|
|
6017
|
+
* This function gives each problem of the pins of a fabric record. The pins are the commit of the code and the image of
|
|
6018
|
+
* the harness with its build record. The FRR image and the image of the stream need a digest. A checkout with changes is
|
|
6019
|
+
* also a problem. A record with a problem is not a record.
|
|
6020
|
+
*/
|
|
6021
|
+
const fabricRecordProblems = (record) => [.../* @__PURE__ */ new Set([
|
|
6022
|
+
...commitProblems(record.code?.commit),
|
|
6023
|
+
...record.code?.dirty === true ? [DIRTY] : [],
|
|
6024
|
+
...imagePinProblems("the image of the harness", record.image.tag, record.image.build),
|
|
6025
|
+
...imagePinProblems("the image of FRRouting", record.frr.image, void 0),
|
|
6026
|
+
...imagePinProblems("the image of the stream", record.stream.image, void 0)
|
|
6027
|
+
])];
|
|
5622
6028
|
// src/disk.ts
|
|
5623
6029
|
/**
|
|
5624
6030
|
* The disk tier applies a disk plan of `@mark1russell7/rigor-chaos` to the files of a program. Each fault starts one new
|
|
@@ -5637,7 +6043,19 @@ const recordProblems = (record) => [.../* @__PURE__ */ new Set([
|
|
|
5637
6043
|
* A fault of the kind `torn-write` arms LazyFS at its point. At a step, the writer pauses itself with `SIGSTOP`. The tier
|
|
5638
6044
|
* sends the command `lazyfs::torn-op` for the file `tornFile` of the subject, waits for the answer of LazyFS, and then
|
|
5639
6045
|
* continues the writer. The next write to the file keeps only its first parts on the disk, and LazyFS ends: a power cut
|
|
5640
|
-
* in that write.
|
|
6046
|
+
* in that write.
|
|
6047
|
+
*
|
|
6048
|
+
* LazyFS cannot fail an fsync, fill the disk or slow a write. Thus the image has a second FUSE layer, `faultfs`, above
|
|
6049
|
+
* LazyFS: the writer writes in its mount. The tier arms it at the point of a fault, as it arms LazyFS for a torn write:
|
|
6050
|
+
*
|
|
6051
|
+
* - `fsync-error` fails the next fsync with `EIO`. The layer writes back the old bytes of each write after the last
|
|
6052
|
+
* good fsync. Linux also drops the dirty pages after a failed writeback. Thus a retry of the fsync passes, but
|
|
6053
|
+
* the writes are lost. With `keepDirty`, the layer keeps the writes, and a later good fsync makes them durable.
|
|
6054
|
+
* - `full` fails each write from the point with `ENOSPC`.
|
|
6055
|
+
* - `slow` adds `ms` to each write and each fsync from the point.
|
|
6056
|
+
*
|
|
6057
|
+
* The writer of these kinds runs on after the point. After its end, the tier cuts the power as for `lose-unsynced`, and
|
|
6058
|
+
* the check reads what the disk kept. The record keeps each operation that the fault changed.
|
|
5641
6059
|
*
|
|
5642
6060
|
* The container is privileged: it needs `/dev/fuse` and a mount. The AppArmor profile of Docker refuses a FUSE mount in
|
|
5643
6061
|
* a container that is not privileged. Thus the tier operates only in CI, in the workflow `disk.yml`.
|
|
@@ -5669,8 +6087,22 @@ const EXIT_MS = 5e3;
|
|
|
5669
6087
|
const WRITER_MS = 6e4;
|
|
5670
6088
|
/** The time in s for the clear of the cache. */
|
|
5671
6089
|
const CLEAR_S = 30;
|
|
6090
|
+
/** The FIFO of the commands of the fault layer `faultfs`. */
|
|
6091
|
+
const LAYER_COMMANDS = "/run/faultfs/commands.fifo";
|
|
6092
|
+
/** The fault layer writes one answer to each command to this file: `ok <command>` or `error <command>`. */
|
|
6093
|
+
const LAYER_ACKS = "/run/faultfs/acks";
|
|
6094
|
+
/** The fault layer writes one line to this file for each operation that a fault changed. */
|
|
6095
|
+
const LAYER_HITS = "/run/faultfs/hits";
|
|
6096
|
+
/** A record keeps this number of the first lines of `LAYER_HITS`. */
|
|
6097
|
+
const HITS_LIMIT = 20;
|
|
5672
6098
|
/** The kinds of `@mark1russell7/rigor-chaos` that the disk tier applies. The tier refuses a fault of each other kind. */
|
|
5673
|
-
const DISK_TIER_KINDS = [
|
|
6099
|
+
const DISK_TIER_KINDS = [
|
|
6100
|
+
"lose-unsynced",
|
|
6101
|
+
"torn-write",
|
|
6102
|
+
"fsync-error",
|
|
6103
|
+
"full",
|
|
6104
|
+
"slow"
|
|
6105
|
+
];
|
|
5674
6106
|
const isArgv = (value) => Array.isArray(value) && value.length > 0 && value.every((part) => typeof part === "string" && part.length > 0);
|
|
5675
6107
|
/** This function gives each problem of a subject of the disk tier. An empty list means that the subject is correct. */
|
|
5676
6108
|
const diskSubjectProblems = (subject) => {
|
|
@@ -5701,6 +6133,18 @@ const diskTornCommand = (file, keep) => {
|
|
|
5701
6133
|
const persist = Array.from({ length: parts }, (_, index) => index + 1).join(",");
|
|
5702
6134
|
return `lazyfs::torn-op::file=${path}::parts=${TORN_PARTS}::persist=${persist}::occurrence=1`;
|
|
5703
6135
|
};
|
|
6136
|
+
/**
|
|
6137
|
+
* This function gives the command of the fault layer for a fault of the kind `fsync-error`, `full` or `slow`. It gives
|
|
6138
|
+
* `undefined` for each other kind.
|
|
6139
|
+
*/
|
|
6140
|
+
const diskLayerCommand = (fault) => {
|
|
6141
|
+
switch (fault.kind) {
|
|
6142
|
+
case "fsync-error": return fault.keepDirty === true ? "fsync-error keep-dirty" : "fsync-error";
|
|
6143
|
+
case "full": return "full";
|
|
6144
|
+
case "slow": return `slow ${String(fault.ms)}`;
|
|
6145
|
+
default: return;
|
|
6146
|
+
}
|
|
6147
|
+
};
|
|
5704
6148
|
/** This function gives the sha256 of the path and the content of each file under a folder, in a stable sequence. */
|
|
5705
6149
|
const folderDigest = (folder) => {
|
|
5706
6150
|
const root = resolve(folder);
|
|
@@ -5741,7 +6185,7 @@ const tail = (text) => text.slice(-4e3);
|
|
|
5741
6185
|
* cut also covers the write of the command to LazyFS: that write waits when LazyFS did not start.
|
|
5742
6186
|
*
|
|
5743
6187
|
* It also throws a `RangeError` for a kind that is not in `DISK_TIER_KINDS`, and for a `torn-write` of a subject with
|
|
5744
|
-
* no `tornFile`. The promise rejects when LazyFS refuses the command of a
|
|
6188
|
+
* no `tornFile`. The promise rejects when LazyFS or the fault layer refuses the command of a fault, or does not answer it.
|
|
5745
6189
|
*/
|
|
5746
6190
|
const runDiskFault = async (lab, fault) => {
|
|
5747
6191
|
const problems = checkDiskFault(fault);
|
|
@@ -5750,6 +6194,18 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5750
6194
|
const tornFile = lab.subject.tornFile;
|
|
5751
6195
|
if (fault.kind === "torn-write" && tornFile === void 0) throw new RangeError("runDiskFault: a torn-write needs the tornFile of the subject.");
|
|
5752
6196
|
const command = fault.kind === "torn-write" ? diskTornCommand(tornFile, fault.keep) : void 0;
|
|
6197
|
+
const layerCommand = diskLayerCommand(fault);
|
|
6198
|
+
const arm = command !== void 0 ? {
|
|
6199
|
+
name: "LazyFS",
|
|
6200
|
+
command,
|
|
6201
|
+
fifo: FAULTS,
|
|
6202
|
+
acks: ACKS
|
|
6203
|
+
} : layerCommand !== void 0 ? {
|
|
6204
|
+
name: "the fault layer",
|
|
6205
|
+
command: layerCommand,
|
|
6206
|
+
fifo: LAYER_COMMANDS,
|
|
6207
|
+
acks: LAYER_ACKS
|
|
6208
|
+
} : void 0;
|
|
5753
6209
|
const trigger = stopTriggerOf(fault.at);
|
|
5754
6210
|
if (trigger === void 0) throw new RangeError(`runDiskFault: the point of the fault is not a step or a time.`);
|
|
5755
6211
|
const at = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -5762,7 +6218,7 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5762
6218
|
const runtime = await getContainerRuntimeClient();
|
|
5763
6219
|
const id = (await runtime.container.inspect(runtime.container.getById(container.getId()))).Image;
|
|
5764
6220
|
const env = lab.subject.env ?? {};
|
|
5765
|
-
const order =
|
|
6221
|
+
const order = arm !== void 0 && trigger.measure === "step" ? {
|
|
5766
6222
|
progress: PROGRESS,
|
|
5767
6223
|
step: trigger.value,
|
|
5768
6224
|
signal: "SIGSTOP"
|
|
@@ -5770,7 +6226,7 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5770
6226
|
at: fault.at,
|
|
5771
6227
|
signal: "SIGKILL"
|
|
5772
6228
|
}, PROGRESS);
|
|
5773
|
-
const limitMs = trigger.measure === "ms" &&
|
|
6229
|
+
const limitMs = trigger.measure === "ms" && arm === void 0 ? trigger.value : lab.subject.timeoutMs ?? WRITER_MS;
|
|
5774
6230
|
if (command !== void 0) await container.exec(["touch", ARMED]);
|
|
5775
6231
|
const started = performance.now();
|
|
5776
6232
|
let ended = false;
|
|
@@ -5790,7 +6246,7 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5790
6246
|
ended = true;
|
|
5791
6247
|
});
|
|
5792
6248
|
writing.catch(() => void 0);
|
|
5793
|
-
const armed =
|
|
6249
|
+
const armed = arm === void 0 ? false : await armLayer(container, trigger, arm, () => ended);
|
|
5794
6250
|
const write = await writing;
|
|
5795
6251
|
const ms = performance.now() - started;
|
|
5796
6252
|
let torn;
|
|
@@ -5803,6 +6259,17 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5803
6259
|
exit
|
|
5804
6260
|
};
|
|
5805
6261
|
}
|
|
6262
|
+
let layer;
|
|
6263
|
+
if (layerCommand !== void 0) {
|
|
6264
|
+
const hits = await container.exec(["cat", LAYER_HITS]);
|
|
6265
|
+
const lines = hits.exitCode === 0 ? hits.stdout.split("\n").filter((line) => line.length > 0) : [];
|
|
6266
|
+
layer = {
|
|
6267
|
+
command: layerCommand,
|
|
6268
|
+
armed,
|
|
6269
|
+
hits: lines.length,
|
|
6270
|
+
first: lines.slice(0, HITS_LIMIT)
|
|
6271
|
+
};
|
|
6272
|
+
}
|
|
5806
6273
|
if (torn?.crashed !== true) {
|
|
5807
6274
|
const cut = await container.exec([
|
|
5808
6275
|
"timeout",
|
|
@@ -5830,7 +6297,7 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5830
6297
|
} catch (error) {
|
|
5831
6298
|
throw new Error(`runDiskFault: the output of the check is not one JSON value: ${tail(check.stdout.trim())}`, { cause: error });
|
|
5832
6299
|
}
|
|
5833
|
-
const stopped = trigger.measure === "step" ? lines.some((line) => line.stop === true) : torn
|
|
6300
|
+
const stopped = trigger.measure === "step" ? lines.some((line) => line.stop === true) : torn !== void 0 ? torn.crashed : layer !== void 0 ? layer.armed : write.exitCode === 137;
|
|
5834
6301
|
return {
|
|
5835
6302
|
format: DISK_RECORD_FORMAT,
|
|
5836
6303
|
fault,
|
|
@@ -5854,6 +6321,7 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5854
6321
|
output: tail(write.output)
|
|
5855
6322
|
},
|
|
5856
6323
|
...torn === void 0 ? {} : { torn },
|
|
6324
|
+
...layer === void 0 ? {} : { layer },
|
|
5857
6325
|
persisted,
|
|
5858
6326
|
at
|
|
5859
6327
|
};
|
|
@@ -5862,11 +6330,12 @@ const runDiskFault = async (lab, fault) => {
|
|
|
5862
6330
|
}
|
|
5863
6331
|
};
|
|
5864
6332
|
/**
|
|
5865
|
-
* This function arms LazyFS at the point of a fault, and gives `true` when it sent the command. It
|
|
5866
|
-
* writer ended before the point. At a step, it waits for the pause of the writer, and continues
|
|
5867
|
-
* answer of
|
|
6333
|
+
* This function arms LazyFS or the fault layer at the point of a fault, and gives `true` when it sent the command. It
|
|
6334
|
+
* gives `false` when the writer ended before the point. At a step, it waits for the pause of the writer, and continues
|
|
6335
|
+
* the writer after the answer of the layer. It throws when the layer refuses the command or does not answer it in time.
|
|
5868
6336
|
*/
|
|
5869
|
-
const
|
|
6337
|
+
const armLayer = async (container, trigger, arm, ended) => {
|
|
6338
|
+
const { name, command } = arm;
|
|
5870
6339
|
if (trigger.measure === "ms") {
|
|
5871
6340
|
await setTimeout$1(trigger.value);
|
|
5872
6341
|
if (ended()) return false;
|
|
@@ -5881,18 +6350,18 @@ const armLazyFs = async (container, trigger, command, ended) => {
|
|
|
5881
6350
|
String(CLEAR_S),
|
|
5882
6351
|
"sh",
|
|
5883
6352
|
"-c",
|
|
5884
|
-
`printf '%s\\n' "$1" > ${
|
|
6353
|
+
`printf '%s\\n' "$1" > ${arm.fifo}`,
|
|
5885
6354
|
"sh",
|
|
5886
6355
|
command
|
|
5887
6356
|
]);
|
|
5888
|
-
if (sent.exitCode !== 0) throw new Error(`runDiskFault: the command did not go to
|
|
6357
|
+
if (sent.exitCode !== 0) throw new Error(`runDiskFault: the command did not go to ${name} (exit ${sent.exitCode}): ${tail(sent.output.trim())}`);
|
|
5889
6358
|
const deadline = performance.now() + CLEAR_S * 1e3;
|
|
5890
6359
|
for (;;) {
|
|
5891
|
-
const acks = await container.exec(["cat",
|
|
6360
|
+
const acks = await container.exec(["cat", arm.acks]);
|
|
5892
6361
|
const answer = acks.exitCode === 0 ? acks.stdout.split("\n").find((line) => line.length > 0) : void 0;
|
|
5893
6362
|
if (answer?.startsWith("ok ") === true) break;
|
|
5894
|
-
if (answer !== void 0) throw new Error(`runDiskFault:
|
|
5895
|
-
if (performance.now() > deadline) throw new Error(`runDiskFault:
|
|
6363
|
+
if (answer !== void 0) throw new Error(`runDiskFault: ${name} refused the command ${command}: ${answer}`);
|
|
6364
|
+
if (performance.now() > deadline) throw new Error(`runDiskFault: ${name} did not answer the command ${command} in ${CLEAR_S} s.`);
|
|
5896
6365
|
await setTimeout$1(POLL_MS);
|
|
5897
6366
|
}
|
|
5898
6367
|
if (trigger.measure === "step") await container.exec([
|
|
@@ -9887,6 +10356,6 @@ const runCell = async (cell, say = () => {}) => {
|
|
|
9887
10356
|
target = larger;
|
|
9888
10357
|
}
|
|
9889
10358
|
};
|
|
9890
|
-
export { AWS_FROM, CLIENT_CAPABILITIES, CLIENT_NAMES, CLOSED_TOLERANCE, CLOUDS, CLUSTER_STAGES, CONVERGE_MS, CPU_STATES, DAEMONS, DEBUG, DIRTY, DISK_MOUNT, DISK_RECORD_FORMAT, DISK_ROOT, DISK_SUBJECT, DISK_TIER_KINDS, DROP_HANDLING, FABRIC_CLIENT, FABRIC_DEVICE, FABRIC_TARGET, FRR_IMAGE, GIVES_AWAY, HASH_SCRIPT, INJECT, INSERT, KAFKA_TAIL_MS, KEPT, LAYERS, LAYER_FACTS, LAYER_RIG_ENV, LIMITS, LINGER_MS, LISTING, LOAD_FORMAT, LOAD_PATH, LOAD_POOL_LIMIT, LOCK_NAMES, LOSS_MARGIN, MEMBER_MARKS, MONITOR_DOWN, NODE_MARKS, NOISE, PINNED, PUMP, PUMP_SLACK, QUIET_MS, RELATIVE, REPLICA_SET_STAGES, REPOSITORY, RESOURCES_EVENT, RESOURCES_PROGRAM, RESTART, RIG_TERMS, ROUTERS, SCHEDULE_PATH, SEED_DOCUMENT, SHIPPED_CLIENTS, SHIPPED_NAMES, STAGES, STANDBY_READY, STATUS_SCRIPT, STEPS, STEP_DOWN, TOXIC_RIG_TERMS, amqpClientImage, basesOf, bootstrapOf, brokerEnv, buildOf, buildRecordOf, callOf, cancelsOf, cargoVersions, cgroupKeyed, cgroupLimit, cgroupNumber, clockOffsetOf, closeOrExit, cloudOf, clusterArgs, clusterConf, clusterCutOf, clusterHostsOf, clusterOnce, clusterStagesOf, clusterViewOf, commitProblems, commitVoid, comparable, connectionsProblems, controllerEnv, cpuMaxOf, cpuShares, cpuStatOf, cpusOfList, crossingsOf, cutOf, deadlineOf, delayVoids, deliveryFinding, deliveryOf, deviceOf, diskRecordProblems, diskSubjectProblems, diskTornCommand, drillOnce, drillSpan, dropFinding, dropOf, endpointAfter, envOf, environmentCounts, environmentProblems, errorsOf, estimateOf, estimateVerdict, exitOf, fieldOf, fieldsOf, firstUnanswered, folderDigest, frrConf, goHttpImage, goVersions, groupOnce, groupVerdictOf, grpcClientImage, harnessImage, harnessRecord, harnessVersion, hashOf, highestHeld, hikariClientImage, hostLimitsOf, hzOf, imageOf, imagePinProblems, imageProblems, inContext, infoOf, initiateScript, isFenceLine, isHopPlace, jarVersions, jitterOf, jitterOfLines, judge, kafkaArgs, kafkaClientImage, kafkaCutOf, kafkaOnce, kafkaPauseOnce, kafkaViewOf, lagsOf, laterMove, latestEndOf, layerOf, leafLacks, leftAfter, limitsOf, limitsProblems, loadOf, loadPlanOf, loadVerdict, locksOf, logNameOf, logTimeOf, manifestProblems, matches, measure, measureConntrack, measureDriver, measureEgress, measureGroup, measureMemory, measurePause, measurePorts, measureQueue, medianInterval, memAvailableOf, memberCommand, memberConfig, memberLineOf, memoryStatOf, mongoClientImage, monotonicAt, monotonicOf, namesGroup, networkOf, nodeClientImage, nodeCommand, nodeHttpImage, nodeIdOf, nodeLineOf, nodeNameOf, nodesOnMonotonic, noiseOf, npmDrift, npmVersions, numbersOf, onMonotonic, openClusterLab, openDiskLab, openFabric, openGroupLab, openKafkaLab, openLab, openReplicaSetLab, openStandby, pairArgs, pairOnce, pairingOf, pairingsOf, pauseReady, peersOf, pgClientImage, pingsOf, plainOf, planOf, pongsOf, poolOf, programLines, programOf, quantileOf, readCpu, readCpus, readHost, readOplog, reconnectFinding, reconnectOf, recordProblems, recoveryFindings, recoveryOf, referenceOf, reorderingOf, replicaSetArgs, replicaSetOnce, replicaSetStagesOf, requestOf, requestWords, resourceArgs, resourceChange, resourceReader, resourceReadingIn, resourceReadingOf, restamped, rigTermsOf, roomNeeded, roomVoidOf, routeLine, routerImage, routesOf, runCell, runCpusOf, runDiskFault, seedScript, sentinelConfig, sessionsOf, shippedClientRecord, shippedSource, sliceQuery, socketAt, socketOf, socketsOf, spread, spreadOf, stagesOf, standaloneCommand, standbyCommand, statusViewOf, stealShare, stepBand, stopScript, streamEnded, streamOf, streamsLoadOf, subjectClient, subjectProblems, subscriptionsOf, substrateHere, substrateKey, substrateOf, substrateOn, targetImageOf, targetSourceOf, templated, toolJsonOf, topicOf, topologyOf, toxicBody, unlockedManifests, unpinnedBases, unpoolable, verdictOf, versionsOf, viewOf, writesOf };
|
|
10359
|
+
export { AWS_FROM, CLIENT_CAPABILITIES, CLIENT_NAMES, CLOSED_TOLERANCE, CLOUDS, CLUSTER_STAGES, CONVERGE_MS, CPU_STATES, DAEMONS, DEBUG, DIRTY, DISK_MOUNT, DISK_RECORD_FORMAT, DISK_ROOT, DISK_SUBJECT, DISK_TIER_KINDS, DROP_HANDLING, FABRIC_CLIENT, FABRIC_DEVICE, FABRIC_RECORD_FORMAT, FABRIC_SINK_SCRIPT, FABRIC_STREAM_IMAGE, FABRIC_STREAM_INTERVAL_MS, FABRIC_STREAM_PORT, FABRIC_STREAM_SCRIPT, FABRIC_TARGET, FABRIC_TIER_FAULTS, FABRIC_TIER_TIMERS, FRR_IMAGE, GIVES_AWAY, HASH_SCRIPT, INJECT, INSERT, KAFKA_TAIL_MS, KEPT, LAYERS, LAYER_FACTS, LAYER_RIG_ENV, LIMITS, LINGER_MS, LISTING, LOAD_FORMAT, LOAD_PATH, LOAD_POOL_LIMIT, LOCK_NAMES, LOSS_MARGIN, MEMBER_MARKS, MONITOR_DOWN, NODE_MARKS, NOISE, PINNED, PUMP, PUMP_SLACK, QUIET_MS, RELATIVE, REPLICA_SET_STAGES, REPOSITORY, RESOURCES_EVENT, RESOURCES_PROGRAM, RESTART, RIG_TERMS, ROUTERS, SCHEDULE_PATH, SEED_DOCUMENT, SHIPPED_CLIENTS, SHIPPED_NAMES, STAGES, STANDBY_READY, STATUS_SCRIPT, STEPS, STEP_DOWN, TOXIC_RIG_TERMS, amqpClientImage, arrivalOf, basesOf, bootstrapOf, brokerEnv, buildOf, buildRecordOf, callOf, cancelsOf, cargoVersions, cgroupKeyed, cgroupLimit, cgroupNumber, clockOffsetOf, closeOrExit, cloudOf, clusterArgs, clusterConf, clusterCutOf, clusterHostsOf, clusterOnce, clusterStagesOf, clusterViewOf, commitProblems, commitVoid, comparable, connectionsProblems, controllerEnv, cpuMaxOf, cpuShares, cpuStatOf, cpusOfList, crossingsOf, cutOf, deadlineOf, delayVoids, deliveryFinding, deliveryOf, deviceOf, diskLayerCommand, diskRecordProblems, diskSubjectProblems, diskTornCommand, drillOnce, drillSpan, dropFinding, dropOf, endpointAfter, envOf, environmentCounts, environmentProblems, errorsOf, estimateOf, estimateVerdict, exitOf, fabricFaultProblems, fabricRecordProblems, fabricStreamOf, fieldOf, fieldsOf, firstUnanswered, folderDigest, frrConf, goHttpImage, goVersions, groupOnce, groupVerdictOf, grpcClientImage, harnessImage, harnessRecord, harnessVersion, hashOf, highestHeld, hikariClientImage, hostLimitsOf, hzOf, imageOf, imagePinProblems, imageProblems, inContext, infoOf, initiateScript, isFenceLine, isHopPlace, jarVersions, jitterOf, jitterOfLines, judge, kafkaArgs, kafkaClientImage, kafkaCutOf, kafkaOnce, kafkaPauseOnce, kafkaViewOf, lagsOf, laterMove, latestEndOf, layerOf, leafLacks, leafRouteAfter, leftAfter, limitsOf, limitsProblems, loadOf, loadPlanOf, loadVerdict, locksOf, logNameOf, logTimeOf, manifestProblems, matches, measure, measureConntrack, measureDriver, measureEgress, measureGroup, measureMemory, measurePause, measurePorts, measureQueue, medianInterval, memAvailableOf, memberCommand, memberConfig, memberLineOf, memoryStatOf, mongoClientImage, monotonicAt, monotonicOf, namesGroup, networkOf, nodeClientImage, nodeCommand, nodeHttpImage, nodeIdOf, nodeLineOf, nodeNameOf, nodesOnMonotonic, noiseOf, npmDrift, npmVersions, numbersOf, onMonotonic, openClusterLab, openDiskLab, openFabric, openFabricLab, openGroupLab, openKafkaLab, openLab, openReplicaSetLab, openStandby, pairArgs, pairOnce, pairingOf, pairingsOf, pauseReady, peersOf, pgClientImage, pingsOf, plainOf, planOf, pongsOf, poolOf, programLines, programOf, quantileOf, readCpu, readCpus, readHost, readOplog, reconnectFinding, reconnectOf, recordProblems, recoveryFindings, recoveryOf, referenceOf, reorderingOf, replicaSetArgs, replicaSetOnce, replicaSetStagesOf, requestOf, requestWords, resourceArgs, resourceChange, resourceReader, resourceReadingIn, resourceReadingOf, restamped, rigTermsOf, roomNeeded, roomVoidOf, routeLine, routerImage, routesOf, runCell, runCpusOf, runDiskFault, runFabricFault, seedScript, sentinelConfig, sessionsOf, shippedClientRecord, shippedSource, silenceDrops, sliceQuery, socketAt, socketOf, socketsOf, spread, spreadOf, stagesOf, standaloneCommand, standbyCommand, statusViewOf, stealShare, stepBand, stopScript, streamEnded, streamOf, streamsLoadOf, subjectClient, subjectProblems, subscriptionsOf, substrateHere, substrateKey, substrateOf, substrateOn, targetImageOf, targetSourceOf, templated, toolJsonOf, topicOf, topologyOf, toxicBody, unlockedManifests, unpinnedBases, unpoolable, verdictOf, versionsOf, viewOf, writesOf };
|
|
9891
10360
|
|
|
9892
10361
|
//# sourceMappingURL=index.js.map
|