-
Notifications
You must be signed in to change notification settings - Fork 8
Add a lint CI #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a lint CI #21
Conversation
|
@abandy Could you take a look at this? |
raulcd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me but it seems to timeout on the fork. I am unsure why it would require more than 10 minutes to build the environment. Maybe it's only the first time?
https://github.com/kou/arrow-swift/actions/runs/15434589578/job/43438396587
This upgrades SwiftLint to the latest version (0.59.1) from 0.53.0. So some format fixes are included. Closes apache#20.
|
Oh, sorry. I missed it. I increased timeout to 15min from 10min.
Yes. We need to build SwiftLint that is written by Swift. |
raulcd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's green now. I'll wait for @abandy to take a look or will merge in a couple days if no-one has done it
|
I tried running the hook in this PR locally on Linux and macOS (aarch64) and SwiftLint takes a bit of work to get running, I failed on both systems for different reasons. @kou I assume you have this working in your PR because you built it once and cached it? What steps did you use? |
|
Oh, could you share the results you got? I just executed |
|
On macOS, I get a very cryptic, and when I try to install swiftlint from brew, I get, |
|
I think the above are related and makes sense. The ubuntu runner must ship with a standard Swift toolchain so this works on CI. On a Mac, you can't just use the CommandLineTools to run run pre-commit hook, you have to have a full XCode toolchain. +1 to this PR as-is. |
|
Lgtm! I tried it locally on my mac and it works as expected. (swiftlint has worked since we setup the linting when swift was in the main arrow repo so I probably am benefitting from prior setup). |
This upgrades SwiftLint to the latest version (0.59.1) from 0.53.0. So some format fixes are included.
Closes #20.