@ship.zone/runner 0.2.4 → 1.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/changelog.md +57 -0
- package/deno.json +18 -4
- package/deno.lock +143 -224
- package/dist_npm/mod.d.ts +287 -39
- package/dist_npm/mod.js +896 -627
- package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl.tsrust-build.json +14 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl.tsrust-build.json +14 -0
- package/package.json +3 -3
- package/readme.md +58 -17
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/api-client.ts +85 -304
- package/ts/artifact-manager.ts +9 -3
- package/ts/cache-manager.ts +3 -2
- package/ts/cli.ts +16 -6
- package/ts/config.ts +50 -16
- package/ts/errors.ts +11 -0
- package/ts/index.ts +2 -0
- package/ts/interfaces.ts +190 -32
- package/ts/log-sender.ts +18 -9
- package/ts/oci-executor.ts +48 -22
- package/ts/plugins.ts +5 -1
- package/ts/protocol-validator.ts +229 -224
- package/ts/redactor.ts +229 -20
- package/ts/registration-state.ts +12 -45
- package/ts/runner.ts +104 -22
- package/ts/spec-version.ts +66 -0
- package/ts/transfer-archive.ts +25 -3
- package/ts/validation.ts +20 -0
- package/ts/wire-schema.ts +137 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-09-27 - 1.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- speak the @foss.global/ci-spec 1.1.1 runner protocol for the `oci` execution profile (protocol)
|
|
8
|
+
- Upgrade `@foss.global/ci-spec` to 1.1.1 and move every endpoint from `/api/runner/v2` to
|
|
9
|
+
`/api/runner`. Discovery, registration, and session messages carry `spec` instead of
|
|
10
|
+
`protocol`; the runner sends its implemented version, refuses coordinators of another major
|
|
11
|
+
version, and uses only constructs of the lower of both versions.
|
|
12
|
+
- Compiled jobs carry `spec`, the top-level `network` object, `requirements.isolation` and
|
|
13
|
+
`platform`, `permissions.images`, `resources.sharedMemoryBytes`, and the `oci`, `artifacts`,
|
|
14
|
+
and `caches` identifiers; a job whose `spec` is newer or of another major version is abandoned
|
|
15
|
+
as `runner_error`.
|
|
16
|
+
- Capabilities advertise `oci`, `container` isolation, the verified engine's native linux
|
|
17
|
+
platform, the `none` network mode, and `resources` maxima; `runnerCapabilities` now takes the
|
|
18
|
+
verified runtime facts.
|
|
19
|
+
- Leases are validated against the published `JobLease` schema including `grants`, `bindings`,
|
|
20
|
+
and `npmGrants`, and their coherence with the job. Leases for `vm`, `oci-image`, `microvm`
|
|
21
|
+
isolation, `egress` networks, candidate bindings, image grants, or npm read grants are
|
|
22
|
+
abandoned as `runner_error` before acceptance.
|
|
23
|
+
- Every request is validated against its published OpenAPI component before it is sent, and every
|
|
24
|
+
response before use.
|
|
25
|
+
- `oci.allowedNetworks` accepts only `none` and `init --allow-network` is rejected: `bridge` is
|
|
26
|
+
gone from the protocol and `egress` allowlists are not enforced by this runner.
|
|
27
|
+
- New `oci.defaultSharedMemoryBytes` (64 MiB) and `oci.maximumSharedMemoryBytes` (1 GiB) size
|
|
28
|
+
`/dev/shm` in every step container.
|
|
29
|
+
- Secret redaction follows the specification redaction set: job secret values, npm grant tokens,
|
|
30
|
+
and each line of multi-line values, leaving out members shorter than 8 UTF-8 bytes, redacted
|
|
31
|
+
across interleaved log streams. Artifacts and caches whose entry paths, link targets, or content
|
|
32
|
+
contain a member are never published.
|
|
33
|
+
- The job timeout is the attempt deadline measured from the acceptance 204 and covers source
|
|
34
|
+
extraction, cache restoration, and every step; reaching it terminates execution, keeps only the
|
|
35
|
+
artifacts of an unsuccessful attempt, publishes no cache, and completes `timed_out`, while an
|
|
36
|
+
earlier accepted cancellation still completes `canceled`. `IExecutionContext.timeoutMs` carries
|
|
37
|
+
the remaining deadline to the executor.
|
|
38
|
+
- A pending registration journal written by an earlier runner version is rejected; remove it and
|
|
39
|
+
register again with a new bootstrap token.
|
|
40
|
+
|
|
41
|
+
### Fixes
|
|
42
|
+
|
|
43
|
+
- keep an archive creation failure from being misreported as a cleanup failure (transfer-archive)
|
|
44
|
+
- Canceling the already-errored compression stream rejects with the same stored error, which is
|
|
45
|
+
no longer counted as a second cleanup failure that invalidated the runner session.
|
|
46
|
+
|
|
47
|
+
- grant stopped containers their full configured grace period (oci-executor)
|
|
48
|
+
- The stop grace and the forced-removal deadline are measured from one timestamp, so a
|
|
49
|
+
millisecond passing between two clock reads no longer shortens `docker stop --time` by a second.
|
|
50
|
+
|
|
51
|
+
### Maintenance
|
|
52
|
+
|
|
53
|
+
- exempt owner scopes from the Deno release-age gate (deno)
|
|
54
|
+
- `deno.json` sets `minimumDependencyAge` to one day and excludes `npm:@foss.global/*`,
|
|
55
|
+
`npm:@git.zone/*`, and `npm:@push.rocks/*`, so first-party releases such as
|
|
56
|
+
`@foss.global/ci-spec` resolve without a lockfile while third-party packages keep the gate.
|
|
57
|
+
- update release tooling (tooling)
|
|
58
|
+
- Pin pnpm 12.5.1 and update `@git.zone/tsrust` to ^1.15.1.
|
|
59
|
+
|
|
3
60
|
## 2026-08-30 - 0.2.4
|
|
4
61
|
|
|
5
62
|
### Fixes
|
package/deno.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ship.zone/runner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"exports": "./mod.ts",
|
|
5
5
|
"nodeModulesDir": "none",
|
|
6
|
+
"minimumDependencyAge": {
|
|
7
|
+
"age": "P1D",
|
|
8
|
+
"exclude": [
|
|
9
|
+
"npm:@foss.global/*",
|
|
10
|
+
"npm:@git.zone/*",
|
|
11
|
+
"npm:@push.rocks/*"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
6
14
|
"tasks": {
|
|
7
15
|
"dev": "deno run --allow-all mod.ts",
|
|
8
16
|
"bundle": "deno bundle --frozen --check --platform=deno --keep-names --external '@foss.global/ci-spec' --external '@foss.global/ci-spec/*' --external 'ajv/*' --declaration --outdir dist_npm mod.ts",
|
|
@@ -32,9 +40,15 @@
|
|
|
32
40
|
"strict": true
|
|
33
41
|
},
|
|
34
42
|
"imports": {
|
|
35
|
-
"@foss.global/ci-spec": "npm:@foss.global/ci-spec@
|
|
36
|
-
"@foss.global/ci-spec/archive-cases.json": "npm:@foss.global/ci-spec@
|
|
37
|
-
"@foss.global/ci-spec/
|
|
43
|
+
"@foss.global/ci-spec": "npm:@foss.global/ci-spec@1.1.1",
|
|
44
|
+
"@foss.global/ci-spec/archive-cases.json": "npm:@foss.global/ci-spec@1.1.1/archive-cases.json",
|
|
45
|
+
"@foss.global/ci-spec/digest-cases.json": "npm:@foss.global/ci-spec@1.1.1/digest-cases.json",
|
|
46
|
+
"@foss.global/ci-spec/runner-cases.json": "npm:@foss.global/ci-spec@1.1.1/runner-cases.json",
|
|
47
|
+
"@foss.global/ci-spec/runner-job.schema.json": "npm:@foss.global/ci-spec@1.1.1/runner-job.schema.json",
|
|
48
|
+
"@foss.global/ci-spec/runner-messages.json": "npm:@foss.global/ci-spec@1.1.1/runner-messages.json",
|
|
49
|
+
"@foss.global/ci-spec/runner.openapi.json": "npm:@foss.global/ci-spec@1.1.1/runner.openapi.json",
|
|
50
|
+
"@foss.global/ci-spec/version-cases.json": "npm:@foss.global/ci-spec@1.1.1/version-cases.json",
|
|
51
|
+
"@foss.global/ci-spec/conformance/runner-jobs/": "npm:/@foss.global/ci-spec@1.1.1/conformance/runner-jobs/",
|
|
38
52
|
"@std/assert": "jsr:@std/assert@^1.0.14",
|
|
39
53
|
"@std/path": "jsr:@std/path@^1.1.2",
|
|
40
54
|
"ajv/dist/2020.js": "npm:ajv@8.20.0/dist/2020.js"
|