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 accessing fastlane_core from within spaceship #9089

Merged
merged 2 commits into from
May 5, 2017
Merged

Conversation

KrauseFx
Copy link
Member

@KrauseFx KrauseFx commented May 5, 2017

Also adds tests so that never happens again

with the recent TestFlight changes, multiple UI.something calls went into spaceship causing crashes if that part of the code is reached. Currently spaceship doesn't have access to fastlane_core. I'm updating our build scripts to automatically detect those errors in the future 👍

Also adds tests so that never happens again
Copy link
Collaborator

@taquitos taquitos left a comment

Choose a reason for hiding this comment

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

🤦‍♂️ This is great @KrauseFx, thank you! 🐑 it!

@@ -84,15 +84,15 @@ def self.perform_for_groups_in_app(app: nil, groups: nil, &block)
if groups.nil?
default_external_group = app.default_external_group
if default_external_group.nil?
UI.user_error!("The app #{app.name} does not have a default external group. Please make sure to pass group names to the `:groups` option.")
raise "The app #{app.name} does not have a default external group. Please make sure to pass group names to the `:groups` option."
Copy link
Contributor

Choose a reason for hiding this comment

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

My feeling is that we need to be sure that we surface this failure as a user-error of some sort up the chain. Failing to include a group name or mistyping a group name (as in line 95 below) is not really a crash, yet if we do not rescue this error and re-raise as a user error, it will be logged as a crash by fastlane's runner.rb.

@mpirri mpirri merged commit 2c94c2e into master May 5, 2017
@mpirri mpirri deleted the fix-spaceship branch May 5, 2017 18:52
@mpirri mpirri mentioned this pull request May 5, 2017
@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.28.9 🚀

@fastlane fastlane locked and limited conversation to collaborators Aug 4, 2017
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

5 participants