Re: Build failed in Jenkins: pgadmin4-master-python26 #510 - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Build failed in Jenkins: pgadmin4-master-python26 #510
Date
Msg-id CA+OCxowxJFgYbaAz89Q0CSRRMezGcqVQFqFBs120rO1=7we16w@mail.gmail.com
Whole thread Raw
In response to Re: Build failed in Jenkins: pgadmin4-master-python26 #510  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
List pgadmin-hackers
Thanks, applied.

On Mon, Nov 20, 2017 at 4:41 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi Dave,

PFA patch to fix the issue.

We will use the newer of selenium only if python 2.7 or greater else use the older version.
Please note that older version of selenium & web driver will not work with latest versions (>= Chrome 61.x) 

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


On Thu, Nov 16, 2017 at 8:47 PM, pgAdmin 4 Jenkins <jenkins@pgadmin.org> wrote:
See <https://jenkins.pgadmin.org/job/pgadmin4-master-python26/510/display/redirect?page=changes>

Changes:

[Dave Page] Update selenium version

------------------------------------------
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building in workspace <https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/>
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git://git.postgresql.org/git/pgadmin4.git # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Fetching upstream changes from git://git.postgresql.org/git/pgadmin4.git
 > git --version # timeout=10
 > git fetch --tags --progress git://git.postgresql.org/git/pgadmin4.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 2f17ecba760dcb210b6bf70b259860dd569a7888 (origin/master)
Commit message: "Update selenium version"
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 2f17ecba760dcb210b6bf70b259860dd569a7888
 > git rev-list 051788d040049682cbde78c4bb5343f92b4eb5a2 # timeout=10
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
PYTHON_VERSION=2.6

[EnvInject] - Variables injected successfully.
[pgadmin4-master-python26] $ /bin/sh -xe /tmp/jenkins8163038226280116557.sh
+ <https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/ci/ci_runner.sh>
EXECUTING: Create pgAdmin config

EXECUTING: Python tests

Creating Python 2.6 virtual environment...

New python executable in <https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/bin/python>
Installing setuptools, pip...done.
Running virtualenv with interpreter /usr/local/python-2.6/bin/python
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting wheel==0.29.0
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached wheel-0.29.0-py2.py3-none-any.whl
Collecting argparse; python_version == "2.6" (from wheel==0.29.0)
  Using cached argparse-1.4.0-py2.py3-none-any.whl
Installing collected packages: argparse, wheel
Successfully installed argparse-1.4.0 wheel-0.29.0
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Ignoring Flask-HTMLmin: markers 'python_version >= "2.7"' don't match your environment
Collecting Babel==2.3.4 (from -r requirements.txt (line 4))
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached Babel-2.3.4-py2.py3-none-any.whl
Collecting beautifulsoup4==4.4.1 (from -r requirements.txt (line 5))
  Using cached beautifulsoup4-4.4.1-py2-none-any.whl
Collecting blinker==1.3 (from -r requirements.txt (line 6))
Collecting click==6.6 (from -r requirements.txt (line 7))
  Using cached click-6.6-py2.py3-none-any.whl
Collecting extras==0.0.3 (from -r requirements.txt (line 8))
Collecting fixtures==2.0.0 (from -r requirements.txt (line 9))
  Using cached fixtures-2.0.0-py2.py3-none-any.whl
Collecting Flask==0.11.1 (from -r requirements.txt (line 10))
  Using cached Flask-0.11.1-py2.py3-none-any.whl
Collecting Flask-Babel==0.11.1 (from -r requirements.txt (line 11))
Collecting Flask-Gravatar==0.4.2 (from -r requirements.txt (line 12))
  Using cached Flask_Gravatar-0.4.2-py2.py3-none-any.whl
Collecting Flask-Login==0.3.2 (from -r requirements.txt (line 14))
Collecting Flask-Mail==0.9.1 (from -r requirements.txt (line 15))
Collecting Flask-Migrate==2.0.3 (from -r requirements.txt (line 16))
Collecting Flask-Principal==0.4.0 (from -r requirements.txt (line 17))
Collecting Flask-Security==1.7.5 (from -r requirements.txt (line 18))
Collecting Flask-SQLAlchemy==2.1 (from -r requirements.txt (line 19))
Collecting Flask-WTF==0.12 (from -r requirements.txt (line 20))
  Using cached Flask_WTF-0.12-py2-none-any.whl
Collecting html5lib==1.0b3 (from -r requirements.txt (line 21))
Collecting importlib==1.0.3 (from -r requirements.txt (line 22))
Collecting itsdangerous==0.24 (from -r requirements.txt (line 23))
Collecting Jinja2==2.7.3 (from -r requirements.txt (line 24))
Collecting linecache2==1.0.0 (from -r requirements.txt (line 25))
  Using cached linecache2-1.0.0-py2.py3-none-any.whl
Collecting MarkupSafe==0.23 (from -r requirements.txt (line 26))
Collecting ordereddict (from -r requirements.txt (line 27))
Collecting passlib==1.6.2 (from -r requirements.txt (line 28))
Collecting pbr==1.9.1 (from -r requirements.txt (line 29))
  Using cached pbr-1.9.1-py2.py3-none-any.whl
Collecting psycopg2>=2.7.3.2 (from -r requirements.txt (line 30))
  Using cached psycopg2-2.7.3.2-cp26-cp26m-manylinux1_x86_64.whl
Collecting pycrypto==2.6.1 (from -r requirements.txt (line 31))
Collecting pyrsistent==0.11.13 (from -r requirements.txt (line 32))
Collecting python-dateutil==2.5.0 (from -r requirements.txt (line 33))
  Using cached python_dateutil-2.5.0-py2.py3-none-any.whl
Collecting python-mimeparse==1.5.1 (from -r requirements.txt (line 34))
Collecting pytz==2014.10 (from -r requirements.txt (line 35))
  Using cached pytz-2014.10-py2.py3-none-any.whl
Collecting simplejson==3.6.5 (from -r requirements.txt (line 36))
Collecting six>=1.9.0 (from -r requirements.txt (line 37))
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting speaklater==1.3 (from -r requirements.txt (line 38))
Collecting SQLAlchemy==1.0.14 (from -r requirements.txt (line 39))
Collecting sqlparse==0.1.19 (from -r requirements.txt (line 40))
Collecting Werkzeug==0.9.6 (from -r requirements.txt (line 41))
Collecting WTForms==2.0.2 (from -r requirements.txt (line 42))
  Using cached WTForms-2.0.2-py2.py3-none-any.whl
Collecting backports.csv==1.0.4 (from -r requirements.txt (line 43))
  Using cached backports.csv-1.0.4-py2.py3-none-any.whl
Collecting Flask-Paranoid==0.1.0 (from -r requirements.txt (line 44))
Collecting Flask-Script==2.0.5 (from -r requirements.txt (line 45))
Collecting testtools>=0.9.22 (from fixtures==2.0.0->-r requirements.txt (line 9))
  Using cached testtools-2.3.0-py2.py3-none-any.whl
Collecting alembic>=0.6 (from Flask-Migrate==2.0.3->-r requirements.txt (line 16))
Collecting unittest2>=1.0.0 (from testtools>=0.9.22->fixtures==2.0.0->-r requirements.txt (line 9))
  Using cached unittest2-1.1.0-py2.py3-none-any.whl
Collecting traceback2 (from testtools>=0.9.22->fixtures==2.0.0->-r requirements.txt (line 9))
  Using cached traceback2-1.4.0-py2.py3-none-any.whl
Collecting Mako (from alembic>=0.6->Flask-Migrate==2.0.3->-r requirements.txt (line 16))
Collecting python-editor>=0.3 (from alembic>=0.6->Flask-Migrate==2.0.3->-r requirements.txt (line 16))
Requirement already satisfied: argparse in ./pgadmin-venv/lib/python2.6/site-packages (from unittest2>=1.0.0->testtools>=0.9.22->fixtures==2.0.0->-r requirements.txt (line 9))
Installing collected packages: pytz, Babel, beautifulsoup4, blinker, click, extras, six, python-mimeparse, linecache2, traceback2, unittest2, pbr, testtools, fixtures, MarkupSafe, Jinja2, Werkzeug, itsdangerous, Flask, Flask-Babel, Flask-Gravatar, Flask-Login, Flask-Mail, Flask-Script, python-dateutil, SQLAlchemy, Mako, python-editor, alembic, Flask-SQLAlchemy, Flask-Migrate, Flask-Principal, passlib, ordereddict, WTForms, Flask-WTF, Flask-Security, html5lib, importlib, psycopg2, pycrypto, pyrsistent, simplejson, speaklater, sqlparse, backports.csv, Flask-Paranoid
Successfully installed Babel-2.3.4 Flask-0.11.1 Flask-Babel-0.11.1 Flask-Gravatar-0.4.2 Flask-Login-0.3.2 Flask-Mail-0.9.1 Flask-Migrate-2.0.3 Flask-Paranoid-0.1.0 Flask-Principal-0.4.0 Flask-SQLAlchemy-2.1 Flask-Script-2.0.5 Flask-Security-1.7.5 Flask-WTF-0.12 Jinja2-2.7.3 Mako-1.0.7 MarkupSafe-0.23 SQLAlchemy-1.0.14 WTForms-2.0.2 Werkzeug-0.9.6 alembic-0.9.6 backports.csv-1.0.4 beautifulsoup4-4.4.1 blinker-1.3 click-6.6 extras-0.0.3 fixtures-2.0.0 html5lib-1.0b3 importlib-1.0.3 itsdangerous-0.24 linecache2-1.0.0 ordereddict-1.1 passlib-1.6.2 pbr-1.9.1 psycopg2-2.7.3.2 pycrypto-2.6.1 pyrsistent-0.11.13 python-dateutil-2.5.0 python-editor-1.0.3 python-mimeparse-1.5.1 pytz-2014.10 simplejson-3.6.5 six-1.11.0 speaklater-1.3 sqlparse-0.1.19 testtools-2.3.0 traceback2-1.4.0 unittest2-1.1.0
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/req/req_file.py>:150: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options, opts)
Collecting pyperclip~=1.5.27 (from -r web/regression/requirements.txt (line 1))
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py>:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached pyperclip-1.5.32.tar.gz
Collecting selenium==3.7.0 (from -r web/regression/requirements.txt (line 2))
  Using cached selenium-3.7.0.tar.gz
Collecting testscenarios==0.5.0 (from -r web/regression/requirements.txt (line 3))
  Using cached testscenarios-0.5.0.tar.gz
Collecting testtools==2.0.0 (from -r web/regression/requirements.txt (line 4))
  Using cached testtools-2.0.0.tar.gz
Requirement already satisfied: traceback2==1.4.0 in ./pgadmin-venv/lib/python2.6/site-packages (from -r web/regression/requirements.txt (line 5))
Requirement already satisfied: unittest2==1.1.0 in ./pgadmin-venv/lib/python2.6/site-packages (from -r web/regression/requirements.txt (line 6))
Collecting mock===2.0.0 (from -r web/regression/requirements.txt (line 7))
  Using cached mock-2.0.0.tar.gz
Collecting chromedriver_installer==0.0.6 (from -r web/regression/requirements.txt (line 10))
  Using cached chromedriver_installer-0.0.6.tar.gz
Requirement already satisfied: pbr>=0.11 in ./pgadmin-venv/lib/python2.6/site-packages (from testscenarios==0.5.0->-r web/regression/requirements.txt (line 3))
Requirement already satisfied: extras in ./pgadmin-venv/lib/python2.6/site-packages (from testtools==2.0.0->-r web/regression/requirements.txt (line 4))
Requirement already satisfied: fixtures>=1.3.0 in ./pgadmin-venv/lib/python2.6/site-packages (from testtools==2.0.0->-r web/regression/requirements.txt (line 4))
Requirement already satisfied: pyrsistent in ./pgadmin-venv/lib/python2.6/site-packages (from testtools==2.0.0->-r web/regression/requirements.txt (line 4))
Requirement already satisfied: python-mimeparse in ./pgadmin-venv/lib/python2.6/site-packages (from testtools==2.0.0->-r web/regression/requirements.txt (line 4))
Requirement already satisfied: linecache2 in ./pgadmin-venv/lib/python2.6/site-packages (from traceback2==1.4.0->-r web/regression/requirements.txt (line 5))
Requirement already satisfied: six>=1.4 in ./pgadmin-venv/lib/python2.6/site-packages (from unittest2==1.1.0->-r web/regression/requirements.txt (line 6))
Requirement already satisfied: argparse in ./pgadmin-venv/lib/python2.6/site-packages (from unittest2==1.1.0->-r web/regression/requirements.txt (line 6))
Collecting funcsigs>=1 (from mock===2.0.0->-r web/regression/requirements.txt (line 7))
  Using cached funcsigs-1.0.2.tar.gz
Requirement already satisfied: ordereddict in ./pgadmin-venv/lib/python2.6/site-packages (from funcsigs>=1->mock===2.0.0->-r web/regression/requirements.txt (line 7))
Skipping bdist_wheel for pyperclip, due to binaries being disabled for it.
Skipping bdist_wheel for selenium, due to binaries being disabled for it.
Skipping bdist_wheel for testscenarios, due to binaries being disabled for it.
Skipping bdist_wheel for testtools, due to binaries being disabled for it.
Skipping bdist_wheel for mock, due to binaries being disabled for it.
Skipping bdist_wheel for chromedriver-installer, due to binaries being disabled for it.
Skipping bdist_wheel for funcsigs, due to binaries being disabled for it.
Installing collected packages: pyperclip, selenium, testtools, testscenarios, funcsigs, mock, chromedriver-installer
  Running setup.py install for pyperclip: started
    Running setup.py install for pyperclip: finished with status 'done'
  Running setup.py install for selenium: started
    Running setup.py install for selenium: finished with status 'done'
  Found existing installation: testtools 2.3.0
    Uninstalling testtools-2.3.0:
      Successfully uninstalled testtools-2.3.0
  Running setup.py install for testtools: started
    Running setup.py install for testtools: finished with status 'done'
  Running setup.py install for testscenarios: started
    Running setup.py install for testscenarios: finished with status 'done'
  Running setup.py install for funcsigs: started
    Running setup.py install for funcsigs: finished with status 'done'
  Running setup.py install for mock: started
    Running setup.py install for mock: finished with status 'done'
  Running setup.py install for chromedriver-installer: started
    Running setup.py install for chromedriver-installer: finished with status 'done'
Successfully installed chromedriver-installer-0.0.6 funcsigs-1.0.2 mock-2.0.0 pyperclip-1.5.32 selenium-3.7.0 testscenarios-0.5.0 testtools-2.0.0
Running regression tests...

Traceback (most recent call last):
  File "<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/web/regression/runtests.py",> line 23, in <module>
    from selenium import webdriver
  File "<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/selenium/webdriver/__init__.py",> line 18, in <module>
    from .firefox.webdriver import WebDriver as Firefox  # noqa
  File "<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/selenium/webdriver/firefox/webdriver.py",> line 34, in <module>
    from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
  File "<https://jenkins.pgadmin.org/job/pgadmin4-master-python26/ws/pgadmin-venv/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py",> line 991
    return {k: size[k] for k in ('width', 'height')}
                         ^
SyntaxError: invalid syntax
ERROR: Error detected when running the Python tests.
ERROR: Error detected when running the Python tests.
Build step 'Execute shell' marked build as failure





--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Stop Python 2.6 barfing on newer versions ofSelenium
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Fix /NOICONS switch in the windows installer. Fixes#