Bug 31838 - [XVS] No feedback or error for system time discrepancy between build host and VS systems
Summary: [XVS] No feedback or error for system time discrepancy between build host and...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.11 (C5)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.0.0 (C6)
Assignee: Ben Beckley
URL:
Depends on:
Blocks:
 
Reported: 2015-07-10 15:47 UTC by Ben Beckley
Modified: 2015-08-25 17:04 UTC (History)
5 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:
RESOLVED NOT_REPRODUCIBLE

Description Ben Beckley 2015-07-10 15:47:29 UTC
When the time between the build host and the Windows systems are not close enough, cleaning and building fails. The issue is that there is not reliable feedback to let the user know that this is the issue. I was stuck on this for quite a while (would have given up if I were a user) before seeing an error that said something about system time when closing VS. It was only up for a moment, but it did give me the idea to check the time synchronization. So, there may be a an error in place already, but it does not always manifest itself. This can be seen in the following screencast:

http://www.screencast.com/users/benbeckley/folders/Jing/media/79f7e06d-7ea4-4d23-b735-c44e94e2f70d

Reproduction Steps:
1) Connect to BH with VS instance
2) Start up an iOS project
3) Desync the Windows system time from the BH time by at least 5 minutes
4) Clean or build the iOS project
5) Observe that it fails without feedback as to why

System Information:
BH 3.11.0.667
XI 8.10.3.2
XVS 3.11.666.0
Comment 1 Ben Beckley 2015-07-14 13:46:30 UTC
As an update, I have found that there is an error message in c4 XVS stable 4.20.2.1 (20fd2f0). 

> Error	2	The clocks on the Build Host and this Machine are out of Sync. Please make sure they are within 3 minutes (UTC) of each other.

This is not present in the build that I had tested in the original description.

System Information:
BH 3.9.0.547
XI 8.9.1.3
XVS 3.9.547.0
XI 8.9.1.0
Comment 2 Mohit Kheterpal 2015-08-05 11:49:33 UTC
I have checked this issue with the C5SR3 latest build of XVS 3.11.852 and XI 8.10.4.46 and observed that when there is discrepancy in between the time then in VS it gives error : 

Error 1 The clocks on the Build Host and this Machine are out of Sync. Please make sure they are within 3 minutes (UTC) of each other.  0 0


Screencast : http://screencast.com/t/0i4KuoST

Could you please check with latest build of C5SR3? Its working fine for me.

Thanks
Comment 3 Ben Beckley 2015-08-17 16:41:19 UTC
I have found that there is an error when opening a project before pairing with the build host. But, after fully connecting to a build host, there is no error when failing to compile if there is a time discrepancy. Resolving the time discrepancy will result in a successful build.

Reproduction Steps:
1) Pair with a build host so that it is remembered by VS
2) Unpair and close VS
3) Create a time discrepancy between the Mac and Windows machines that is greater than 3 minutes
4) Launch a blank app in VS. Ensure that VS and BH are in an unpaired state.
5) Observe the error:
>Error 1 The clocks on the Build Host and this Machine are out of Sync. Please
make sure they are within 3 minutes (UTC) of each other.
6) Pair VS with the BH
7) Attempt to build the project
8) Observe that there is no build error when the project fails
Expected behavior: There is a build error similar to the one in step 5
Actual behavior:  There is no build error

Extra Steps:
9) Resolve the time discrepancy by syncing the system clocks
10) Build the project and observe a successful build


Screencast (the empty error list can be seen at the end): http://screencast.com/t/lrX0K8Hm

Environment:
VS 14.0.23103
XVS 3.11.877

XI 8.10.4.57
BH 3.11.878
Comment 5 Enzo Heredia 2015-08-25 12:46:54 UTC
can't reproduce in 4.0.0.1008, please verify
Comment 6 Ben Beckley 2015-08-25 17:04:28 UTC
I am unable to reproduce this in 4.0.0.1008 as well. Set the host's clock ahead
by two hours and the project still successfully built.

XMA: 4.0.0.1008
XI: 8.13.0.122