@mark1russell7/harness 0.15.2 → 0.15.4
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/{cell-OwQdpSkd.d.ts → cell-BmqDPjz3.d.ts} +16 -2
- package/build/{image-B8yh_FF7.js → image-D88I5WA_.js} +21 -3
- package/build/{image-B8yh_FF7.js.map → image-D88I5WA_.js.map} +1 -1
- package/build/index.d.ts +13 -2
- package/build/index.js +100 -4
- package/build/index.js.map +1 -1
- package/build/schema.d.ts +1 -1
- package/build/schema.js +1 -1
- package/package.json +2 -2
|
@@ -1677,6 +1677,20 @@ interface RunDrill {
|
|
|
1677
1677
|
} | null;
|
|
1678
1678
|
/** This number is the first sequence number of the second client, or null with one client. */
|
|
1679
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;
|
|
1680
1694
|
}
|
|
1681
1695
|
/**
|
|
1682
1696
|
* A run topology tells where each socket of a run is, in a topology:
|
|
@@ -1694,5 +1708,5 @@ interface RunTopology {
|
|
|
1694
1708
|
}>>;
|
|
1695
1709
|
}
|
|
1696
1710
|
//#endregion
|
|
1697
|
-
export {
|
|
1698
|
-
//# sourceMappingURL=cell-
|
|
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
|
|
@@ -109,11 +109,29 @@ const goVersions = (mod) => {
|
|
|
109
109
|
const jarVersions = (list) => {
|
|
110
110
|
const found = {};
|
|
111
111
|
for (const line of list.split(/\r?\n/)) {
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
112
|
+
const jar = jarOf(line.trim());
|
|
113
|
+
if (jar !== void 0) found[jar[0]] = jar[1];
|
|
114
114
|
}
|
|
115
115
|
return found;
|
|
116
116
|
};
|
|
117
|
+
/** The version of a jar: a digit first, no hyphen, then one optional suffix after a hyphen (`2.0.17`, `1.4-beta.1`). */
|
|
118
|
+
const JAR_VERSION = /^\d[^-]*(?:-[A-Za-z0-9.]+)?$/;
|
|
119
|
+
/**
|
|
120
|
+
* This function gives the name and the version of one line `<hex> <name>-<version>.jar`, or undefined. The name is the
|
|
121
|
+
* shortest that leaves a version. The work is with string positions: one regular expression with `\s+` and a lazy
|
|
122
|
+
* name took polynomial time on a line with many spaces (code scanning alert 16).
|
|
123
|
+
*/
|
|
124
|
+
const jarOf = (line) => {
|
|
125
|
+
if (!/^[0-9a-f]{64}$/.test(line.slice(0, 64))) return void 0;
|
|
126
|
+
const after = line.slice(64);
|
|
127
|
+
const file = after.trimStart();
|
|
128
|
+
if (file.length === after.length || !file.endsWith(".jar")) return void 0;
|
|
129
|
+
const stem = (file.startsWith("*") ? file.slice(1) : file).slice(0, -4);
|
|
130
|
+
for (let at = stem.indexOf("-", 1); at > 0; at = stem.indexOf("-", at + 1)) {
|
|
131
|
+
const version = stem.slice(at + 1);
|
|
132
|
+
if (JAR_VERSION.test(version)) return [stem.slice(0, at), version];
|
|
133
|
+
}
|
|
134
|
+
};
|
|
117
135
|
/**
|
|
118
136
|
* This function gives the version of each package that the manifests of a context name directly,
|
|
119
137
|
* by its name. It reads each npm lockfile, Cargo.lock, go.mod and list of jars. A package of a
|
|
@@ -671,4 +689,4 @@ const targetImageOf = (target) => imageOf(targetSourceOf(target));
|
|
|
671
689
|
//#endregion
|
|
672
690
|
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 };
|
|
673
691
|
|
|
674
|
-
//# sourceMappingURL=image-
|
|
692
|
+
//# sourceMappingURL=image-D88I5WA_.js.map
|