Skip to content

Pin FOSUtilities to release 0.22.x; move to Swift 6.4.2 and Xcode 27.2 - #29

Merged
foscomputerservices merged 6 commits into
mainfrom
chore/fosutilities-release-swift-6.4
Nov 30, 2026
Merged

foscomputerservices merged 6 commits into
mainfrom
chore/fosutilities-release-swift-6.4

Conversation

@foscomputerservices

Copy link
Copy Markdown
Owner

Why

  • FOSUtilities now publishes releases, so this repo should stop tracking branch: "main".
  • The lockfile had FOSUtilities at a February 2026 revision, 489 commits behind. That revision does not compile on Swift 6.4, so the toolchain move and the FOSUtilities move have to happen together.

What

Dependencies

  • Package.swift and the Xcode project pin FOSUtilities with .upToNextMinor(from: "0.22.0"). The library is still 0.x and its minor releases carry breaking changes.
  • All other packages are updated to current (swift-syntax 604, Ignite main, Yams 6.2.2 replacing the WASI fork).

Source, re-projected for the 0.22.0 API

  • LandingPageRequest: the canonical initializer now takes sort:.
  • LandingPageViewModel+Factory: VaporViewModelFactory and VaporModelFactoryContext were removed. The factory is now a VaporResponseBodyFactory with a synchronous body(context:), and the framework's default encodeResponse replaces the per-type one.
  • routes.swift: register(viewModel:) was removed; the request is registered with register(request:app:).

Xcode project

  • Removes the remote swift-testing package reference. It requires swift-syntax below 601, which conflicts with FOSUtilities 0.22.0, and Testing ships with the toolchain.

Toolchain

  • Dockerfile-server, Dockerfile-client: build on swift:6.4.2-noble.
  • CI: Swift 6.4.2 and Xcode 27.2.

CI repair

The Xcode job was building the scheme FOSUtilities-Package, which does not exist in this repository, and piping through xcpretty without pipefail. It reported success without building anything.

  • It now builds the FOSShowcase scheme, unsigned, with pipefail.
  • The matrix is iOS and macOS. watchOS is dropped because the watch app target links no package products and does not build (also true on main). tvOS is dropped because it is not a destination of the FOSShowcase scheme.

Tests

  • Adds the versioned ViewModel JSON baselines that FOSTesting writes on first run and expects to be committed.

Verification

Local, on Swift 6.4.2 and Xcode 27.2:

  • swift build --build-tests and swift test pass. The suite is one test.
  • Ran the upgraded VaporWebServer and VaporLeafWebApp and compared with production:
    • the served route is unchanged: /landing_page_landing_page_view_model
    • all 37 response values match, in English and Spanish
    • the rendered home page is identical once the debug image host is normalised
    • the response gains one additive field per ViewModel (vmId.fsh)
  • The FOSShowcase scheme builds unsigned for iOS, macOS and visionOS.

Not verified locally:

  • The Linux build on Swift 6.4.2, which CI and the image build cover.
  • Whether the CI runners provide Xcode 27.2 and Swift 6.4.2.

Known, not addressed here

  • The watch app target does not build, on main or here.
  • The server-side change is not covered by an automated test; WebServerTests is commented out.

FOSUtilities now publishes releases, so stop tracking `branch: "main"`.
The lockfile had it at a February 2026 revision, 489 commits behind,
which does not compile on Swift 6.4.

Package.swift pins `.upToNextMinor(from: "0.22.0")`: the library is
still 0.x and its minor releases carry breaking changes.

Re-projected for the 0.22.0 API:
- LandingPageRequest: the canonical initializer now takes `sort:`.
- LandingPageViewModel+Factory: VaporViewModelFactory and
  VaporModelFactoryContext were removed; the factory is a
  VaporResponseBodyFactory with a synchronous `body(context:)`, and the
  framework's default `encodeResponse` replaces the per-type one.
- routes: `register(viewModel:)` was removed; register the request with
  `register(request:app:)`.

Verified against production: the served route is unchanged
(/landing_page_landing_page_view_model), all 37 response values match in
English and Spanish, and the rendered page is identical. The response
gains one additive field per ViewModel (`vmId.fsh`).

Adds the versioned ViewModel JSON baselines that FOSTesting writes on
first run and expects to be committed.

All other packages are updated to current as well (swift-syntax 604,
Ignite main, Yams 6.2.2 replacing the WASI fork).
The Xcode project also tracked FOSUtilities `branch = main`. Pin it to
the same release range as Package.swift.

Remove the remote swift-testing package reference. It requires
swift-syntax below 601, which conflicts with FOSUtilities 0.22.0
(swift-syntax 604), and Testing ships with the toolchain.

The FOSShowcase scheme builds unsigned for iOS, macOS and visionOS on
Xcode 27.2 with no source changes.
…CI job real

- Dockerfile-server, Dockerfile-client: build on swift:6.4.2-noble.
- CI: test on Swift 6.4.2 and build with Xcode 27.2.
- CI: the Xcode job built the scheme `FOSUtilities-Package`, which does
  not exist in this repository, and piped xcodebuild through xcpretty
  without pipefail, so it reported success without building anything.
  It now builds the FOSShowcase scheme, unsigned, with pipefail.
- CI: the Xcode matrix is iOS and macOS. watchOS is dropped because the
  watch app target links no package products and does not build; tvOS is
  dropped because it is not a destination of the FOSShowcase scheme.
- CLAUDE.md: correct the Swift, tools and registration facts.
GitHub's hosted runners have no Xcode 27.x image; 26.6 on macos-26 is the
newest available. Pin the runner and the Xcode version together, as
FOSUtilities' CI does.
xcpretty drops the reason for failures that happen before compilation,
and fail-fast cancelled the sibling platform's job.
A fresh runner has not trusted FOSUtilities' macros, so Xcode fails the
build at the dependency graph with "Macro FOSMacros must be enabled".
@foscomputerservices
foscomputerservices merged commit ee7015c into main Nov 30, 2026
4 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.

1 participant