Skip to content

Commit f69cb2f

Browse files
authored
perf(ci): serve node_modules snapshots from O(1) protected sticky disks (#109752)
* perf(ci): serve node_modules snapshots from O(1) protected sticky disks Every Blacksmith mount of the dependency sticky disk currently 429s: the v2 key minted one backing disk per PR and per manifest hash, which saturated Blacksmith's installation-wide 1000-sticky-disk budget (run 29559333389, job checks-node-compact-small-15: "Sticky disk limit exceeded"). Same-repo shards then fall back to a cold, storeless pnpm install (~40s) on every run - worse than the ~22s actions/cache path the sticky rollout replaced. Re-key the snapshot to one stable disk per node-version and move the install inputs into a runtime fingerprint marker: - Key is now `<repo>-node-deps-bind-v3-<node-version>`; dependency changes refresh the disk in place instead of allocating a new one. - The fingerprint (manifest hashFiles set + node version + lockfile mode) is evaluated on the bind step, before the mount lands, so the '**/package.json' glob cannot sweep snapshot-internal manifests. - Consumers mount read-only (commit: false); on fingerprint match they restore importer archives and skip pnpm install entirely, on mismatch they install against the clone's on-disk store (warm store, no actions/cache download) without capturing. - Writers are trusted non-PR jobs only: build-artifacts on canonical pushes plus the scheduled vitest-cache-warm run as a deadline writer (main pushes cancel each other under merge traffic and would starve the snapshot). commit: on-change keeps warm no-op runs from committing. - Roll the consumer flag out to every Linux Blacksmith lane that installs dependencies (build-artifacts, check-shard, check-additional-shard, check-docs, checks-ui, control-ui-i18n, native-i18n, qa-smoke-ci-profile, checks-fast-core, both contract shards) with the same fork/dispatch gates as the nondist shard. Guards now enumerate the consumer set, pin the O(1) key shape, enforce single-writer commit expressions, and cover the fingerprint marker in the importer capture/restore helper. Verified locally: importer archive capture 0.96s/228K and restore 0.07s against the real 2.0GB hoisted tree; a snapshot untarred into a fresh workspace resolves modules, runs bin shims, `pnpm exec`, and a Vitest suite (one-time pnpm reconcile only when the absolute path changes, which Blacksmith's fixed /home/runner/_work layout avoids). * fix(ci): commit dependency snapshots explicitly, not via on-change heuristic stickydisk's on-change mode compares allocated disk bytes with a 4KB threshold, so a fingerprint refresh whose reinstall keeps usage stable (metadata-only manifest edits, same-sized dependency swaps) could be silently discarded, stranding every consumer on a stale marker and a permanent reinstall path. Writers now commit explicitly, mirroring the Vitest transform disk's rationale; warm no-op writer runs re-commit an identical snapshot, which is cheap and safe. Also document that the non-PR commit gate binds cooperating code only - the enforced trust boundary stays the fork/dispatch runner gate, matching the protected node-compile disk's posture. * test(ci): guard sticky consumers against writerless node-version key splits Reviewer follow-up: the snapshot key is partitioned by node-version and both writers (build-artifacts, vitest-cache-warm) rely on the action default, so a consumer pinning any other version would split onto a key nobody seeds and silently regress to permanently cold installs. Pin the action default to 24.x and assert every sticky consumer resolves to that same key segment. * test: narrow sticky-consumer step.with before indexing The filter's runtime narrowing did not carry into the map callback, so step.with indexing failed check-test-types (TS18048). Collect a narrowed stepWith instead.
1 parent d26951a commit f69cb2f

5 files changed

Lines changed: 233 additions & 39 deletions

File tree

‎.github/actions/setup-node-env/action.yml‎

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ inputs:
3535
alongside.
3636
required: false
3737
default: "false"
38+
save-sticky-disk:
39+
description: >
40+
Whether this job may commit the shared dependency snapshot. One
41+
designated job per node-version key; only honored outside pull_request
42+
events so feature-branch installs can never publish a protected
43+
snapshot.
44+
required: false
45+
default: "false"
3846
runtime-cache-sticky-disk:
3947
description: Whether runtime caches should use Blacksmith sticky disks instead of actions/cache.
4048
required: false
@@ -116,14 +124,25 @@ runs:
116124
if: inputs.sticky-disk == 'true'
117125
uses: useblacksmith/stickydisk@5b350170ae4ef55b536b548ef5f5896e76a6b54f # v1.4.0
118126
with:
119-
# The key covers every dependency and lifecycle input. PR scope keeps
120-
# feature snapshots separate from protected pushes. The v2 marker lets
121-
# exact warm hits trust the snapshotted stock layout without rescanning.
122-
key: ${{ github.repository }}-node-deps-bind-v2-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'protected' }}-${{ inputs.node-version }}-frozen-${{ inputs.frozen-lockfile }}-${{ hashFiles('**/package.json', 'pnpm-lock.yaml', 'pnpm-workspace.yaml', '.npmrc', '.pnpmfile.cjs', 'pnpmfile.cjs', '.github/actions/setup-node-env/sticky-importers.sh', 'scripts/postinstall-bundled-plugins.mjs', 'scripts/preinstall-package-manager-warning.mjs', 'scripts/prepare-git-hooks.mjs') }}
127+
# One stable disk per node-version. The v2 per-PR/per-manifest-hash
128+
# keys minted a new backing disk for every PR and dependency change
129+
# and saturated Blacksmith's installation-wide sticky-disk budget,
130+
# 429-failing every mount. Install inputs live in the runtime
131+
# fingerprint marker below instead of the key, so dependency changes
132+
# refresh this disk in place rather than allocating a new one.
133+
key: ${{ github.repository }}-node-deps-bind-v3-${{ inputs.node-version }}
123134
path: /var/tmp/openclaw-node-deps
124-
# v1.4.0 skips commit after failed/cancelled steps or ambiguous failure
125-
# detection, so an incomplete first hydration cannot seed this key.
126-
commit: if-missing
135+
# Single semantic writer: only the designated trusted-push job may
136+
# commit, so pull_request clones stay read-only. Like every sticky
137+
# disk here, this gate binds cooperating code, not hostile code: the
138+
# enforced trust boundary is the fork/dispatch runner gate in ci.yml,
139+
# and same-repo PR authors already hold repository write access.
140+
# Explicit true (not on-change) because the allocated-byte heuristic
141+
# can miss a fingerprint refresh whose reinstall keeps disk usage
142+
# stable, permanently stranding consumers on a stale marker. v1.4.0
143+
# skips commit after failed/cancelled steps, so a broken install
144+
# cannot seed this key.
145+
commit: ${{ inputs.save-sticky-disk == 'true' && github.event_name != 'pull_request' && 'true' || 'false' }}
127146

128147
- name: Mount protected Vitest transform seed
129148
if: inputs.vitest-fs-cache == 'true' && (inputs.sticky-disk == 'true' || inputs.runtime-cache-sticky-disk == 'true') && github.event_name == 'pull_request' && runner.os != 'Windows'
@@ -254,6 +273,12 @@ runs:
254273
- name: Bind sticky node_modules into workspace
255274
if: inputs.sticky-disk == 'true'
256275
shell: bash
276+
env:
277+
# Evaluated before this step's bind mount populates node_modules, so
278+
# the '**/package.json' glob only sees checkout manifests. Recomputing
279+
# this hash any later would sweep snapshot-internal package.json files
280+
# into the fingerprint and permanently miss the warm path.
281+
DEPS_FINGERPRINT: node-${{ inputs.node-version }}-frozen-${{ inputs.frozen-lockfile }}-${{ hashFiles('**/package.json', 'pnpm-lock.yaml', 'pnpm-workspace.yaml', '.npmrc', '.pnpmfile.cjs', 'pnpmfile.cjs', '.github/actions/setup-node-env/sticky-importers.sh', 'scripts/postinstall-bundled-plugins.mjs', 'scripts/preinstall-package-manager-warning.mjs', 'scripts/prepare-git-hooks.mjs') }}
257282
run: |
258283
set -euo pipefail
259284
sticky_root=/var/tmp/openclaw-node-deps
@@ -271,6 +296,7 @@ runs:
271296
findmnt --target "$workspace_modules"
272297
# zizmor: ignore[github-env] static trusted path defined in this composite action.
273298
echo "PNPM_CONFIG_STORE_DIR=$sticky_store" >> "$GITHUB_ENV"
299+
echo "OPENCLAW_STICKY_DEPS_FINGERPRINT=$DEPS_FINGERPRINT" >> "$GITHUB_ENV"
274300
# pnpm exec may reconcile a restored workspace before nested builds.
275301
# Sticky jobs already have every build tool, so invoke their Node entrypoints directly.
276302
echo "OPENCLAW_BUILD_ALL_NO_PNPM=1" >> "$GITHUB_ENV"
@@ -309,6 +335,7 @@ runs:
309335
FROZEN_LOCKFILE: ${{ inputs.frozen-lockfile }}
310336
STICKY_DISK: ${{ inputs.sticky-disk }}
311337
STICKY_ROOT: /var/tmp/openclaw-node-deps
338+
STICKY_WRITER: ${{ inputs.save-sticky-disk == 'true' && github.event_name != 'pull_request' && 'true' || 'false' }}
312339
run: |
313340
set -euo pipefail
314341
export PATH="$NODE_BIN:$PATH"
@@ -353,19 +380,36 @@ runs:
353380
ln -sfn . "$PNPM_CONFIG_MODULES_DIR/node_modules"
354381
export NODE_PATH="$PNPM_CONFIG_MODULES_DIR${NODE_PATH:+:$NODE_PATH}"
355382
fi
356-
sticky_ready_marker="$STICKY_ROOT/.install-complete-v2"
357-
if [ "$STICKY_DISK" = "true" ] && [ -f "$sticky_ready_marker" ]; then
383+
sticky_marker="$STICKY_ROOT/.openclaw-deps-fingerprint"
384+
sticky_fingerprint=""
385+
if [ "$STICKY_DISK" = "true" ] && [ -f "$sticky_marker" ]; then
386+
sticky_fingerprint="$(<"$sticky_marker")"
387+
fi
388+
if [ "$STICKY_DISK" = "true" ] && [ -n "$sticky_fingerprint" ] &&
389+
[ "$sticky_fingerprint" = "${OPENCLAW_STICKY_DEPS_FINGERPRINT:?}" ]; then
358390
bash "$GITHUB_ACTION_PATH/sticky-importers.sh" restore "$STICKY_ROOT" "$GITHUB_WORKSPACE"
359-
echo "Sticky dependency snapshot is ready; skipping pnpm install"
391+
echo "Sticky dependency snapshot matches the install fingerprint; skipping pnpm install"
360392
else
393+
if [ "$STICKY_DISK" = "true" ] && [ -n "$sticky_fingerprint" ]; then
394+
echo "Sticky dependency snapshot is stale (disk: $sticky_fingerprint, want: $OPENCLAW_STICKY_DEPS_FINGERPRINT); reinstalling"
395+
fi
396+
# A stale marker must not survive a mid-install failure: the commit
397+
# heuristics skip failed steps, but a wrong marker plus a partial
398+
# tree would poison every consumer if one ever slipped through.
399+
if [ "$STICKY_DISK" = "true" ] && [ "$STICKY_WRITER" = "true" ]; then
400+
rm -f "$sticky_marker"
401+
fi
361402
pnpm "${install_args[@]}" || pnpm "${install_args[@]}"
362403
if [ -n "${PNPM_CONFIG_MODULES_DIR:-}" ]; then
363404
rm -rf node_modules
364405
ln -sfn "$PNPM_CONFIG_MODULES_DIR" node_modules
365406
ln -sfn . "$PNPM_CONFIG_MODULES_DIR/node_modules"
366407
fi
367-
if [ "$STICKY_DISK" = "true" ]; then
368-
bash "$GITHUB_ACTION_PATH/sticky-importers.sh" capture "$STICKY_ROOT" "$GITHUB_WORKSPACE"
408+
# Only the designated trusted writer captures importer archives and
409+
# publishes the fingerprint; read-only clones are discarded at job
410+
# end, so capturing there would only burn shard wall clock.
411+
if [ "$STICKY_DISK" = "true" ] && [ "$STICKY_WRITER" = "true" ]; then
412+
bash "$GITHUB_ACTION_PATH/sticky-importers.sh" capture "$STICKY_ROOT" "$GITHUB_WORKSPACE" "$OPENCLAW_STICKY_DEPS_FINGERPRINT"
369413
fi
370414
fi
371415

‎.github/actions/setup-node-env/sticky-importers.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ mode="${1:?mode is required}"
55
sticky_root="${2:?sticky root is required}"
66
workspace="${3:?workspace is required}"
77
archive="$sticky_root/importer-node-modules.tar"
8-
marker="$sticky_root/.install-complete-v2"
8+
marker="$sticky_root/.openclaw-deps-fingerprint"
99

1010
case "$mode" in
1111
capture)
12+
fingerprint="${4:?fingerprint is required}"
1213
mkdir -p "$sticky_root"
1314
list_file="$(mktemp)"
1415
temp_archive="$archive.tmp.$$"
@@ -22,7 +23,9 @@ case "$mode" in
2223
tar --create --file "$temp_archive" --null --files-from "$list_file"
2324
)
2425
mv "$temp_archive" "$archive"
25-
touch "$marker"
26+
# The marker lands last: a fingerprint is only ever visible next to the
27+
# importer archive it describes, so consumers cannot restore a torn pair.
28+
printf '%s\n' "$fingerprint" > "$marker"
2629
;;
2730
restore)
2831
if [[ ! -f "$archive" ]]; then

‎.github/workflows/ci.yml‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,15 @@ jobs:
10161016
install-bun: "false"
10171017
node-compile-cache: "true"
10181018
node-compile-cache-scope: "build"
1019+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1020+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1021+
# repository-global state and must never be produced by fork code.
1022+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1023+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
1024+
# Designated dependency-snapshot writer: exactly one trusted-push job
1025+
# per node-version key refreshes the protected disk; every other
1026+
# sticky consumer mounts read-only.
1027+
save-sticky-disk: "true"
10191028
runtime-cache-sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
10201029
save-node-compile-cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'true' || 'false' }}
10211030

@@ -1227,6 +1236,11 @@ jobs:
12271236
uses: ./.github/actions/setup-node-env
12281237
with:
12291238
install-bun: "false"
1239+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1240+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1241+
# repository-global state and must never be produced by fork code.
1242+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1243+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
12301244

12311245
- name: Check native app i18n inventory
12321246
run: pnpm native:i18n:check
@@ -1254,6 +1268,11 @@ jobs:
12541268
with:
12551269
node-version: "24.x"
12561270
install-bun: "false"
1271+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1272+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1273+
# repository-global state and must never be produced by fork code.
1274+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1275+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
12571276

12581277
- name: Install Playwright Chromium
12591278
run: |
@@ -1298,6 +1317,11 @@ jobs:
12981317
with:
12991318
node-version: "24.x"
13001319
install-bun: "false"
1320+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1321+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1322+
# repository-global state and must never be produced by fork code.
1323+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1324+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
13011325

13021326
- name: Check Control UI locale parity
13031327
run: pnpm ui:i18n:check
@@ -1371,6 +1395,11 @@ jobs:
13711395
uses: ./.github/actions/setup-node-env
13721396
with:
13731397
install-bun: ${{ matrix.task == 'bun-launcher' && 'true' || 'false' }}
1398+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1399+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1400+
# repository-global state and must never be produced by fork code.
1401+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1402+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
13741403

13751404
- name: Run ${{ matrix.task }} (${{ matrix.runtime }})
13761405
env:
@@ -1500,6 +1529,11 @@ jobs:
15001529
uses: ./.github/actions/setup-node-env
15011530
with:
15021531
install-bun: "false"
1532+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1533+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1534+
# repository-global state and must never be produced by fork code.
1535+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1536+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
15031537

15041538
- name: Set up Blacksmith Docker layer cache
15051539
if: ${{ matrix.docker_cache == true && github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') }}
@@ -1671,6 +1705,11 @@ jobs:
16711705
uses: ./.github/actions/setup-node-env
16721706
with:
16731707
install-bun: "false"
1708+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1709+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1710+
# repository-global state and must never be produced by fork code.
1711+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1712+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
16741713

16751714
- name: Run plugin contract shard
16761715
env:
@@ -1709,6 +1748,11 @@ jobs:
17091748
uses: ./.github/actions/setup-node-env
17101749
with:
17111750
install-bun: "false"
1751+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1752+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1753+
# repository-global state and must never be produced by fork code.
1754+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1755+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
17121756

17131757
- name: Run channel contract shard
17141758
env:
@@ -1925,6 +1969,11 @@ jobs:
19251969
uses: ./.github/actions/setup-node-env
19261970
with:
19271971
install-bun: "false"
1972+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
1973+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
1974+
# repository-global state and must never be produced by fork code.
1975+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
1976+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
19281977

19291978
# check-lint's shard runner rebuilds the same plugin-sdk boundary
19301979
# artifacts the boundary lane snapshots (~72s cold); restore them from
@@ -2143,6 +2192,11 @@ jobs:
21432192
uses: ./.github/actions/setup-node-env
21442193
with:
21452194
install-bun: "false"
2195+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
2196+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
2197+
# repository-global state and must never be produced by fork code.
2198+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
2199+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
21462200

21472201
# Same-repo runs carry boundary artifacts on a Blacksmith sticky disk:
21482202
# the GitHub cache below is evicted so quickly under the repo quota that
@@ -2382,6 +2436,11 @@ jobs:
23822436
uses: ./.github/actions/setup-node-env
23832437
with:
23842438
install-bun: "false"
2439+
# Blacksmith same-repo runs clone dependencies from a sticky disk.
2440+
# Fork PRs must keep actions/cache: sticky snapshots are writable,
2441+
# repository-global state and must never be produced by fork code.
2442+
sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }}
2443+
use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }}
23852444

23862445
- name: Check formatting
23872446
if: needs.preflight.outputs.run_format_check == 'true'

0 commit comments

Comments
 (0)