@smoothbricks/nx-plugin 0.7.14 → 0.7.15
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 +14 -3
- package/dist/.build-inputs.json +2 -2
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.js +5 -0
- package/dist/managed-files/publish-workflow.js +3 -1
- package/managed/templates/github/actions/setup-devenv/action.yml +31 -13
- package/package.json +1 -1
- package/src/executors/bounded-exec/ram-temp.ts +4 -0
- package/src/managed-files/publish-workflow.ts +3 -0
package/README.md
CHANGED
|
@@ -2391,9 +2391,10 @@ named in the task's error instead. The task finds these disks, and the one it de
|
|
|
2391
2391
|
Registry (an `IOHDIXHDDriveOutKernel` entry per RAM disk, with its size, its owner uid and the `FullName` of each of its
|
|
2392
2392
|
volumes) and their mounts in the mount table, never in `hdiutil info`: measured 2026-10-22, `hdiutil info` left an
|
|
2393
2393
|
attached RAM disk out of 2 of 10 listings while other images attached and detached, and a disk left out would read as
|
|
2394
|
-
absent.
|
|
2395
|
-
|
|
2396
|
-
|
|
2394
|
+
absent. Only registered drive entries count: a departed entry and its retained BSD names authorize no cleanup. A
|
|
2395
|
+
registry read that does not parse whole fails the task instead. A BSD name passes to the next disk once its disk goes,
|
|
2396
|
+
so every RAM detach is gateway-owned and bound to an exact device and registry entry: a provisioning rollback releases
|
|
2397
|
+
its `ram-lease`, or, when a gateway restart lost that lease, sends the typed `ram-detach` every other detach is
|
|
2397
2398
|
(specs/cowshed/05_gateway.md, "RAM disks"). The gateway revalidates that identity inside its own lease before spawning
|
|
2398
2399
|
the native tool. It uses no force; a busy owned staging volume stays in place with its named refusal. A requester or its
|
|
2399
2400
|
job ending cannot kill this protected mutation. Authoritative terminal, proven not-started and unknown outcomes remain
|
|
@@ -2909,6 +2910,16 @@ profile directory containing its Cargo shim before launching real Cargo, so the
|
|
|
2909
2910
|
remain available for declared tools such as the macOS linker (`specs/cowshed/16_build_volumes.md`, "One Cargo
|
|
2910
2911
|
environment on every path").
|
|
2911
2912
|
|
|
2913
|
+
For host CI matrix jobs, pass `cache-scope` to `./.github/actions/setup-devenv`, for example
|
|
2914
|
+
`cache-scope: test-${{ matrix.id }}`. Use the same stable identity in the workflow's push and pull-request legs. A blank
|
|
2915
|
+
input preserves `github.job` and every existing nonmatrix path. The identity isolates Nx artifacts and metadata,
|
|
2916
|
+
devenv/direnv state, the stable work root and Cargo target; it is hashed, not used as a filesystem path. The generated
|
|
2917
|
+
macOS architecture matrix passes `macos-platform-${{ matrix.arch }}`. Task records seed from that same identity in the
|
|
2918
|
+
starting push scope, including when `records-workflow` selects another workflow; an explicit `records-job` selects a
|
|
2919
|
+
different source identity without changing this job's paths. Each scope keeps its own records once measured
|
|
2920
|
+
([CI cache ownership](../../specs/cowshed/10_ci.md#cache-and-setup-ownership-in-the-workflow),
|
|
2921
|
+
[host scheduling](../../specs/cowshed/05_gateway.md#host-scheduling)).
|
|
2922
|
+
|
|
2912
2923
|
### Workflow security and bounded execution
|
|
2913
2924
|
|
|
2914
2925
|
Managed action references use full commit SHAs with their release tags in comments. Read-only jobs explicitly set
|
package/dist/.build-inputs.json
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"packages/nx-plugin/src/executors/bounded-exec/ram-detach.ts": "535d26114d14d0d94db76227ea7ba52b1ae0b590d7dbac22993b6796d255e666",
|
|
67
67
|
"packages/nx-plugin/src/executors/bounded-exec/ram-temp-fixtures.ts": "075da4ecfd1cf7dd98fc8c894599dcf2720faba07ac30b8e5592964178849359",
|
|
68
68
|
"packages/nx-plugin/src/executors/bounded-exec/ram-temp-held.ts": "7c32555bc6dab3f767925b55b68684d33a69393050342d06f055fb81e8e5332b",
|
|
69
|
-
"packages/nx-plugin/src/executors/bounded-exec/ram-temp.ts": "
|
|
69
|
+
"packages/nx-plugin/src/executors/bounded-exec/ram-temp.ts": "0364bc2a92baa3ae7febb7a2920df695cc56fe5956c79adfc7167e489efa78ec",
|
|
70
70
|
"packages/nx-plugin/src/executors/bounded-exec/run-cpu-pool.ts": "17148ca7a51aff54d9cbb01db558a828804b158f46e4d3d85d39449d2b644861",
|
|
71
71
|
"packages/nx-plugin/src/executors/bounded-exec/runner-hook.ts": "606eab5db826e571eb15df618315e01cc773d09fd647beb1c00f6434df58ffad",
|
|
72
72
|
"packages/nx-plugin/src/executors/bounded-exec/runner-lifecycle.ts": "b2a7c901296bb6c139909297bbdbab5bd00e94319c022307d006b0e1293f6454",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"packages/nx-plugin/src/managed-files/paths.ts": "0727cde9a3eea88420290b63cb4c9a3ffab857b39e0411eed3c4ddeb4e563745",
|
|
115
115
|
"packages/nx-plugin/src/managed-files/pr-preview-cleanup-workflow.ts": "0f34805a6d737f364c23801da62aefcd4afdc7ba87e911019dd6301be640b385",
|
|
116
116
|
"packages/nx-plugin/src/managed-files/private-npm-policy.ts": "795882f98b2c2434e7c0115e93a7b4c0da6142ae0602274b362893c49a46d5a7",
|
|
117
|
-
"packages/nx-plugin/src/managed-files/publish-workflow.ts": "
|
|
117
|
+
"packages/nx-plugin/src/managed-files/publish-workflow.ts": "4cb4a8417f09bbdd2aad1e3b5036d6f88c20c62ad64c3163cd0f0134de3e5170",
|
|
118
118
|
"packages/nx-plugin/src/managed-files/tree.ts": "a6b7dc515796a3824199938ce70af7d2b45347ed32064b487f3d5f381509dc54",
|
|
119
119
|
"packages/nx-plugin/src/manifest-hash.ts": "26cb2598853801cf70785386e1847feba7f04780b43809597004b7fb7ecbc2b6",
|
|
120
120
|
"packages/nx-plugin/src/nextest-code-bound.ts": "e1036934a35f1b65e0f43bddbea259e01a1100e553cdeaefc2db8823a4517340",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ram-temp.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/ram-temp.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAe,KAAK,UAAU,EAAg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zD,YAAY,CAoDd"}
|
|
@@ -2051,6 +2051,11 @@ export function ramDisksIn(registry, table) {
|
|
|
2051
2051
|
if (!header.startsWith('+-o ') || entryId === undefined) {
|
|
2052
2052
|
return { ok: false, error: `not an IOHDIXHDDriveOutKernel entry: ${header.slice(0, 160)}` };
|
|
2053
2053
|
}
|
|
2054
|
+
if (/, !registered,/.test(header))
|
|
2055
|
+
continue;
|
|
2056
|
+
if (!/, registered,/.test(header)) {
|
|
2057
|
+
return { ok: false, error: `an entry has no registration state: ${header.slice(0, 160)}` };
|
|
2058
|
+
}
|
|
2054
2059
|
// The entry's own properties end at its first child; only they name its image and owner.
|
|
2055
2060
|
const firstChild = entry.indexOf('+-o ', header.length);
|
|
2056
2061
|
const own = entry.slice(header.length, firstChild === -1 ? undefined : firstChild);
|
|
@@ -829,7 +829,9 @@ function renderMacosPlatformSteps(options) {
|
|
|
829
829
|
if (siblingSourceCheckouts.length > 0) {
|
|
830
830
|
lines.push('', ` # Step ${stepNumber++}`, ...siblingSourceCheckouts);
|
|
831
831
|
}
|
|
832
|
-
lines.push('', ` # Step ${stepNumber++}. Composite action internals do not affect top-level job step`, ' # anchors; update these comments if top-level steps move.', ' - name: 🧱 Setup Nix/devenv', ' id: setup', ...setupDevenvUsesLines())
|
|
832
|
+
lines.push('', ` # Step ${stepNumber++}. Composite action internals do not affect top-level job step`, ' # anchors; update these comments if top-level steps move.', ' - name: 🧱 Setup Nix/devenv', ' id: setup', ...setupDevenvUsesLines(), ...(macosPlatformArchitectures(options).length >= 2
|
|
833
|
+
? [` cache-scope: macos-platform-${githubExpression('matrix.arch')}`]
|
|
834
|
+
: []));
|
|
833
835
|
if (isSmoothBricksCodebasePackageName(options.repoName)) {
|
|
834
836
|
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and versioning runs before the', ' # build phase, so the hook must exist in dist first. Downstream', ' # consumers install the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry', ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit', ' # executor does (EMIT_OVERRIDES), so dist holds no build info.', ' working-directory: packages/nx-plugin', ' run: bun ../../tooling/ttsc-emit.ts');
|
|
835
837
|
}
|
|
@@ -6,6 +6,14 @@ description: >
|
|
|
6
6
|
actions cache: store paths and the Nix database come back as files, so no NAR is imported and no daemon is needed.
|
|
7
7
|
|
|
8
8
|
inputs:
|
|
9
|
+
cache-scope:
|
|
10
|
+
description: >
|
|
11
|
+
The job identity for mutable host caches and stable workspace paths. Set a distinct stable identity per matrix
|
|
12
|
+
leg. Blank means github.job, preserving existing paths. Starting push records use the same identity unless
|
|
13
|
+
records-job names another one. Identities contain only ASCII letters, digits, underscores, dots, slashes and
|
|
14
|
+
hyphens.
|
|
15
|
+
required: false
|
|
16
|
+
default: ''
|
|
9
17
|
records-workflow:
|
|
10
18
|
description: >
|
|
11
19
|
The workflow whose pushes keep the bounded-exec task records this job's scope starts from, for a workflow whose
|
|
@@ -13,7 +21,7 @@ inputs:
|
|
|
13
21
|
required: false
|
|
14
22
|
default: ''
|
|
15
23
|
records-job:
|
|
16
|
-
description: The job of that workflow. Blank means this job.
|
|
24
|
+
description: The job or cache-scope identity of that workflow. Blank means this job's cache scope.
|
|
17
25
|
required: false
|
|
18
26
|
default: ''
|
|
19
27
|
|
|
@@ -115,7 +123,7 @@ runs:
|
|
|
115
123
|
env:
|
|
116
124
|
NX_CACHE_BIND: /var/cache/ci/nx
|
|
117
125
|
NX_CACHE_REPO: ${{ github.repository }}
|
|
118
|
-
|
|
126
|
+
CACHE_SCOPE: ${{ inputs.cache-scope || github.job }}
|
|
119
127
|
SCOPE_REF: ${{ github.event.pull_request.number || github.ref }}
|
|
120
128
|
# A pull request's base branch, whose pushes run under refs/heads/<it>;
|
|
121
129
|
# empty for a push.
|
|
@@ -125,24 +133,24 @@ runs:
|
|
|
125
133
|
RECORDS_WORKFLOW: ${{ inputs.records-workflow }}
|
|
126
134
|
RECORDS_JOB: ${{ inputs.records-job }}
|
|
127
135
|
run: |
|
|
136
|
+
if [[ ! "$CACHE_SCOPE" =~ ^[a-zA-Z0-9_./-]+$ ]]; then
|
|
137
|
+
printf '%s\n' 'cache-scope must be a single-line job or matrix identity (letters, digits, _ . / -)' >&2
|
|
138
|
+
exit 2
|
|
139
|
+
fi
|
|
128
140
|
# A workflow's directory under the shared bind: its name, slugged.
|
|
129
141
|
lane_of() { printf '%s' "$1" | tr '[:upper:]' '[:lower:]' | tr -cs 'a-z0-9._-' '-'; }
|
|
130
|
-
|
|
131
|
-
# The cache root of the run identity SCOPE_REF names.
|
|
142
|
+
# The cache root of workflow $1, job or matrix identity $2, and ref $3.
|
|
132
143
|
scope_root() {
|
|
133
|
-
|
|
144
|
+
lane=$(lane_of "$1")
|
|
145
|
+
scope=$(printf '%s\0%s\0%s\0%s\0%s' "$1" "$3" "$2" "$RUNNER_OS" "$RUNNER_ARCH" | git hash-object --stdin)
|
|
134
146
|
printf '%s' "$NX_CACHE_BIND/$NX_CACHE_REPO/${lane:-default}/$scope"
|
|
135
147
|
}
|
|
136
|
-
NX_CACHE_ROOT=$(scope_root)
|
|
148
|
+
NX_CACHE_ROOT=$(scope_root "$GITHUB_WORKFLOW" "$CACHE_SCOPE" "$SCOPE_REF")
|
|
137
149
|
records="$NX_CACHE_ROOT/workspace-data/bounded-exec"
|
|
138
|
-
# The cache root of the scope that job $2 of workflow $1 runs the pushes to ref $3 in.
|
|
139
|
-
scope_root_of() {
|
|
140
|
-
lane=$(lane_of "$1") GITHUB_WORKFLOW="$1" GITHUB_JOB="$2" SCOPE_REF="$3" scope_root
|
|
141
|
-
}
|
|
142
150
|
from_workflow=${RECORDS_WORKFLOW:-$GITHUB_WORKFLOW}
|
|
143
151
|
from_ref=${BASE_REF:+refs/heads/$BASE_REF}
|
|
144
152
|
from_ref=${from_ref:-$SCOPE_REF}
|
|
145
|
-
from=$(
|
|
153
|
+
from=$(scope_root "$from_workflow" "${RECORDS_JOB:-$CACHE_SCOPE}" "$from_ref")
|
|
146
154
|
if [ "$from" != "$NX_CACHE_ROOT" ]; then
|
|
147
155
|
copied=0
|
|
148
156
|
for verdict in "$from"/workspace-data/bounded-exec/*/verdict.json; do
|
|
@@ -212,10 +220,15 @@ runs:
|
|
|
212
220
|
DEVENV_STATE_REPO: ${{ github.repository }}
|
|
213
221
|
DEVENV_STATE_LANE: ${{ github.workflow }}
|
|
214
222
|
DEVENV_STATE_JOB: ${{ github.job }}
|
|
223
|
+
CACHE_SCOPE: ${{ inputs.cache-scope || github.job }}
|
|
215
224
|
SCOPE_REF: ${{ github.event.pull_request.number || github.ref }}
|
|
216
225
|
run: |
|
|
226
|
+
if [[ ! "$CACHE_SCOPE" =~ ^[a-zA-Z0-9_./-]+$ ]]; then
|
|
227
|
+
printf '%s\n' 'cache-scope must be a single-line job or matrix identity (letters, digits, _ . / -)' >&2
|
|
228
|
+
exit 2
|
|
229
|
+
fi
|
|
217
230
|
lane=$(printf '%s' "$DEVENV_STATE_LANE" | tr '[:upper:]' '[:lower:]' | tr -cs 'a-z0-9._-' '-')
|
|
218
|
-
scope=$(printf '%s\0%s\0%s\0%s\0%s' "$GITHUB_WORKFLOW" "$SCOPE_REF" "$
|
|
231
|
+
scope=$(printf '%s\0%s\0%s\0%s\0%s' "$GITHUB_WORKFLOW" "$SCOPE_REF" "$CACHE_SCOPE" "$RUNNER_OS" "$RUNNER_ARCH" | git hash-object --stdin)
|
|
219
232
|
root="/var/cache/ci/devenv/$DEVENV_STATE_REPO/${lane:-default}/$DEVENV_STATE_JOB/$scope"
|
|
220
233
|
mkdir -p "$root/.devenv" "$root/.direnv"
|
|
221
234
|
rm -rf tooling/direnv/.devenv tooling/direnv/.direnv
|
|
@@ -251,10 +264,15 @@ runs:
|
|
|
251
264
|
CARGO_TARGET_BIND: /var/cache/ci/cargo-target
|
|
252
265
|
CARGO_TARGET_REPO: ${{ github.repository }}
|
|
253
266
|
CARGO_TARGET_LANE: ${{ github.workflow }}
|
|
267
|
+
CACHE_SCOPE: ${{ inputs.cache-scope || github.job }}
|
|
254
268
|
SCOPE_REF: ${{ github.event.pull_request.number || github.ref }}
|
|
255
269
|
run: |
|
|
270
|
+
if [[ ! "$CACHE_SCOPE" =~ ^[a-zA-Z0-9_./-]+$ ]]; then
|
|
271
|
+
printf '%s\n' 'cache-scope must be a single-line job or matrix identity (letters, digits, _ . / -)' >&2
|
|
272
|
+
exit 2
|
|
273
|
+
fi
|
|
256
274
|
lane=$(printf '%s' "$CARGO_TARGET_LANE" | tr '[:upper:]' '[:lower:]' | tr -cs 'a-z0-9._-' '-')
|
|
257
|
-
scope=$(printf '%s\0%s\0%s\0%s\0%s' "$GITHUB_WORKFLOW" "$SCOPE_REF" "$
|
|
275
|
+
scope=$(printf '%s\0%s\0%s\0%s\0%s' "$GITHUB_WORKFLOW" "$SCOPE_REF" "$CACHE_SCOPE" "$RUNNER_OS" "$RUNNER_ARCH" | git hash-object --stdin)
|
|
258
276
|
root="$CARGO_TARGET_BIND/$CARGO_TARGET_REPO/${lane:-default}/$scope"
|
|
259
277
|
target="$DEVENV_WORKDIR/target"
|
|
260
278
|
if mkdir -p "$root" "$target" && sudo mount --bind "$root" "$target"; then
|
package/package.json
CHANGED
|
@@ -2612,6 +2612,10 @@ export function ramDisksIn(registry: string, table: string): Result<RamDisk[], s
|
|
|
2612
2612
|
if (!header.startsWith('+-o ') || entryId === undefined) {
|
|
2613
2613
|
return { ok: false, error: `not an IOHDIXHDDriveOutKernel entry: ${header.slice(0, 160)}` };
|
|
2614
2614
|
}
|
|
2615
|
+
if (/, !registered,/.test(header)) continue;
|
|
2616
|
+
if (!/, registered,/.test(header)) {
|
|
2617
|
+
return { ok: false, error: `an entry has no registration state: ${header.slice(0, 160)}` };
|
|
2618
|
+
}
|
|
2615
2619
|
// The entry's own properties end at its first child; only they name its image and owner.
|
|
2616
2620
|
const firstChild = entry.indexOf('+-o ', header.length);
|
|
2617
2621
|
const own = entry.slice(header.length, firstChild === -1 ? undefined : firstChild);
|
|
@@ -1169,6 +1169,9 @@ function renderMacosPlatformSteps(options: PublishWorkflowDefinitionOptions): st
|
|
|
1169
1169
|
' - name: 🧱 Setup Nix/devenv',
|
|
1170
1170
|
' id: setup',
|
|
1171
1171
|
...setupDevenvUsesLines(),
|
|
1172
|
+
...(macosPlatformArchitectures(options).length >= 2
|
|
1173
|
+
? [` cache-scope: macos-platform-${githubExpression('matrix.arch')}`]
|
|
1174
|
+
: []),
|
|
1172
1175
|
);
|
|
1173
1176
|
if (isSmoothBricksCodebasePackageName(options.repoName)) {
|
|
1174
1177
|
lines.push(
|