Build failed in Jenkins: cubicweb-skos » py27 #42

jenkins.logilab.org noreply at logilab.org
Mon Jan 8 11:24:39 CET 2018


See <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/42/display/redirect?page=changes>

Changes:

[Denis Laxalde <denis.laxalde at logilab.fr>] Require a pre-existing concept scheme for LCSV command line import

Instead of creating a dummy concept scheme from the file name, we now
require a pre-existing concept scheme's URI to be passed as a --scheme
argument when running an LCSV import from the command line. This matches
with the web UI behavior and makes it easier to integrate downstream
with cubicweb-saem_ref as this application has a custom handling of ARK
identifier which we could assign to the concept scheme previously
created during import.

Closes Extranet #44146518.

------------------------------------------
Started by upstream project "cubicweb-skos" build number 42
originally caused by:
 Started by an SCM change
Building on master in workspace <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/>
[cubicweb-skos] $ hg showconfig paths.default
[cubicweb-skos] $ hg pull --rev 76893dd41791401cc021b420c04d184f0bc40406
pulling from http://hg.logilab.org/review/cubes/skos
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
(run 'hg update' to get a working copy)
[cubicweb-skos] $ hg update --clean --rev 76893dd41791401cc021b420c04d184f0bc40406
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
[cubicweb-skos] $ hg --config extensions.purge= clean --all
[cubicweb-skos] $ hg log --rev . --template {node}
[cubicweb-skos] $ hg log --rev . --template {rev}
[cubicweb-skos] $ hg log --rev 1c0ace9c7328e9e7386f4560ba9c74cb24d754ef --template exists\n
exists
[cubicweb-skos] $ hg log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev "ancestors('76893dd41791401cc021b420c04d184f0bc40406') and not ancestors(1c0ace9c7328e9e7386f4560ba9c74cb24d754ef)" --encoding UTF-8 --encodingmode replace
[cubicweb-master] $ hg showconfig paths.default
[cubicweb-master] $ hg pull --rev cd760c411242c6c01d8ed2376d1cf0b8275e6af9
pulling from http://hg.logilab.org/master/cubicweb
no changes found
[cubicweb-master] $ hg update --clean --rev cd760c411242c6c01d8ed2376d1cf0b8275e6af9
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
[cubicweb-master] $ hg --config extensions.purge= clean --all
[cubicweb-master] $ hg log --rev . --template {node}
[cubicweb-master] $ hg log --rev . --template {rev}
[py27] $ /bin/sh -xe /tmp/jenkins6257202641791982028.sh
+ + xargs -0 rm -rf
find . ( -name pgdb* -o -name tmpdb* ) -print0
[py27] $ /bin/sh -xe /tmp/jenkins7374593759116901481.sh
+ cd cubicweb-skos
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games tox --recreate
GLOB sdist-make: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27>
py27 installdeps: -rtest-requirements.txt, pytest
py27 inst: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/dist/cubicweb-skos-1.2.0.zip>
py27 installed: attrs==17.4.0,backports-abc==0.5,bzr-etckeeper==0.0.0,cffi==1.9.1,chardet==2.3.0,contextlib2==0.5.4,croniter==0.3.12,cryptography==1.7.1,cubicweb==3.25.3,cubicweb-bootstrap==1.3.0,cubicweb-relationwidget==0.4.1,cubicweb-skos==1.2.0,cwclientlib==0.4.1,cwtags==1.1.0,enum34==1.1.6,funcsigs==1.0.2,futures==3.0.5,hg-evolve==6.6.0,html2text==2017.10.4,httplib2==0.9.2,idna==2.2,ipaddress==1.0.17,isodate==0.6.0,Jinja2==2.9.4,keyring==10.1,keyrings.alt==1.3,linecache2==1.0.0,logilab-common==1.4.1,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==4.1.1,Markdown==2.6.11,MarkupSafe==0.23,mercurial==4.3.1,msgpack-python==0.4.8,mysqlclient==1.3.7,ndg-httpsclient==0.4.2,passlib==1.7.1,pluggy==0.6.0,ply==3.9,psutil==5.0.1,psycopg2==2.7.3.2,py==1.5.2,pyasn1==0.1.9,pycparser==2.17,pycrypto==2.6.1,pycurl==7.43.0,Pygments==2.2.0,pygobject==3.22.0,pyOpenSSL==16.2.0,pyparsing==2.2.0,pytest==3.3.2,python-apt==1.4.0b3,python-dateutil==2.5.3,python-debian==0.1.30,python-debianbts==2.6.1,pytz==2016.7,pyxdg==0.25,PyYAML==3.12,pyzmq==16.0.2,raven==6.1.0,rdflib==4.2.2,reportbug==6.6.3,requests==2.12.4,rql==0.34.2,salt==2016.11.8,SecretStorage==2.3.1,singledispatch==3.4.0.3,six==1.10.0,systemd-python==233,tornado==4.4.3,tox==2.5.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.19.1,virtualenv==15.1.0,yams==0.45.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='2712040071'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/test>
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos,> inifile: tox.ini
collected 74 items

test/test_ccplugin.py ..Fss                                              [  6%]
test/unittest_entities.py ..............ssss.....                        [ 37%]
test/unittest_hooks.py ....                                              [ 43%]
test/unittest_lcsv.py ....                                               [ 48%]
test/unittest_rdfio.py ..............ssss.s.                             [ 77%]
test/unittest_schema.py ......                                           [ 85%]
test/unittest_sobjects.py ......                                         [ 93%]
test/unittest_views.py .....                                             [100%]

=================================== FAILURES ===================================
_____________________ ImportSkosDataCommandTC.test_massive _____________________
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:418: in setUp
    self._init_repo()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:348: in _init_repo
    db_handler.restore_database(self.test_db_id)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:356: in restore_database
    self._restore_database(backup_coordinates, config)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:708: in _restore_database
    self._drop(self.system_source['db-name'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cubicweb.devtools.PostgresTestDataBaseHandler object at 0x7f7e266acb10>
db_name = 'tmpdb1362'

    def _drop(self, db_name):
        if db_name in self.helper.list_databases(self.cursor):
>           self.cursor.execute('DROP DATABASE %s' % db_name)
E           OperationalError: database "tmpdb1362" is being accessed by other users
E           DETAIL:  There are 4 other sessions using the database.

.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:676: OperationalError
----------------------------- Captured stdout call -----------------------------
ERROR:  database "tmpdb1362" is being accessed by other users
DETAIL:  There are 4 other sessions using the database.
STATEMENT:  DROP DATABASE tmpdb1362
=============================== warnings summary ===============================
test/unittest_schema.py::SKOSSchemaTC::test_in_scheme_permissions_source
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/sobjects.py>:262: DeprecationWarning: [3.23] this class is deprecated, use MetadataGenerator instead
    metagenerator = dataimport.MetaGenerator(cnx, source=source)

test/unittest_sobjects.py::SKOSXMLImportTC::test_datafeed_source
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'cwuri')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'q')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/post321_import.py>:76: DeprecationWarning: [3.24] use entity_type(eid) instead
    if extentity.etype == 'Concept' and cnx.entity_metas(eid)['type'] == 'ExternalUri':
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/sobjects.py>:48: DeprecationWarning: [3.24] use entity_type(eid) instead
    etype = cnx.entity_metas(eid)['type']

test/unittest_views.py::ViewsTC::test_lcsv_scheme_concepts_import
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'definition')
    DeprecationWarning)

test/unittest_views.py::RelationWidgetTC::test_linkable_rset
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'name')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'lang')
    DeprecationWarning)

-- Docs: http://doc.pytest.org/en/latest/warnings.html
========= 1 failed, 62 passed, 11 skipped, 8 warnings in 71.74 seconds =========
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/test'>
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Build step 'Execute shell' marked build as failure



More information about the saem-devel mailing list