Bug 12142 - When build server becomes unavailable, subsequent build attempts should reprompt user to connect
Summary: When build server becomes unavailable, subsequent build attempts should repro...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.1.x
Hardware: PC Mac OS
: High major
Target Milestone: 1.2.x
Assignee: Vinicius Jarina
URL:
Depends on:
Blocks:
 
Reported: 2013-05-07 16:31 UTC by PJ
Modified: 2013-06-18 04:41 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description PJ 2013-05-07 16:31:33 UTC
When a build server goes offline, the user should know about it as soon as they try to do something else that requires a build host.

There was a previous bug where the user would be told about the timeout in a very bad way (a long time after it was relevant, for instance). That was bug 9862. Now they see nothing at all.

Instead, we should provide the user with the appropriate action for the state they are in: Choose a new build host!



Steps to reproduce:

1. Connect MTVS to a build host
2. Make the build host unavailable on the network
3. Start a build from MTVS

Expected behavior:
User should be re-prompted to connect to a build host

Actual behavior:
IDE shifts to debug mode for a split second, and then returns you to the source you were looking at.
Exception in the Mac Server Log: https://gist.github.com/pjbeaman/298a10f71b62fc5675e1

So it does seem like it's trying to open the connection wizard, but we get the "Failed to show connection wizard" warning and the invalid operation exception.


Filed against:
iOS for VS 1.1.201
VS2010
Win7x64
Comment 1 Eric Maupin 2013-05-08 10:15:17 UTC
The intention and steps here do not match. The intention is to prompt to connect when you need a host, but just starting a build does not require one. Deploying to the sim or device is what should trigger the reconnection.
Comment 2 PJ 2013-05-08 10:47:46 UTC
Yes indeed, I mean initiating the build + run actions. (Or just the run actions). Thank you.
Comment 3 Vinicius Jarina 2013-05-09 15:25:40 UTC
is not working PJ?

What is happening when you press Start ?
Comment 4 PJ 2013-05-09 15:42:00 UTC
Heyo Jarina,

That's the 'actual' behavior from the description:

Actual behavior:
IDE shifts to debug mode for a split second, and then returns you to the source
you were looking at.
Exception in the Mac Server Log:
https://gist.github.com/pjbeaman/298a10f71b62fc5675e1

Exception is fairly clear that it's not showing the connection dialog.

It's possible this is fixed in master, I filed against 1.1.201. Is it working for you?
Comment 5 Vinicius Jarina 2013-05-09 16:04:35 UTC
PJ is working fine on master. this is  1.1.268 from wrench 
http://screencast.com/t/QRqr11j9gwwD
Comment 6 Marek Habersack 2013-06-04 11:12:03 UTC
Please retest with the latest builds from master
Comment 7 narayanp 2013-06-18 04:41:09 UTC
Today we have checked this issue with following builds:

VS 2012/2010
MTVS 1.2.121


And we observed that when VS is connected to build host server and build host server gets unreachable and we click on Start button or Refresh button, 'Connect to Xamarin.iOS Build host window popup appears to connect with another build host. This is the screencast for the same: http://screencast.com/t/QauOwIrWX

Changing the status to Verified