mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Provisioning: Disable NTP synchronization for Windows
During CI, it has been observed that some processes didn't leave their
wait state. (So they were "hanging")
During analysis of the event log on that CI node, we found out that at the
same time those processes entered this state, the NTP client set a new time
and indeed the local time of the CI node changed (it was
changed 2 hours forward in our case).
For the record, the processes we observed this with was jom.exe and
cc1plus.exe (the latter is the g++ compiler in the mingw toolchain)).
We therefore have a strong suspicion that the NTP time change was causing
the CI hang, so we simply disable it.
The virtual machine should anyway get the correct time from its VM host
when its started.
Change-Id: I1204063399e2a4741b7b26b79858759c1bc5eab2
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
(cherry picked from commit 3653630d22)
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
committed by
Tony Sarajärvi
parent
d3faf2f0df
commit
bc2b175b72
2
coin/provisioning/common/disable-ntp.ps1
Normal file
2
coin/provisioning/common/disable-ntp.ps1
Normal file
@@ -0,0 +1,2 @@
|
||||
# Disable the NTP from syncing
|
||||
w32tm /config /syncfromflags:NO
|
||||
1
coin/provisioning/qtci-windows-10-x86/02-disable-ntp.ps1
Normal file
1
coin/provisioning/qtci-windows-10-x86/02-disable-ntp.ps1
Normal file
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
1
coin/provisioning/qtci-windows-7-x86/02-disable-ntp.ps1
Normal file
1
coin/provisioning/qtci-windows-7-x86/02-disable-ntp.ps1
Normal file
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
1
coin/provisioning/qtci-windows-8-x86/02-disable-ntp.ps1
Normal file
1
coin/provisioning/qtci-windows-8-x86/02-disable-ntp.ps1
Normal file
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
@@ -0,0 +1 @@
|
||||
. "$PSScriptRoot\..\common\disable-ntp.ps1"
|
||||
Reference in New Issue
Block a user