Skip to content

ci(swift-modelgen): bump canary toolchain to Xcode 26 / Swift 6 - #1038

Merged
sarayev merged 1 commit into
mainfrom
bump-swift-modelgen-xcode-26
Sep 24, 2026
Merged

sarayev merged 1 commit into
mainfrom
bump-swift-modelgen-xcode-26

Conversation

@sarayev

@sarayev sarayev commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Fixes the iOS codegen canary (P520055368), which has failed 100% of runs since 2026-09-23 ~19:00 UTC.

What broke

The build-swift-modelgen.yml canary builds a small Swift app against amplify-swift on every run. The app pins from: "2.12.0", so SPM always resolves the newest release.

  • amplify-swift 2.61.0 declared swiftLanguageModes: [.v5] — built under Swift 5 language rules even on a Swift 6 compiler, so it compiled cleanly on the canary's Xcode 16.1 / Swift 6.0.2 runner.
  • amplify-swift 2.62.0 (published 2026-09-23 17:22 UTC) declared swiftLanguageModes: [.v6] — its headline feature is "core: adopt the Swift 6 language mode." The package now requires a full Swift 6 strict-concurrency build.

The canary's toolchain (Xcode 16.1 / Swift 6.0.2 on macos-14) is behind what a clean Swift 6 build wants, so emit-module fails with ~100 Sendable / explicit-self errors in amplify-swift's own source. All 8 consecutive failures are byte-identical; the toolchain was unchanged across the green→red boundary — only the SDK version changed.

The fix

Bump the canary toolchain rather than pin the SDK back:

This keeps the canary honest — it builds the current Swift-6 SDK the way customers on current Xcode do — instead of masking the migration by pinning amplify-swift to the Swift-5-language-mode 2.61.0.

Testing

Toolchain/CI-only change; validated via the run history and per-run logs on P520055368. The workflow is workflow_dispatch (manual, driven by the CodeBuild canary), so a green run after merge confirms the fix.

amplify-swift 2.62.0 adopted the Swift 6 language mode (swiftLanguageModes
flipped from [.v5] to [.v6]), so it now requires a full Swift 6
strict-concurrency build. The canary was running Xcode 16.1 / Swift 6.0.2 on
the macos-14 image, which cannot build it cleanly, breaking every run since
2026-09-23 (see P520055368).

Bump runs-on to macos-15-xlarge and select Xcode 26.1 so the canary builds the
current Swift-6 SDK the way customers on current Xcode do, rather than pinning
the SDK back to the Swift-5-language-mode 2.61.0.
@sarayev
sarayev requested a review from a team as a code owner September 24, 2026 19:43
@sarayev
sarayev merged commit 6f8f102 into main Sep 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants