consoleText

download

20 Started by upstream project "cubicweb-3.23" build number 41
originally caused by:
Started by an SCM change
Building in workspace /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server
[py27-server] $ hg showconfig paths.default
[py27-server] $ hg pull
pulling from http://hg.logilab.org/review/cubicweb
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 1 changes to 5 files (+1 heads)
2 new obsolescence markers
(run 'hg heads .' to see heads, 'hg merge' to merge)
[py27-server] $ hg update --clean --rev 4c9175336b86ebc1f6817d285c968d54281ba4a1
8 files updated, 0 files merged, 1 files removed, 0 files unresolved
[py27-server] $ hg --config extensions.purge= clean --all
[py27-server] $ hg log --rev . --template {node}
[py27-server] $ hg log --rev . --template {rev}
[py27-server] $ hg id --branch
[py27-server] $ /bin/bash -xe /tmp/hudson1923126761054199880.sh
+ find . '(' -name 'pgdb*' -o -name 'tmpdb*' ')' -print0
+ xargs -0 rm -rf
[py27-server] $ /bin/bash -xe /tmp/hudson7272200541356122245.sh
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ tox --recreate
py27-server create: /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/.tox/py27-server
py27-server installdeps: -r/var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test/requirements.txt, pytest
py27-server develop-inst: /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server
py27-server installed: You are using pip version 7.1.2, however version 8.1.0 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,beautifulsoup4==4.3.2,boto==2.34.0,bzr-etckeeper==0.0.0,cffi==0.8.6,characteristic==0.1.0,chardet==2.3.0,Cheetah==2.4.4,cloud-init==0.7.6,colorama==0.3.2,configobj==5.0.6,coverage==3.7.1,croniter==0.3.4,cryptography==0.6.1,-e hg+http://hg.logilab.org/review/cubicweb@4c9175336b86ebc1f6817d285c968d54281ba4a1#egg=cubicweb-dev,cubicweb-basket==1.5.0,cubicweb-card==0.5.8,cubicweb-comment==1.12.1,cubicweb-file==1.17.0,cubicweb-localperms==0.3.2,cubicweb-tag==1.8.2,cwclientlib==0.4.1,Cython==0.21.1,decorator==3.4.0,docutils==0.12,ecdsa==0.11,euca2ools==3.1.0,GDAL==1.10.1,hg-evolve==5.2.1,html2text==2016.1.8,html5lib==0.999,isodate==0.5.0,Jinja2==2.7.3,joblib==0.8.3,jsonpatch==1.3,jsonpointer==1.0,ldap3==1.0.4,linecache2==1.0.0,logilab-common==1.1.0,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==3.4.0,M2Crypto==0.21.1,Mako==1.0.0,Markdown==2.5.1,MarkupSafe==0.23,matplotlib==1.4.2,mercurial==3.5.2,mock==1.0.1,msgpack-python==0.4.2,nose==1.3.4,numexpr==2.4,numpy==1.8.2,oauth==1.0.1,openpyxl==1.7.0,pandas==0.14.1,paramiko==1.15.1,passlib==1.6.5,pep8==1.5.7,Pillow==2.6.1,pluggy==0.3.1,ply==3.4,prettytable==0.7.2,psycopg2==2.5.4,py==1.4.31,pyasn1==0.1.9,pyasn1-modules==0.0.5,pycparser==2.10,pycrypto==2.6.1,Pygments==2.0.1,pyinotify==0.9.4,pyOpenSSL==0.14,pyparsing==2.0.3,pyserial==2.6,pysqlite==2.6.3,pytest==2.9.0,python-apt==0.9.3.12,python-augeas==0.4.1,python-dateutil==2.2,python-jenkins==0.2.1,python-ldap==2.4.10,python-yapps==2.1.1,python3-ldap==0.9.4.2,pytz==2012rc0,PyYAML==3.11,pyzmq==14.4.0,rdflib==4.1.2,requestbuilder==0.2.3,requests==2.4.3,roman==2.0.0,rql==0.34.0,rubber==1.1,salt==2015.5.3,scikit-learn==0.14.1,scipy==0.14.0,service-identity==1.0.0,Shapely==1.4.3,simplejson==3.6.5,SimpleTAL==4.1,six==1.8.0,SPARQLWrapper==1.6.0,Sphinx==1.2.3,statsmodels==0.4.2,tables==3.1.1,tox==2.3.1,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.9.1,virtualenv==13.1.2,wheel==0.24.0,xlrd==0.9.2,xlwt==0.7.5,yams==0.42.0,Yapps==2.2.0,Yapps2==2.2.0
py27-server runtests: PYTHONHASHSEED='2844893077'
py27-server runtests: commands[0] | /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/.tox/py27-server/bin/python -m pytest /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-2.9.0, py-1.4.31, pluggy-0.3.1
rootdir: /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server, inifile: tox.ini
collected 599 items

cubicweb/server/test/unittest_checkintegrity.py ...
cubicweb/server/test/unittest_datafeed.py ....
cubicweb/server/test/unittest_hook.py .........
cubicweb/server/test/unittest_ldapsource.py ............
cubicweb/server/test/unittest_migractions.py .........................s...................
cubicweb/server/test/unittest_postgres.py Fssssss.
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py .......................F..................
cubicweb/server/test/unittest_rql2sql.py .......................................................................s.............................................................................................
cubicweb/server/test/unittest_rqlannotation.py ..........................................................
cubicweb/server/test/unittest_schema2sql.py .
cubicweb/server/test/unittest_schemaserial.py .................
cubicweb/server/test/unittest_security.py .......................................
cubicweb/server/test/unittest_serverctl.py .
cubicweb/server/test/unittest_sources_native.py .
cubicweb/server/test/unittest_sqlutils.py ...
cubicweb/server/test/unittest_ssplanner.py ..
cubicweb/server/test/unittest_storage.py ................
cubicweb/server/test/unittest_tools.py .
cubicweb/server/test/unittest_undo.py ..................
cubicweb/server/test/unittest_utils.py .

=================================== FAILURES ===================================
________________________ PostgresFTITC.test_attr_weight ________________________
cubicweb/devtools/testlib.py:418: in setUp
self._init_repo()
cubicweb/devtools/testlib.py:326: in _init_repo
db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
cubicweb/devtools/__init__.py:495: in build_db_cache
if self.has_cache(test_db_id):
cubicweb/devtools/__init__.py:644: in has_cache
return (super(PostgresTestDataBaseHandler, self).has_cache(db_id)
cubicweb/devtools/__init__.py:455: in has_cache
self.discover_cached_db()
cubicweb/devtools/__init__.py:472: in discover_cached_db
value = self.process_cache_entry(directory, dbname, db_id, entry)
cubicweb/devtools/__init__.py:638: in process_cache_entry
if backup_name in self.helper.list_databases(self.cursor):
.tox/py27-server/local/lib/python2.7/site-packages/logilab/common/decorators.py:67: in wrapped
return self.__call__(*args, **kwargs)
.tox/py27-server/local/lib/python2.7/site-packages/logilab/common/decorators.py:61: in __call__
value = __me.callable(self, *args)
cubicweb/devtools/__init__.py:634: in cursor
return self.dbcnx.cursor()
cubicweb/devtools/__init__.py:625: in dbcnx
interactive=False)
cubicweb/server/serverctl.py:127: in _db_sys_cnx
interactive=interactive)
cubicweb/server/serverctl.py:114: in system_source_cnx
interactive=interactive)
cubicweb/server/serverctl.py:93: in source_cnx
**extra)
.tox/py27-server/local/lib/python2.7/site-packages/logilab/database/__init__.py:113: in get_connection
extra_args=extra_args)
.tox/py27-server/local/lib/python2.7/site-packages/logilab/database/postgres.py:95: in connect
cnx = self._native_module.connect(cnx_string)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

dsn = 'user=jenkins dbname=template1', database = None, user = None
password = None, host = None, port = None, connection_factory = None
cursor_factory = None, async = False, kwargs = {}, items = []

def connect(dsn=None,
database=None, user=None, password=None, host=None, port=None,
connection_factory=None, cursor_factory=None, async=False, **kwargs):
"""
Create a new database connection.

The connection parameters can be specified either as a string:

conn = psycopg2.connect("dbname=test user=postgres password=secret")

or using a set of keyword arguments:

conn = psycopg2.connect(database="test", user="postgres", password="secret")

The basic connection parameters are:

- *dbname*: the database name (only in dsn string)
- *database*: the database name (only as keyword argument)
- *user*: user name used to authenticate
- *password*: password used to authenticate
- *host*: database host address (defaults to UNIX socket if not provided)
- *port*: connection port number (defaults to 5432 if not provided)

Using the *connection_factory* parameter a different class or connections
factory can be specified. It should be a callable object taking a dsn
argument.

Using the *cursor_factory* parameter, a new default cursor factory will be
used by cursor().

Using *async*=True an asynchronous connection will be created.

Any other keyword parameter will be passed to the underlying client
library: the list of supported parameters depends on the library version.

"""
items = []
if database is not None:
items.append(('dbname', database))
if user is not None:
items.append(('user', user))
if password is not None:
items.append(('password', password))
if host is not None:
items.append(('host', host))
if port is not None:
items.append(('port', port))

items.extend([(k, v) for (k, v) in kwargs.iteritems() if v is not None])

if dsn is not None and items:
raise TypeError(
"'%s' is an invalid keyword argument when the dsn is specified"
% items[0][0])

if dsn is None:
if not items:
raise TypeError('missing dsn and no parameters')
else:
dsn = " ".join(["%s=%s" % (k, _param_escape(str(v)))
for (k, v) in items])

> conn = _connect(dsn, connection_factory=connection_factory, async=async)
E OperationalError: could not connect to server: No such file or directory
E Is the server running locally and accepting
E connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

/usr/lib/python2.7/dist-packages/psycopg2/__init__.py:164: OperationalError
---------------------------- Captured stdout setup -----------------------------
The files belonging to this database system will be owned by user "jenkins".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test/data/database/pgdb-unittest_postgres ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test/data/database/pgdb-unittest_postgres/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok

Success. You can now start the database server using:

postgres -D /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test/data/database/pgdb-unittest_postgres
or
pg_ctl -D /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test/data/database/pgdb-unittest_postgres -l logfile start

waiting for server to start....LOG: database system was shut down at 2016-03-07 13:58:35 CET
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
done
server started
---------------------------- Captured stderr setup -----------------------------

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
__________________ SchemaDeserialTC.test_deserialization_base __________________

self = <unittest_repository.SchemaDeserialTC testMethod=test_deserialization_base>

def test_deserialization_base(self):
"""Check the following deserialization

* all CWEtype has name
* Final type
* CWUniqueTogetherConstraint
* _unique_together__ content"""
origshema = self.repo.schema
try:
self.repo.config.repairing = True # avoid versions checking
self.repo.set_schema(self.repo.deserialize_schema())
table = SQL_PREFIX + 'CWEType'
namecol = SQL_PREFIX + 'name'
finalcol = SQL_PREFIX + 'final'
with self.admin_access.repo_cnx() as cnx:
cu = cnx.system_sql('SELECT %s FROM %s WHERE %s is NULL'
% (namecol, table, finalcol))
self.assertEqual(cu.fetchall(), [])
cu = cnx.system_sql('SELECT %s FROM %s '
'WHERE %s=%%(final)s ORDER BY %s'
% (namecol, table, finalcol, namecol),
{'final': True})
self.assertEqual(cu.fetchall(),
[(u'BabarTestType',),
(u'BigInt',), (u'Boolean',), (u'Bytes',),
(u'Date',), (u'Datetime',),
(u'Decimal',),(u'Float',),
(u'Int',),
(u'Interval',), (u'Password',),
(u'String',),
> (u'TZDatetime',), (u'TZTime',), (u'Time',)])
E AssertionError: Lists differ: [(u'B[140 chars], (u'Numeric',), (u'Password',), (u'String',),[39 chars]e',)] != [(u'B[140 chars], (u'Password',), (u'String',), (u'TZDatetime'[24 chars]e',)]
E
E First differing element 10:
E (u'Numeric',)
E (u'Password',)
E
E First list contains 1 additional elements.
E First extra element 15:
E (u'Time',)
E
E [(u'BabarTestType',),
E (u'BigInt',),
E (u'Boolean',),
E (u'Bytes',),
E (u'Date',),
E (u'Datetime',),
E (u'Decimal',),
E (u'Float',),
E (u'Int',),
E (u'Interval',),
E - (u'Numeric',),
E (u'Password',),
E (u'String',),
E (u'TZDatetime',),
E (u'TZTime',),
E (u'Time',)]

cubicweb/server/test/unittest_repository.py:397: AssertionError
==== 2 failed, 587 passed, 10 skipped, 7 pytest-warnings in 739.38 seconds =====
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/.tox/py27-server/bin/python -m pytest /var/lib/jenkins/jobs/cubicweb-3.23/workspace/TOXENV/py27-server/cubicweb/server/test'
___________________________________ summary ____________________________________
ERROR: py27-server: commands failed
Build step 'Execute shell' marked build as failure
Sending e-mails to: dlaxalde@logilab.fr jcr@logilab.fr syt@logilab.fr david@logilab.fr
[PostBuildScript] - Execution post build scripts.
[py27-server] $ /bin/bash -xe /tmp/hudson8964718399390380000.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb 4c9175336b86 http://jenkins.logilab.fr/job/cubicweb-3.23/TOXENV=py27-server/41/ --status failure
<br/>

log from execution
download