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

Crash - no available platforms on Xcode Server #114

Closed
1 of 2 tasks
czechboy0 opened this issue Sep 30, 2015 · 6 comments
Closed
1 of 2 tasks

Crash - no available platforms on Xcode Server #114

czechboy0 opened this issue Sep 30, 2015 · 6 comments

Comments

@czechboy0
Copy link
Member

Happens on certain instances of Xcode Server

Application Specific Information:
fatal error: Couldn't find intended platform in list of platforms: []!: file /Users/honzadvorsky/Documents/Buildasaur/Pods/XcodeServerSDK/XcodeServerSDK/API Routes/XcodeServer+Bot.swift, line 172

Originally reported by @valeriomazzeo in buildasaurs/Buildasaur#143.


Solution:

  • instead of crashing, just generate an error describing this issue and fail the bot-creation process
  • make sure Buildasaur shows this error in the UI
@cojoj
Copy link
Contributor

cojoj commented Oct 1, 2015

You rather want it to return some kind of completion or simply throw?

@cojoj
Copy link
Contributor

cojoj commented Oct 1, 2015

I think if we want to fail bot creation process we should stick with throw 😉 I'll try to do something with this issue today...

@czechboy0
Copy link
Member Author

It's an asynchronous process so I don't think throw will work. Just
creating an error and completing should be enough.
On Thu, Oct 1, 2015 at 9:53 AM Mateusz Zając notifications@github.com
wrote:

I think if we want to fail bot creation process we should stick with throw
😉 I'll try to do something with this issue today...


Reply to this email directly or view it on GitHub
#114 (comment)
.

@cojoj
Copy link
Contributor

cojoj commented Oct 1, 2015

private func replacePlaceholderPlatformInBot(bot: Bot, platforms: [DevicePlatform]) is the method in which the fatalErrors are called... Looks to me like it's totally synchronous. The bot creation isn't synchronous... Anyway, you suggest returning of the optional ErrorType from this method? Seems legit 😉

@czechboy0
Copy link
Member Author

Oh right, I was talking about the big picture of the whole process. Makes
perfect sense here to throw, sorry. What I meant is that that error should
then be fed into the failing completion block.
On Thu, Oct 1, 2015 at 10:02 AM Mateusz Zając notifications@github.com
wrote:

private func replacePlaceholderPlatformInBot(bot: Bot, platforms:
[DevicePlatform]) is the method in which the fatalErrors are called...
Looks to me like it's totally synchronous. The bot creation isn't
synchronous... Anyway, you suggest returning of the optional ErrorType
from this method? Seems legit 😉


Reply to this email directly or view it on GitHub
#114 (comment)
.

@cojoj
Copy link
Contributor

cojoj commented Oct 1, 2015

Communication is always an issue in my case 😜 Great that we're now on the same tracks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants