Skip to content

Configure Swift formatting in CI - #58616

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:configure-swift-format-ci
Closed

cortinico wants to merge 1 commit into
react:mainfrom
cortinico:configure-swift-format-ci

Conversation

@cortinico

@cortinico cortinico commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

The format workflow currently runs on macos-15, whose default Xcode 16.4 toolchain does not meet the repository formatter's Swift 6.3 minimum. As a result, format-swift.js warns and skips Swift files.

Run the format job on macos-26 and explicitly select Xcode 26.6.0 so that swift format 6.3 is available and Swift formatting is actually exercised in CI.

This does not include the unrelated C++ formatting change currently making the job red on main.

Changelog:

[INTERNAL] [FIXED] - Configure Swift formatting in the format workflow

Test Plan:

  • yarn prettier --check .github/workflows/format.yml — passes.
  • swift format --version — reports 6.3.0 locally.
  • GitHub format run — the macOS 26 runner accepted Xcode 26.6.0, and format-swift.js completed without the missing Swift 6.3 warning. The job remains red because enabling the formatter exposes existing formatting changes (along with the unrelated C++ formatting issue already present on main).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 21, 2026
@cortinico
cortinico marked this pull request as ready for review September 21, 2026 10:55
@meta-codesync

meta-codesync Bot commented Sep 21, 2026

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D120988250.

@meta-codesync meta-codesync Bot closed this in 9da1bac Sep 21, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 21, 2026
@meta-codesync

meta-codesync Bot commented Sep 21, 2026

Copy link
Copy Markdown

@cortinico merged this pull request in 9da1bac.

@cortinico

Copy link
Copy Markdown
Contributor Author

Merged here: 9da1bac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant