Skip to content

Build without warnings - #201

Merged
odrobnik merged 1 commit into
mainfrom
claude/fix-deprecation-warnings
Oct 6, 2026
Merged

odrobnik merged 1 commit into
mainfrom
claude/fix-deprecation-warnings

Conversation

@odrobnik

@odrobnik odrobnik commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

The build and the tests compiled with hundreds of deprecation and concurrency warnings (the Android CI log alone had about 3,400 lines of them). All gone, with the suite at 699 tests and swiftlint --strict clean:

  • JSONValue.value → jsonObject (tests and the demo server), rewritten at the exact positions the compiler reported.
  • MCPJSONCoding → JSONCoding (seven source files).
  • StdioMessageTransport → JSONRPCSubprocess.StdioTransport, module-qualified because SwiftMCP's own server-side StdioTransport shares the name.
  • [String](caseLabelsFrom:) → CaseIterable.caseLabels where it was a usage; the one test of the deprecated initializer (nil for a non-CaseIterable type) now runs in a deprecated context.
  • The generic test helpers in ServerInfoIdentityTests capture a metatype, so they require SendableMetatype.
  • The two timeout Tasks no longer throw: a cancelled sleep ends them quietly, said explicitly.
  • The DNSServiceRef handed to its own queue for deallocation is marked nonisolated(unsafe) at both sites, which is what that call is.

🤖 Generated with Claude Code

The build and the tests compiled with hundreds of deprecation and
concurrency warnings. Now gone:

- JSONValue.value, renamed jsonObject (tests and the demo server)
- MCPJSONCoding, renamed JSONCoding (seven source files)
- JSONRPCSubprocess.StdioMessageTransport, renamed StdioTransport and
  qualified, because SwiftMCP's server-side StdioTransport shares the name
- [String](caseLabelsFrom:), replaced by CaseIterable.caseLabels where it was
  a usage; the one test of the deprecated initializer runs in a deprecated
  context
- the generic test helpers capture a metatype, so they require
  SendableMetatype
- the two timeout tasks no longer throw: a cancelled sleep ends them quietly
- the DNSServiceRef handed to its own queue for deallocation is marked
  nonisolated(unsafe), which is what that call is

699 tests, swiftlint --strict clean.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T04:44:03.271652Z 7d01b95 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@odrobnik
odrobnik merged commit ab04328 into main Oct 6, 2026
7 checks passed
@odrobnik
odrobnik deleted the claude/fix-deprecation-warnings branch October 6, 2026 04:59
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