Skip to content

Update tooling and docs, require Swift 6.4, and update to DevTesting 1.7.0 - #43

Merged
prachigauriar merged 10 commits into
mainfrom
update-tooling-and-docs
Nov 25, 2026
Merged

prachigauriar merged 10 commits into
mainfrom
update-tooling-and-docs

Conversation

@prachigauriar

Copy link
Copy Markdown
Collaborator

Summary

  • Move Scripts to Tools. Tools/lint and Tools/format now cover Package.swift and Markdown (with
    a pinned rumdl), and Tools/lint checks the length of Swift comments.
  • Build and test with Xcode 27.2 on the xcode-27 runner.
  • Require Swift 6.4, and enable the ImmutableWeakCaptures and NonisolatedNonsendingByDefault
    upcoming features.
  • Replace CLAUDE.md with a shorter AGENTS.md, and update the guides in Documentation, with the
    testing guides in Documentation/Testing.
  • Reformat existing Markdown with rumdl, and point the README at the Tools scripts.
  • Update to DevTesting 1.7.0: default-initialize mock stubs instead of force-unwrapping them, and
    replace MockError with DevTesting’s ArbitraryError.
  • Implement next(isolation:) in CurrentValueMulticaster.Values.AsyncIterator, which
    NonisolatedNonsendingByDefault otherwise rejects as a data race.
  • Mark HTTPClientInterceptor’s next closure @Concurrent, so interceptors in modules without
    NonisolatedNonsendingByDefault still conform.
  • Add release notes for 1.12.0.

  - Rename Scripts to Tools.
  - Add Tools/rumdl, which installs a pinned version of rumdl on first
    use, and .rumdl.toml with the project’s Markdown rules.
  - Lint and format Package.swift and Markdown in Tools/lint and
    Tools/format, and check the length of Swift comments, which
    swift-format doesn’t.
  - Run Tools/lint in the Verify Changes workflow.
  - Build and test with Xcode 27.2 on the xcode-27 runner, and test iOS
    on an iPhone 18 Pro.
  - Require DevTesting 1.7.0.
  - Default-initialize mock stubs instead of force-unwrapping them, so
    a test that calls an unconfigured stub fails instead of crashing.
  - Replace MockError and its randomError() with DevTesting’s
    ArbitraryError and randomError().
  - Conform LiveQuerySchedulingStrategy to DefaultStubValueProviding in
    tests.
  - Raise the Swift tools version to 6.4, and say so in the README.
  - Enable the ImmutableWeakCaptures and NonisolatedNonsendingByDefault
    upcoming features for every target.
  - Format Package.swift, which Tools/lint now checks.
  - Implement next(isolation:) instead of next() in
    CurrentValueMulticaster.Values.AsyncIterator, passing the caller’s
    isolation to the underlying stream. Calling the stream’s next()
    sends the iterator to a @Concurrent function, which is a data race
    error under NonisolatedNonsendingByDefault.
  - Replace CLAUDE.md with a shorter AGENTS.md that links to the guides
    instead of repeating them, and leaves out descriptions of the code
    that go out of date.
  - Move the testing guides into Documentation/Testing and rewrite them
    for DevTesting 1.7’s default stub values and ArbitraryError.
  - Add a Swift Style Guide and an index of the guides.
  - Add typography rules to the Markdown Style Guide.
  - Add Async Test Patterns and update Dependency Injection.
  - Reformat existing Markdown with rumdl, which didn’t check it
    before.
  - Mark the next closure that intercept(request:context:next:) takes
    as @Concurrent. NonisolatedNonsendingByDefault otherwise makes it
    nonisolated(nonsending), and interceptors in modules that don’t
    enable the feature no longer conform.
  - Add release notes for 1.12.0, which requires Swift 6.4.
  - Point development setup at Tools/install-git-hooks, Tools/lint,
    and Tools/format.
  - Say that CI lints Swift and Markdown with Tools/lint.
  - Say that CI tests every platform, and stop recommending
    Scripts/test-all-platforms, which no longer exists.
  - Test tvOS on an Apple TV 4K (4th generation) and watchOS on an
    Apple Watch Series 12 (46mm). The runner’s tvOS 27.2 and watchOS
    27.2 simulators don’t include the older models.
  - Pin simulator destinations to OS 27.2, so a runner update can’t
    change which runtime CI tests on.
  - Let the Log Code Coverage step fail without failing the build.
    With Xcode 27.2, result bundles have no coverage for Swift package
    targets, so xccov can’t report it.
  - Upload xccovPretty’s output and post the coverage comment only
    when there’s a report.
@prachigauriar
prachigauriar merged commit f42c2e1 into main Nov 25, 2026
6 checks passed
@prachigauriar
prachigauriar deleted the update-tooling-and-docs branch November 25, 2026 03:18
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