[runtime] Add support for passing on a connect timeout to sdb.#18037
Conversation
The timeout can be given: * By setting the __XAMARIN_DEBUG_CONNECT_TIMEOUT__ environment variable for the app when launching it. * By passing the XamarinDebugConnectTimeout MSBuild property to 'dotnet run' or 'dotnet build /t:Run'. * By setting the IOSDebugConnectTimeout MSBuild property at build time. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1778177.
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)✅ Generator diffGenerator diff is empty Pipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻✅ All tests on macOS M1 - Mac Ventura (13.0) passed. Pipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11.5) passed. Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build] Test results 🚀Test results✅ All tests passed on VSTS: simulator tests. 🎉 All 225 tests passed 🎉 Tests counts✅ bcl: All 69 tests passed. [attempt 2] Html Report (VSDrops) Download Pipeline on Agent |
| sdb_timeout_time = strtol (evar, NULL, 10); | ||
| LOG (PRODUCT ": Found connect timeout %i in environment variables\n", sdb_timeout_time); | ||
| } | ||
| unsetenv ("__XAMARIN_DEBUG_CONNECT_TIMEOUT__"); |
There was a problem hiding this comment.
Maybe use a string constant for this. Out of curiosity, why are you removing the environment variable after you read it? What does that do/prevent?
There was a problem hiding this comment.
Out of curiosity, why are you removing the environment variable after you read it? What does that do/prevent?
We handle other environment variables that way in other places in this file.
This is rather old code, so my memory is a bit unclear, but in the past there were cases where we'd fork/exec ourselves, and then we wouldn't want some environment variables set anymore after the fork/exec dance.
|
/sudo backport release/7.0.2xx-xcode14.3 |
|
Backport Job to branch release/7.0.2xx-xcode14.3 Created! The magic is happening here |
|
Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7624414 for more details. |
…nnect timeout to sdb. (#18056) The timeout can be given: * By setting the __XAMARIN_DEBUG_CONNECT_TIMEOUT__ environment variable for the app when launching it. * By passing the XamarinDebugConnectTimeout MSBuild property to 'dotnet run' or 'dotnet build /t:Run'. * By setting the IOSDebugConnectTimeout MSBuild property at build time. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1778177. Backport of #18037
The timeout can be given:
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1778177.