@ship.zone/runner 2.0.0 → 3.0.0
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/.smartconfig.json +101 -3
- package/changelog.md +69 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl.third-party-notices.json +679 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl.third-party-notices.txt +15719 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl.tsrust-build.json +5 -5
- package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl.third-party-notices.json +679 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl.third-party-notices.txt +15719 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl.tsrust-build.json +5 -5
- package/dist_ts/00_commitinfo_data.d.ts +8 -0
- package/dist_ts/00_commitinfo_data.js +9 -0
- package/dist_ts/api-client.d.ts +46 -0
- package/dist_ts/api-client.js +592 -0
- package/dist_ts/artifact-manager.d.ts +11 -0
- package/dist_ts/artifact-manager.js +140 -0
- package/dist_ts/attempt-state.d.ts +18 -0
- package/dist_ts/attempt-state.js +151 -0
- package/dist_ts/cache-manager.d.ts +13 -0
- package/dist_ts/cache-manager.js +300 -0
- package/dist_ts/cli-entry.d.ts +2 -0
- package/dist_ts/cli-entry.js +4 -0
- package/dist_ts/cli.d.ts +14 -0
- package/dist_ts/cli.js +215 -0
- package/dist_ts/config.d.ts +8 -0
- package/dist_ts/config.js +445 -0
- package/dist_ts/errors.d.ts +41 -0
- package/dist_ts/errors.js +90 -0
- package/dist_ts/filesystem.d.ts +73 -0
- package/dist_ts/filesystem.js +207 -0
- package/dist_ts/index.d.ts +16 -0
- package/dist_ts/index.js +17 -0
- package/dist_ts/interfaces.d.ts +614 -0
- package/dist_ts/interfaces.js +3 -0
- package/dist_ts/log-sender.d.ts +26 -0
- package/dist_ts/log-sender.js +124 -0
- package/dist_ts/oci-executor.d.ts +155 -0
- package/dist_ts/oci-executor.js +2238 -0
- package/dist_ts/plugins.d.ts +19 -0
- package/dist_ts/plugins.js +23 -0
- package/dist_ts/protocol-validator.d.ts +39 -0
- package/dist_ts/protocol-validator.js +483 -0
- package/dist_ts/redactor.d.ts +78 -0
- package/dist_ts/redactor.js +235 -0
- package/dist_ts/registration-state.d.ts +16 -0
- package/dist_ts/registration-state.js +171 -0
- package/dist_ts/runner.d.ts +64 -0
- package/dist_ts/runner.js +882 -0
- package/dist_ts/source-workspace.d.ts +10 -0
- package/dist_ts/source-workspace.js +125 -0
- package/dist_ts/spec-version.d.ts +11 -0
- package/dist_ts/spec-version.js +41 -0
- package/dist_ts/staging-scavenger.d.ts +7 -0
- package/dist_ts/staging-scavenger.js +63 -0
- package/dist_ts/state-owner.d.ts +74 -0
- package/dist_ts/state-owner.js +289 -0
- package/dist_ts/transfer-archive.d.ts +78 -0
- package/dist_ts/transfer-archive.js +1619 -0
- package/dist_ts/validation.d.ts +11 -0
- package/dist_ts/validation.js +79 -0
- package/dist_ts/wire-schema.d.ts +10 -0
- package/dist_ts/wire-schema.js +114 -0
- package/native-notices/crates/bitflags-2.13.1/license-apache +201 -0
- package/native-notices/crates/bitflags-2.13.1/license-mit +25 -0
- package/native-notices/crates/cc-1.8.0/license-apache +201 -0
- package/native-notices/crates/cc-1.8.0/license-mit +25 -0
- package/native-notices/crates/cfg-if-1.0.4/license-apache +201 -0
- package/native-notices/crates/cfg-if-1.0.4/license-mit +25 -0
- package/native-notices/crates/cfg_aliases-0.2.2/license +9 -0
- package/native-notices/crates/cfg_aliases-0.2.2/notices.md +26 -0
- package/native-notices/crates/find-msvc-tools-0.1.14/license-apache +201 -0
- package/native-notices/crates/find-msvc-tools-0.1.14/license-mit +25 -0
- package/native-notices/crates/itoa-1.0.18/license-apache +176 -0
- package/native-notices/crates/itoa-1.0.18/license-mit +23 -0
- package/native-notices/crates/libc-0.2.189/license-apache +176 -0
- package/native-notices/crates/libc-0.2.189/license-mit +25 -0
- package/native-notices/crates/memchr-2.8.3/copying +3 -0
- package/native-notices/crates/memchr-2.8.3/license-mit +21 -0
- package/native-notices/crates/memchr-2.8.3/unlicense +24 -0
- package/native-notices/crates/nix-0.30.1/license +21 -0
- package/native-notices/crates/proc-macro2-1.0.107/license-apache +176 -0
- package/native-notices/crates/proc-macro2-1.0.107/license-mit +23 -0
- package/native-notices/crates/quote-1.0.47/license-apache +176 -0
- package/native-notices/crates/quote-1.0.47/license-mit +23 -0
- package/native-notices/crates/serde-1.0.229/license-apache +176 -0
- package/native-notices/crates/serde-1.0.229/license-mit +23 -0
- package/native-notices/crates/serde_core-1.0.229/license-apache +176 -0
- package/native-notices/crates/serde_core-1.0.229/license-mit +23 -0
- package/native-notices/crates/serde_derive-1.0.229/license-apache +176 -0
- package/native-notices/crates/serde_derive-1.0.229/license-mit +23 -0
- package/native-notices/crates/serde_json-1.0.151/license-apache +176 -0
- package/native-notices/crates/serde_json-1.0.151/license-mit +23 -0
- package/native-notices/crates/shlex-2.0.1/license-apache +13 -0
- package/native-notices/crates/shlex-2.0.1/license-mit +21 -0
- package/native-notices/crates/syn-3.0.3/license-apache +176 -0
- package/native-notices/crates/syn-3.0.3/license-mit +23 -0
- package/native-notices/crates/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/license-apache +201 -0
- package/native-notices/crates/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/license-mit +25 -0
- package/native-notices/crates/tikv-jemallocator-0.7.0/license-apache +201 -0
- package/native-notices/crates/tikv-jemallocator-0.7.0/license-mit +25 -0
- package/native-notices/crates/unicode-ident-1.0.24/license-apache +176 -0
- package/native-notices/crates/unicode-ident-1.0.24/license-mit +23 -0
- package/native-notices/crates/unicode-ident-1.0.24/license-unicode +39 -0
- package/native-notices/crates/zmij-1.0.23/license-mit +23 -0
- package/native-notices/manifest.json +763 -0
- package/native-notices/native/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/jemalloc-5.3.1/jemalloc-copying +27 -0
- package/native-notices/readme.md +46 -0
- package/native-notices/runtime/gcc/gpl-3.0.txt +674 -0
- package/native-notices/runtime/gcc/runtime-library-exception-3.1.txt +73 -0
- package/native-notices/runtime/libunwind-22.1.2/license.txt +311 -0
- package/native-notices/runtime/musl-1.2.5/copyright +193 -0
- package/native-notices/rust/compiler-builtins-license.txt +275 -0
- package/native-notices/rust/copyright-library.html +8266 -0
- package/native-notices/rust/crates/addr2line-0.25.1/license-apache +201 -0
- package/native-notices/rust/crates/addr2line-0.25.1/license-mit +25 -0
- package/native-notices/rust/crates/adler2-2.0.1/license-0bsd +12 -0
- package/native-notices/rust/crates/adler2-2.0.1/license-apache +201 -0
- package/native-notices/rust/crates/adler2-2.0.1/license-mit +23 -0
- package/native-notices/rust/crates/memchr-2.7.6/copying +3 -0
- package/native-notices/rust/crates/memchr-2.7.6/license-mit +21 -0
- package/native-notices/rust/crates/memchr-2.7.6/unlicense +24 -0
- package/native-notices/rust/crates/miniz_oxide-0.8.9/license +25 -0
- package/native-notices/rust/crates/miniz_oxide-0.8.9/license-apache.md +177 -0
- package/native-notices/rust/crates/miniz_oxide-0.8.9/license-mit.md +24 -0
- package/native-notices/rust/crates/miniz_oxide-0.8.9/license-zlib.md +14 -0
- package/native-notices/rust/crates/object-0.37.3/license-apache +201 -0
- package/native-notices/rust/crates/object-0.37.3/license-mit +25 -0
- package/native-notices/rust/licenses/apache-2.0.txt +73 -0
- package/native-notices/rust/licenses/bsd-2-clause.txt +9 -0
- package/native-notices/rust/licenses/cc-by-sa-4.0.txt +427 -0
- package/native-notices/rust/licenses/gcc-exception-3.1.txt +30 -0
- package/native-notices/rust/licenses/gpl-2.0-only.txt +133 -0
- package/native-notices/rust/licenses/gpl-3.0-or-later.txt +202 -0
- package/native-notices/rust/licenses/isc.txt +7 -0
- package/native-notices/rust/licenses/llvm-exception.txt +15 -0
- package/native-notices/rust/licenses/mit.txt +9 -0
- package/native-notices/rust/licenses/ncsa.txt +29 -0
- package/native-notices/rust/licenses/ofl-1.1.txt +43 -0
- package/native-notices/rust/licenses/unicode-3.0.txt +39 -0
- package/package.json +24 -21
- package/readme.md +91 -40
- package/rust/.cargo/config.toml +1 -1
- package/rust/Cargo.lock +43 -0
- package/rust/Cargo.toml +4 -1
- package/rust/src/lib.rs +156 -1
- package/rust/src/main.rs +5 -1
- package/rust-toolchain.toml +4 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/api-client.ts +10 -7
- package/ts/artifact-manager.ts +9 -7
- package/ts/attempt-state.ts +75 -84
- package/ts/cache-manager.ts +22 -28
- package/ts/cli-entry.ts +4 -0
- package/ts/cli.ts +56 -45
- package/ts/config.ts +50 -39
- package/ts/errors.ts +19 -0
- package/ts/filesystem.ts +316 -0
- package/ts/index.ts +16 -15
- package/ts/interfaces.ts +2 -2
- package/ts/log-sender.ts +4 -4
- package/ts/oci-executor.ts +235 -383
- package/ts/plugins.ts +21 -3
- package/ts/protocol-validator.ts +5 -5
- package/ts/redactor.ts +2 -2
- package/ts/registration-state.ts +82 -90
- package/ts/runner.ts +30 -17
- package/ts/source-workspace.ts +11 -8
- package/ts/spec-version.ts +2 -2
- package/ts/staging-scavenger.ts +37 -26
- package/ts/state-owner.ts +346 -0
- package/ts/transfer-archive.ts +214 -243
- package/ts/validation.ts +1 -1
- package/ts/wire-schema.ts +3 -3
- package/deno.json +0 -56
- package/deno.lock +0 -1762
- package/dist_npm/mod.d.ts +0 -967
- package/dist_npm/mod.js +0 -10058
- package/mod.ts +0 -8
- package/musl-copyright.md +0 -81
- package/third-party-licenses.md +0 -95
package/.smartconfig.json
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"preflight": {
|
|
16
16
|
"requireCleanTree": true,
|
|
17
17
|
"test": true,
|
|
18
|
-
"build": true
|
|
18
|
+
"build": true,
|
|
19
|
+
"buildCommand": "pnpm run build:release"
|
|
19
20
|
},
|
|
20
21
|
"targets": {
|
|
21
22
|
"git": {
|
|
@@ -39,10 +40,107 @@
|
|
|
39
40
|
"patterns": []
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
},
|
|
44
|
+
"assets": {
|
|
45
|
+
"schemaVersion": 1,
|
|
46
|
+
"kind": "binaryCli",
|
|
47
|
+
"cliName": "ship-zone-runner",
|
|
48
|
+
"displayName": "ship.zone runner",
|
|
49
|
+
"repository": {
|
|
50
|
+
"host": "code.foss.global",
|
|
51
|
+
"path": "ship.zone/runner",
|
|
52
|
+
"branch": "main"
|
|
53
|
+
},
|
|
54
|
+
"installer": {
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"installDir": "/opt/ship-zone-runner",
|
|
57
|
+
"binDir": "/usr/local/bin",
|
|
58
|
+
"modes": {
|
|
59
|
+
"default": "binary"
|
|
60
|
+
},
|
|
61
|
+
"service": {
|
|
62
|
+
"detectNames": [
|
|
63
|
+
"ship-zone-runner"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"successHints": [
|
|
67
|
+
"ship-zone-runner --version",
|
|
68
|
+
"ship-zone-runner help"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"npmWrapper": {
|
|
72
|
+
"enabled": false
|
|
73
|
+
},
|
|
74
|
+
"releaseWorkflow": {
|
|
75
|
+
"compileCommand": "pnpm run build:binary"
|
|
76
|
+
}
|
|
42
77
|
}
|
|
43
78
|
},
|
|
44
79
|
"@git.zone/tsrust": {
|
|
45
|
-
"targets": [
|
|
46
|
-
|
|
80
|
+
"targets": [
|
|
81
|
+
"linux_amd64_musl",
|
|
82
|
+
"linux_arm64_musl"
|
|
83
|
+
],
|
|
84
|
+
"static": true,
|
|
85
|
+
"notices": {
|
|
86
|
+
"directory": "native-notices"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"@git.zone/tsbundle": {
|
|
90
|
+
"bundles": [
|
|
91
|
+
{
|
|
92
|
+
"from": "./ts/cli-entry.ts",
|
|
93
|
+
"to": "./dist/sea/ship-zone-runner.mjs",
|
|
94
|
+
"bundler": "esbuild",
|
|
95
|
+
"platform": "node",
|
|
96
|
+
"sea": true,
|
|
97
|
+
"production": true
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"@git.zone/tssea": {
|
|
102
|
+
"nodeVersion": "26.11.1",
|
|
103
|
+
"bundle": "./dist/sea/ship-zone-runner.mjs",
|
|
104
|
+
"outDir": "./dist/binaries",
|
|
105
|
+
"targets": [
|
|
106
|
+
{
|
|
107
|
+
"target": "linux-x64",
|
|
108
|
+
"name": "ship-zone-runner-linux-x64"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"target": "linux-arm64",
|
|
112
|
+
"name": "ship-zone-runner-linux-arm64"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"execArgv": [
|
|
116
|
+
"--use-system-ca"
|
|
117
|
+
],
|
|
118
|
+
"trees": {
|
|
119
|
+
"helper": {
|
|
120
|
+
"from": {
|
|
121
|
+
"linux-x64": "./dist_rust/runnerworkspace_linux_amd64_musl",
|
|
122
|
+
"linux-arm64": "./dist_rust/runnerworkspace_linux_arm64_musl"
|
|
123
|
+
},
|
|
124
|
+
"path": "runnerworkspace"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"sidecars": {
|
|
128
|
+
"runnerworkspace": {
|
|
129
|
+
"tree": "helper",
|
|
130
|
+
"path": "runnerworkspace"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"smoke": {
|
|
134
|
+
"args": [
|
|
135
|
+
"--version"
|
|
136
|
+
],
|
|
137
|
+
"expectExitCode": 0,
|
|
138
|
+
"expectStdoutPattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
139
|
+
"cleanEnv": true,
|
|
140
|
+
"emulate": true,
|
|
141
|
+
"env": {
|
|
142
|
+
"QEMU_LD_PREFIX": "/usr/aarch64-linux-gnu"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
47
145
|
}
|
|
48
146
|
}
|
package/changelog.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-10-15 - 3.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- run on Node.js 26.1 or later instead of Deno (runtime)
|
|
8
|
+
- The package compiles to `dist_ts/` with `@git.zone/tsbuild`; `deno.json`, `deno.lock`, `mod.ts`
|
|
9
|
+
and the `jsr:@std/*` imports are gone, and every module dependency goes through `ts/plugins.ts`.
|
|
10
|
+
- Subprocesses run through `node:child_process` with an explicit environment and SIGTERM-then-SIGKILL
|
|
11
|
+
termination; staging capacity reads `fs.statfs` with the fragment size `frsize` (Node.js 26.1+)
|
|
12
|
+
instead of running `/usr/bin/stat`.
|
|
13
|
+
- Streamed artifact and cache uploads use the global `fetch` half-duplex (`duplex: 'half'`), as
|
|
14
|
+
Node.js requires for a stream request body.
|
|
15
|
+
- The CLI entry is `ts/cli-entry.ts`; its usage text names the `ship-zone-runner` executable.
|
|
16
|
+
- one runner per state directory (state)
|
|
17
|
+
- The runner takes an exclusive kernel `flock` on `<state>/.runner-owner.lock` through its own helper
|
|
18
|
+
(`runnerworkspace own-state`) before it touches the state directory; a second runner on the same
|
|
19
|
+
directory stops at once with `RunnerStateOwnedElsewhereError` (helper exit code 3), and losing the
|
|
20
|
+
helper stops the runner with `RunnerStateOwnershipLostError`. Many runners per host remain supported.
|
|
21
|
+
- `OciExecutor`, `AttemptStateStore`, `RegistrationStateStore`, `scavengeRunnerStaging` and
|
|
22
|
+
`ShipRunner` (`stateOwner` dependency) take a `RunnerStateOwner`; `registerRunnerDurably` requires
|
|
23
|
+
its `stateStore`.
|
|
24
|
+
- The 2.x advisory `.workspace-helper.lock` file is removed and no longer used.
|
|
25
|
+
- Staging is scavenged first, right after ownership is taken and before runtime verification.
|
|
26
|
+
- `ITransferArchiveFileOperations` uses Node.js shapes: `openRead` returns a `FileHandle`,
|
|
27
|
+
`makeTempFile`/`remove` take `IMakeTempOptions`/`IRemoveOptions` (transfer)
|
|
28
|
+
- the npm `bin` `ship-zone-runner` runs `dist_ts/cli-entry.js` with Node.js instead of the Deno bundle
|
|
29
|
+
`dist_npm/mod.js` (cli)
|
|
30
|
+
- `pnpm build` checks that the entry is built and starts with `#!/usr/bin/env node`
|
|
31
|
+
(`scripts/verify-npm-entrypoint.ts`).
|
|
32
|
+
- the package exports only `.` (`dist_ts/index.js`, types `dist_ts/index.d.ts`); the `./mod.js`
|
|
33
|
+
subpath and the `dist_npm/` bundle are removed (exports)
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- ship the runner as Node.js 26.11.1 single executables for Linux x64 and arm64 (release)
|
|
38
|
+
- `pnpm run build:binary` bundles `ts/cli-entry.ts` with `@git.zone/tsbundle` and builds
|
|
39
|
+
`ship-zone-runner-linux-x64` and `ship-zone-runner-linux-arm64` with `@git.zone/tssea`; each
|
|
40
|
+
embeds the static workspace helper of its architecture as the sidecar `runnerworkspace`, which
|
|
41
|
+
the runner reads through `@push.rocks/smartsea`, and comes with its third-party notices.
|
|
42
|
+
- A `v*` tag runs `.gitea/workflows/release.yml`, which uploads the executables, their notices,
|
|
43
|
+
`install.sh` and `SHA256SUMS.txt` as release assets.
|
|
44
|
+
- `curl -fsSL https://code.foss.global/ship.zone/runner/releases/download/latest/install.sh | sudo bash`
|
|
45
|
+
installs the executable to `/opt/ship-zone-runner` and links `/usr/local/bin/ship-zone-runner`;
|
|
46
|
+
it leaves configuration and state where the runner keeps them.
|
|
47
|
+
- `ship-zone-runner --version` prints the version, like `version`.
|
|
48
|
+
|
|
49
|
+
### Maintenance
|
|
50
|
+
|
|
51
|
+
- tooling: `@git.zone/tsrust` 4.6, pnpm 12.10.1
|
|
52
|
+
- generated native notices replace the hand-kept legal files (legal)
|
|
53
|
+
- `tsrust notices` writes `native-notices/` (Rust crates, jemalloc, the Rust standard library,
|
|
54
|
+
musl, libunwind and the GCC runtime), which the package ships and every build checks;
|
|
55
|
+
`third-party-licenses.md` and `musl-copyright.md` are removed.
|
|
56
|
+
- `rust-toolchain.toml` pins Rust 1.95.0 with `rust-src` and both musl targets, and the aarch64
|
|
57
|
+
musl linker is `aarch64-linux-musl-gcc`.
|
|
58
|
+
- CI builds, type checks and tests on Node.js 26 in `ht-docker-node` (ci)
|
|
59
|
+
- tests run on `@git.zone/tstest` 8 as `test/test.*.node.ts`; the build uses `@git.zone/tsbuild` 6 with `@types/node` 26
|
|
60
|
+
|
|
61
|
+
## 2026-10-13 - 2.1.0
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
- Use jemalloc with background purging as the global allocator of the Rust workspace helper on every non-MSVC target and ship its license in the third-party notices. (rust)
|
|
66
|
+
|
|
67
|
+
### Maintenance
|
|
68
|
+
|
|
69
|
+
- release tooling: @git.zone/tsrust 4.4.0, pnpm 12.10.0
|
|
70
|
+
- build and verify every configured Rust target in the release build (`build:release`), since a plain tsrust build now covers only the host architecture
|
|
71
|
+
|
|
3
72
|
## 2026-09-27 - 2.0.0
|
|
4
73
|
|
|
5
74
|
### Breaking Changes
|
|
Binary file
|