taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Jul20 manual tests - Windows10 py3qt5 #1134

Closed cpascual closed 3 years ago

cpascual commented 3 years ago

This issue is created for reporting the results of manual tests for Jul20 release on debian10 with dependencies installed via conda.

Using a fresh Windows10 machine provisioned with vagrant, using the following Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  config.vm.box = "chingc/win10"
  config.vm.box_version = "10.20171019.2"
  config.vm.guest = :windows
  config.vm.communicator = :winrm
  config.winrm.username = "IEUser"
  config.winrm.password = "Passw0rd!"
  config.winrm.timeout = 180

  config.ssh.username = "IEUser"
  config.ssh.password = "Passw0rd!"
  config.ssh.extra_args = "powershell"

  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.gui = true
    # Customize the amount of memory on the VM
    vb.memory = "2048"
    # Give easy name (without timestamp) for the VM
    vb.name = "taurus-vagrant"
  end

  config.vm.provision "shell", inline: <<-SHELL
      # Install SSL as a workaround for conda bug https://github.com/conda/conda/issues/6064
      echo "Installing SSL 1.1.1c"
      # if the following fails, it means they updated 1.1.1c to another version. Check which
      # one is available at https://slproweb.com/products/Win32OpenSSL.html
      wget "https://slproweb.com/download/Win64OpenSSL-1_1_1c.msi" -OutFile "$env:TMP\SSL.msi"
      msiexec /quiet /i "$env:TMP\SSL.msi"
      echo "Downloading conda"
      $condainstallerurl = "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
      $condainstaller = "$env:TMP\\Miniconda3-latest-Windows-x86_64.exe"
      wget $condainstallerurl -OutFile $condainstaller
      echo "Installing conda"
      $condainstallerargs  = "/InstallationType=AllUsers /RegisterPython=1 /S /D=C:\\Miniconda"
      # $condainstaller = "C:\\vagrant\\Miniconda3-latest-Windows-x86_64.exe"
      Start-Process $condainstaller $condainstallerargs -Wait
      $env:PATH += ";C:\\Miniconda\\Scripts"
      echo "END OF PROVISION"
  SHELL
end

... and then creating the environment with conda (using the anaconda prompt):

conda config --add channels conda-forge
conda config --add channels tango-controls
conda create -n py3qt5 python=3 pyqt=5 pytango lxml future guidata guiqwt ipython pillow pint ply pyqtgraph pythonqwt numpy scipy pymca click
conda activate py3qt5
pip install https://ci.appveyor.com/api/buildjobs/d5hd5yhe1wtmhecy/artifacts/dist%2Ftaurus-4.7.0a0.tar.gz
pip install taurus_pyqtgraph
cpascual commented 3 years ago

Installation

For tips on how to prepare an environment for installation, see http://taurus-scada.org/users/getting_started.html


General Issues

Tango event issue

- there is some problem with the polling/tango events. when a client connects to a tango attribute I do not see I start getting "Timeout Error... activating polling" messages every 10s:

(py3qt5) C:\Users\IEUser>taurus form sys/tg_test/1/double_scalar
Dummy-1        INFO     2020-08-03 11:22:01,274 192.168.1.16:10000.sys/tg_test/1.double_scalar: Activating polling. Reason: API_EventTimeout
Dummy-1        INFO     2020-08-03 11:22:11,321 192.168.1.16:10000.sys/tg_test
(...) And so on... repeated every 10s until I close the client

Update: The event issue is now fixed: the problem was with a mismatch in the definition of the TANGO_HOST between the windows machine (in which I had used an IP-based TANGO_HOST) and the machine running the TangoTest (which used name within alba's domain). TIP: in order to "fool" the windows machine into properly resolving the TANGO_HOST name (pt168.cells.es:1000) (while being run on a virtualbox in a laptop outside ALBA's network), I edited the hosts file in the windows machine

Python crash on exit

Independently of the above, we consistently see the already known problem of Tango crashing when disconnecting. Note that this may be already fixed in cpptango >=9.3.4, but it is not yet available in conda for windows

cpascual commented 3 years ago

taurus demo

cpascual commented 3 years ago

taurus image

taurus trend2d

cpascual commented 3 years ago

taurus designer

taurus device

taurus panel

taurus form

(basically try all features described in the user's guide

cpascual commented 3 years ago

taurus gui

(basically try all features described in the user's guide

cpascual commented 3 years ago

taurus config

taurus icons catalog

cpascual commented 3 years ago

taurus_pyqtgraph plot (needs taurus_pyqtgraph installed)

taurus_pyqtgraph trend (needs taurus_pyqtgraph installed)

cpascual commented 3 years ago

Done. A few non-RC bugs were found (reported in the issue tracker). The most serious of them is #709 (crashes of tango during exit). While this is certainly annoying , it does not seem to affect the GUIs while running.