Repository navigation
Provider on dev: Xcode 27.2 / SDK 27.2 with the back-deployed Date fix (port of #1791 + #1807) - #1815
Merged
Merged
Conversation
… and release binaries (port of #1807) Ports #1807 (head 8c6b57b) to dev: - The 26 Date >= / <= comparisons in 10 provider files become a.timeIntervalSince(b) >= 0 / <= 0, as on master. The hunks apply to dev unchanged. Dev adds no other Date >= / <= since DevNet build 0.10.6-dev.branch.87 (814268c), whose binaries #1807 read. - scripts/check-date-comparisons.py and scripts/check-provider-weak-imports.py with their tests, unchanged. - Dev has no ci.yml. The source check runs in the Provider Tests gate of provider-tests.yml (every CI (dev) and CI (master) run) and in ci-master.yml Release Integrity, where master's ci.yml runs it. test-provider-ci-workflow.py pins the gate step. - The binary check runs in the release lane of provider-release-build, as on master: release-provider.yml (release-dev-branch.yml, release-swift.yml) and SDK 27 release preparation. - Docs and the changelog fragment as in #1807, with dev's CI file names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI (dev) run 42025284502 failed the source check on dev's ClusterOnboardingFlow.swift:1973 and 1979: `let waited = Date().timeIntervalSince(started)` binds a TimeInterval, but the file-wide evidence (_DATE_VALUE) took every value that starts with `Date(` as a Date. A Date initializer or Date.now/distantPast/ distantFuture now counts only when no member follows it. `Date().addingTimeInterval(...)` still counts, by its own pattern. Shipped source has 29 such `timeIntervalSince` bindings and 26 `addingTimeInterval` ones; only the first kind changes, and each is a TimeInterval. Master's source has no comparison that this changes. The test adds both forms to the allowed source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
marked this pull request as ready for review
November 5, 2026 13:08
jonathan308
added a commit
that referenced
this pull request
Nov 5, 2026
#1807 (master) and #1815 (dev) carry the same Date fix; dev's copy is newer, so these files take dev b7c52e4's version: - .github/workflows/provider-tests.yml - changelog.d/ci-xcode-27-2-toolchain.md - docs/architecture/inference.md - docs/developer/build.md - docs/developer/test.md - scripts/check-date-comparisons.py - scripts/test-check-date-comparisons.py Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 5, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#1801 moved dev to Xcode 27.2 (SDK 27.2, Swift 6.4.2). #1804 reverted it: DevNet build
0.10.6-dev.branch.87crashed in a loop on a macOS 27.2 seed (26B5091g). The cause is Foundation's back-deployedDate.>=andDate.<=. #1807 fixes the cause on master. This PR brings both to dev: the toolchain of #1791 and the fix of #1807 (head8c6b57b9d).Changes and their master source
73ecb2bc7). It applies #1801 again, which is the dev port of #1791. No conflicts with current dev. Files:mise.toml,scripts/prepare-provider-release-toolchain.sh,scripts/test-provider-release-toolchain.py,scripts/provider_release_resume/identity.py,release-provider.yml,provider-release-cache.yml,provider-signing-validation.yml, docs,changelog.d/ci-xcode-27-2-toolchain.md90b9dc28c), via #1801 (219523dfd)>=/<=comparisons in 10 files becomea.timeIntervalSince(b) >= 0/<= 0. The hunks apply to dev unchangedscripts/check-date-comparisons.py,scripts/check-provider-weak-imports.pyand their tests5d1bf38b5), see below; carry it to #1807.github/actions/provider-release-build/action.yml, unchanged. Dev callers:release-provider.yml(fromrelease-dev-branch.ymlandrelease-swift.yml) andprovider-release-cache.ymlrelease-swift.yml,release-dev-branch.yml,provider-release-cache.yml: path filters forscripts/check-provider-weak-imports.pyci-master.ymlRelease Integrityci.ymlRelease Integrity. Dev has noci.yml;ci-master.ymlreplaces itProvider Testsgate ofprovider-tests.yml,if: !cancelled(). CI (dev) has no Release Integrity, so the gate is where dev pull requests run it.scripts/test-provider-ci-workflow.pypins the stepci.ymldocs/developer/build.md,docs/developer/test.md,docs/operations/provider-release.md,docs/architecture/security/provider-trust.md,docs/architecture/inference.md,docs/provider/cli-reference.md,docs/threat-model.yamlprovider-tests.yml,ci-dev.ymlandci-master.ymlwhere master namesci.yml(two cells inbuild.md, one sentence intest.md, one ininference.md)changelog.d/ci-xcode-27-2-toolchain.md, plus one sentence on where the source check runsExtra Date comparisons on dev
None. The binary check proves it: SDK 27 release preparation run 42025284212 built dev's source with SDK 27.2 (Blacksmith,
Xcode_27.2_beta_3.app, build 27B5038j) and the check passed all five binaries (CLI, enclave, fan helper, cluster worker, cluster plan). By reading: #1807 took its 26 call sites from the binaries of branch.87, which was built from dev at814268cfd. I read every>=and<=line that dev added since814268cfd, and every one that dev has and master lacks, inprovider-swift/Sources,libs/darkbloom-cluster/Sourcesandlibs/darkbloom-cluster-worker/Sources. Each comparesDouble, an integer,Durationor a count.Source check fix (dev only so far)
On dev the source check reported two false hits:
ClusterOnboardingFlow.swift:1973and:1979,waited >= boundandwaited >= settingsHintSeconds(CI (dev) run 42025284502).let waited = Date().timeIntervalSince(started)binds aTimeInterval. The check took everyletorvarwhose value starts withDate(as a Date. Now a Date initializer,Date.now,Date.distantPastorDate.distantFuturecounts only when no member follows it.Date().addingTimeInterval(...)still counts through its own pattern. The change only removes Date evidence, so it cannot add a finding. Master's source has nowaited-style comparison, which is why #1807 passes. The test addslet waited = Date().timeIntervalSince(started)andlet age = Date.now.timeIntervalSince1970to the allowed source. #1807 needs the same change before dev merges into master.Hooked up
scripts/check-date-comparisons.py:provider-tests.ymljobprovider-test-gate(checkProvider Tests), step "Refuse back-deployed Date comparisons in provider source";ci-master.ymljobrelease-integrity, same step.scripts/check-provider-weak-imports.py:.github/actions/provider-release-build/action.yml, step "Refuse Foundation imports that a served macOS lacks" (release lane). Callers:release-provider.ymlbuild-provider(fromrelease-dev-branch.ymlon dev pushes) andprovider-release-cache.ymlwarm.How it was tested
Built with SDK ….blacksmith-12vcpu-macos-27has SDK 27.2 only as Xcode 27.2 beta 3 (/Applications/Xcode_27.2_beta_3.app, 27B5038j); the image default is not 27.2, so the toolchain step exportsDEVELOPER_DIR. Branch.87 was built with the same Xcode. Release mode accepts it (SDK 27.2, Swift 6.4.2). It is not the Xcode 27.2 release (27B52) of the Darkbloom Sandbox base.🤖 Generated with Claude Code