@mark1russell7/kind 0.14.0 → 0.14.1

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/build/judge.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as factsOf, $t as transitionOf, A as KindCellResult, An as KubeletProbe, At as failuresOf, B as upgradeCell, Bn as ReconnectsPrediction, Bt as restartOf, C as BandV1, Cn as Band, Ct as ZtunnelPodLine, D as FORMAT_V1, Dn as Flap, Dt as deletionOf, E as FORMAT, En as EdgeProtocol, Et as byNode, F as RunCheckV1, Fn as NonePrediction, Ft as periodOf, G as LAST_SLACK, Gn as Stack, Gt as signalsOf, H as KIND_NOISE, Hn as Reference, Ht as rulesOf, I as RunFactsV1, In as PermittedWindow, It as podsAt, J as RunCheck, Jn as TriggerKind, Jt as sliceReadyAt, K as Propagated, Kn as Template, Kt as sliceDropOf, L as TriggerV1, Ln as PodSettings, Lt as podsOf, M as KindVerdictV1, Mn as Mesh, Mt as isTunnelState, N as LoadSample, Nn as MeshFlavor, Nt as kernelCounts, O as KindCellRecord, On as KindCell, Ot as dropOf, P as PredictionV1, Pn as MeshMode, Pt as outcomesOf, Q as deletionsOf, Qn as Workload, Qt as stoppingOf, R as judge, Rn as Prediction, Rt as recordsOf, S as timeSpread, Sn as Backoff, St as TunnelLine, T as EnvironmentManifest, Tn as Declaration, Tt as byClients, U as KindDecision, Un as Replica, Ut as sessionsAt, V as Deleted, Vn as RedisDeclaration, Vt as restartsAt, W as KindVerdict, Wn as ResetReuse, Wt as signalOf, X as checkRun, Xn as VipSettings, Xt as slicesOf, Y as RunFacts, Yn as VipAnnouncerName, Yt as sliceReadyOf, Z as cyclesOf, Zn as WindowPrediction, Zt as socketsOf, _ as TimeSpread, _n as requestBand, _t as RulesLine, a as judgeReconnects, an as LB_CLASS, at as referenceOf, b as medianText, bn as showBand, bt as SocketLine, c as RELATIVE, cn as PORT, ct as updatesOf, d as quantileOf, dn as VIP_ANNOTATION, dt as Line, en as tunnelsOf, er as Dataplane, et as judgeKind, f as STAGES, fn as CountBand, ft as Period, g as Judged, gn as overshootBand, gt as Request, h as readRecord, hn as drainBand, ht as RecordLine, i as Try, in as HEALTH_PORT, ir as KubeProxyMode, it as propagationSource, j as KindCellV1, jn as MemberlistSettings, jt as intakeOf, k as KindCellRecordV1, kn as KindRun, kt as emptyOf, l as medianInterval, ln as REDIS, lt as Endpoint, m as kindCellRecordV1Schema, mn as bandOf, mt as PropagationSource, n as Return, nn as ztunnelReplaced, nt as observationEnd, o as latestReturn, on as LOG_LABEL, ot as reusesReset, p as kindCellRecordSchema, pn as backlogEnd, pt as PodLine, q as ReconnectsFacts, qn as Trigger, qt as sliceEmptyOf, r as Schedule, rn as CLIENT, rt as propagationOf, s as triesOf, sn as OUTSIDE, st as unitOf, t as Reconnects, tn as ztunnelPodsOf, tt as observationAfter, u as middle, un as SERVER, ut as HBONE_PORT, v as calibrationOf, vn as seconds, vt as Sessions, w as ClusterManifest, wn as Cycle, wt as backendsAt, x as predictionText, xn as BacklogTerm, xt as TCP_STATE, y as cellsTable, yn as secondsOf, yt as SliceLine, z as upgrade, zn as PulsarSettings, zt as requestsOf } from "./judge-Cp3MzMk1.js";
1
+ import { $ as factsOf, $t as transitionOf, A as KindCellResult, An as KubeletProbe, At as failuresOf, B as upgradeCell, Bn as ReconnectsPrediction, Bt as restartOf, C as BandV1, Cn as Band, Ct as ZtunnelPodLine, D as FORMAT_V1, Dn as Flap, Dt as deletionOf, E as FORMAT, En as EdgeProtocol, Et as byNode, F as RunCheckV1, Fn as NonePrediction, Ft as periodOf, G as LAST_SLACK, Gn as Stack, Gt as signalsOf, H as KIND_NOISE, Hn as Reference, Ht as rulesOf, I as RunFactsV1, In as PermittedWindow, It as podsAt, J as RunCheck, Jn as TriggerKind, Jt as sliceReadyAt, K as Propagated, Kn as Template, Kt as sliceDropOf, L as TriggerV1, Ln as PodSettings, Lt as podsOf, M as KindVerdictV1, Mn as Mesh, Mt as isTunnelState, N as LoadSample, Nn as MeshFlavor, Nt as kernelCounts, O as KindCellRecord, On as KindCell, Ot as dropOf, P as PredictionV1, Pn as MeshMode, Pt as outcomesOf, Q as deletionsOf, Qn as Workload, Qt as stoppingOf, R as judge, Rn as Prediction, Rt as recordsOf, S as timeSpread, Sn as Backoff, St as TunnelLine, T as EnvironmentManifest, Tn as Declaration, Tt as byClients, U as KindDecision, Un as Replica, Ut as sessionsAt, V as Deleted, Vn as RedisDeclaration, Vt as restartsAt, W as KindVerdict, Wn as ResetReuse, Wt as signalOf, X as checkRun, Xn as VipSettings, Xt as slicesOf, Y as RunFacts, Yn as VipAnnouncerName, Yt as sliceReadyOf, Z as cyclesOf, Zn as WindowPrediction, Zt as socketsOf, _ as TimeSpread, _n as requestBand, _t as RulesLine, a as judgeReconnects, an as LB_CLASS, at as referenceOf, b as medianText, bn as showBand, bt as SocketLine, c as RELATIVE, cn as PORT, ct as updatesOf, d as quantileOf, dn as VIP_ANNOTATION, dt as Line, en as tunnelsOf, er as Dataplane, et as judgeKind, f as STAGES, fn as CountBand, ft as Period, g as Judged, gn as overshootBand, gt as Request, h as readRecord, hn as drainBand, ht as RecordLine, i as Try, in as HEALTH_PORT, ir as KubeProxyMode, it as propagationSource, j as KindCellV1, jn as MemberlistSettings, jt as intakeOf, k as KindCellRecordV1, kn as KindRun, kt as emptyOf, l as medianInterval, ln as REDIS, lt as Endpoint, m as kindCellRecordV1Schema, mn as bandOf, mt as PropagationSource, n as Return, nn as ztunnelReplaced, nt as observationEnd, o as latestReturn, on as LOG_LABEL, ot as reusesReset, p as kindCellRecordSchema, pn as backlogEnd, pt as PodLine, q as ReconnectsFacts, qn as Trigger, qt as sliceEmptyOf, r as Schedule, rn as CLIENT, rt as propagationOf, s as triesOf, sn as OUTSIDE, st as unitOf, t as Reconnects, tn as ztunnelPodsOf, tt as observationAfter, u as middle, un as SERVER, ut as HBONE_PORT, v as calibrationOf, vn as seconds, vt as Sessions, w as ClusterManifest, wn as Cycle, wt as backendsAt, x as predictionText, xn as BacklogTerm, xt as TCP_STATE, y as cellsTable, yn as secondsOf, yt as SliceLine, z as upgrade, zn as PulsarSettings, zt as requestsOf } from "./judge-DLn2PLxb.js";
2
2
  export { type BacklogTerm, type Backoff, type Band, type BandV1, CLIENT, type ClusterManifest, type CountBand, type Cycle, type Dataplane, type Declaration, type Deleted, type EdgeProtocol, Endpoint, type EnvironmentManifest, FORMAT, FORMAT_V1, type Flap, HBONE_PORT, HEALTH_PORT, type Judged, KIND_NOISE, type KindCell, type KindCellRecord, type KindCellRecordV1, type KindCellResult, type KindCellV1, type KindDecision, type KindRun, type KindVerdict, type KindVerdictV1, type KubeProxyMode, type KubeletProbe, LAST_SLACK, LB_CLASS, LOG_LABEL, Line, type LoadSample, type MemberlistSettings, type Mesh, type MeshFlavor, type MeshMode, type NonePrediction, OUTSIDE, PORT, Period, type PermittedWindow, PodLine, type PodSettings, type Prediction, type PredictionV1, type Propagated, PropagationSource, type PulsarSettings, REDIS, RELATIVE, type Reconnects, type ReconnectsFacts, type ReconnectsPrediction, RecordLine, type RedisDeclaration, type Reference, type Replica, Request, type ResetReuse, type Return, RulesLine, type RunCheck, type RunCheckV1, type RunFacts, type RunFactsV1, SERVER, STAGES, type Schedule, Sessions, SliceLine, SocketLine, type Stack, TCP_STATE, type Template, type TimeSpread, type Trigger, type TriggerKind, type TriggerV1, type Try, TunnelLine, VIP_ANNOTATION, type VipAnnouncerName, type VipSettings, type WindowPrediction, type Workload, ZtunnelPodLine, backendsAt, backlogEnd, bandOf, byClients, byNode, calibrationOf, cellsTable, checkRun, cyclesOf, deletionOf, deletionsOf, drainBand, dropOf, emptyOf, factsOf, failuresOf, intakeOf, isTunnelState, judge, judgeKind, judgeReconnects, kernelCounts, kindCellRecordSchema, kindCellRecordV1Schema, latestReturn, medianInterval, medianText, middle, observationAfter, observationEnd, outcomesOf, overshootBand, periodOf, podsAt, podsOf, predictionText, propagationOf, propagationSource, quantileOf, readRecord, recordsOf, referenceOf, requestBand, requestsOf, restartOf, restartsAt, reusesReset, rulesOf, seconds, secondsOf, sessionsAt, showBand, signalOf, signalsOf, sliceDropOf, sliceEmptyOf, sliceReadyAt, sliceReadyOf, slicesOf, socketsOf, stoppingOf, timeSpread, transitionOf, triesOf, tunnelsOf, unitOf, updatesOf, upgrade, upgradeCell, ztunnelPodsOf, ztunnelReplaced };
package/build/judge.js CHANGED
@@ -1 +1 @@
1
- export { vt as CLIENT, u as FORMAT, d as FORMAT_V1, N as HBONE_PORT, yt as HEALTH_PORT, h as KIND_NOISE, g as LAST_SLACK, bt as LB_CLASS, xt as LOG_LABEL, St as OUTSIDE, Ct as PORT, wt as REDIS, mt as RELATIVE, Tt as SERVER, t as STAGES, P as TCP_STATE, Et as VIP_ANNOTATION, F as backendsAt, Dt as backlogEnd, Ot as bandOf, I as byClients, L as byNode, a as calibrationOf, o as cellsTable, _ as checkRun, v as cyclesOf, R as deletionOf, y as deletionsOf, kt as drainBand, z as dropOf, B as emptyOf, b as factsOf, V as failuresOf, H as intakeOf, U as isTunnelState, f as judge, x as judgeKind, A as judgeReconnects, W as kernelCounts, n as kindCellRecordSchema, r as kindCellRecordV1Schema, j as latestReturn, ht as medianInterval, s as medianText, gt as middle, S as observationAfter, C as observationEnd, G as outcomesOf, At as overshootBand, K as periodOf, q as podsAt, J as podsOf, c as predictionText, w as propagationOf, T as propagationSource, _t as quantileOf, i as readRecord, Y as recordsOf, E as referenceOf, jt as requestBand, X as requestsOf, Z as restartOf, Q as restartsAt, D as reusesReset, $ as rulesOf, Mt as seconds, Nt as secondsOf, et as sessionsAt, Pt as showBand, tt as signalOf, nt as signalsOf, rt as sliceDropOf, it as sliceEmptyOf, at as sliceReadyAt, ot as sliceReadyOf, st as slicesOf, ct as socketsOf, lt as stoppingOf, l as timeSpread, ut as transitionOf, M as triesOf, dt as tunnelsOf, O as unitOf, k as updatesOf, p as upgrade, m as upgradeCell, ft as ztunnelPodsOf, pt as ztunnelReplaced } from "./judge-C6XgY2Pk.js";
1
+ export { vt as CLIENT, u as FORMAT, d as FORMAT_V1, N as HBONE_PORT, yt as HEALTH_PORT, h as KIND_NOISE, g as LAST_SLACK, bt as LB_CLASS, xt as LOG_LABEL, St as OUTSIDE, Ct as PORT, wt as REDIS, mt as RELATIVE, Tt as SERVER, t as STAGES, P as TCP_STATE, Et as VIP_ANNOTATION, F as backendsAt, Dt as backlogEnd, Ot as bandOf, I as byClients, L as byNode, a as calibrationOf, o as cellsTable, _ as checkRun, v as cyclesOf, R as deletionOf, y as deletionsOf, kt as drainBand, z as dropOf, B as emptyOf, b as factsOf, V as failuresOf, H as intakeOf, U as isTunnelState, f as judge, x as judgeKind, A as judgeReconnects, W as kernelCounts, n as kindCellRecordSchema, r as kindCellRecordV1Schema, j as latestReturn, ht as medianInterval, s as medianText, gt as middle, S as observationAfter, C as observationEnd, G as outcomesOf, At as overshootBand, K as periodOf, q as podsAt, J as podsOf, c as predictionText, w as propagationOf, T as propagationSource, _t as quantileOf, i as readRecord, Y as recordsOf, E as referenceOf, jt as requestBand, X as requestsOf, Z as restartOf, Q as restartsAt, D as reusesReset, $ as rulesOf, Mt as seconds, Nt as secondsOf, et as sessionsAt, Pt as showBand, tt as signalOf, nt as signalsOf, rt as sliceDropOf, it as sliceEmptyOf, at as sliceReadyAt, ot as sliceReadyOf, st as slicesOf, ct as socketsOf, lt as stoppingOf, l as timeSpread, ut as transitionOf, M as triesOf, dt as tunnelsOf, O as unitOf, k as updatesOf, p as upgrade, m as upgradeCell, ft as ztunnelPodsOf, pt as ztunnelReplaced } from "./judge-DjtNaAVO.js";
package/image/agent.mjs CHANGED
@@ -490,6 +490,19 @@ const keepZone = async () => {
490
490
  return { t0, t1: now() };
491
491
  };
492
492
 
493
+ /**
494
+ * This function is a planned load: it keeps `cores` of one CPU busy for `ms`, in slices of 100 ms
495
+ * (SYS-95). It runs in the loader of the lab, out of the cluster.
496
+ */
497
+ const burn = async ({ cores, ms }) => {
498
+ const end = now() + ms;
499
+ while (now() < end) {
500
+ const start = now();
501
+ while (now() - start < 100 * cores);
502
+ if (cores < 1) await sleep(100 * (1 - cores));
503
+ }
504
+ };
505
+
493
506
  const [mode, arg] = process.argv.slice(2);
494
507
  if (mode === "serve") {
495
508
  say({ ev: "agent", what: "start", t: now() });
@@ -500,6 +513,8 @@ if (mode === "serve") {
500
513
  await eds(JSON.parse(arg));
501
514
  } else if (mode === "lds") {
502
515
  await lds(JSON.parse(arg));
516
+ } else if (mode === "burn") {
517
+ await burn(JSON.parse(arg));
503
518
  } else if (mode === "act") {
504
519
  const spec = JSON.parse(arg);
505
520
  try {
@@ -7,6 +7,7 @@
7
7
  "name": "systems-kind-lab",
8
8
  "dependencies": {
9
9
  "@grpc/grpc-js": "1.14.6",
10
+ "@mark1russell7/collections": "0.7.0",
10
11
  "@mark1russell7/rational": "0.1.0",
11
12
  "@mark1russell7/rigor-generators": "0.1.0",
12
13
  "ioredis": "6.0.0",
@@ -60,6 +61,27 @@
60
61
  "url": "https://opencollective.com/js-sdsl"
61
62
  }
62
63
  },
64
+ "node_modules/@mark1russell7/collections": {
65
+ "version": "0.7.0",
66
+ "resolved": "https://registry.npmjs.org/@mark1russell7/collections/-/collections-0.7.0.tgz",
67
+ "integrity": "sha512-tOTCmZcxKtWDW5Q/iuHUqycXgFs0mZjv+yMvRtqIkj7+Gk0qKx0DXW8AIKiZ0lqCLG9RQZdFvB5ayWJxpzI2KA==",
68
+ "license": "MIT",
69
+ "dependencies": {
70
+ "@mark1russell7/optional": "^1.2.0"
71
+ },
72
+ "engines": {
73
+ "node": ">=22.12"
74
+ }
75
+ },
76
+ "node_modules/@mark1russell7/optional": {
77
+ "version": "1.2.0",
78
+ "resolved": "https://registry.npmjs.org/@mark1russell7/optional/-/optional-1.2.0.tgz",
79
+ "integrity": "sha512-vS5jF21WC/VApRv4p8afRZahcMl9cuNp03LxbVngY9nYkzq+S7Oit6ksySt2baML+tp46UF60sxnHxn1jlwtTg==",
80
+ "license": "MIT",
81
+ "engines": {
82
+ "node": ">=22.12"
83
+ }
84
+ },
63
85
  "node_modules/@mark1russell7/rational": {
64
86
  "version": "0.1.0",
65
87
  "resolved": "https://registry.npmjs.org/@mark1russell7/rational/-/rational-0.1.0.tgz",
@@ -4,6 +4,7 @@
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@grpc/grpc-js": "1.14.6",
7
+ "@mark1russell7/collections": "0.7.0",
7
8
  "@mark1russell7/rational": "0.1.0",
8
9
  "@mark1russell7/rigor-generators": "0.1.0",
9
10
  "ioredis": "6.0.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/kind",
4
- "version": "0.14.0",
4
+ "version": "0.14.1",
5
5
  "description": "Kubernetes in Docker as a lab for connection timers: a kind cluster from a scenario, faults in the namespaces of its pods, observations on the one monotonic clock of the VM, and predictions from the ordering law. Its judge entry reads and judges a raw record without Docker.",
6
6
  "keywords": [
7
7
  "kubernetes",
@@ -66,10 +66,10 @@
66
66
  "node": ">=22.19"
67
67
  },
68
68
  "dependencies": {
69
- "@mark1russell7/harness": "^0.14.3",
69
+ "@mark1russell7/harness": "^0.15.2",
70
70
  "@mark1russell7/quantity": "^0.3.0",
71
71
  "@mark1russell7/rigor-statistics": "^0.1.3",
72
- "@mark1russell7/service": "^0.6.5",
72
+ "@mark1russell7/service": "^0.7.0",
73
73
  "testcontainers": "12.2.0"
74
74
  },
75
75
  "peerDependencies": {