Repository navigation
ci(release): fail the CloudKit schema check only on what Production lacks - #3800
Merged
Merged
Conversation
datlechin
enabled auto-merge (squash)
October 22, 2026 19:28
datlechin
added a commit
that referenced
this pull request
Oct 22, 2026
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.
Summary
export-cloudkit-schema.sh --check-deployedexports Production and runsscripts/release/schema.py covers, which fails only when the snapshot has a record type, field, field type, index, role or grant that Production lacks or types differently. What only Production has passes: a build never reads a field a newer line deployed.release.ymlappruns--check-deployed. v0.82.1 failed there because Production hasConnection.sshRouteJson(feat(sync): carry the Mac's SSH route to iPhone and iPad #3769) and release/0.82's snapshot does not.--checkstays an exact diff for refreshing the snapshot.ProductionSchemaParityTestsreads the snapshot file, not the script, and is unchanged.data-sync-storage.mdnames the release mode.Test plan
test_schema.py, 18 tests on the checked-in snapshot: a type, field, index, grant or role only Production has passes; one only the snapshot has, or a changed field type, fails with its name. Parser cases cover comments, quoted names,ENCRYPTED,LIST<>,NUMBER PREFERRED ASand multi-permission grants.xcrun: release/0.82's snapshot against main's (Production) passes--check-deployedand fails--check; a Production withoutsshRouteJsonfails--check-deployedwithConnection.sshRouteJson: not in production.