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(ios): fixed debug log server issues (TIMOB-27074) #10975
Conversation
fix(ios): Fixed bug where the log server was being started when the iOS app was quitting instead of stopping it. fix(ios): Changed the log server port test to use 127.0.0.1 instead of localhost to avoid bad dns lookup. fix(ios): Fixed log server port test timeout to properly handle the timeout. (TIMOB-27074)
|
@cb1kenobi , i can still reproduce the issue with the following steps:
|
@janvennemann OK, I walked through things with @ewanharris and @vijaysingh-axway and came up with a totally rad solution. Give it a spin. |
@cb1kenobi hmm, if i understand correctly this will still fail the build, just because the app is backgrounded? This seems like an unnecessary inconvenience to me. As a user i don't want to manually bring back the app to foreground or kill it just so i can start a build. Is there any chance we could improve this behavior on the simulator? Like alternating the ports between builds slightly so the running app in the background does not block the entire build? Or sending a proper quit message before exiting from our CLI that will make the app stop listening if no other connections are open? |
@janvennemann Just chatted with @ewanharris and talked about the tradeoffs that were made with the way things are today. I proposed that we revisit these tradeoffs in the next architecture meeting and come to a consensus how best to handle this going forward. |
…vailable port. TIMOB-27074
@janvennemann OK, I've updated the code to pick a random port if the deterministic port is unavailable. Please give it a spin! |
This works fine, we're using it in our fork already. Hope this can be merged on master soon! |
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
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.
FR Passed Rebuilding the app with simulator no longer fails due to log port being occupied.
Tested with the following steps:
- Build and launch app on Simulator
- Put the app in the background
- Rebuild and see the error happening
- Bring the app to foreground, do another rebuild and everything works again
Test Environment
MacOS Mojave version 10.14.4
Xcode 10.2.1
Node.js ^8.12.0
iPhone 6s Sim(12.1).
"NPM":"4.2.14-3","CLI":"7.0.10"
I cloned this branch, fixed the ESLint issues, rebase down to single commit that matched our conventions and merged it to master. |
fix(ios): Fixed bug where the log server was being started when the iOS app was quitting instead of stopping it.
fix(ios): Changed the log server port test to use 127.0.0.1 instead of localhost to avoid bad dns lookup.
fix(ios): Fixed log server port test timeout to properly handle the timeout. (TIMOB-27074)
JIRA: https://jira.appcelerator.org/browse/TIMOB-27074