@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/ts/validation.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurationError, ProtocolError } from './errors.
|
|
1
|
+
import { ConfigurationError, ProtocolError } from './errors.js';
|
|
2
2
|
|
|
3
3
|
export const isRecord = (value: unknown): value is Record<string, unknown> =>
|
|
4
4
|
typeof value === 'object' && value !== null && !Array.isArray(value);
|
package/ts/wire-schema.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolError } from './errors.
|
|
2
|
-
import * as plugins from './plugins.
|
|
3
|
-
import { isProtocolTimestamp, isRecord } from './validation.
|
|
1
|
+
import { ProtocolError } from './errors.js';
|
|
2
|
+
import * as plugins from './plugins.js';
|
|
3
|
+
import { isProtocolTimestamp, isRecord } from './validation.js';
|
|
4
4
|
|
|
5
5
|
/** OpenAPI component schemas of the published runner protocol that this runner validates. */
|
|
6
6
|
export const wireSchemaNames = [
|
package/deno.json
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ship.zone/runner",
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"exports": "./mod.ts",
|
|
5
|
-
"nodeModulesDir": "none",
|
|
6
|
-
"minimumDependencyAge": {
|
|
7
|
-
"age": "P1D",
|
|
8
|
-
"exclude": [
|
|
9
|
-
"npm:@git.zone/*",
|
|
10
|
-
"npm:@push.rocks/*",
|
|
11
|
-
"npm:@ship.zone/*"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"tasks": {
|
|
15
|
-
"dev": "deno run --allow-all mod.ts",
|
|
16
|
-
"bundle": "deno bundle --frozen --check --platform=deno --keep-names --external '@ship.zone/ci-spec' --external '@ship.zone/ci-spec/*' --external 'ajv/*' --declaration --outdir dist_npm mod.ts",
|
|
17
|
-
"test": "deno test --allow-env --allow-net --allow-read --allow-write --allow-run test/",
|
|
18
|
-
"check": "deno check mod.ts test/ scripts/",
|
|
19
|
-
"fmt": "deno fmt",
|
|
20
|
-
"lint": "deno lint"
|
|
21
|
-
},
|
|
22
|
-
"lint": {
|
|
23
|
-
"rules": {
|
|
24
|
-
"tags": [
|
|
25
|
-
"recommended"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"fmt": {
|
|
30
|
-
"useTabs": false,
|
|
31
|
-
"lineWidth": 100,
|
|
32
|
-
"indentWidth": 2,
|
|
33
|
-
"semiColons": true,
|
|
34
|
-
"singleQuote": true
|
|
35
|
-
},
|
|
36
|
-
"compilerOptions": {
|
|
37
|
-
"lib": [
|
|
38
|
-
"deno.window"
|
|
39
|
-
],
|
|
40
|
-
"strict": true
|
|
41
|
-
},
|
|
42
|
-
"imports": {
|
|
43
|
-
"@ship.zone/ci-spec": "npm:@ship.zone/ci-spec@2.0.0",
|
|
44
|
-
"@ship.zone/ci-spec/archive-cases.json": "npm:@ship.zone/ci-spec@2.0.0/archive-cases.json",
|
|
45
|
-
"@ship.zone/ci-spec/digest-cases.json": "npm:@ship.zone/ci-spec@2.0.0/digest-cases.json",
|
|
46
|
-
"@ship.zone/ci-spec/runner-cases.json": "npm:@ship.zone/ci-spec@2.0.0/runner-cases.json",
|
|
47
|
-
"@ship.zone/ci-spec/runner-job.schema.json": "npm:@ship.zone/ci-spec@2.0.0/runner-job.schema.json",
|
|
48
|
-
"@ship.zone/ci-spec/runner-messages.json": "npm:@ship.zone/ci-spec@2.0.0/runner-messages.json",
|
|
49
|
-
"@ship.zone/ci-spec/runner.openapi.json": "npm:@ship.zone/ci-spec@2.0.0/runner.openapi.json",
|
|
50
|
-
"@ship.zone/ci-spec/version-cases.json": "npm:@ship.zone/ci-spec@2.0.0/version-cases.json",
|
|
51
|
-
"@ship.zone/ci-spec/conformance/runner-jobs/": "npm:/@ship.zone/ci-spec@2.0.0/conformance/runner-jobs/",
|
|
52
|
-
"@std/assert": "jsr:@std/assert@^1.0.14",
|
|
53
|
-
"@std/path": "jsr:@std/path@^1.1.2",
|
|
54
|
-
"ajv/dist/2020.js": "npm:ajv@8.20.0/dist/2020.js"
|
|
55
|
-
}
|
|
56
|
-
}
|