Skip to content
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

Fix Xcode 8 hung-up by making Helper.backticks retriable #6000

Closed
wants to merge 4 commits into from

Conversation

nafu
Copy link
Collaborator

@nafu nafu commented Sep 5, 2016

This is for #4059 #5163 #5603
This will solve these issues!

The problem is caused by Xcode 8
Ref: https://forums.developer.apple.com/thread/50372

How to reproduce

See sample project: https://github.com/nafu/Xcode8HungUpTestWithCoreData/tree/master

Notes

I know there is already PR for this #5188, but I try to take another option.

Retriable is a simple DSL to retry failed code blocks with randomized
exponential backoff time intervals. This is especially useful when
interacting external api/services or file system calls.

See more about retriable:
https://github.com/kamui/retriable/blob/master/README.md
@nafu
Copy link
Collaborator Author

nafu commented Sep 7, 2016

@nafu nafu closed this Sep 7, 2016
@mfurtak mfurtak self-assigned this Sep 7, 2016
@mfurtak
Copy link
Contributor

mfurtak commented Sep 7, 2016

We may still want to consider this PR, since I think adding retry behavior may be an important fix for a different problem with xcodebuild than #5626 solved.

Overall the PR looks pretty good, though I think we need to consider whether we're willing to add another dependency to solve the problem.

@nafu
Copy link
Collaborator Author

nafu commented Sep 7, 2016

I see. I reopen this for now.

@nafu nafu reopened this Sep 7, 2016
UI.command_output(result) if print
return result
def self.backticks(command, print: true, retriable_options: {})
require 'retriable'
Copy link
Member

Choose a reason for hiding this comment

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

I'd love to keep the old code, and only use the new one if retriable_options is passed. Something like a big if else in the beginning of the method

Copy link
Member

Choose a reason for hiding this comment

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

Let's wait for @mfurtak's opinion first on if we want to add the dependency, before updating the PR, sorry for chiming it like this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, Thanks 😇

@mfurtak
Copy link
Contributor

mfurtak commented Sep 7, 2016

Hi @nafu after considering the options, we're going to use #5188. Thank you very much for this, and we will certainly reconsider it if needed! 🚀

@mfurtak mfurtak closed this Sep 7, 2016
@nafu
Copy link
Collaborator Author

nafu commented Sep 7, 2016

Thank you too 🚀

@fastlane fastlane locked and limited conversation to collaborators Feb 4, 2017
@nafu nafu deleted the retriable-backticks branch February 14, 2017 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants