consoleText

download

20 Started by upstream project "cubicweb" build number 155
originally caused by:
Started by an SCM change
Building in workspace /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server
[server] $ hg showconfig paths.default
[server] $ hg pull --rev db6186750b5bbb723832399ef7ed2ae1b00cf585
pulling from http://hg.logilab.org/review/cubicweb
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 6 changes to 6 files
(run 'hg update' to get a working copy)
[server] $ hg update --clean --rev db6186750b5bbb723832399ef7ed2ae1b00cf585
794 files updated, 0 files merged, 787 files removed, 0 files unresolved
[server] $ hg --config extensions.purge= clean --all
[server] $ hg log --rev . --template {node}
[server] $ hg log --rev . --template {rev}
Run condition [File exists] enabling prebuild for step [BuilderChain]
[File exists] check if file exists [tox.ini]
Run condition [File exists] enabling perform for step [BuilderChain]
[server] $ /bin/bash -xe /tmp/hudson5545134101252513234.sh
+ find . '(' -name 'pgdb*' -o -name 'tmpdb*' ')' -print0
+ xargs -0 rm -rf
[server] $ /bin/bash -xe /tmp/hudson1216810209336414035.sh
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ tox --recreate
server create: /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/.tox/server
server installdeps: -r/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test/requirements.txt, pytest
server develop-inst: /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server
server installed: You are using pip version 7.1.2, however version 8.0.2 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@db6186750b5bbb723832399ef7ed2ae1b00cf585#egg=cubicweb-dev,cubicweb-basket==1.5.0,cubicweb-card==0.5.7,cubicweb-comment==1.11.1,cubicweb-file==1.17.0,cubicweb-localperms==0.3.1,cubicweb-preview==1.2.0,cubicweb-seo==0.2.1,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.8.7,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,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,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
server runtests: PYTHONHASHSEED='1617024040'
server runtests: commands[0] | /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/.tox/server/bin/python -m pytest /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server, inifile: tox.ini
collected 600 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 ................FFsssssssssssssFssssssssssssss
cubicweb/server/test/unittest_postgres.py Fssssss.
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py ..........................................
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 ===================================
__________ MigrationCommandsTC.test_drop_cube_with_custom_final_type ___________

self = <unittest_migractions.MigrationCommandsTC testMethod=test_drop_cube_with_custom_final_type>

def test_drop_cube_with_custom_final_type(self):
with self.mh() as (cnx, mh):
> mh.cmd_add_cube('fakecustomtype')

cubicweb/server/test/unittest_migractions.py:308:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/server/migractions.py:633: in cmd_add_cube
self.cmd_add_cubes( (cube,), update_database)
cubicweb/server/migractions.py:654: in cmd_add_cubes
newcubes_schema = self.config.load_schema(construction_mode='non-strict')
cubicweb/server/serverconfig.py:326: in load_schema
schema = CubicWebSchemaLoader().load(self, **kwargs)
cubicweb/schema.py:1416: in load
return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
cubicweb/schema.py:1380: in load
path, config.appid, register_base_types=False, **kwargs)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:115: in load
self._load_definition_files(directories)
cubicweb/schema.py:1432: in _load_definition_files
self.handle_file(filepath)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:173: in handle_file
modname, module = self.exec_file(filepath)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:232: in exec_file
exec(code, fglobals)
cubicweb/server/test/data-migractions/cubes/fakecustomtype/schema.py:4: in <module>
Numeric = make_type('Numeric')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

etype = 'Numeric'

def make_type(etype):
"""create a python class for a Yams base type.

Notice it is now possible to create a specific type with user-defined
behaviour, e.g.:

Geometry = make_type('Geometry') # (c.f. postgis)

will allow the use of:

Geometry(geom_type='POINT')

in a Yams schema, provided in this example that `geom_type` is specified to
the :func:`yams.register_base_type` function which should be called prior to
make_type.
"""
> assert etype in BASE_TYPES
E AssertionError: assert 'Numeric' in BASE_TYPES

.tox/server/local/lib/python2.7/site-packages/yams/buildobjs.py:296: AssertionError
----------------------------- Captured stderr call -----------------------------
exception while reading /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test/data-migractions/cubes/fakecustomtype/schema.py
____________________ MigrationCommandsTC.test_drop_dep_cube ____________________

self = <unittest_migractions.MigrationCommandsTC testMethod=test_drop_dep_cube>

def setUp(self):
self.configcls.cls_adjust_sys_path()
> super(MigrationTC, self).setUp()

cubicweb/server/test/unittest_migractions.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/devtools/testlib.py:419: in setUp
self._init_repo()
cubicweb/server/test/unittest_migractions.py:115: in _init_repo
super(MigrationCommandsTC, self)._init_repo()
cubicweb/server/test/unittest_migractions.py:79: in _init_repo
migrschema = config.load_schema()
cubicweb/server/serverconfig.py:326: in load_schema
schema = CubicWebSchemaLoader().load(self, **kwargs)
cubicweb/schema.py:1416: in load
return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
cubicweb/schema.py:1380: in load
path, config.appid, register_base_types=False, **kwargs)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:115: in load
self._load_definition_files(directories)
cubicweb/schema.py:1432: in _load_definition_files
self.handle_file(filepath)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:173: in handle_file
modname, module = self.exec_file(filepath)
.tox/server/local/lib/python2.7/site-packages/yams/reader.py:232: in exec_file
exec(code, fglobals)
cubicweb/server/test/data-migractions/cubes/fakecustomtype/schema.py:4: in <module>
Numeric = make_type('Numeric')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

etype = 'Numeric'

def make_type(etype):
"""create a python class for a Yams base type.

Notice it is now possible to create a specific type with user-defined
behaviour, e.g.:

Geometry = make_type('Geometry') # (c.f. postgis)

will allow the use of:

Geometry(geom_type='POINT')

in a Yams schema, provided in this example that `geom_type` is specified to
the :func:`yams.register_base_type` function which should be called prior to
make_type.
"""
> assert etype in BASE_TYPES
E AssertionError: assert 'Numeric' in BASE_TYPES

.tox/server/local/lib/python2.7/site-packages/yams/buildobjs.py:296: AssertionError
----------------------------- Captured stderr call -----------------------------
exception while reading /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test/data-migractions/cubes/fakecustomtype/schema.py
______ MigrationCommandsComputedTC.test_computed_attribute_add_attribute _______

self = <unittest_migractions.MigrationCommandsComputedTC testMethod=test_computed_attribute_add_attribute>

def setUp(self):
> MigrationTC.setUp(self)

cubicweb/server/test/unittest_migractions.py:769:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/server/test/unittest_migractions.py:85: in setUp
super(MigrationTC, self).setUp()
cubicweb/devtools/testlib.py:419: in setUp
self._init_repo()
cubicweb/server/test/unittest_migractions.py:71: in _init_repo
super(MigrationTC, self)._init_repo()
cubicweb/devtools/testlib.py:327: in _init_repo
db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
cubicweb/devtools/__init__.py:498: in build_db_cache
self.init_test_database()
cubicweb/devtools/__init__.py:653: in init_test_database
self._drop(self.system_source['db-name'])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.devtools.PostgresTestDataBaseHandler object at 0x7f8d5e8d2190>
db_name = 'tmpdb32393'

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 "tmpdb32393" is being accessed by other users
E DETAIL: There are 4 other sessions using the database.

cubicweb/devtools/__init__.py:700: OperationalError
----------------------------- Captured stdout call -----------------------------
ERROR: database "tmpdb32393" is being accessed by other users
DETAIL: There are 4 other sessions using the database.
STATEMENT: DROP DATABASE tmpdb32393
----------------------------- Captured stderr call -----------------------------
building tmpdb failed
________________________ PostgresFTITC.test_attr_weight ________________________
cubicweb/devtools/testlib.py:419: in setUp
self._init_repo()
cubicweb/devtools/testlib.py:327: 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/server/local/lib/python2.7/site-packages/logilab/common/decorators.py:67: in wrapped
return self.__call__(*args, **kwargs)
.tox/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:129: in _db_sys_cnx
interactive=interactive)
cubicweb/server/serverctl.py:115: in system_source_cnx
interactive=interactive)
cubicweb/server/serverctl.py:95: in source_cnx
**extra)
.tox/server/local/lib/python2.7/site-packages/logilab/database/__init__.py:113: in get_connection
extra_args=extra_args)
.tox/server/local/lib/python2.7/site-packages/logilab/database/postgres.py:95: in connect
cnx = self._native_module.connect(cnx_string)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

dsn = 'dbname=template1 user=jenkins', 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/workspace/TOXENV/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/workspace/TOXENV/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/workspace/TOXENV/server/cubicweb/server/test/data/database/pgdb-unittest_postgres
or
pg_ctl -D /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/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-02-08 15:41:45 CET
LOG: MultiXact member wraparound protections are now enabled
LOG: autovacuum launcher started
LOG: database system is ready to accept connections
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.
==== 4 failed, 560 passed, 36 skipped, 7 pytest-warnings in 565.95 seconds =====
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/.tox/server/bin/python -m pytest /var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/server/cubicweb/server/test'
___________________________________ summary ____________________________________
ERROR: server: commands failed
Build step 'Conditional steps (multiple)' 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.
[server] $ /bin/bash -xe /tmp/hudson2025255316627212417.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb db6186750b5b http://jenkins.logilab.fr/job/cubicweb/TOXENV=server/155/ --status failure
<br/>

log from execution
download