caches: Gradle build/config cache on the runner volume, Apple Bazel action-key hygiene, workspace-status stamping #115

Merged
founder merged 1 commit from claude/caches-d3-d4 into main 2026-08-17 00:19:31 +00:00
Owner

KSE-0186 D3+D4 (see commit). Rebased onto PR #114 (genrule retirement): conflicts resolved by keeping direct runner calls; env plumbing reaches runners directly. Reviewed LAND; YAML (yq + ruby) and bash -n clean.

KSE-0186 D3+D4 (see commit). Rebased onto PR #114 (genrule retirement): conflicts resolved by keeping direct runner calls; env plumbing reaches runners directly. Reviewed LAND; YAML (yq + ruby) and bash -n clean.
caches: Gradle build/config cache on the runner volume, Apple Bazel action-key hygiene, workspace-status stamping
Some checks failed
build-release.yml / caches: Gradle build/config cache on the runner volume, Apple Bazel action-key hygiene, workspace-status stamping (push) Failing after 0s
build-release.yml / caches: Gradle build/config cache on the runner volume, Apple Bazel action-key hygiene, workspace-status stamping (pull_request) Failing after 0s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Build: SQLite SEE / Redacted SEE compile (pull_request) Successful in 6s
Release: If Needed / Check (Release Needed) (push) Successful in 8s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 18s
Build: Apple / Check (SwiftLint) (push) Successful in 19s
Build: Apple / Build (macOS) (pull_request) Has started running
Build: Apple / Build (visionOS) (pull_request) Has started running
Build: Apple / Build (macOS) (push) Has started running
Build: KaiOS / Build (KaiOS) (push) Successful in 22s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 23s
Build: Web / Build (Web) (pull_request) Successful in 32s
Build: SQLite SEE / Redacted SEE compile (push) Successful in 31s
Build: Web / Build (Web) (push) Successful in 33s
Build: Apple / Build (iOS) (pull_request) Successful in 28s
Build: Apple / Build (iOS) (push) Successful in 34s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 1m2s
Build: Apple / Build (visionOS) (push) Successful in 27s
Deploy: Web / Deploy (Web) (push) Successful in 2m25s
Deploy: API / Deploy (API) (push) Successful in 3m6s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m51s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Linux / Build (Linux x86_64) (push) Successful in 5m15s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Namespace: Build Images / Refresh Linux runner image (push) Successful in 7m2s
bb057e6a4a
KSE-0186 D3 + D4.

D3 (Android/Gradle): org.gradle.caching + configuration cache + parallel in
gradle.properties (config cache gated per plugin compatibility in
Android/build.gradle.kts); bazel/android/runner.sh keeps GRADLE_USER_HOME on
the dispatcher-mounted /cache/gradle volume and the Android state root
(Packages/HardwareKeyStore/.build etc.) under KEYSTORE_ANDROID_STATE_ROOT /
<KEYSTORE_BAZEL_STORAGE_CACHE>/android; Scripts/nscloud-cache.sh gradle mode
configures the Namespace remote Gradle build cache init script
(KEYSTORE_GRADLE_NSCCACHE_INIT_SCRIPT); the flake's bazel wrapper/rc
precedence is fixed so --disk_cache/--repository_cache land on
/cache/bazel instead of /tmp.

D4 (Apple Bazel): the global --action_env busters (BUILD_NUMBER,
BUILD_WORKSPACE_DIRECTORY, KEYSTORE_BAZEL_STORAGE_CACHE,
KEYSTORE_NIX_LOCAL_BINARY_CACHE, GRADLE_USER_HOME, ...) leave .bazelrc's
default action key and move behind a `stamp-genrule` config used only by the
remaining Apple/Windows stamp targets; --action_env=PATH and --embed_label
are gone from the Apple invocations in favour of an explicit toolchain path
and Scripts/bazel-workspace-status.sh (STABLE_BUILD_NUMBER /
MARKETING_VERSION via --workspace_status_command, consumed by
bazel/apple/apple_targets.bzl); bazel/apple/runner.sh flags aligned with
the workflow so the Lately invocation stops discarding the analysis cache;
--xcode_version pinned next to --repo_env=DEVELOPER_DIR;
--experimental_remote_cache_compression + --remote_download_toplevel where
the nsc bazel rc is used.

Applied on top of PR #114 (stamp genrules for android/linux/web/flatpak
retired): the --config=stamp-genrule additions for those lanes are dropped;
their env now reaches the runners directly. Adversarially reviewed
(FIX-FIRST items applied). Effective on merge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!115
No description provided.