@mark1russell7/harness 0.16.4 → 0.16.6
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 +47 -2
- package/build/{cell-CXxqXp1q.d.ts → cell-FMlgjqVq.d.ts} +83 -4
- package/build/{image-D509StXX.js → image-YlflAajQ.js} +16 -4
- package/build/image-YlflAajQ.js.map +1 -0
- package/build/index.d.ts +186 -5
- package/build/index.js +439 -20
- package/build/index.js.map +1 -1
- package/build/schema.d.ts +1 -1
- package/build/schema.js +1 -1
- package/image/Dockerfile +1 -1
- package/image/lazyfs/Dockerfile +54 -0
- package/image/lazyfs/config.toml +16 -0
- package/image/lazyfs/start.mts +33 -0
- package/image/native/src/bin/memory.rs +460 -0
- package/package.json +12 -4
- package/build/image-D509StXX.js.map +0 -1
package/README.md
CHANGED
|
@@ -177,6 +177,19 @@ A Kafka group (`Kafka`, `Cell.kafka`) is a group of Kafka brokers in KRaft mode
|
|
|
177
177
|
- **A target from the image of a subject** (`Target.subject`). The target operates the image of a subject in place of its stock image. `Target.image` is then the stock base of that image, and the manifest names both. The procedures server is a program in the image of the WebSocket client (`server-ws.mjs`). Thus the client and the server use one release of the package.
|
|
178
178
|
- **An agent** (`lab.agent(image, command, { pid })`) is a container in the network namespace of the target. With `pid`, it also shares the process namespace of the target, thus it can signal the server process. Its JSON lines and its `exec` stay available to the caller.
|
|
179
179
|
|
|
180
|
+
## The memory of a client
|
|
181
|
+
|
|
182
|
+
A cell can set the limits of the memory controller of cgroup v2 for its client (`Cell.cgroup`, SYS-123). The law of those limits is in `@mark1russell7/algebra` (`memcg.ts`), from the sources of Linux.
|
|
183
|
+
|
|
184
|
+
- **The files of the cgroup.** `Cell.cgroup` maps a file of the client cgroup to its value, for example `memory.high` in bytes. An admin container in the host cgroup namespace writes each file before the client starts. It reads each file back, and a value that the kernel changed stops the run.
|
|
185
|
+
- **The memory client** is `/opt/harness/memory` of the image `harness`. It has two commands:
|
|
186
|
+
- `grow` touches memory in steps of `--step` pages until `memory.current` reaches `--until-pages`. Before the map of that memory, it locks its own pages, thus a reclaim frees none of them. The lock needs the capability `IPC_LOCK` of the client.
|
|
187
|
+
- `oom` starts one task for each `--task name:pages:adj`, in order. Each task sets its `oom_score_adj`, then touches its pages. An adj below the adj of the parent needs `SYS_RESOURCE`.
|
|
188
|
+
- **The lines of the memory client.** The `ready` line gives the limits as the cgroup prints them, the usage, the page size and the lock. `grow` writes a `step` line for each step: its time, the usage after it and the count of the event `high`. `oom` writes a `task` line for each task: `held`, `killed` or `ended`, with its signal. Both commands end with the counts of `memory.events`, and `grow` also gives the stall of `memory.pressure`.
|
|
189
|
+
- **The law of a throttle** (`MemoryThrottlePrediction`) has one entry for each batch of 64 pages above `memory.high`. An entry is the time band of a step and its events `high`. The judge (`measureMemory`) compares each step with the entries at its usage and at its usage plus the drift (`stepBand`). It also compares the stall of `memory.pressure` with the sum of the low ends of the bands.
|
|
190
|
+
- **The law of the OOM killer** (`MemoryOomPrediction`) gives the outcome of each task and the count of the event `oom_kill` of the cgroup.
|
|
191
|
+
- **A void run.** A run is void when the cgroup reads other limits than the cell, or when the client stops before its end. A throttle run is also void when the client did not lock its pages, or on a kernel with another HZ. It is void too when the judge reads less than the share `read` of the steps above the high. The judge does not read a step whose usage rose by more or less than one batch, outside the drift.
|
|
192
|
+
|
|
180
193
|
## The subjects
|
|
181
194
|
|
|
182
195
|
A subject (`Subject`, `image.ts`) is the program under test, as data. The harness does not import the program. It starts the image of the program. Thus another repository can give its own subject, with its own release in it.
|
|
@@ -205,7 +218,7 @@ The entry `@mark1russell7/harness/schema` has the zod schemas of a source (`imag
|
|
|
205
218
|
|
|
206
219
|
## The images
|
|
207
220
|
|
|
208
|
-
The harness ships
|
|
221
|
+
The harness ships seventeen images, each as a shipped source (`ImageSource`). The tag of each image comes from the path of its Dockerfile and the content of all the files that its Dockerfile reads. The harness copies these files into a new build context, from its own package and from the prober package. Thus the build works in a workspace and from npm.
|
|
209
222
|
|
|
210
223
|
From 0.11.20, the harness builds each image with the CLI of Docker (`docker build`), thus with BuildKit where the CLI has it. Testcontainers reads nothing of the output of a build, and its error is "Failed to build image" only. The error of a failed build holds each line of its output that names an error, and its last 15 lines (`buildFailure`). Thus the host of a lab needs the CLI of Docker and its daemon.
|
|
211
224
|
|
|
@@ -259,9 +272,12 @@ From 0.11.20, the harness builds each image with the CLI of Docker (`docker buil
|
|
|
259
272
|
- A cell gives its configuration as files of the hop (`ProxyHop.files`): `/etc/pgbouncer/pgbouncer.ini` and `/etc/pgbouncer/userlist.txt`. In them, `{{next.host}}` and `{{next.port}}` are the host and the port of the server.
|
|
260
273
|
- PgBouncer does not start as root, thus it operates as its own user.
|
|
261
274
|
- **The Pgpool-II image** (`image/pgpool`) is Pgpool-II 4.7.3, a pooler hop, on a digest-pinned Alpine. The build gets the source of the tag V4_7_3 from GitHub and checks its SHA-256 before it builds. The tree of git holds no `configure`, thus the build runs autoreconf, and bison and flex make the parser.
|
|
262
|
-
- **The docker-proxy image** (`image/docker-proxy`) is docker-proxy of Docker Engine 29.1.5, the userland proxy of a published port, as a proxy hop. The build gets the static bundle of Docker 29.1.5 and checks its SHA-256. The proxy writes its status to fd 3, the pipe of its parent in Docker. Thus a cell starts it with `3>/dev/null`.
|
|
263
275
|
- A hop takes the image as a shipped source: `{ kind: "shipped", name: "pgpool" }`.
|
|
264
276
|
- A cell gives its configuration as one file of the hop: `/etc/pgpool/pgpool.conf`. Each other file that Pgpool-II reads is empty in the image. Pgpool-II operates in the foreground as its own user.
|
|
277
|
+
- **The docker-proxy image** (`image/docker-proxy`) is docker-proxy of Docker Engine 29.1.5, the userland proxy of a published port, as a proxy hop. The build gets the static bundle of Docker 29.1.5 and checks its SHA-256. The proxy writes its status to fd 3, the pipe of its parent in Docker. Thus a cell starts it with `3>/dev/null`.
|
|
278
|
+
- **The LazyFS image** (`image/lazyfs`) is LazyFS of the commit 3edad01 with Node.js 24.21.0, on a digest-pinned Debian. It is the image of the disk tier.
|
|
279
|
+
- LazyFS is a FUSE file system that keeps each write in its cache until an fsync. The command `lazyfs::clear-cache` loses each write of data after the last fsync. It keeps each directory entry: LazyFS applies each new file, each rename and each unlink at once. This is the rule of the kind `lose-unsynced`.
|
|
280
|
+
- The build gets the tarball of the commit, toml11 v3.7.1 and spdlog v1.10.0. It checks the SHA-256 of each before it builds.
|
|
265
281
|
|
|
266
282
|
The build does the `cargo test` of the two crates. Thus the record decoder passes its tests before an image exists. Each amount that the native programs print is a quantity in a canonical unit. For example, an RTO is in `jiffy`, a round trip in `us`, and a segment in `B`.
|
|
267
283
|
|
|
@@ -457,6 +473,35 @@ The injector refuses `protocol` on a fault other than a black hole, a reject or
|
|
|
457
473
|
|
|
458
474
|
The distribution test needs a simulator, which does not exist at this time.
|
|
459
475
|
|
|
476
|
+
## The disk tier
|
|
477
|
+
|
|
478
|
+
The disk tier applies a disk plan of `@mark1russell7/rigor-chaos` to the files of a program. A fault of the kind `lose-unsynced` is a power cut. The process stops at its point, and the disk loses each write after the last fsync. Then a check reads the files that the disk kept. An example is the data loss of each synchronous setting of a database.
|
|
479
|
+
|
|
480
|
+
```ts
|
|
481
|
+
import { diskPlanOf } from "@mark1russell7/rigor-chaos";
|
|
482
|
+
import { openDiskLab, runDiskFault } from "@mark1russell7/harness";
|
|
483
|
+
|
|
484
|
+
const lab = await openDiskLab({
|
|
485
|
+
subject: { name: "wal", folder: "./subject", writer: ["node", "/opt/subject/writer.mts"], check: ["node", "/opt/subject/check.mts"] },
|
|
486
|
+
code: { commit, dirty: false },
|
|
487
|
+
});
|
|
488
|
+
const plan = diskPlanOf([{ kind: "lose-unsynced", at: { step: 40 } }, { kind: "lose-unsynced", at: { ms: 1500 } }]);
|
|
489
|
+
for (const fault of plan.faults) console.log((await runDiskFault(lab, fault)).persisted);
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
- **The subject** is a folder with a writer and a check, each an argv with no shell. The tier copies the folder to `/opt/subject` in each container.
|
|
493
|
+
- The writer operates in the mount of LazyFS, `/mnt/disk`. The check operates in the folder below the mount, `/var/disk`, and writes one JSON value.
|
|
494
|
+
- **A fault at a step** uses the stop points of `@mark1russell7/rigor-testkit/stop`. The tier puts the order in `RIGOR_STOP`, and the writer stops itself at the step with `SIGKILL`.
|
|
495
|
+
- The protocol is data: an environment variable and one JSON line for each stop point. Thus a writer in each language can speak it.
|
|
496
|
+
- **A fault at a time** stops the writer with `SIGKILL` after that time from its start, through `timeout -s KILL`.
|
|
497
|
+
- **Each fault has a new container.** After the stop, the tier sends `lazyfs::clear-cache` to LazyFS, and waits for its answer. Then the check starts.
|
|
498
|
+
- **The record** (`harness-disk/1`) holds the fault and the digest of the subject folder. It also holds the image with its build record and id, and the commit of the code.
|
|
499
|
+
- It also holds the substrate (layer E1), the exit and the stop points of the writer, and the value of the check (`persisted`).
|
|
500
|
+
- `diskRecordProblems` gives each problem of the pins of a record. A record with a problem is not a record.
|
|
501
|
+
- **The container is privileged.** LazyFS needs `/dev/fuse` and a mount. Testcontainers 12 has no option for one device. The AppArmor profile of Docker refuses a FUSE mount in a container that is not privileged.
|
|
502
|
+
- Thus the tier operates only in CI, in the workflow `disk.yml`.
|
|
503
|
+
- **The self-test** (`HARNESS_DISK=1`) has a writer that writes each line to one file with an fsync, and to a second file with none. Each case holds its expected result as data.
|
|
504
|
+
|
|
460
505
|
## Runs
|
|
461
506
|
|
|
462
507
|
- **`runCell(cell)`** (`run.ts`) divides the 11 runs of a cell across two new environments. It records the manifest of each environment, and it removes the fault after each run.
|
|
@@ -878,12 +878,82 @@ type Prediction = {
|
|
|
878
878
|
readonly pause?: PausePrediction;
|
|
879
879
|
/** These are the limits of an open-loop cell (`Cell.probe.plan`). Without them, its load is a measurement. */
|
|
880
880
|
readonly load?: LoadPrediction;
|
|
881
|
+
/**
|
|
882
|
+
* This record is the law of the memory controller of the client cgroup: its throttle above
|
|
883
|
+
* `memory.high`, or the victim of its OOM killer. A value outside it is a finding of its run.
|
|
884
|
+
*/
|
|
885
|
+
readonly memory?: MemoryPrediction;
|
|
881
886
|
};
|
|
882
887
|
/** A queue band is a time from one line of a queue cell to another line, with its two bounds. */
|
|
883
888
|
interface QueueBand {
|
|
884
889
|
readonly low: Quantity;
|
|
885
890
|
readonly high: Quantity;
|
|
886
891
|
}
|
|
892
|
+
/** These are the limits of the cgroup of a memory cell, in pages. A null limit reads `max`. */
|
|
893
|
+
interface MemoryLimits {
|
|
894
|
+
readonly high: number | null;
|
|
895
|
+
readonly max: number | null;
|
|
896
|
+
/** This count is `memory.swap.max` in pages. */
|
|
897
|
+
readonly swap: number;
|
|
898
|
+
/** This count is the bytes of one page. */
|
|
899
|
+
readonly page: number;
|
|
900
|
+
}
|
|
901
|
+
/** This entry gives the band of a step whose charge leaves the usage of the cgroup at `usage` pages. It also gives the events `high` of that charge. */
|
|
902
|
+
interface MemoryStep {
|
|
903
|
+
readonly usage: number;
|
|
904
|
+
readonly band: QueueBand;
|
|
905
|
+
readonly high: number;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* This prediction is the throttle of one task that grows above `memory.high`. It reads the lines of
|
|
909
|
+
* the memory client. Each step touches one batch of pages, thus it charges one batch, and the task
|
|
910
|
+
* pays the debt of that charge in the step.
|
|
911
|
+
*/
|
|
912
|
+
interface MemoryThrottlePrediction {
|
|
913
|
+
readonly kind: "throttle";
|
|
914
|
+
readonly limits: MemoryLimits;
|
|
915
|
+
/** This count is the HZ of the kernel that the bands are for. A run on another HZ is void. */
|
|
916
|
+
readonly hz: number;
|
|
917
|
+
/** This count is the pages of one charge, and of one step. */
|
|
918
|
+
readonly batch: number;
|
|
919
|
+
/** This usage is where the growth ends, in pages. */
|
|
920
|
+
readonly until: number;
|
|
921
|
+
/** This usage is the lowest whose charge sleeps. */
|
|
922
|
+
readonly sleepFrom: number;
|
|
923
|
+
/** This usage is the lowest whose sleep is the cap of 2 s. */
|
|
924
|
+
readonly capFrom: number;
|
|
925
|
+
/** This count is the pages that the usage at a charge can be above the usage after its step. */
|
|
926
|
+
readonly drift: number;
|
|
927
|
+
/** This band is a step whose charge does not leave the usage above `memory.high`. */
|
|
928
|
+
readonly quiet: QueueBand;
|
|
929
|
+
/**
|
|
930
|
+
* These entries are the steps from the first usage above `memory.high` to `capFrom`, one each
|
|
931
|
+
* `batch` pages. A step above the last entry has the band of the last entry.
|
|
932
|
+
*/
|
|
933
|
+
readonly steps: readonly MemoryStep[];
|
|
934
|
+
/** This share is the least part of the steps above `memory.high` that the judge reads. A run with less is void. */
|
|
935
|
+
readonly read: number;
|
|
936
|
+
}
|
|
937
|
+
/** This task is one process of an OOM cell: its name, the pages that it touches, its `oom_score_adj`, and its end. */
|
|
938
|
+
interface MemoryOomTask {
|
|
939
|
+
readonly name: string;
|
|
940
|
+
readonly pages: number;
|
|
941
|
+
readonly adj: number;
|
|
942
|
+
readonly outcome: "held" | "killed";
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* This prediction is the victim of the OOM killer of one cgroup. The memory client starts each task
|
|
946
|
+
* in order, and each task touches its pages. The last task takes the usage to `memory.max`.
|
|
947
|
+
*/
|
|
948
|
+
interface MemoryOomPrediction {
|
|
949
|
+
readonly kind: "oom";
|
|
950
|
+
readonly limits: MemoryLimits;
|
|
951
|
+
readonly tasks: readonly MemoryOomTask[];
|
|
952
|
+
/** This count is the rise of the event `oom_kill` of the cgroup. */
|
|
953
|
+
readonly kills: number;
|
|
954
|
+
}
|
|
955
|
+
/** This prediction is the law of the memory controller of one cgroup. */
|
|
956
|
+
type MemoryPrediction = MemoryThrottlePrediction | MemoryOomPrediction;
|
|
887
957
|
/** This prediction tells how one connection of a queue cell ends. */
|
|
888
958
|
interface QueueEnd {
|
|
889
959
|
readonly errno: string;
|
|
@@ -1115,8 +1185,9 @@ interface Target {
|
|
|
1115
1185
|
* package of the harness, and in the package of the prober for `harness`. `grpc-go` is a server of
|
|
1116
1186
|
* grpc-go and `etcd` is etcd on Alpine: each is a subject of a target (`Target.subject`).
|
|
1117
1187
|
* `docker-proxy` is the userland proxy of Docker Engine 29.1.5, the program of a proxy hop.
|
|
1188
|
+
* `lazyfs` is the FUSE file system LazyFS with Node.js 24, the image of the disk tier (`openDiskLab`).
|
|
1118
1189
|
*/
|
|
1119
|
-
type Shipped = "harness" | "node" | "go-http" | "node-http" | "mongo" | "pg" | "hikari" | "amqp" | "kafka" | "grpc" | "grpc-go" | "etcd" | "router" | "pgbouncer" | "pgpool" | "docker-proxy";
|
|
1190
|
+
type Shipped = "harness" | "node" | "go-http" | "node-http" | "mongo" | "pg" | "hikari" | "amqp" | "kafka" | "grpc" | "grpc-go" | "etcd" | "router" | "pgbouncer" | "pgpool" | "docker-proxy" | "lazyfs";
|
|
1120
1191
|
/**
|
|
1121
1192
|
* An image source tells where an image comes from, as data. The harness resolves each kind to an
|
|
1122
1193
|
* image that it can start:
|
|
@@ -1252,12 +1323,14 @@ interface ClientImage {
|
|
|
1252
1323
|
readonly command: readonly string[];
|
|
1253
1324
|
/**
|
|
1254
1325
|
* These capabilities are added to the default set of the container of the client. A read of the
|
|
1255
|
-
* statistics of conntrack over netlink needs NET_ADMIN in the namespace of the client.
|
|
1326
|
+
* statistics of conntrack over netlink needs NET_ADMIN in the namespace of the client. A task that
|
|
1327
|
+
* lowers its own `oom_score_adj` needs SYS_RESOURCE. A lock of more pages than `RLIMIT_MEMLOCK`
|
|
1328
|
+
* needs IPC_LOCK.
|
|
1256
1329
|
*/
|
|
1257
1330
|
readonly capabilities?: readonly ClientCapability[] | undefined;
|
|
1258
1331
|
}
|
|
1259
1332
|
/** These are the capabilities that a client image can get. */
|
|
1260
|
-
declare const CLIENT_CAPABILITIES: readonly ["NET_ADMIN"];
|
|
1333
|
+
declare const CLIENT_CAPABILITIES: readonly ["IPC_LOCK", "NET_ADMIN", "SYS_RESOURCE"];
|
|
1261
1334
|
type ClientCapability = (typeof CLIENT_CAPABILITIES)[number];
|
|
1262
1335
|
/**
|
|
1263
1336
|
* An observer is the side whose detection a cell measures. The client is one observer. The
|
|
@@ -1399,6 +1472,12 @@ interface Cell {
|
|
|
1399
1472
|
* not have one makes the cell void (rule 8 of the environments).
|
|
1400
1473
|
*/
|
|
1401
1474
|
readonly hostSysctls?: readonly HostSysctl[];
|
|
1475
|
+
/**
|
|
1476
|
+
* These are the files of the client cgroup by name, with the value that each one reads after its
|
|
1477
|
+
* write: for example `memory.high` in bytes. The harness writes them after
|
|
1478
|
+
* the container starts, and then it makes the file `/tmp/cgroup` in it.
|
|
1479
|
+
*/
|
|
1480
|
+
readonly cgroup?: Readonly<Record<string, string>>;
|
|
1402
1481
|
readonly prediction: Prediction;
|
|
1403
1482
|
/** This side is the side whose detection the cell measures. Without it, the side is the client. */
|
|
1404
1483
|
readonly observer?: Observer;
|
|
@@ -1753,4 +1832,4 @@ interface RunTopology {
|
|
|
1753
1832
|
};
|
|
1754
1833
|
}>>;
|
|
1755
1834
|
}
|
|
1756
|
-
export {
|
|
1835
|
+
export { Outcomes as $, HostSysctl as A, RunStream as At, LoadPlan as B, Topology as Bt, GroupPrediction as C, RunBackup as Ct, HopPlace as D, RunPart as Dt, HopEvent as E, RunGroup as Et, KafkaPause as F, ShippedImage as Ft, MemoryOomTask as G, latestEndOf as Gt, LoadStream as H, WsProbe as Ht, KernelRecord as I, Stage as It, MemoryThrottlePrediction as J, MemoryPrediction as K, LineCount as L, StageBand as Lt, ImageSource as M, SentinelEvent as Mt, Jitter as N, SentinelStage as Nt, HopSignal as O, RunPause as Ot, Kafka as P, Shipped as Pt, Observer as Q, LineMatch as R, Subject as Rt, GroupPlace as S, Run as St, Hop as T, RunFabric as Tt, MemoryLimits as U, environmentProblems as Ut, LoadPrediction as V, Toxic as Vt, MemoryOomPrediction as W, isHopPlace as Wt, MiddleboxExpectation as X, MiddleboxEvent as Y, MiddleboxForm as Z, Fabric as _, ReplicaSetStage as _t, ClientCapability as a, Prediction as at, FaultPlace as b, RouterHop as bt, ClusterClientAt as c, ProxyTime as ct, CountBand as d, QueueEnd as dt, Pair as et, DeliveryPrediction as f, QueuePrediction as ft, DriverStep as g, ReplicaSet as gt, DriverBand as h, Reference as ht, Client as i, PortsPrediction as it, HttpProbe as j, RunTopology as jt, HopWrite as k, RunRoute as kt, ClusterStage as l, QueueBand as lt, DrillRoom as m, Recovers as mt, CLIENT_CAPABILITIES as n, PausePrediction as nt, ClientImage as o, ProbeEvent as ot, Drill as p, Reconnects as pt, MemoryStep as q, Cell as r, PinnedImage as rt, Cluster as s, ProxyHop as st, BuildImage as t, PauseBand as tt, ConntrackPrediction as u, QueueConnection as ut, FabricManifest as v, Replies as vt, GroupRole as w, RunDrill as wt, Group as x, RttRange as xt, Fault as y, RequestPrediction as yt, LoadBand as z, Target as zt };
|
|
@@ -10,7 +10,11 @@ import { fileURLToPath } from "node:url";
|
|
|
10
10
|
import { isDeepStrictEqual } from "node:util";
|
|
11
11
|
// src/cell.ts
|
|
12
12
|
/** These are the capabilities that a client image can get. */
|
|
13
|
-
const CLIENT_CAPABILITIES = [
|
|
13
|
+
const CLIENT_CAPABILITIES = [
|
|
14
|
+
"IPC_LOCK",
|
|
15
|
+
"NET_ADMIN",
|
|
16
|
+
"SYS_RESOURCE"
|
|
17
|
+
];
|
|
14
18
|
/** This function tells if a fault place is a hop of a topology. */
|
|
15
19
|
const isHopPlace = (place) => typeof place === "object" && "hop" in place;
|
|
16
20
|
/**
|
|
@@ -271,6 +275,11 @@ const SHIPPED = {
|
|
|
271
275
|
name: "loom-harness-docker-proxy",
|
|
272
276
|
dockerfile: "harness/image/docker-proxy/Dockerfile",
|
|
273
277
|
from: ["harness/image/docker-proxy"]
|
|
278
|
+
},
|
|
279
|
+
lazyfs: {
|
|
280
|
+
name: "loom-harness-lazyfs",
|
|
281
|
+
dockerfile: "harness/image/lazyfs/Dockerfile",
|
|
282
|
+
from: ["harness/image/lazyfs"]
|
|
274
283
|
}
|
|
275
284
|
};
|
|
276
285
|
/** These are the names of the images that the harness ships. */
|
|
@@ -460,7 +469,10 @@ const unlockedManifests = (paths) => {
|
|
|
460
469
|
return true;
|
|
461
470
|
});
|
|
462
471
|
};
|
|
463
|
-
/**
|
|
472
|
+
/**
|
|
473
|
+
* This function gives each file under a path, in a stable sequence, but not the output of a local build. The disk
|
|
474
|
+
* tier uses it for the digest of a subject folder (`openDiskLab`). The index does not export it.
|
|
475
|
+
*/
|
|
464
476
|
const sources = (path) => {
|
|
465
477
|
if (statSync(path).isFile()) return [path];
|
|
466
478
|
return readdirSync(path, { withFileTypes: true }).filter((entry) => entry.name !== "target" && entry.name !== "node_modules").flatMap((entry) => sources(join(path, entry.name))).sort();
|
|
@@ -685,6 +697,6 @@ const grpcClientImage = () => imageOf(shipped("grpc"));
|
|
|
685
697
|
const targetSourceOf = (target) => target.subject ?? target.image;
|
|
686
698
|
/** This function gives the image that a target operates: the image of its subject, or its stock image. */
|
|
687
699
|
const targetImageOf = (target) => imageOf(targetSourceOf(target));
|
|
688
|
-
export {
|
|
700
|
+
export { targetSourceOf as A, CLIENT_CAPABILITIES as B, programOf as C, subjectClient as D, sources as E, goVersions as F, isHopPlace as H, jarVersions as I, locksOf as L, unpinnedBases as M, LOCK_NAMES as N, subjectProblems as O, cargoVersions as P, npmVersions as R, planOf as S, shippedSource as T, latestEndOf as U, environmentProblems as V, requestFirst as W, 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, unlockedManifests as j, targetImageOf 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, versionsOf as z };
|
|
689
701
|
|
|
690
|
-
//# sourceMappingURL=image-
|
|
702
|
+
//# sourceMappingURL=image-YlflAajQ.js.map
|