Skip to content

[build_script] Remove grep since it always passes #167

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

Merged
merged 1 commit into from
Aug 22, 2016

Conversation

modocache
Copy link
Contributor

xcodebuild always prints "export" once it begins building an Xcode project or workspace, regardless of whether that build eventually passes or fails. This results in the grep statement succeeding, and thus causing the build script to pass, even when the build fails.

The grep statement was originally added to make the build output more human readable, not change the exit code of any builds. Remove it for now.


grep originally added here: #97

Discussion on its removal here: #166

`xcodebuild` always prints "export" once it begins building an Xcode project
or workspace, regardless of whether that build eventually passes or fails.
This results in the `grep` statement succeeding, and thus causing the build
script to pass, even when the build fails.

The `grep` statement was originally added to make the build output more human
readable, not change the exit code of any builds. Remove it for now.
@modocache
Copy link
Contributor Author

@swift-ci Please test

@briancroom
Copy link
Contributor

(Addresses https://bugs.swift.org/browse/SR-2433)

Thanks for opening this. I agree this is the right thing to do. The benefit of the grep was marginal to begin with. It would be possible to keep it and fix the exit code behavior using pipefail or similar, but I'm not convinced it's worthwhile.

I don't think we will be able to merge this until the other issue (https://bugs.swift.org/browse/SR-2434) is fixed, though, to avoid breaking the bots. I've got a pretty good lead on what's going on there and I expect I can get it resolved on Monday.

@modocache
Copy link
Contributor Author

Perfect! You took the words right out of my mouth. I was worried, since I don't have a macOS environment that can build Swift right now. I'm glad you're on top of it! 💯

@briancroom
Copy link
Contributor

With #168 merged, this should hopefully pass CI now.

@briancroom
Copy link
Contributor

@swift-ci Please test

@briancroom
Copy link
Contributor

There's a Linux failure in the Foundation test suite, but this change doesn't affect the Linux build in any way and the OS X build passed, so I'm going to merge it in. Thanks for the patch @modocache!

@briancroom briancroom merged commit d00a69b into swiftlang:master Aug 22, 2016
@modocache modocache deleted the xcodebuild-grep branch August 23, 2016 01:09
@modocache
Copy link
Contributor Author

Thank you! 👏

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