@usine/executor 0.5.1-next.337.g7c58461.1.1 → 0.5.1-next.338.ga1032fd.1.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/README.md CHANGED
@@ -67,6 +67,12 @@ A Claude check holds the worker's `ClaudeLoginLock` (`@usine/agents/runtime`) un
67
67
 
68
68
  It replaces exe.dev's `HarnessLoginCheck` and `harnessLoginChecks` options.
69
69
 
70
+ ### Rootless Podman on SSH workers
71
+
72
+ The SSH adapter selects the runtime from `/etc/usine/container-runtime` (`podman` or `docker`). Without the file, it selects installed Podman first, then Docker. Podman must run locally in rootless mode with cgroup v2, systemd delegation of CPU, memory, and PID controllers, subordinate UID/GID ranges, and lingering. Preflight verifies those prerequisites and reads the enforced limits through `exec`. It logs runtime, OCI runtime, kernel, and cgroup details; failures return `WorkerCapabilityError` with remediation.
73
+
74
+ Podman containers and helpers use `--userns=keep-id`; preflight requires matching host and image UID/GID. Attempts use a private cgroup namespace for OOM accounting and explicit proxy variables. Lifecycle, cancellation, salvage restart, and label-scoped cleanup use the selected runtime. Shared caches belong to that runtime's store. Drain attempts and rebuild the worker or snapshot when changing runtimes. See [Add a worker](https://docs.usine.dev/guides/add-a-worker/#move-a-worker-to-rootless-podman).
75
+
70
76
  ## Local worker
71
77
 
72
78
  For each attempt, `@usine/executor/local`:
@@ -138,29 +144,31 @@ Salvage inspection, staging, or snapshot failures keep the checkout, uncommitted
138
144
 
139
145
  ## SSH worker
140
146
 
141
- `@usine/executor/ssh` runs the same contract on any Linux machine that the orchestrator reaches over SSH ([ADR 0026](../../docs/adr/0026-eu-ssh-worker.md)); `infra/hetzner` creates one on Hetzner Cloud. Each worker has an SSH destination, an optional identity file and port, and a root under which it keeps `workers/<name>/repos`, `attempts`, and `credentials`. The machine needs Git, Docker, and the roster's harness logins for the SSH user.
147
+ `@usine/executor/ssh` runs the same contract on any Linux machine that the orchestrator reaches over SSH ([ADR 0026](../../docs/adr/0026-eu-ssh-worker.md)); `infra/hetzner` creates one on Hetzner Cloud. Each worker has an SSH destination, an optional identity file and port, and a root under which it keeps `workers/<name>/repos`, `attempts`, and `credentials`. The machine needs Git, rootless Podman or Docker, and the roster's harness logins for the SSH user.
142
148
 
143
- Preflight checks the SSH connection, a writable root, Git, memory for `maxConcurrentAttempts`, Docker, and the roster's harnesses where children run. With Docker, it pulls the attempt image, checks that the image's user has the SSH user's ID, finds the container limits, and probes the harnesses in a container from the image that removes itself. Without Docker, it probes them over SSH and reports the worker as degraded. A Docker that doesn't answer the SSH user, the `docker` group or a writable socket without the `docker` CLI, an image that can't be pulled and isn't on the machine, or another user ID is a `container` `WorkerCapabilityError`: an SSH user that can use Docker never runs an attempt.
149
+ Preflight checks the SSH connection, a writable root, Git, memory for `maxConcurrentAttempts`, the container runtime, and the roster's harnesses where children run. With a container runtime, it pulls the attempt image, checks that the image's user has the SSH user's ID, finds the container limits, and probes the harnesses in a container from the image that removes itself. Without either runtime, it probes them over SSH and reports the worker as degraded. A Docker that doesn't answer the SSH user, the `docker` group or a writable socket without the `docker` CLI, an image that can't be pulled and isn't on the machine, or another user ID is a `container` `WorkerCapabilityError`: an SSH user that can use Docker never runs an attempt.
144
150
 
145
151
  ### Attempt containers
146
152
 
147
- With Docker on the machine, each attempt runs in its own container from `SshWorkerAddress.container.image`, or `ATTEMPT_IMAGE`, the image of `infra/worker-image/Dockerfile` with this release's harness versions, with CPU, memory, and process limits. The container mounts the attempt's checkout and the SSH user's login files for the attempt's harness read-write, and its cached clone and credential directory read-only; behind a gateway, also gh's configuration directory and socket read-only. It uses the machine's network, and gets the attempt's variables, secrets included, on `docker run`'s standard input. Every command for the attempt runs in it through the shell's `container` (`docker exec -i <name> sh -c <command line>`): the children, the checkout's git, the harvest, the salvage, the pre-push hook, and the attempt's harness probe, which runs once the checkout exists. Only the container's start and removal and the cached clone's fetch run as the SSH user.
153
+ With a container runtime on the machine, each attempt runs in its own container from `SshWorkerAddress.container.image`, or `ATTEMPT_IMAGE`, the image of `infra/worker-image/Dockerfile` with this release's harness versions, with CPU, memory, and process limits. The container mounts the attempt's checkout and the SSH user's login files for the attempt's harness read-write, and its cached clone and credential directory read-only; behind a gateway, also gh's configuration directory and socket read-only. It uses the machine's network, and gets the attempt's variables, secrets included, on the runtime's `run` command's standard input. Every command for the attempt runs in it through the shell's `container` (`<runtime> exec -i <name> sh -c <command line>`): the children, the checkout's git, the harvest, the salvage, the pre-push hook, and the attempt's harness probe, which runs once the checkout exists. Only the container's start and removal and the cached clone's fetch run as the SSH user.
148
154
 
149
155
  `SshWorkerAddress.container` sets each limit as an `Option`. Preflight derives each one that is `None` from the machine: it runs `nproc` and reads `/proc/sys/kernel/threads-max`, `/proc/sys/kernel/pid_max`, and `/proc/meminfo` over SSH, and divides the machine's total, less a reserve for the machine's own processes, by `maxConcurrentAttempts`:
150
156
 
151
157
  | Limit | Machine total | Reserve | Rounded down to |
152
158
  | --- | --- | --- | --- |
153
- | `cpus` (`docker run --cpus`) | the CPUs that `nproc` counts | none | a hundredth of a CPU, at least 0.01 |
159
+ | `cpus` (`--cpus`) | the CPUs that `nproc` counts | none | a hundredth of a CPU, at least 0.01 |
154
160
  | `memoryMib` (`--memory`) | `MemTotal` | 1024 MiB | a MiB, at least 256 |
155
161
  | `pids` (`--pids-limit`) | the lower of `threads-max` and `pid_max` | 1024 tasks | a task, at least 64 |
156
162
 
157
163
  A machine with 4 CPUs and 8 GiB gets 4 CPUs and 7168 MiB with one slot, and 1.33 CPUs and 2389 MiB with three. Preflight reads the machine only if a limit is unset, and fails with a `container` `WorkerCapabilityError` if it can't. It logs the limits, which ones it derived, and the machine's totals with `SSH Worker runs each Attempt in its own container` and `SSH Worker preflight verified`, and returns them as the report's `containerLimits`. The worker's containers get these limits until its next preflight; a container started before any preflight on the worker, such as the recovery of a provisioned worker's machine, gets limits derived for one attempt on the machine, which `SSH Worker runs each Attempt in its own container` logs the same way.
158
164
 
159
- Preflight prepares `usine-pnpm-store`, a named Docker volume shared by every attempt container on the worker's machine, and logs its allocated size as `sizeKiB`. Containers mount it read-write at `/home/usine/.local/share/pnpm/store`. The image's default user must match the SSH user's UID. Volume preparation reads the image's `usine` UID and assigns it to an empty, root-owned volume. It refuses a volume owned by another UID and directs the operator to remove it with `docker volume rm usine-pnpm-store`. Preparation changes only the volume root and runs at first use on machines that skip full preflight. Later attempts on the same machine reuse that preparation. Failures at preflight are `container` capability errors. Attempt cleanup removes containers but preserves the volume.
165
+ Run cache commands as the SSH user, using `podman` on Podman workers and `docker` on Docker workers.
166
+
167
+ Preflight prepares `usine-pnpm-store`, a named volume shared by every attempt container on the worker's machine, and logs its allocated size as `sizeKiB`. Containers mount it read-write at `/home/usine/.local/share/pnpm/store`. The image's default user must match the SSH user's UID. Volume preparation reads the image's `usine` UID and assigns it to an empty, root-owned volume. It refuses a volume owned by another UID and directs the operator to remove it with `podman volume rm usine-pnpm-store`. Preparation changes only the volume root and runs at first use on machines that skip full preflight. Later attempts on the same machine reuse that preparation. Failures at preflight are `container` capability errors. Attempt cleanup removes containers but preserves the volume.
160
168
 
161
- Preflight also prepares `usine-turbo-cache` with the same ownership checks. Every attempt container mounts it read-write at `/home/usine/.cache/turbo`, the image's `TURBO_CACHE_DIR`, so concurrent and later attempts reuse task outputs. Both volumes survive container removal; reclaim the Turborepo cache with `docker volume rm usine-turbo-cache` after removing containers that reference it.
169
+ Preflight also prepares `usine-turbo-cache` with the same ownership checks. Every attempt container mounts it read-write at `/home/usine/.cache/turbo`, the image's `TURBO_CACHE_DIR`, so concurrent and later attempts reuse task outputs. Both volumes survive container removal; reclaim the Turborepo cache with `podman volume rm usine-turbo-cache` after removing containers that reference it.
162
170
 
163
- The caches are trusted shared state across jobs and instances using the same Docker daemon. Provisioned workers delete them with their machine after each attempt. To reclaim disk space on a long-lived worker, finish its attempts, remove containers that reference the volume, and run `docker volume rm usine-pnpm-store` on that worker. Run preflight again after removal to recreate it. There is no automatic pruning or quota. See the [worker guide](https://docs.usine.dev/guides/add-a-worker/#shared-pnpm-store).
171
+ The caches are trusted shared state across jobs and instances using the same runtime store. Provisioned workers delete them with their machine after each attempt. To reclaim disk space on a long-lived worker, finish its attempts, remove containers that reference the volume, and run `podman volume rm usine-pnpm-store` on that worker. Run preflight again after removal to recreate it. There is no automatic pruning or quota. See the [worker guide](https://docs.usine.dev/guides/add-a-worker/#shared-pnpm-store).
164
172
 
165
173
  The checkout is a repository of its own whose objects come from the cached clone through an alternate, so commits never write the read-only clone. The container is named `usine-<attempt id>` and labeled with `SshExecutorOptions.instance`, `SshExecutorOptions.instanceId`, the worker, and the attempt. It's removed after the checkout's release, which salvages in it, and before the credential. If the container stopped before the release, for example because the kernel killed it for memory or a command signaled its init, the release starts it again and salvages in it, and logs the container's status, exit code, and whether it was killed for memory. Before it removes the container, the release reads how many processes the kernel killed in it for memory: the `oom_kill` count of the container's cgroup in `/sys/fs/cgroup/memory.events`, plus one for each start after the kernel killed the container's init, since a start gives the container a new cgroup. A count above zero goes to `Sink.outOfMemory` with the container's ID and memory limit. The run store keeps the count of each container: a reattachment's new container adds its kills to those of the earlier one, and a second record of the same container replaces its count. A container that only a recovery started isn't read. A count that can't be read or recorded is logged as a warning, and the container is still removed. The salvage never runs git in the checkout as the SSH user. A process's first use of a worker removes the containers with both its instance labels that belong to that worker, or to a worker that started no container in this process, so a running attempt's container on a shared machine stays. Instances that share a GitHub App, and so `instance`, have different `instanceId`s, so they don't remove each other's containers. Before its first container starts, the executor writes `<root>/workers/<name>/container-checkouts/<attempt>`, outside every container's mounts, and removes it with the checkout. A reattachment or recovery reads that marker, never the checkout, which the attempt can change: with it, commands run in a new container; without it, as the SSH user, on a machine without Docker only. A mismatch, such as a checkout from before Docker on a machine that now has it, fails with an `ExecutorOperationError` and leaves the checkout.
166
174
 
@@ -176,7 +184,7 @@ The gateway command persists attachments, allowing requests immediately after a
176
184
 
177
185
  The cached clone fetches `http://git.<domain>/<repository>.git`. Children, harvesting, and the executor's git commands export settings that point git, gh, and package managers at the gateway: git sends the caller token only to `git.<domain>` and rewrites `https://github.com/` there, gh uses `git.<domain>` through the worker's socket with its config in `<root>/workers/<name>/gh`, and `HTTPS_PROXY` is the forward proxy.
178
186
 
179
- If the gateway has the Anthropic credential, Claude Code calls `llm.<domain>/anthropic`, and preflight checks only its binary. If it has the OpenAI credential, prepare writes Codex's `config.toml` to the attempt's Codex home, `<root>/workers/<name>/codex/<attempt>`, children get that directory as `CODEX_HOME`, and Codex sends the Responses API to `llm.<domain>/openai/v1` with the caller token from `USINE_GATEWAY_TOKEN`; preflight checks only its binary and version. The file has a `model_provider` and no token. Codex also writes its sessions there, so an attempt's container mounts the directory read-write, and cleanup removes it after the container. If the orchestrator crashes, the directory stays. `Executor.sweep` removes each Codex home on a worker with its own machine whose attempt has no checkout there and that no attempt in this process holds; an attempt holds its Codex home from before it's written until cleanup removes it. A checkout kept for a reattachment or with unpreserved work keeps its Codex home, and a later sweep removes it after the checkout is gone. The sweep visits only the workers the executor has. For a worker that `usine.yaml` no longer declares, `sshWorkerRecordsFor(directory).discard(worker, attempts)` removes the Codex homes of the attempts whose leftovers the operator discarded, over SSH with the worker's port and key from its record in `directory`, and never fails. Without a record, it removes nothing. Otherwise each harness uses the operator's login on the machine through the forward proxy: preflight checks the login as without a gateway, then that each of the login's hosts answers HTTP through the proxy (`api.anthropic.com` and `platform.claude.com`, or `chatgpt.com` and `auth.openai.com`). A refused host is a `gateway` capability error naming the host to add to the egress allowlist. The caller token is in no command line: each SSH command sends `GIT_CONFIG_VALUE_0`, `GH_ENTERPRISE_TOKEN`, `GH_TOKEN`, `ANTHROPIC_AUTH_TOKEN`, and `USINE_GATEWAY_TOKEN` from the client's environment (`SendEnv`), and the machine's sshd must accept them (`AcceptEnv`). With Docker, only the cached clone's fetch sends them; the attempt's container gets them when it starts.
187
+ If the gateway has the Anthropic credential, Claude Code calls `llm.<domain>/anthropic`, and preflight checks only its binary. If it has the OpenAI credential, prepare writes Codex's `config.toml` to the attempt's Codex home, `<root>/workers/<name>/codex/<attempt>`, children get that directory as `CODEX_HOME`, and Codex sends the Responses API to `llm.<domain>/openai/v1` with the caller token from `USINE_GATEWAY_TOKEN`; preflight checks only its binary and version. The file has a `model_provider` and no token. Codex also writes its sessions there, so an attempt's container mounts the directory read-write, and cleanup removes it after the container. If the orchestrator crashes, the directory stays. `Executor.sweep` removes each Codex home on a worker with its own machine whose attempt has no checkout there and that no attempt in this process holds; an attempt holds its Codex home from before it's written until cleanup removes it. A checkout kept for a reattachment or with unpreserved work keeps its Codex home, and a later sweep removes it after the checkout is gone. The sweep visits only the workers the executor has. For a worker that `usine.yaml` no longer declares, `sshWorkerRecordsFor(directory).discard(worker, attempts)` removes the Codex homes of the attempts whose leftovers the operator discarded, over SSH with the worker's port and key from its record in `directory`, and never fails. Without a record, it removes nothing. Otherwise each harness uses the operator's login on the machine through the forward proxy: preflight checks the login as without a gateway, then that each of the login's hosts answers HTTP through the proxy (`api.anthropic.com` and `platform.claude.com`, or `chatgpt.com` and `auth.openai.com`). A refused host is a `gateway` capability error naming the host to add to the egress allowlist. The caller token is in no command line: each SSH command sends `GIT_CONFIG_VALUE_0`, `GH_ENTERPRISE_TOKEN`, `GH_TOKEN`, `ANTHROPIC_AUTH_TOKEN`, and `USINE_GATEWAY_TOKEN` from the client's environment (`SendEnv`), and the machine's sshd must accept them (`AcceptEnv`). With a container runtime, only the cached clone's fetch sends them; the attempt's container gets them when it starts.
180
188
 
181
189
  The admin API listens on the gateway's loopback. With the first worker behind a gateway, the executor opens its own forward, `ssh -N -L 127.0.0.1:<port>:127.0.0.1:<adminPort> <destination>`, with the same SSH command and environment as its other clients, on a local port the kernel picks; workers behind that gateway share it. When the client exits, the executor starts another after a pause of one second, doubling up to one minute, and logs each open, exit, and reopen with the gateway's destination. An admin request that finds the forward closed, or gets no answer, reopens it at once and is sent once more. A second failure fails the request, with a message giving since when the forward has been closed, or, if it opens but the admin API doesn't answer, since when the API last answered through it. The forward closes when the last worker behind the gateway is removed, or with the layer.
182
190
 
@@ -192,14 +200,14 @@ Boat machine creation distinguishes concurrent sandbox, compute allowance, billi
192
200
 
193
201
  A worker whose address has `machine: { _tag: "Provisioned" }` has no machine of its own: it creates a Hetzner Cloud server or a Boat sandbox for each attempt and deletes it afterwards by default ([#550](https://github.com/basaltbytes/usine/issues/550)). The layer provides `WorkerMachines` for the scheduler:
194
202
 
195
- - `create(worker, runId, attemptId, brains)` reuses an eligible idle machine or creates one, tagged with `SshExecutorOptions.instance`, the worker, the run, the persisted attempt, and a random value of this process, and waits up to `machineReadyTimeout` (or `provisioner.timings.sshWait`, 600 seconds by default) until it answers over SSH. It then waits for cloud-init, creates the root, and waits for Docker. The worker's first machine after `provisioner.timings.machineCheckInterval` seconds since its last successful check, and its first after the layer starts, also gets the machine preflight with `brains`, whose failure is a `WorkerCapabilityError`. Each machine runs one attempt at a time, so that preflight derives the unset container limits for one slot, and the worker's machines get them until the next such preflight. The grant's `checked` is then a `MachineCheck` with the brains and the limits. A provider's refusal, no capacity or quota, no answer, or a timeout is a `MachineUnavailableError` with its `reason`. On failure or interruption, the machine is deleted.
203
+ - `create(worker, runId, attemptId, brains)` reuses an eligible idle machine or creates one, tagged with `SshExecutorOptions.instance`, the worker, the run, the persisted attempt, and a random value of this process, and waits up to `machineReadyTimeout` (or `provisioner.timings.sshWait`, 600 seconds by default) until it answers over SSH. It then waits for cloud-init, creates the root, and waits for the selected container runtime. The worker's first machine after `provisioner.timings.machineCheckInterval` seconds since its last successful check, and its first after the layer starts, also gets the machine preflight with `brains`, whose failure is a `WorkerCapabilityError`. Each machine runs one attempt at a time, so that preflight derives the unset container limits for one slot, and the worker's machines get them until the next such preflight. The grant's `checked` is then a `MachineCheck` with the brains and the limits. A provider's refusal, no capacity or quota, no answer, or a timeout is a `MachineUnavailableError` with its `reason`. On failure or interruption, the machine is deleted.
196
204
  - `adopt(worker, attemptId)` holds the machine of an attempt from an earlier process, found by that tag in one listing per worker. If the provider can't be read, the hold still keeps `sweep` from deleting the machine, and the next use looks it up again.
197
205
  - `release(hold)` resets an eligible machine for reuse or deletes it, unless it has the attempt's checkout: one kept for a reattachment, until its parent task's stop is confirmed, or with unpreserved work. That machine stays for the next process. A failed deletion is retried by `sweep`.
198
206
  - `sweep` warns at startup about machines with the instance label whose worker is not configured, using the configured providers' credentials. It lists each provisioned worker's machines and deletes those that no hold or creation of this process has. The engine runs it after startup recovery and at each reconcile.
199
207
 
200
208
  Set the provisioner's `reuse` to `Option.some(new ProvisionerReuse({ attempts, maxAge }))` to
201
209
  reuse clean machines of the same worker. `attempts` includes the first assignment; `maxAge`
202
- accepts positive compact durations such as `2h`, up to `24d`. Reuse requires Docker and runs
210
+ accepts positive compact durations such as `2h`, up to `24d`. Reuse requires Podman or Docker and runs
203
211
  preflight before each assignment. Cleanup or gateway-detach failure retires the machine.
204
212
  Idle machines retire at the age limit, on worker removal, or on orderly shutdown. An active
205
213
  attempt can finish after the age limit. Provider metadata records the current attempt and
@@ -7,15 +7,15 @@ import { type ContainerImage, type ContainerLimits, type WorkerName } from "@usi
7
7
  import { Effect, Option, Redacted } from "effect";
8
8
  import { ExecutorOperationError } from "../executor.ts";
9
9
  import type { RemoteCommands } from "./commands.ts";
10
- /** The container CLI on the machine. */
11
- export declare const CONTAINER_RUNTIME = "docker";
10
+ import { type ContainerRuntime } from "./runtime.ts";
12
11
  export declare const PNPM_STORE_VOLUME = "usine-pnpm-store";
13
12
  export declare const PNPM_STORE_PATH = "/home/usine/.local/share/pnpm/store";
14
- export declare const PNPM_STORE_MOUNT = "type=volume,source=usine-pnpm-store,destination=/home/usine/.local/share/pnpm/store,volume-nocopy";
13
+ export declare const PNPM_STORE_MOUNT = "usine-pnpm-store:/home/usine/.local/share/pnpm/store:nocopy";
15
14
  /** Initializes volume `$3` using runtime `$1`, image `$2`, mount `$4`, and path `$5`. */
16
15
  export declare const PREPARE_CACHE_SCRIPT: string;
17
16
  /** The image and limits of each Attempt container on a Worker. */
18
17
  export interface ContainerSettings {
18
+ readonly runtime: ContainerRuntime;
19
19
  readonly hosts: Readonly<Record<string, string>>;
20
20
  readonly image: ContainerImage;
21
21
  readonly limits: ContainerLimits;
@@ -69,6 +69,12 @@ export interface ContainerSpec {
69
69
  /** Variables set in the container through the container CLI's standard input, never a command line. */
70
70
  readonly secrets: Readonly<Record<string, Redacted.Redacted<string>>>;
71
71
  }
72
+ /**
73
+ * A script that stops the children recorded in container `$2` for the checkout `$4` with the
74
+ * kill script `$3`. Prints `no-container` if the container doesn't exist and
75
+ * `container-stopped` if it doesn't run, since then no child can run in it.
76
+ */
77
+ export declare const STOP_CHILDREN_SCRIPT: string;
72
78
  /**
73
79
  * Returns the operations on the containers of a machine: start one for an Attempt or a
74
80
  * preflight, stop an Attempt's children in it, and remove the containers that an earlier
@@ -81,11 +87,11 @@ export declare const containersFor: (commands: RemoteCommands) => {
81
87
  recordTo: (record: Sink["outOfMemory"]) => Effect.Effect<void, never, never>;
82
88
  ensureRunning: Effect.Effect<boolean, ExecutorOperationError, never>;
83
89
  }, never, never>;
84
- stopChildren: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, name: string, worktree: string) => Effect.Effect<void, ExecutorOperationError, never>;
85
- sweep: (shell: RemoteShell, instance: string, instanceId: string & import("effect/Brand").Brand<"InstanceId">, worker: string & import("effect/Brand").Brand<"WorkerName">, kept: ReadonlySet<string>) => Effect.Effect<string[], ExecutorOperationError, never>;
86
- remove: (shell: RemoteShell, name: string) => Effect.Effect<void, never, never>;
90
+ stopChildren: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, name: string, worktree: string, runtime: "docker" | "podman") => Effect.Effect<void, ExecutorOperationError, never>;
91
+ sweep: (shell: RemoteShell, instance: string, instanceId: string & import("effect/Brand").Brand<"InstanceId">, worker: string & import("effect/Brand").Brand<"WorkerName">, kept: ReadonlySet<string>, runtime: "docker" | "podman") => Effect.Effect<string[], ExecutorOperationError, never>;
92
+ remove: (shell: RemoteShell, name: string, runtime: "docker" | "podman") => Effect.Effect<void, never, never>;
87
93
  mark: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, marker: string) => Effect.Effect<void, ExecutorOperationError, never>;
88
94
  marked: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, marker: string) => Effect.Effect<boolean, ExecutorOperationError, never>;
89
- prepareCaches: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, image: string & import("effect/Brand").Brand<"ContainerImage">, worker: string & import("effect/Brand").Brand<"WorkerName">) => Effect.Effect<undefined, ExecutorOperationError, never>;
95
+ prepareCaches: (operation: "cancel" | "cleanup" | "launch" | "preflight" | "prepare", shell: RemoteShell, image: string & import("effect/Brand").Brand<"ContainerImage">, worker: string & import("effect/Brand").Brand<"WorkerName">, runtime: "docker" | "podman") => Effect.Effect<undefined, ExecutorOperationError, never>;
90
96
  };
91
97
  //# sourceMappingURL=container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/remote/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,WAAW,EAAuB,MAAM,0BAA0B,CAAC;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,qBAAqB,CAAC;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAe,MAAM,QAAQ,CAAC;AAC/D,OAAO,EAA0B,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CA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ine/core/worker";
5
5
  import { Effect, Option, Redacted, Ref, Schema } from "effect";
6
6
  import { ExecutorOperationError } from "../executor.js";
7
- /** The container CLI on the machine. */
8
- export const CONTAINER_RUNTIME = "docker";
7
+ import { runtimeOptions } from "./runtime.js";
9
8
  export const PNPM_STORE_VOLUME = "usine-pnpm-store";
10
9
  export const PNPM_STORE_PATH = "/home/usine/.local/share/pnpm/store";
11
- export const PNPM_STORE_MOUNT = `type=volume,source=${PNPM_STORE_VOLUME},destination=${PNPM_STORE_PATH},volume-nocopy`;
10
+ export const PNPM_STORE_MOUNT = `${PNPM_STORE_VOLUME}:${PNPM_STORE_PATH}:nocopy`;
12
11
  const SHARED_CACHES = [
13
12
  { volume: PNPM_STORE_VOLUME, path: PNPM_STORE_PATH },
14
13
  {
@@ -18,23 +17,26 @@ const SHARED_CACHES = [
18
17
  ].map(({ volume, path }) => ({
19
18
  volume,
20
19
  path,
21
- mount: `type=volume,source=${volume},destination=${path},volume-nocopy`,
20
+ mount: `${volume}:${path}:nocopy`,
22
21
  }));
23
22
  /** Initializes volume `$3` using runtime `$1`, image `$2`, mount `$4`, and path `$5`. */
24
23
  export const PREPARE_CACHE_SCRIPT = String.raw `
25
24
  set -eu
26
25
  "$1" volume create "$3" >/dev/null
27
- exec "$1" run --rm --network none --user 0 --mount "$4" --entrypoint sh "$2" -ec '
26
+ runtime=$1 image=$2 volume=$3 mount=$4 path=$5
27
+ shift 5
28
+ if [ "$runtime" = podman ]; then set -- --userns=keep-id --cgroupns=private --http-proxy=false; fi
29
+ exec "$runtime" run --rm --network none "$@" --user 0 --volume "$mount" --entrypoint sh "$image" -ec '
28
30
  owner=$(id -u usine)
29
31
  current=$(stat -c %u "$1")
30
32
  if [ "$current" = "$owner" ]; then exit 0; fi
31
33
  if [ "$current" != 0 ] || [ -n "$(find "$1" -mindepth 1 -maxdepth 1 -print -quit)" ]; then
32
- echo "Cache volume $2 belongs to UID $current, but the image usine user has UID $owner. Remove containers that reference it, then run: docker volume rm $2" >&2
34
+ echo "Cache volume $2 belongs to UID $current, but the image usine user has UID $owner. Remove containers that reference it, then run: $3 volume rm $2" >&2
33
35
  exit 1
34
36
  fi
35
37
  chmod 0755 "$1"
36
38
  chown -h "$owner" "$1"
37
- ' sh "$5" "$3"
39
+ ' sh "$path" "$volume" "$runtime"
38
40
  `.trim();
39
41
  /** The labels on each container, so a later process finds the ones it left. */
40
42
  const INSTANCE_LABEL = "dev.usine.instance";
@@ -90,10 +92,10 @@ done
90
92
  * kill script `$3`. Prints `no-container` if the container doesn't exist and
91
93
  * `container-stopped` if it doesn't run, since then no child can run in it.
92
94
  */
93
- const STOP_CHILDREN_SCRIPT = String.raw `
95
+ export const STOP_CHILDREN_SCRIPT = String.raw `
94
96
  if ! state=$("$1" container inspect --format '{{.State.Running}}' "$2" 2>&1); then
95
97
  case "$state" in
96
- *"No such"*) echo no-container; exit 0 ;;
98
+ *"No such"*|*"no such container"*) echo no-container; exit 0 ;;
97
99
  esac
98
100
  printf '%s\n' "$state" >&2
99
101
  exit 1
@@ -114,6 +116,7 @@ echo "container $3"
114
116
  case "$4 $5" in
115
117
  "true "*) exec "$1" exec "$2" cat /sys/fs/cgroup/memory.events ;;
116
118
  *" true") echo "oom_kill 1" ;;
119
+ *) echo "oom_kill 0" ;;
117
120
  esac
118
121
  `.trim();
119
122
  /** The container's ID in the output of `MEMORY_EVENTS_SCRIPT`. */
@@ -161,14 +164,15 @@ const containerFields = (shell, spec) => ({
161
164
  host: shell.destination,
162
165
  container: spec.name,
163
166
  image: spec.settings.image,
167
+ runtime: spec.settings.runtime,
164
168
  ...Option.match(spec.attemptId, {
165
169
  onNone: () => ({}),
166
170
  onSome: (attemptId) => ({ attemptId }),
167
171
  }),
168
172
  });
169
173
  /** Returns the shell that runs commands in the container `name` on the machine of `shell`. */
170
- const containerShell = (shell, name) => {
171
- const container = { runtime: CONTAINER_RUNTIME, name };
174
+ const containerShell = (shell, name, runtime) => {
175
+ const container = { runtime, name };
172
176
  return new RemoteShell({
173
177
  ssh: shell.ssh,
174
178
  sshEnvironment: shell.sshEnvironment,
@@ -182,7 +186,7 @@ const containerShell = (shell, name) => {
182
186
  * process left.
183
187
  */
184
188
  export const containersFor = (commands) => {
185
- const prepareCaches = Effect.fn("RemoteExecutor.prepareSharedCaches")(function* (operation, shell, image, worker) {
189
+ const prepareCaches = Effect.fn("RemoteExecutor.prepareSharedCaches")(function* (operation, shell, image, worker, runtime) {
186
190
  const fields = { worker, host: shell.destination, image };
187
191
  yield* Effect.annotateCurrentSpan(fields);
188
192
  for (const { volume, mount, path } of SHARED_CACHES) {
@@ -190,7 +194,7 @@ export const containersFor = (commands) => {
190
194
  "-c",
191
195
  PREPARE_CACHE_SCRIPT,
192
196
  "sh",
193
- CONTAINER_RUNTIME,
197
+ runtime,
194
198
  image,
195
199
  volume,
196
200
  mount,
@@ -208,11 +212,9 @@ export const containersFor = (commands) => {
208
212
  yield* Effect.logInfo("Prepared shared cache volume", { ...fields, volume, path });
209
213
  }
210
214
  });
211
- const remove = Effect.fn("RemoteExecutor.removeContainer")(function* (shell, name) {
215
+ const remove = Effect.fn("RemoteExecutor.removeContainer")(function* (shell, name, runtime) {
212
216
  yield* Effect.annotateCurrentSpan({ host: shell.destination, container: name });
213
- yield* commands
214
- .run("cleanup", shell, CONTAINER_RUNTIME, ["rm", "--force", "--volumes", name])
215
- .pipe(Effect.tap(() => Effect.logInfo("Removed the container", { host: shell.destination, container: name })), Effect.tapError((error) => Effect.logWarning("Could not remove the container; the next process that uses the Worker removes it", { host: shell.destination, container: name, message: error.message })), Effect.ignore);
217
+ yield* commands.run("cleanup", shell, runtime, ["rm", "--force", "--volumes", name]).pipe(Effect.tap(() => Effect.logInfo("Removed the container", { host: shell.destination, container: name })), Effect.tapError((error) => Effect.logWarning("Could not remove the container; the next process that uses the Worker removes it", { host: shell.destination, container: name, message: error.message })), Effect.ignore);
216
218
  });
217
219
  /**
218
220
  * Starts the container of `spec` on the machine of `shell`, replacing one with the same name,
@@ -229,7 +231,7 @@ export const containersFor = (commands) => {
229
231
  "-c",
230
232
  PREPARE_SCRIPT,
231
233
  "sh",
232
- CONTAINER_RUNTIME,
234
+ spec.settings.runtime,
233
235
  spec.name,
234
236
  String(spec.readOnly.length + spec.writable.length),
235
237
  ...spec.readOnly,
@@ -273,7 +275,6 @@ export const containersFor = (commands) => {
273
275
  }),
274
276
  });
275
277
  const mounts = [
276
- ...SHARED_CACHES.map(({ mount }) => mount),
277
278
  ...Option.match(spec.checkout, {
278
279
  onNone: () => [],
279
280
  onSome: ({ path, parent }) => [
@@ -291,6 +292,7 @@ export const containersFor = (commands) => {
291
292
  // of the container (ADR 0027, amended 2026-10-25).
292
293
  const args = [
293
294
  "run",
295
+ ...runtimeOptions(spec.settings.runtime),
294
296
  "--detach",
295
297
  "--name",
296
298
  spec.name,
@@ -312,32 +314,33 @@ export const containersFor = (commands) => {
312
314
  String(spec.settings.limits.pids),
313
315
  "--env-file",
314
316
  "/dev/stdin",
317
+ ...SHARED_CACHES.flatMap(({ mount }) => ["--volume", mount]),
315
318
  ...mounts.flatMap((mount) => ["--mount", mount]),
316
319
  spec.settings.image,
317
320
  ...lifetime.command,
318
321
  ];
319
- yield* Effect.addFinalizer(() => remove(shell, spec.name));
322
+ yield* Effect.addFinalizer(() => remove(shell, spec.name, spec.settings.runtime));
320
323
  yield* commands
321
- .runWithInput(operation, shell, "sh", ["-c", PIPED_STDIN_SCRIPT, "sh", CONTAINER_RUNTIME, ...args], envFile)
324
+ .runWithInput(operation, shell, "sh", ["-c", PIPED_STDIN_SCRIPT, "sh", spec.settings.runtime, ...args], envFile)
322
325
  .pipe(Effect.ensuring(Effect.sync(() => Redacted.wipeUnsafe(envFile))));
323
326
  yield* Effect.logInfo("Started the container", {
324
327
  ...fields,
325
328
  logins: found.map(({ file }) => file).join(","),
326
329
  readOnly: readOnly.join(","),
327
330
  });
328
- return containerShell(shell, spec.name);
331
+ return containerShell(shell, spec.name, spec.settings.runtime);
329
332
  });
330
333
  /**
331
334
  * Stops the children recorded in the container `name` for the checkout `worktree`. Succeeds
332
335
  * without stopping anything if the container doesn't exist or doesn't run.
333
336
  */
334
- const stopChildren = Effect.fn("RemoteExecutor.stopContainerChildren")(function* (operation, shell, name, worktree) {
337
+ const stopChildren = Effect.fn("RemoteExecutor.stopContainerChildren")(function* (operation, shell, name, worktree, runtime) {
335
338
  yield* Effect.annotateCurrentSpan({ host: shell.destination, container: name, worktree });
336
339
  const outcome = yield* commands.run(operation, shell, "sh", [
337
340
  "-c",
338
341
  STOP_CHILDREN_SCRIPT,
339
342
  "sh",
340
- CONTAINER_RUNTIME,
343
+ runtime,
341
344
  name,
342
345
  CHILD_KILL_SCRIPT,
343
346
  worktree,
@@ -357,7 +360,7 @@ export const containersFor = (commands) => {
357
360
  const ensureRunning = Effect.fn("RemoteExecutor.ensureContainerRunning")(function* (operation, shell, spec) {
358
361
  const fields = containerFields(shell, spec);
359
362
  yield* Effect.annotateCurrentSpan(fields);
360
- const [status = "", exitCode = "", oomKilled = ""] = (yield* commands.run(operation, shell, CONTAINER_RUNTIME, ["container", "inspect", "--format", STATE_FORMAT, spec.name]))
363
+ const [status = "", exitCode = "", oomKilled = ""] = (yield* commands.run(operation, shell, spec.settings.runtime, ["container", "inspect", "--format", STATE_FORMAT, spec.name]))
361
364
  .trim()
362
365
  .split(" ");
363
366
  if (status === "running") {
@@ -370,7 +373,7 @@ export const containersFor = (commands) => {
370
373
  exitCode,
371
374
  oomKilled,
372
375
  });
373
- yield* commands.run(operation, shell, CONTAINER_RUNTIME, ["start", spec.name]);
376
+ yield* commands.run(operation, shell, spec.settings.runtime, ["start", spec.name]);
374
377
  return oomKilled === "true";
375
378
  });
376
379
  /**
@@ -386,7 +389,7 @@ export const containersFor = (commands) => {
386
389
  "-c",
387
390
  MEMORY_EVENTS_SCRIPT,
388
391
  "sh",
389
- CONTAINER_RUNTIME,
392
+ spec.settings.runtime,
390
393
  spec.name,
391
394
  ]);
392
395
  const container = yield* decodeContainerId(CONTAINER_LINE.exec(events)?.[1]).pipe(Effect.mapError((cause) => new ExecutorOperationError({
@@ -394,7 +397,14 @@ export const containersFor = (commands) => {
394
397
  message: "The container runtime didn't print the container's ID",
395
398
  cause,
396
399
  })));
397
- const kills = Number(OOM_KILL_LINE.exec(events)?.[1] ?? 0);
400
+ const count = OOM_KILL_LINE.exec(events)?.[1];
401
+ if (count === undefined)
402
+ return yield* new ExecutorOperationError({
403
+ operation,
404
+ message: "The container runtime returned no OOM counter",
405
+ cause: new Error("missing oom_kill"),
406
+ });
407
+ const kills = Number(count);
398
408
  if (kills === 0)
399
409
  yield* Effect.logDebug("The kernel killed no process in the container", {
400
410
  ...fields,
@@ -441,13 +451,13 @@ export const containersFor = (commands) => {
441
451
  * Removes the containers labeled with `instance` and `instanceId` on the machine of `shell`
442
452
  * whose Worker label is `worker` or not in `kept`. Returns the names removed.
443
453
  */
444
- const sweep = Effect.fn("RemoteExecutor.sweepContainers")(function* (shell, instance, instanceId, worker, kept) {
454
+ const sweep = Effect.fn("RemoteExecutor.sweepContainers")(function* (shell, instance, instanceId, worker, kept, runtime) {
445
455
  yield* Effect.annotateCurrentSpan({ host: shell.destination, worker, instance, instanceId });
446
456
  const listed = (yield* commands.run("cleanup", shell, "sh", [
447
457
  "-c",
448
458
  LIST_SCRIPT,
449
459
  "sh",
450
- CONTAINER_RUNTIME,
460
+ runtime,
451
461
  `${INSTANCE_LABEL}=${instance}`,
452
462
  `${INSTANCE_ID_LABEL}=${instanceId}`,
453
463
  ]))
@@ -468,12 +478,7 @@ export const containersFor = (commands) => {
468
478
  });
469
479
  return left;
470
480
  }
471
- yield* commands.run("cleanup", shell, CONTAINER_RUNTIME, [
472
- "rm",
473
- "--force",
474
- "--volumes",
475
- ...left,
476
- ]);
481
+ yield* commands.run("cleanup", shell, runtime, ["rm", "--force", "--volumes", ...left]);
477
482
  yield* Effect.logInfo("Removed the containers an earlier process left on the machine", {
478
483
  worker,
479
484
  host: shell.destination,
@@ -1 +1 @@
1
- {"version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CAAC;AAyBxB,OAAO,KAAK,EAAgB,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAkD9E;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,aAAa,UAAU,YAAY,CAAC,CAAC,CAAC;;;;;;;;;;yDAy4B9E,CAAC"}
@@ -75,7 +75,7 @@ export const remoteExecutorFor = (worker) => Effect.gen(function* () {
75
75
  const host = machine.shell.destination;
76
76
  yield* Effect.annotateCurrentSpan({ host, worktree, isolation: isolation._tag });
77
77
  if (isolation._tag === "Container")
78
- return yield* containers.stopChildren(operation, machine.shell, attemptContainerName(attemptId), worktree);
78
+ return yield* containers.stopChildren(operation, machine.shell, attemptContainerName(attemptId), worktree, isolation.settings.runtime);
79
79
  const outcome = yield* commands.run(operation, machine.shell, "sh", [
80
80
  "-c",
81
81
  CHILD_KILL_SCRIPT,
@@ -105,8 +105,8 @@ export const remoteExecutorFor = (worker) => Effect.gen(function* () {
105
105
  if (contained === (isolation._tag === "Container"))
106
106
  return isolation;
107
107
  const message = contained
108
- ? `The checkout ${worktree} was mounted in an attempt container, and the machine no longer has Docker, so usine runs no command in it as the SSH user. Install Docker, or salvage and remove the checkout by hand.`
109
- : `The checkout ${worktree} is from before the machine had Docker, and the SSH user can use Docker, so usine runs no command in it as that user. Salvage and remove the checkout by hand.`;
108
+ ? `The checkout ${worktree} was mounted in an attempt container, and the machine no longer has a container runtime, so usine runs no command in it as the SSH user. Install Podman or Docker, or salvage and remove the checkout by hand.`
109
+ : `The checkout ${worktree} is from before the machine used containers, and the machine now requires containers, so usine runs no command in it as that user. Salvage and remove the checkout by hand.`;
110
110
  yield* Effect.logError("Refused to run commands in the checkout", {
111
111
  attemptId,
112
112
  host,
@@ -117,7 +117,7 @@ export const remoteExecutorFor = (worker) => Effect.gen(function* () {
117
117
  return yield* new ExecutorOperationError({
118
118
  operation,
119
119
  message,
120
- cause: new Error(contained ? "container marker without Docker" : "no container marker"),
120
+ cause: new Error(contained ? "container marker without a runtime" : "no container marker"),
121
121
  });
122
122
  });
123
123
  /** Returns the container of an Attempt, which mounts its checkout and the paths of `access`. */
@@ -224,7 +224,7 @@ export const remoteExecutorFor = (worker) => Effect.gen(function* () {
224
224
  const git = (args) => commands.run("cleanup", machine.shell, "git", args);
225
225
  yield* reconcile(git, removeCheckout(git));
226
226
  if (isolation._tag === "Container")
227
- yield* containers.remove(machine.shell, attemptContainerName(attempt.attemptId));
227
+ yield* containers.remove(machine.shell, attemptContainerName(attempt.attemptId), isolation.settings.runtime);
228
228
  return;
229
229
  }
230
230
  const author = yield* commitAuthor;