-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add a lit test for Xcode project generation #68713
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 lit test for Xcode project generation #68713
Conversation
@swift-ci please smoke test macOS |
bfe26fa
to
5c0c642
Compare
|
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.
Nice. 3 minutes is really good. Let’s add this.
if not self.args._build_llvm: | ||
build_targets = ['clean'] |
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.
I’m not sure why we used to add the clean
target but it looks like we lost it. Is that intentional?
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.
Neither am I, but I doubt it makes a difference.
Is that intentional?
Yes, I changed the logic slightly to not run any build commands for LLVM when --build-llvm=0
(the "actually don’t build LLVM" option), so it no longer matters what build_targets
is set to in this case. This behavior is consistent with how we handle other CMake products, and it allows the new test to not just succeed (a build command that was assembled for the Xcode generator will fail against a Ninja build directory due to incompatible adjustments to the options), but also run correctly (we don’t want to run any build commands against the symlinked LLVM build directory).
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.
Sounds reasonable to me 👍🏽
5c0c642
to
f72b96b
Compare
@swift-ci please smoke test macOS |
Hm, it seems like none of the macOS PR testing jobs run long tests. I can only see select branch jobs running them. Do we keep the requirement? |
Let’s make it a non-long test then, I’d say. |
f72b96b
to
2644adf
Compare
@swift-ci please smoke test macOS |
@shahmishal ping |
@swift-ci smoke test |
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.
LGTM!
The test takes ~100s on my machine.
Changes to CMake code tend to break Xcode project generation every other month or so. Although these issues are often fixed in a matter of days and are not as big of a deal for seasoned contributors, Xcode is the editor of choice for many, if not most, newcomers, and I believe this makes un interested in promising a functional invocation with the Xcode version used in CI.