Build failed in Jenkins: cubicweb-eac » py27,debian_jessie #57

jenkins.logilab.org noreply at logilab.org
Fri Feb 24 17:00:01 CET 2017


https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/57/Changes:

[Philippe Pepiot <philippe.pepiot at logilab.fr>] [entities] allow control export of recordId and otherRecordId

This allow to control what will be written in <recordId> and <otherRecordId> by
inheriting AuthorityRecordEACAdapter.

Related to extranet #12572781

------------------------------------------
Started by upstream project "cubicweb-eac" build number 57
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-f051104f8ef2 (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/>
$ hg clone --rev 77a7695195fcac2e4636383b8477b8f290c94e72 --noupdate http://hg.logilab.org/review/cubes/eac <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/>
adding changesets
adding manifests
adding file changes
added 76 changesets with 219 changes to 67 files
[debian_jessie] $ hg update --rev 77a7695195fcac2e4636383b8477b8f290c94e72
51 files updated, 0 files merged, 0 files removed, 0 files unresolved
[debian_jessie] $ hg log --rev . --template {node}
[debian_jessie] $ hg log --rev . --template {rev}
[debian_jessie] $ hg log --rev 14f04db9621e25f9176d59f5af2340347376e15c --template exists\n
exists
[debian_jessie] $ 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('77a7695195fcac2e4636383b8477b8f290c94e72') and not ancestors(14f04db9621e25f9176d59f5af2340347376e15c)" --encoding UTF-8 --encodingmode replace
[debian_jessie] $ /bin/sh -xe /tmp/hudson5869414981200147957.sh
+ find test/data -name tmpdb* -delete
[debian_jessie] $ /bin/sh -xe /tmp/hudson2101346859962037520.sh
+ tox --recreate
GLOB sdist-make: <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/.tox/py27>
py27 installdeps: pytest, mock, docutils, http://hg.logilab.org/master/cubes/prov/archive/tip.tar.bz2#egg=cubicweb-prov
py27 inst: <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/.tox/dist/cubicweb-eac-0.3.0.zip>
py27 installed: appdirs==1.4.2,chardet==2.3.0,colorama==0.3.2,cubicweb==3.24.5,cubicweb-addressbook==1.9.1,cubicweb-eac==0.3.0,cubicweb-geocoding==0.2.1,cubicweb-prov==0.3.0,cubicweb-skos==1.1.0,decorator==3.4.0,docutils==0.13.1,funcsigs==1.0.2,GDAL==1.10.1,html2text==2016.9.19,html5lib==0.999,isodate==0.5.0,joblib==0.8.3,linecache2==1.0.0,logilab-common==1.3.0,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==3.4.0,Markdown==2.6.8,mercurial==3.9.1,mock==2.0.0,numpy==1.8.2,packaging==16.8,pandas==0.14.1,passlib==1.7.1,pbr==1.10.0,Pillow==2.6.1,pluggy==0.4.0,psycopg2==2.5.4,py==1.4.32,pykerberos==1.1.5,pyparsing==2.1.10,pytest==3.0.6,python-dateutil==2.2,pytz==2012rc0,rdflib==4.1.2,requests==2.4.3,requests-kerberos==0.5,rql==0.34.2,scikit-learn==0.14.1,scipy==0.14.0,six==1.10.0,tox==2.5.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.9.1,virtualenv==15.1.0,yams==0.44.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='2657934216'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/.tox/py27/bin/python> -m pytest test
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: <https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/,> inifile: 
collected 29 items

test/test_dataimport.py .....F....
test/test_entities.py ......
test/test_export.py FF
test/test_schema.py ...
test/test_views.py ........

=================================== FAILURES ===================================
____________________ EACDataImportTC.test_FRAD033_EAC_00001 ____________________

self = <test_dataimport.EACDataImportTC testMethod=test_FRAD033_EAC_00001>

    def test_FRAD033_EAC_00001(self):
        fpath = self.datapath('FRAD033_EAC_00001_simplified.xml')
        with self.admin_access.repo_cnx() as cnx:
            # create a skos concept to ensure it's used instead of a ExternalUri
            scheme = cnx.create_entity('ConceptScheme')
            scheme.add_concept(u'environnement',
                               cwuri=u'http://data.culture.fr/thesaurus/page/ark:/67717/T1-1074')
            cnx.commit()
            created, updated = testutils.eac_import(cnx, fpath)
            self.assertEqual(len(created), 39)
            self.assertEqual(updated, set())
            rset = cnx.find('AuthorityRecord', isni=u'22330001300016')
            self.assertEqual(len(rset), 1)
            record = rset.one()
            self.assertEqual(record.kind, 'authority')
            self.assertEqual(record.start_date, datetime.date(1800, 1, 1))
            self.assertEqual(record.end_date, datetime.date(2099, 1, 1))
>           self.assertEqual(record.other_record_ids, {None: '1234',
                                                       'letters': 'ABCD'})
E           AttributeError: 'AuthorityRecord' object has no attribute 'other_record_ids'

test/test_dataimport.py:474: AttributeError
----------------------------- Captured stdout call -----------------------------
-> creating tables  
-> inserting default user and default groups.
-> storing the schema in the database  
-> database for instance data initialized.
----------------------------- Captured stderr call -----------------------------
<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/utils.py>:69: DeprecationWarning: the method passlib.context.CryptContext.encrypt() is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, use CryptContext.hash() instead.
  return _CRYPTO_CTX.encrypt(passwd).encode('ascii')
___________________ EACExportFunctionalTests.test_roundtrip ____________________

self = <test_export.EACExportFunctionalTests testMethod=test_roundtrip>

    def test_roundtrip(self):
>       self._test('export-roundtrip.rst')

test/test_export.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_export.py:31: in _test
    failure_count, test_count, filename))
E   AssertionError: 3 failures of 6 in export-roundtrip.rst (check report)
----------------------------- Captured stdout call -----------------------------
**********************************************************************
File "<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/test/export-roundtrip.rst",> line 9, in export-roundtrip.rst
Failed example:
    generated_eac = record.cw_adapt_to('EAC-CPF').dump()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest export-roundtrip.rst[3]>", line 1, in <module>
        generated_eac = record.cw_adapt_to('EAC-CPF').dump()
      File "cubicweb_eac/entities.py", line 286, in dump
        self.control_element(eac_cpf_elt)
      File "cubicweb_eac/entities.py", line 307, in control_element
        for local_type, value in sorted(self.other_record_ids.items()):
      File "cubicweb_eac/entities.py", line 299, in other_record_ids
        return dict((orec.local_type, orec.value) for orec in self.reverse_eac_other_record_id_of)
    AttributeError: 'AuthorityRecordEACAdapter' object has no attribute 'reverse_eac_other_record_id_of'
**********************************************************************
File "<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/test/export-roundtrip.rst",> line 10, in export-roundtrip.rst
Failed example:
    print generated_eac
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest export-roundtrip.rst[4]>", line 1, in <module>
        print generated_eac
    NameError: name 'generated_eac' is not defined
**********************************************************************
File "<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/test/export-roundtrip.rst",> line 170, in export-roundtrip.rst
Failed example:
    self.assertXmlValid(generated_eac, self.datapath('cpf.xsd'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest export-roundtrip.rst[5]>", line 1, in <module>
        self.assertXmlValid(generated_eac, self.datapath('cpf.xsd'))
    NameError: name 'generated_eac' is not defined
**********************************************************************
1 items had failures:
   3 of   6 in export-roundtrip.rst
***Test Failed*** 3 failures.
_____________________ EACExportFunctionalTests.test_simple _____________________

self = <test_export.EACExportFunctionalTests testMethod=test_simple>

    def test_simple(self):
>       self._test('export-simple.rst')

test/test_export.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_export.py:31: in _test
    failure_count, test_count, filename))
E   AssertionError: 1 failures of 12 in export-simple.rst (check report)
----------------------------- Captured stdout call -----------------------------
**********************************************************************
File "<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/test/export-simple.rst",> line 33, in export-simple.rst
Failed example:
    print record.cw_adapt_to('EAC-CPF').dump()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest export-simple.rst[11]>", line 1, in <module>
        print record.cw_adapt_to('EAC-CPF').dump()
      File "cubicweb_eac/entities.py", line 286, in dump
        self.control_element(eac_cpf_elt)
      File "cubicweb_eac/entities.py", line 307, in control_element
        for local_type, value in sorted(self.other_record_ids.items()):
      File "cubicweb_eac/entities.py", line 299, in other_record_ids
        return dict((orec.local_type, orec.value) for orec in self.reverse_eac_other_record_id_of)
    AttributeError: 'AuthorityRecordEACAdapter' object has no attribute 'reverse_eac_other_record_id_of'
**********************************************************************
1 items had failures:
   1 of  12 in export-simple.rst
***Test Failed*** 1 failures.
===================== 3 failed, 26 passed in 68.91 seconds =====================
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-eac/TOXENV=py27,nodes=debian_jessie/ws/.tox/py27/bin/python> -m pytest test'
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Build step 'Execute shell' marked build as failure



More information about the saem-devel mailing list