Based on your information, you are considered as a dual status in the year of 2017. You will be considered as a nonresident from January to April 29 reporting only US source income on a Form 1040-NR and a resident from April 30 to December reporting worldwide income on a Form 1040. ( see Substantial Presence Test SPT) You are not required to report your foreign income on either a Form 1040-NR or Form 1040.
To file as a dual status, please see detailed information DualStatus under What and Where To File for a Dual-Status Year
You won't be able to e-file, but can use TurboTax to prepare your residency portion, print and submit by mail based on the above instructions. For your nonresidency portion, as TurboTax does not support any nonresident tax forms, you are advised to contact Sprintax which is affiliated with TurboTax to help international students and nonresident aliens with their US tax returns.