Repository navigation
Conversation
native/scripts/preflight.py (python3 stdlib) runs as a separate "Preflight" job on ubuntu-24.04, ahead of the Xcode build. - Diff rules, on lines added since the merge base with origin/main (no baseline file): no new UIActivityIndicatorView, no new UIImage(systemName:) outside AppIcons.swift, no new hard-coded colours outside DesignSystem/, no GRDB in the app target, no app SDKs in AnycastKit, no timers in pre-settings startup files. A line can opt out with "// preflight:allow <reason>". - Whole-repo release checks: iPad stays declared on the app and the ShareExtension, the .appex name release-core.yml checks matches project.yml, and AppIcons.swift has no duplicate names. The first and last of these broke real candidates (rc-2.0.0+41, and the duplicate transcriptFailed that stopped native compiling for five days). The existing "Build native iOS" job is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Summary
Adds a fast check that runs in seconds, before the 40-minute Xcode build, and blocks mistakes that have already cost us real time:
.appexname thatrelease-core.ymlchecks matchesproject.yml;AppIcons.swifthas no duplicate names. Missing iPad support is what failedrc-2.0.0+41; a duplicateAppIcons.transcriptFailedkept the native branch from compiling for five days.UIActivityIndicatorView, no newUIImage(systemName:)outsideAppIcons.swift, no new hard-coded colours outsideDesignSystem/, no GRDB in the app target, no app SDKs inAnycastKit, no timers in pre-settings startup files. Existing code is not flagged. An intentional exception takes// preflight:allow <reason>on the line.It runs as a separate job, Preflight, on
ubuntu-24.04. On pull requests it runs the diff rules and the release checks; on pushes to main and manual runs it runs the release checks only. Build native iOS is unchanged. This PR doesn't make the new job required; that's a branch-protection setting for the repository owner.Testing
python3 -m unittest discover -s native/scripts/tests: 23 tests pass.native/scripts/preflight.pyon this branch:preflight: ok, from both the repo root andnative/.lab/aria, based before Keep declaring iPad support, as the shipped app did #34): it reported both missingTARGETED_DEVICE_FAMILY "1,2"declarations, the missing.appexcheck, and two new hard-coded colours.🤖 Generated with Claude Code