@mark1russell7/harness 0.15.1 → 0.15.3

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.
@@ -1478,6 +1478,13 @@ interface HopPlace {
1478
1478
  type FaultPlace = "target" | "client" | HopPlace | GroupPlace;
1479
1479
  /** This function tells if a fault place is a hop of a topology. */
1480
1480
  declare const isHopPlace: (place: FaultPlace | undefined) => place is HopPlace;
1481
+ /**
1482
+ * This function gives each problem of the environments of a cell. An empty list means that the
1483
+ * environments of the cell can operate. A value of the host is the same for each environment of the
1484
+ * host. Thus a cell with sysctls of the host operates one environment at a time. Otherwise, a lab
1485
+ * reads the value of a different lab as its value before, and the restore does not give back the host.
1486
+ */
1487
+ declare const environmentProblems: (cell: Cell) => string[];
1481
1488
  /**
1482
1489
  * This function gives the latest end of a band in seconds, from the reply of the client. It is
1483
1490
  * the high bound, after the latest reference of the band (`startsBy`).
@@ -1670,6 +1677,20 @@ interface RunDrill {
1670
1677
  } | null;
1671
1678
  /** This number is the first sequence number of the second client, or null with one client. */
1672
1679
  readonly second: number | null;
1680
+ /** This record is the room of the runner before the seed. A record from before SYS-97 has none. */
1681
+ readonly room?: DrillRoom;
1682
+ }
1683
+ /**
1684
+ * A drill room is what the runner had before the seed of a drill, and what the drill needs. When the
1685
+ * free disk is under the need, the drill does no seed and its run is void (`roomVoidOf`).
1686
+ */
1687
+ interface DrillRoom {
1688
+ /** This size is the free disk of the backup host. Each container of the lab writes to the same disk of the runner. */
1689
+ readonly disk: Quantity;
1690
+ /** This size is MemAvailable of the runner. The cache of each member has a fixed size, thus it is a record and not a limit. */
1691
+ readonly memory: Quantity;
1692
+ /** This size is the most disk that the drill needs (`roomNeeded`). */
1693
+ readonly need: Quantity;
1673
1694
  }
1674
1695
  /**
1675
1696
  * A run topology tells where each socket of a run is, in a topology:
@@ -1687,5 +1708,5 @@ interface RunTopology {
1687
1708
  }>>;
1688
1709
  }
1689
1710
  //#endregion
1690
- export { ProxyHop as $, ImageSource as A, Subject as At, LoadStream as B, Hop as C, RunTopology as Ct, HopWrite as D, ShippedImage as Dt, HopSignal as E, Shipped as Et, LineCount as F, isHopPlace as Ft, Outcomes as G, MiddleboxExpectation as H, LineMatch as I, latestEndOf as It, PausePrediction as J, Pair as K, LoadBand as L, Kafka as M, Topology as Mt, KafkaPause as N, Toxic as Nt, HostSysctl as O, Stage as Ot, KernelRecord as P, WsProbe as Pt, ProbeEvent as Q, LoadPlan as R, GroupRole as S, RunStream as St, HopPlace as T, SentinelStage as Tt, MiddleboxForm as U, MiddleboxEvent as V, Observer as W, PortsPrediction as X, PinnedImage as Y, Prediction as Z, Fault as _, RunFabric as _t, ClientCapability as a, Reconnects as at, GroupPlace as b, RunPause as bt, ClusterClientAt as c, ReplicaSet as ct, CountBand as d, RequestPrediction as dt, ProxyTime as et, Drill as f, RouterHop as ft, FabricManifest as g, RunDrill as gt, Fabric as h, RunBackup as ht, Client as i, QueuePrediction as it, Jitter as j, Target as jt, HttpProbe as k, StageBand as kt, ClusterStage as l, ReplicaSetStage as lt, DriverStep as m, Run as mt, CLIENT_CAPABILITIES as n, QueueConnection as nt, ClientImage as o, Recovers as ot, DriverBand as p, RttRange as pt, PauseBand as q, Cell as r, QueueEnd as rt, Cluster as s, Reference as st, BuildImage as t, QueueBand as tt, ConntrackPrediction as u, Replies as ut, FaultPlace as v, RunGroup as vt, HopEvent as w, SentinelEvent as wt, GroupPrediction as x, RunRoute as xt, Group as y, RunPart as yt, LoadPrediction as z };
1691
- //# sourceMappingURL=cell-biffSiEJ.d.ts.map
1711
+ export { ProbeEvent as $, HttpProbe as A, StageBand as At, LoadPrediction as B, GroupRole as C, RunStream as Ct, HopSignal as D, Shipped as Dt, HopPlace as E, SentinelStage as Et, KernelRecord as F, WsProbe as Ft, Observer as G, MiddleboxEvent as H, LineCount as I, environmentProblems as It, PauseBand as J, Outcomes as K, LineMatch as L, isHopPlace as Lt, Jitter as M, Target as Mt, Kafka as N, Topology as Nt, HopWrite as O, ShippedImage as Ot, KafkaPause as P, Toxic as Pt, Prediction as Q, LoadBand as R, latestEndOf as Rt, GroupPrediction as S, RunRoute as St, HopEvent as T, SentinelEvent as Tt, MiddleboxExpectation as U, LoadStream as V, MiddleboxForm as W, PinnedImage as X, PausePrediction as Y, PortsPrediction as Z, FabricManifest as _, RunDrill as _t, ClientCapability as a, QueuePrediction as at, Group as b, RunPart as bt, ClusterClientAt as c, Reference as ct, CountBand as d, Replies as dt, ProxyHop as et, Drill as f, RequestPrediction as ft, Fabric as g, RunBackup as gt, DriverStep as h, Run as ht, Client as i, QueueEnd as it, ImageSource as j, Subject as jt, HostSysctl as k, Stage as kt, ClusterStage as l, ReplicaSet as lt, DriverBand as m, RttRange as mt, CLIENT_CAPABILITIES as n, QueueBand as nt, ClientImage as o, Reconnects as ot, DrillRoom as p, RouterHop as pt, Pair as q, Cell as r, QueueConnection as rt, Cluster as s, Recovers as st, BuildImage as t, ProxyTime as tt, ConntrackPrediction as u, ReplicaSetStage as ut, Fault as v, RunFabric as vt, Hop as w, RunTopology as wt, GroupPlace as x, RunPause as xt, FaultPlace as y, RunGroup as yt, LoadPlan as z };
1712
+ //# sourceMappingURL=cell-BmqDPjz3.d.ts.map
@@ -13,6 +13,13 @@ const CLIENT_CAPABILITIES = ["NET_ADMIN"];
13
13
  /** This function tells if a fault place is a hop of a topology. */
14
14
  const isHopPlace = (place) => typeof place === "object" && "hop" in place;
15
15
  /**
16
+ * This function gives each problem of the environments of a cell. An empty list means that the
17
+ * environments of the cell can operate. A value of the host is the same for each environment of the
18
+ * host. Thus a cell with sysctls of the host operates one environment at a time. Otherwise, a lab
19
+ * reads the value of a different lab as its value before, and the restore does not give back the host.
20
+ */
21
+ const environmentProblems = (cell) => (cell.hostSysctls?.length ?? 0) > 0 && (cell.concurrency ?? 1) > 1 ? [`${cell.name}: a cell with sysctls of the host operates one environment at a time, not ${cell.concurrency}`] : [];
22
+ /**
16
23
  * This function tells if the request of a client goes before the fault of its cell. That is so for a
17
24
  * hop event that comes while the request is in flight (`HopEvent.inFlight`). Then a request after the fault is void.
18
25
  */
@@ -662,6 +669,6 @@ const targetSourceOf = (target) => target.subject ?? target.image;
662
669
  /** This function gives the image that a target operates: the image of its subject, or its stock image. */
663
670
  const targetImageOf = (target) => imageOf(targetSourceOf(target));
664
671
  //#endregion
665
- export { unlockedManifests as A, isHopPlace as B, programOf as C, subjectProblems as D, subjectClient as E, jarVersions as F, requestFirst as H, locksOf as I, npmVersions as L, LOCK_NAMES as M, cargoVersions as N, targetImageOf as O, goVersions as P, versionsOf as R, planOf as S, shippedSource as T, latestEndOf as V, kafkaClientImage as _, SHIPPED_NAMES as a, nodeHttpImage as b, buildRecordOf as c, harnessImage as d, harnessVersion as f, inContext as g, imageProblems as h, SHIPPED_CLIENTS as i, unpinnedBases as j, targetSourceOf as k, goHttpImage as l, imageOf as m, PINNED as n, amqpClientImage as o, hikariClientImage as p, REPOSITORY as r, basesOf as s, CLIENT_NAMES as t, grpcClientImage as u, mongoClientImage as v, routerImage as w, pgClientImage as x, nodeClientImage as y, CLIENT_CAPABILITIES as z };
672
+ export { unlockedManifests as A, environmentProblems as B, programOf as C, subjectProblems as D, subjectClient as E, jarVersions as F, latestEndOf as H, locksOf as I, npmVersions as L, LOCK_NAMES as M, cargoVersions as N, targetImageOf as O, goVersions as P, versionsOf as R, planOf as S, shippedSource as T, requestFirst as U, isHopPlace as V, kafkaClientImage as _, SHIPPED_NAMES as a, nodeHttpImage as b, buildRecordOf as c, harnessImage as d, harnessVersion as f, inContext as g, imageProblems as h, SHIPPED_CLIENTS as i, unpinnedBases as j, targetSourceOf as k, goHttpImage as l, imageOf as m, PINNED as n, amqpClientImage as o, hikariClientImage as p, REPOSITORY as r, basesOf as s, CLIENT_NAMES as t, grpcClientImage as u, mongoClientImage as v, routerImage as w, pgClientImage as x, nodeClientImage as y, CLIENT_CAPABILITIES as z };
666
673
 
667
- //# sourceMappingURL=image-BxVTFZ1o.js.map
674
+ //# sourceMappingURL=image-B8yh_FF7.js.map