Build failed in Jenkins: cubicweb-saem_ref » py27,debian_jessie #121

jenkins.logilab.org noreply at logilab.org
Thu Mar 9 17:28:51 CET 2017


https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/121/Changes:

[Sylvain Thénault <sylvain.thenault at logilab.fr>] [eac] Replace ark's / by - in filename as well

for consistency with recordId.

[Sylvain Thénault <sylvain.thenault at logilab.fr>] [eac] Transform / into - when exporting ark as recordId

else generated XML is not valid wrt cpf.xsd (test added).

------------------------------------------
Started by upstream project "cubicweb-saem_ref" build number 121
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-d54d1c950eff (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev d25f753a85c4d86ba555490065f5cac0a772bb86 --noupdate http://hg.logilab.org/review/cubes/saem_ref <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
adding changesets
adding manifests
adding file changes
added 1519 changesets with 3833 changes to 269 files
[debian_jessie] $ hg update --rev d25f753a85c4d86ba555490065f5cac0a772bb86
116 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 9c7b21a9424a8272ea54203bb658b66717329da1 --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('d25f753a85c4d86ba555490065f5cac0a772bb86') and not ancestors(9c7b21a9424a8272ea54203bb658b66717329da1)" --encoding UTF-8 --encodingmode replace
[debian_jessie] $ /bin/sh -xe /tmp/hudson4548232730781963567.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson2917577452997029078.sh
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/games tox --recreate
GLOB sdist-make: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27>
py27 installdeps: -rdev-requirements.txt
py27 inst: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/dist/cubicweb-saem-ref-0.14.2.zip>
py27 installed: appdirs==1.4.3,backports.functools-lru-cache==1.3,beautifulsoup4==4.5.3,chardet==2.3.0,colorama==0.3.2,cubicweb==3.24.5,cubicweb-addressbook==1.9.1,cubicweb-bootstrap==1.2.6,cubicweb-compound==0.5.0,cubicweb-eac==0.4.0,cubicweb-geocoding==0.2.1,cubicweb-oaipmh==0.4.1,cubicweb-prov==0.4.0,cubicweb-relationwidget==0.4.0,cubicweb-saem-ref==0.14.2,cubicweb-seda==0.8.0,cubicweb-signedrequest==0.3.0,cubicweb-skos==1.1.0,cubicweb-squareui==1.0.3,cubicweb-vtimeline==0.5.1,cwtags==1.1.0,decorator==3.4.0,GDAL==1.10.1,html2text==2016.9.19,html5lib==0.999,hupper==0.4.3,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,numpy==1.8.2,packaging==16.8,pandas==0.14.1,passlib==1.7.1,PasteDeploy==1.5.2,Pillow==2.6.1,pluggy==0.4.0,psycopg2==2.5.4,py==1.4.32,pykerberos==1.1.5,pyparsing==2.2.0,pyramid==1.8.2,pyramid-multiauth==0.9.0,pytest==3.0.6,python-dateutil==2.2,pytz==2012rc0,pyxst==0.1.1,rdflib==4.1.2,repoze.lru==0.6,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,SPARQLWrapper==1.8.0,tox==2.5.0,traceback2==1.4.0,translationstring==1.3,unittest2==1.1.0,urllib3==1.9.1,venusian==1.0,virtualenv==15.1.0,waitress==1.0.2,WebOb==1.7.1,WebTest==2.0.26,wsgicors==0.7.0,yams==0.44.1,Yapps2==2.2.0,zope.deprecation==4.2.0,zope.interface==4.3.3
py27 runtests: PYTHONHASHSEED='846339207'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/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-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/,> inifile: tox.ini
collected 138 items

test/test_ccplugin.py ....
test/test_eac.py ..
test/test_oai.py ....................
test/test_pviews.py ..
test/test_saem_ref.py ..
test/test_security.py .......
test/test_seda.py ...
test/test_views.py .....F......................
test/unittest_autocomplete.py ....
test/unittest_dataimport.py .
test/unittest_entities.py ..
test/unittest_entities_agent.py ........
test/unittest_entities_container.py ....
test/unittest_entities_skos.py .
test/unittest_hooks.py ...........................
test/unittest_schema.py ...................
test/unittest_site_cubicweb.py .
test/unittest_sobjects_skos.py ...

=================================== FAILURES ===================================
____________________ FuncViewsTC.test_eac_download_filename ____________________

self = <test_views.FuncViewsTC testMethod=test_eac_download_filename>

    def test_eac_download_filename(self):
        with self.admin_access.web_request() as req:
            cnx = req.cnx
            agent = testutils.authority_record(cnx, u'jim')
            for ark, expected_filename in (
                (u"", "EAC_{0}.xml".format(agent.eid)),
                (u"ZZZ/4242", "EAC_ZZZ_4242.xml".format(agent.eid)),
            ):
                agent.cw_set(ark=ark)
                view = self.vreg['views'].select('eac.export', req, agent.as_rset())
                view.set_request_content_type()
                self.assertEqual(
                    view._cw.headers_out.getRawHeaders('content-disposition'),
>                   ['attachment;filename="{0}"'.format(expected_filename)],
                )
E               AssertionError: Lists differ: ['attachment;filename="EAC_ZZZ-4242.xml"'] != ['attachment;filename="EAC_ZZZ_4242.xml"']
E               
E               First differing element 0:
E               attachment;filename="EAC_ZZZ-4242.xml"
E               attachment;filename="EAC_ZZZ_4242.xml"
E               
E               - ['attachment;filename="EAC_ZZZ-4242.xml"']
E               ?                               ^
E               
E               + ['attachment;filename="EAC_ZZZ_4242.xml"']
E               ?                               ^

test/test_views.py:188: AssertionError
==================== 1 failed, 137 passed in 844.92 seconds ====================
waiting for server to shut down.... done
server stopped
Exception TypeError: "'NoneType' object is not callable" in <bound method PostgresTestDataBaseHandler.__del__ of <cubicweb.devtools.PostgresTestDataBaseHandler object at 0x7f3c2482d9d0>> ignored
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/test'>
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Build step 'Execute shell' marked build as failure



More information about the saem-devel mailing list