Skip Namespace remote cache probe on macOS
Some checks failed
Build Rust / Cargo Test (push) Successful in 4m1s
Build Site / Next.js Build (push) Failing after 5s
Lint Governance / BEP Metadata (push) Successful in 1s
Build: Android / Android Rust Core Stub (push) Failing after 23s

This commit is contained in:
Conrad Kramer 2026-06-07 10:03:09 -07:00
parent 4a1ea9b471
commit 06375ba328
2 changed files with 20 additions and 4 deletions

View file

@ -52,6 +52,23 @@ configure_bazel_remote_cache() {
return 0
fi
local bazelrc_path
bazelrc_path="${NSC_BAZELRC_PATH:-${TMPDIR:-/tmp}/burrow-nsc-cache.bazelrc}"
portable_mkdir -p "$(dirname "$bazelrc_path")"
if [[ "$(uname -s 2>/dev/null || true)" == "Darwin" ]]; then
append_bazel_storage_cache "$bazelrc_path"
export BURROW_BAZEL_NSCCACHE_ACTIVE=0
export BURROW_BAZEL_NSCCACHE_BAZELRC="$bazelrc_path"
echo "::warning ::Namespace Bazel remote cache probe skipped on macOS; using local Bazel repository/disk cache."
if [[ -n "${GITHUB_ENV:-}" ]]; then
echo "BURROW_BAZEL_NSCCACHE_ACTIVE=0" >> "$GITHUB_ENV"
echo "BURROW_BAZEL_NSCCACHE_BAZELRC=$bazelrc_path" >> "$GITHUB_ENV"
echo "NSC_BAZELRC_PATH=$bazelrc_path" >> "$GITHUB_ENV"
fi
return 0
fi
export BURROW_BAZEL_NSCCACHE_ACTIVE=0
if ! command -v nsc >/dev/null 2>&1; then
if bash Scripts/ci/ensure-nsc.sh; then
@ -68,9 +85,6 @@ configure_bazel_remote_cache() {
fi
fi
local bazelrc_path
bazelrc_path="${NSC_BAZELRC_PATH:-${TMPDIR:-/tmp}/burrow-nsc-cache.bazelrc}"
portable_mkdir -p "$(dirname "$bazelrc_path")"
local probe_timeout="${BURROW_NSC_CACHE_PROBE_TIMEOUT:-30s}"
if optional_timeout "$probe_timeout" nsc auth check-login >/dev/null 2>&1 &&
optional_timeout "$probe_timeout" nsc cache bazel setup --bazelrc "$bazelrc_path" >/dev/null 2>&1; then

View file

@ -52,7 +52,9 @@ The same change also makes the forge itself the release authority: release tags
probes must be timeout-bounded so Apple builds can continue without the
remote cache. Apple workflows should call the fail-open cache helper directly
instead of entering the full Nix development shell just to decide whether a
cache is available.
cache is available. macOS runners should use the local Bazel disk/repository
cache path and skip the `nsc` remote-cache auth probe, which is optional and
can block without GNU timeout support.
- Produce unsigned Apple validation artifacts when signing is absent, but require signing for an App Store requested iOS release and for a Sparkle tester release. Uploadable artifacts are produced only after provisioning profiles can be synced from App Store Connect credentials and the relevant Apple certificate is proven to match the selected Google KMS key.
- Resolve release credentials through age/agenix before signed Apple lanes run. Forgejo secrets should carry only the runner age identity fallback and the Authentik WIF client secret until OpenBao can mint the runner token directly. App Store Connect keys and signing certificates live as sealed files under `secrets/`.
- Persist the forge runner SSH key as `/var/lib/forgejo-runner-agent/age_keystore` and export `BURROW_RUNNER_AGE_IDENTITY_PATH` so jobs can resolve agenix identities without embedding long-lived material in every workflow.