macos: faster snapshot hydration + job-side wait (WAIT=job); no custom base image exists; forgejo-nsc cdb29359 #159
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!159
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/w6-macos-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
docs/infrastructure/namespace-macos-custom-image.md).nix.custom.conf,tmutilshim scoped to the installer, optional bundled installer,payload_hashin the pin). Live-verified on stock 6x14.expected+ wait inensure-nix.shfor forgejo-nscWAIT=job(runner registers before the app finishes; first job ~60 s earlier); pin bump + macOS target env.Adversarially reviewed (LAND). Needs: producer run → pin PR; deploy-forge-host.
🤖 Generated with Claude Code
Answer to "macOS custom base image": NO self-serve capability exists — nsc 0.0.557 has only `nsc macos package`, Compute v1beta has no snapshot/ capture RPC, `experimental.macos_base_image_id` is a Namespace-side tenant lookup (NotFound for anything we tried), `image.with=xcode-beta` does not exist for 27.x; documented with evidence in docs/infrastructure/namespace-macos-custom-image.md. So squeeze the Application path instead (measured step by step on stock 27.0 6x14 instances; hydration was 67 s: APFS volume 13 s, users 3 s, `tmutil addexclusion` 22 s, daemon 10 s, our nix.custom.conf append + kickstart 9 s, import 4 s): - entrypoint seeds /etc/nix/nix.custom.conf BEFORE the Determinate installer (v3.21.9 keeps an existing custom conf: CreateOrMergeNixConfig with an empty pending config), so no append/kickstart afterwards (-9 s); - a `tmutil` shim on the two installer invocations' PATH writes the same com.apple.backupd exclusion xattr the real tmutil sets (-22 s; TM never runs on these VMs); removed right after install; - optional --bundle-installer (Mach-O + sha256 in the manifest) so the package carries its own installer; payload_hash in the pin (entrypoint + daemon settings + bundle flag) so --skip-if-unchanged rebuilds on payload changes. Live: install 30 s + import 4 s (was 67 s), seeded conf kept verbatim, idempotent re-runs. - job side: nix-snapshot-state.sh gains `expected` (derived from the dispatcher's KEYSTORE_NSC_MACOS_APPLICATION_{READY_FILE,READY,PENDING}); ensure-nix.sh waits (90 s start grace) when a snapshot is expected but no marker exists yet — closes the installer race for forgejo-nsc's WAIT=job mode. - forgejo-nsc pin bump to the merged WAIT=job rev; the macOS autoscaler target sets KEYSTORE_NSC_MACOS_APPLICATION_WAIT=job (ignored by older dispatchers). The main push re-runs the producer (ENABLED=true) → new image; its pin lands as a follow-up PR; deploy-forge-host rolls the dispatcher. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>windows referenced this pull request2026-10-16 02:19:58 +00:00