Skip to content

Attempt to fix CI#162

Merged
pcuenca merged 2 commits into
mainfrom
fix-ci
Jun 20, 2026
Merged

Attempt to fix CI#162
pcuenca merged 2 commits into
mainfrom
fix-ci

Conversation

@pcuenca

@pcuenca pcuenca commented Jun 20, 2026

Copy link
Copy Markdown
Member

Broken in #161

Temporarily remove Swift 6.1 from the CI matrix.

mlx-swift-lm 3.x upgraded the Swift version, which fails to compile with
strict concurrency for SDKs earlier than 26.

An alternative would be to test the "MLX" trait separately on just Xcode
26, and keep the full matrix for the rest of traits.

Use NIOCore to restore Linux compatibility.

Graph resolution changed after the bump to mlx-swift-lm 3 and
it looks like NIOFoundationCompat is no longer there.

pcuenca added 2 commits June 20, 2026 14:09
mlx-swift-lm 3.x upgraded Swift version, which fails to compile with
strict concurrency for SDKs earlier than 26.

An alternative would be to test the "MLX" trait separately on just Xcode
26, and keep the full matrix for the rest of traits.
Graph resolution changed after the bump to mlx-swift-lm 3 and
it looks like NIOFoundationCompat is no longer there.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to get CI passing by updating the AsyncHTTPClient helper code to avoid relying on NIOFoundationCompat, and by changing the macOS CI matrix configuration (commenting out Swift 6.1 entries).

Changes:

  • Remove NIOFoundationCompat usage in HTTPClient extensions by switching ByteBuffer/Data conversions to APIs available without that module.
  • Adjust macOS CI matrix to skip Swift 6.1 runs (with explanatory comments).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Sources/AnyLanguageModel/Extensions/HTTPClient+Extensions.swift Updates request/response body conversions to avoid NIOFoundationCompat APIs.
.github/workflows/ci.yml Modifies the macOS CI matrix to remove Swift 6.1 entries and changes the remaining macOS/Xcode version selections.
Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:40

  • The macOS matrix switches to runs-on: macos-26 and DEVELOPER_DIR: /Applications/Xcode_26.0.app/.... These labels/paths are not valid on GitHub-hosted runners (the job will fail to start, or Xcode won’t be found). Use a supported macos-* runner label and an Xcode version that actually exists on that image; if the intent is to avoid Swift 6.1, pick an available Xcode that bundles the desired Swift toolchain, or keep the previous runner/Xcode until a matching image is available.
          - macos: "26"
            swift: "6.2"
            xcode: "26.0"
            traits: ""
          - macos: "26"
            swift: "6.2"
            xcode: "26.0"
            traits: "AsyncHTTPClient"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pcuenca pcuenca merged commit 1bcb098 into main Jun 20, 2026
6 checks passed
@pcuenca pcuenca deleted the fix-ci branch June 20, 2026 15:15
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.

2 participants