@ship.zone/runner 0.2.1 → 0.2.2
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/changelog.md +15 -0
- package/deno.json +1 -1
- package/dist_npm/mod.d.ts +10 -1
- package/dist_npm/mod.js +452 -33
- package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
- package/package.json +1 -1
- package/readme.md +23 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/oci-executor.ts +633 -21
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -68,7 +68,7 @@ import { ShipRunner } from '@ship.zone/runner';
|
|
|
68
68
|
Without an import-map entry, use the npm package directly:
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
|
-
import { ShipRunner } from 'npm:@ship.zone/runner
|
|
71
|
+
import { ShipRunner } from 'npm:@ship.zone/runner';
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
For development in this repository, install dependencies and build the npm bundle plus the static
|
|
@@ -84,6 +84,28 @@ The published package includes `dist_rust/runnerworkspace_linux_amd64_musl` and
|
|
|
84
84
|
`rust/.cargo/config.toml`, and the dependency notices. `oci.workspaceHelperPath` can select an
|
|
85
85
|
explicit absolute helper path for development or controlled deployments.
|
|
86
86
|
|
|
87
|
+
Configured, packaged, and dependency-injected helper resolver paths are source files. Runtime
|
|
88
|
+
verification reads the bounded regular source through one pinned file descriptor, hashes those exact
|
|
89
|
+
bytes, and materializes an executable mode-`0755` copy below the private mode-`0700` runner state
|
|
90
|
+
subdirectory as `workspace-helpers/runnerworkspace_<target>_musl_<sha256>`. Source permissions are
|
|
91
|
+
not changed, so package managers may install the source without executable bits. The private parent
|
|
92
|
+
directory is the host access boundary; mode `0755` lets capability-dropped helper containers execute
|
|
93
|
+
the host-owned read-only bind mount. `IOciRuntimeFacts.helperPath` reports the validated
|
|
94
|
+
materialized path used by host probes and OCI bind mounts, while `helperSha256` reports its content
|
|
95
|
+
digest. A private advisory lock serializes materialization. Existing digest paths are reused only
|
|
96
|
+
after their type, single-link status, mode, and digest are revalidated without mutating them; the
|
|
97
|
+
runner retains a bounded set for rollback, reclaims stale incomplete temporary copies, and rejects
|
|
98
|
+
excessive recent temporary residue. The sole immediate-recovery exception is a validated temporary
|
|
99
|
+
name and exact digest destination that still reference the same two-link inode after interruption;
|
|
100
|
+
the runner removes the temporary name under the lock, verifies the destination became single-link,
|
|
101
|
+
and then reuses it.
|
|
102
|
+
|
|
103
|
+
Runtime verification creates one private `.runtime-probe-owner_<id>` marker in the helper state.
|
|
104
|
+
Host tmpfs probes include that owner in their exact directory names, and OCI runtime probe volumes
|
|
105
|
+
carry the same `ship.zone.runner.runtime-probe-owner` label. This lets interrupted verification be
|
|
106
|
+
cleaned by the same state owner without touching unowned probes or probes from another runner. The
|
|
107
|
+
runner syncs both the helper-directory entry and a newly created owner marker before using them.
|
|
108
|
+
|
|
87
109
|
## Configure And Run
|
|
88
110
|
|
|
89
111
|
Create a private runner configuration:
|