Repository navigation
Provider toolchain: build and release with Xcode 27.2 (SDK 27.2, Swift 6.4.2); CI also accepts SDK 27.0 for now - #1791
Conversation
…t 6.4.2) The Darkbloom Sandbox macOS CI base moved to Xcode 27.2 (27B52), which has no SDK 27.0. prepare-provider-release-toolchain.sh accepted only SDK 27.0, so every provider CI job failed in its first step. - DARKBLOOM_PROVIDER_TOOLCHAIN=release (release-provider.yml, provider-signing-validation.yml, master and dispatched release preparation) accepts SDK 27.2 and Apple Swift 6.4.2 only. - The default, qualification (ci.yml, pull-request release preparation, the sandbox base check), accepts SDK 27.2 or 27.0 and Swift 6.4.x. SDK 27.0 stays while production runs the Xcode 27.1 base (issue 1790). - The step tries the image's Xcode, then each installed Xcode, newest first, and takes the first with SDK 27.2. It exports DEVELOPER_DIR when it selects another Xcode, so Metal, xcodebuild and signing match. - PROVIDER_SDK_VERSION is the selected SDK. The older-macOS smoke and the release resume expect 27.2. - The signing validation workflow uses the same step and wrapper. - mise pins Swift 6.4.2. Docs and a changelog fragment follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Open question before merge: release lanes would build with a beta Xcode 27.2. The PR CI shows two different Xcode 27.2 builds:
The Blacksmith image's default Xcode is 27.0 (27A266a). Its installed Xcode 27.2 is a beta. The Options:
Recommended default: C. It keeps releases on a GA compiler and moves to 27.2 by itself. This PR stays a draft until David rules. |
Behavior-preserving cleanup of the 27.2 toolchain step: - One path for an explicit toolchain root and an image CLT; the Xcode candidate search is the select_xcode function. - The Applications folder is read once. - No ticket number in the script, build docs or changelog fragment; the removal condition for SDK 27.0 stays stated. - The toolchain tests share one GITHUB_ENV reader. Accepted SDK and Swift versions, modes, outputs and messages are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ruling (David, 2026-11-04) on the beta Xcode question: release mode accepts the installed Xcode 27.2 beta (27B5038j) on Blacksmith until Xcode 27.2 GA is available. No code change follows from it. 🤖 Generated with Claude Code |
Threat model review — advisoryReviewed head Reviewers: anthropic/claude-sonnet-5.5: first pass completed; anthropic/claude-opus-5.5: selected depth completed (1 batches); openai/gpt-6.1-sol: selected depth completed (5 batches) No actionable findings in the reviewed text. This is not a security approval. Models: budgeted Sonnet / selective Opus / selective Sol 6.1. Findings require human validation; this review never requests changes or blocks merging. Scan completed; human review required. Coverage: 67/67 source units; cross-file integration complete. 0 selected depth batch(es) pending. All threat definitions indexed; relevant full definitions selected. Unchanged callers are not scanned. Cost this run: $0.0000 reported, $0.0000 reserved with unknown cost; 0 paid request(s), 0 reused batch(es), 0 provider cache-hit tokens. Saved findings and earlier report · Historical findings are not confirmed resolved. Bedrock: 25 request(s), 926132 uncached + 0 cache-read + 174710 cache-write input / 18118 output tokens; 0 request(s) with unknown usage. OpenRouter backup used 0 time(s). Dollar amounts above cover OpenRouter only; AWS billing is reconciled separately. |
Provider toolchain on dev: build and release with Xcode 27.2 (SDK 27.2, Swift 6.4.2); CI also accepts SDK 27.0 for now (port of #1791)
Refs Layr-Labs/darkbloom-sandbox#245. Follow-up: #1790 (remove SDK 27.0).
What changed
scripts/prepare-provider-release-toolchain.shhas two modes, set byDARKBLOOM_PROVIDER_TOOLCHAIN:SDKSettings.jsonVersion)releaserelease-provider.yml(build, qualify shards, sign),provider-signing-validation.yml, master and dispatched SDK 27 release preparationqualification(default)ci.yml, pull-request SDK 27 release preparation, Darkbloom Sandbox's macOS CI base checkThe step tries the image's Xcode first, then each installed
/Applications/Xcode*.app, newest first. It takes the first Xcode with SDK 27.2, else the first with another accepted SDK. An explicitDEVELOPER_DIRis the only candidate. When it selects another Xcode than the image's, it writesDEVELOPER_DIRtoGITHUB_ENV. Metal,xcodebuild, the cache identity and signing then use the same Xcode. When no Xcode qualifies, it names the installed ones.PROVIDER_SDK_VERSIONis the SDK that the step selected. Before, it was always27.0. The older-macOS smoke and the release resume (scripts/provider_release_resume/identity.py) now expect27.2.provider-signing-validation.ymluses the same step and swift wrapper, not its ownxcruncheck for SDK 27.0.The swift wrapper link points at the script's own directory, so a checkout under
tooling/works.mise.tomlpins Swift 6.4.2.docs/developer/build.md,docs/developer/test.md,docs/operations/provider-release.mdand a changelog fragment describe the modes.Why
The Darkbloom Sandbox production macOS CI base moved to Xcode 27.2 (27B52). Xcode 27.2 has no SDK 27.0, so every d-inference macOS job failed in its first step. David ruled (2026-11-04) that d-inference builds and qualifies with Xcode 27.2.
David 2026-11-04: release mode accepts the Xcode 27.2 beta until GA. On Blacksmith,
blacksmith-12vcpu-macos-27has the Xcode 27.2 beta (27B5038j): SDK 27.2 and Apple Swift 6.4.2 (swiftlang-6.4.2.1.4), from the log of PR run 41908511951. Thereleasecheck accepts these versions. No GA-only rule is added.SDK 27.0 stays accepted in
qualificationonly. Production goes back to the Xcode 27.1 base until this change merges, and Xcode 27.1 ships SDK 27.0. Issue #1790 removes SDK 27.0 when the base is on Xcode 27.2 again.Exact versions and source
27.2(macosx27.2)swiftlang-6.4.2.1.9,clang-2100.4.1.1), swift-driver 1.168.6SDKSettings.jsonand the toolchain of an installed Xcode 27.2 (27B52), the build of the sandbox base. The CI log of master run 41786901765 shows Xcode 27.2 / 27B52 on the sandbox, and its Swift passed the old6.4check.27.2swiftlang-6.4.2.1.4,clang-2100.4.1.1)blacksmith-12vcpu-macos-27, log of PR run 41908511951. Accepted inreleasemode (David 2026-11-04).27.0swiftlang-6.4.0.34.1)docs/design/macos-guest-image.md27.0swiftlang-6.4.0.34.1)blacksmith-12vcpu-macos-27default, log of run 41875576612Not changed, and why
blacksmith-12vcpu-macos-26invalidate-older-macos: that job runs the signed app on an older macOS and compiles nothing. Its check14 <= major < 27is its purpose. Its expectedbuild_sdk_versionis now27.2.swift-tools-version: 6.1in the package manifests: Swift 6.4.2 builds them, and no newer manifest feature is needed.provider-swift/Package.swift.CHANGELOG.md,docs/reports, receipts) and test fixtures that use synthetic Xcode 27.0 identities.Before
flowchart LR A[CI or release job] --> B[prepare-provider-release-toolchain.sh] B --> C{image Xcode SDK == 27.0<br/>and Swift 6.4.x?} C -- yes --> D[PROVIDER_SDK_VERSION=27.0<br/>swift wrapper on PATH] C -- no: Xcode 27.2 base --> E[fail in 4 s] F[provider-signing-validation.yml] --> G{xcrun SDK == 27.0?}After
flowchart LR A[CI or release job] --> M{DARKBLOOM_PROVIDER_TOOLCHAIN} M -- release --> R[SDK 27.2 / Swift 6.4.2] M -- qualification default --> Q[SDK 27.2 or 27.0 / Swift 6.4.x] R --> S[image Xcode, then installed Xcodes, newest first] Q --> S S --> P{first with SDK 27.2?} P -- yes --> D[selected Xcode] P -- no --> F2{first with another accepted SDK?} F2 -- yes --> D F2 -- no --> E[fail, name installed Xcodes] D --> W[DEVELOPER_DIR if not the image's,<br/>PROVIDER_SDK_VERSION = selected SDK,<br/>swift wrapper on PATH] V[provider-signing-validation.yml] --> AHow it was tested
scripts/test-provider-release-toolchain.py: both modes, SDK 27.0, 27.0.0, 27.2 and 27.2.0, refusal of SDK 26.5, 27.1, 27.3, empty and unparsable settings, Swift 6.3, 6.40, 6.4.20, no version line and a failing compiler, the unknown mode, the CLT SDK choice, and Xcode selection with stubxcrun,xcode-selectandxcodebuild(prefers an installed 27.2, keeps the image's 27.1, skips a 27.3 beta, explicitDEVELOPER_DIR, release refusal that names the installed Xcodes).blacksmith-12vcpu-macos-27inqualificationmode. Thewarmjob runs only for pull requests andmaster, so a dispatch on this branch skips it (run 41908524996). Thereleasemode runs first in CI on themasterpush warm, or inrelease-provider.yml. Before that, only the unit tests exercise it.Hooked up
prepare-provider-release-toolchain.shis called from.github/actions/provider-ci-build,.github/actions/provider-release-build,ci.yml(cluster metadata and focused checks),release-provider.yml(signing),provider-signing-validation.yml(build and signing) and Darkbloom Sandbox'simages/macos/guest/qualify-dinference.sh.DARKBLOOM_PROVIDER_TOOLCHAIN=releaseis set in therelease-provider.ymlworkflow env, the twoprovider-signing-validation.ymltoolchain steps and the non-pull-requestprovider-release-cache.ymlwarms.Refactor pass
Done by a dedicated refactor subagent (commit b69a5bf). The changes do not change behavior:
select_xcodefunction. Its order, preference and fallback did not change.docs/developer/build.mdand the changelog fragment do not name an issue number (AGENTS.md: no ticket names in files). They still state when SDK 27.0 is removed.GITHUB_ENVreader.These items did not change: the accepted SDK and Swift versions, the
releaseandqualificationmodes,PROVIDER_SDK_VERSIONand the otherGITHUB_ENVlines, and the messages that the tests check. The head moved from 5c7c109 to b69a5bf. The pins.env comment in darkbloom-sandbox #259 names 5c7c109; update it to the new head.Locks
No locks are added or removed: this PR changes shell, Python, workflow and docs files only.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.