Started by GitHub push by severinsimmler Building remotely on build3 (digibib) in workspace /mnt/data/jenkins/workspace/cophi_toolbox > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url git://github.com/cophi-wue/cophi-toolbox # timeout=10 Fetching upstream changes from git://github.com/cophi-wue/cophi-toolbox > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials > /usr/bin/git fetch --tags --progress git://github.com/cophi-wue/cophi-toolbox +refs/heads/*:refs/remotes/origin/* Seen branch in repository origin/ddw Seen branch in repository origin/gh-pages Seen branch in repository origin/master Seen branch in repository origin/oop Seen branch in repository origin/testing Seen 5 remote branches > /usr/bin/git show-ref --tags -d # timeout=10 Checking out Revision 5c8c5a3eb6878b492dbfdfa317cb825e57dbb3aa (origin/testing) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 5c8c5a3eb6878b492dbfdfa317cb825e57dbb3aa Commit message: "fix: imports" > /usr/bin/git rev-list --no-walk 11fdf4a14e881d25f4b5bf39e045ba26dbd5ec2c # timeout=10 [cophi_toolbox] $ /bin/sh -xe /tmp/jenkins6926155883490866578.sh + tox GLOB sdist-make: /mnt/data/jenkins/workspace/cophi_toolbox/setup.py py34 create: /mnt/data/jenkins/workspace/cophi_toolbox/.tox/py34 SKIPPED: InterpreterNotFound: python3.4 py35 inst-nodeps: /mnt/data/jenkins/workspace/cophi_toolbox/.tox/.tmp/package/1/cophi-1.3.0.zip py35 installed: atomicwrites==1.3.0,attrs==19.1.0,cophi==1.3.0,coverage==4.5.3,lxml==4.3.2,more-itertools==6.0.0,numpy==1.16.2,pandas==0.24.2,pathlib2==2.3.3,pluggy==0.9.0,py==1.8.0,pytest==4.3.1,pytest-cov==2.6.1,python-dateutil==2.8.0,pytz==2018.9,regex==2019.3.12,six==1.12.0 py35 run-test-pre: PYTHONHASHSEED='489211000' py35 runtests: commands[0] | pytest ============================= test session starts ============================== platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 cachedir: .tox/py35/.pytest_cache rootdir: /mnt/data/jenkins/workspace/cophi_toolbox, inifile: setup.cfg plugins: cov-2.6.1 collected 91 items tests/test_api.py FFE [ 3%] tests/test_complexity.py ...................... [ 27%] tests/test_model.py .................................................... [ 84%] .......F. [ 94%] tests/test_utils.py ..... [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_export _________________________ @pytest.fixture def document(): > return cophi.model.Document(DOCUMENT, "document", r"\w") E AttributeError: module 'cophi' has no attribute 'model' tests/test_api.py:15: AttributeError =================================== FAILURES =================================== ________________________________ test_document _________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-21/test_document0') def test_document(tmpdir): filepath = make_file(tmpdir, "document.txt", DOCUMENT) > document = cophi.document(str(filepath), token_pattern=r"\w") tests/test_api.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filepath = '/tmp/pytest-of-jenkins/pytest-21/test_document0/sub/document.txt' lemma = False, pos = None, jar = 'ddw-0.4.6.jar', language = 'de' kwargs = {'token_pattern': '\\w'} def document(filepath, lemma=False, pos=None, jar="ddw-0.4.6.jar", language="de", **kwargs): """Read a text file and create a Document object. Parameter: filepath (str): Path to the text file. lemma (bool): If True, lemmatize text (optional). pos (list): If not None, filter POS tags (optional). jar (str): Path to DARIAH-DKPro-Wrapper JAR file (optional). language (str): Language of text (optional). title (str): Describing title for the document (optional). lowercase (bool): If True, writes all letters in lowercase (optional). n (int): Number of tokens per ngram (optional). token_pattern (str): Regex pattern for one token (optional). maximum (int): Stop tokenizing after that much tokens (optional). Returns: A Document object. """ if lemma or pos: return dkpro.pipe(filepath, jar, language, lemma, pos, **kwargs) else: > filepath = text.model.filepath(filepath) E AttributeError: module 'cophi.text.model' has no attribute 'filepath' src/cophi/api.py:42: AttributeError _________________________________ test_corpus __________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-21/test_corpus0') def test_corpus(tmpdir): p = make_file(tmpdir, "document.txt", DOCUMENT) directory = pathlib.Path(str(p)).parent corpus, metadata = cophi.corpus(directory, metadata=True) > assert metadata["parent"].iloc[0] == str(directory) E AssertionError: assert PosixPath('/tmp/pytest-of-jenkins/pytest-21/test_corpus0/sub') == '/tmp/pytest-of-jenkins/pytest-21/test_corpus0/sub' E + where '/tmp/pytest-of-jenkins/pytest-21/test_corpus0/sub' = str(PosixPath('/tmp/pytest-of-jenkins/pytest-21/test_corpus0/sub')) tests/test_api.py:30: AssertionError ___________________________ TestCorpus.test_svmlight ___________________________ self = corpus = def test_svmlight(self, corpus): output = pathlib.Path("corpus.svmlight") model.Corpus.svmlight(corpus.dtm, output) assert output.exists() with output.open("r", encoding="utf-8") as file: > assert file.read() == "document document a:3 b:2 c:3 d:1 e:1 f:1\n" E AssertionError: assert 'document a:3...d:1 e:1 f:1\n' == 'document docu...d:1 e:1 f:1\n' E - document a:3 b:2 c:3 d:1 e:1 f:1 E + document document a:3 b:2 c:3 d:1 e:1 f:1 E ? +++++++++ tests/test_model.py:295: AssertionError --- generated xml file: /mnt/data/jenkins/workspace/cophi_toolbox/tests.xml ---- ----------- coverage: platform linux, python 3.5.6-final-0 ----------- Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ================= 3 failed, 87 passed, 1 error in 1.22 seconds ================= ERROR: InvocationError for command '/mnt/data/jenkins/workspace/cophi_toolbox/.tox/py35/bin/pytest' (exited with code 1) py36 inst-nodeps: /mnt/data/jenkins/workspace/cophi_toolbox/.tox/.tmp/package/1/cophi-1.3.0.zip py36 installed: atomicwrites==1.3.0,attrs==19.1.0,cophi==1.3.0,coverage==4.5.3,lxml==4.3.2,more-itertools==6.0.0,numpy==1.16.2,pandas==0.24.2,pluggy==0.9.0,py==1.8.0,pytest==4.3.1,pytest-cov==2.6.1,python-dateutil==2.8.0,pytz==2018.9,regex==2019.3.12,six==1.12.0 py36 run-test-pre: PYTHONHASHSEED='489211000' py36 runtests: commands[0] | pytest ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 cachedir: .tox/py36/.pytest_cache rootdir: /mnt/data/jenkins/workspace/cophi_toolbox, inifile: setup.cfg plugins: cov-2.6.1 collected 91 items tests/test_api.py FFE [ 3%] tests/test_complexity.py ...................... [ 27%] tests/test_model.py .................................................... [ 84%] .......F. [ 94%] tests/test_utils.py ..... [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_export _________________________ @pytest.fixture def document(): > return cophi.model.Document(DOCUMENT, "document", r"\w") E AttributeError: module 'cophi' has no attribute 'model' tests/test_api.py:15: AttributeError =================================== FAILURES =================================== ________________________________ test_document _________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-22/test_document0') def test_document(tmpdir): filepath = make_file(tmpdir, "document.txt", DOCUMENT) > document = cophi.document(str(filepath), token_pattern=r"\w") tests/test_api.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filepath = '/tmp/pytest-of-jenkins/pytest-22/test_document0/sub/document.txt' lemma = False, pos = None, jar = 'ddw-0.4.6.jar', language = 'de' kwargs = {'token_pattern': '\\w'} def document(filepath, lemma=False, pos=None, jar="ddw-0.4.6.jar", language="de", **kwargs): """Read a text file and create a Document object. Parameter: filepath (str): Path to the text file. lemma (bool): If True, lemmatize text (optional). pos (list): If not None, filter POS tags (optional). jar (str): Path to DARIAH-DKPro-Wrapper JAR file (optional). language (str): Language of text (optional). title (str): Describing title for the document (optional). lowercase (bool): If True, writes all letters in lowercase (optional). n (int): Number of tokens per ngram (optional). token_pattern (str): Regex pattern for one token (optional). maximum (int): Stop tokenizing after that much tokens (optional). Returns: A Document object. """ if lemma or pos: return dkpro.pipe(filepath, jar, language, lemma, pos, **kwargs) else: > filepath = text.model.filepath(filepath) E AttributeError: module 'cophi.text.model' has no attribute 'filepath' src/cophi/api.py:42: AttributeError _________________________________ test_corpus __________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-22/test_corpus0') def test_corpus(tmpdir): p = make_file(tmpdir, "document.txt", DOCUMENT) directory = pathlib.Path(str(p)).parent corpus, metadata = cophi.corpus(directory, metadata=True) > assert metadata["parent"].iloc[0] == str(directory) E AssertionError: assert PosixPath('/tmp/pytest-of-jenkins/pytest-22/test_corpus0/sub') == '/tmp/pytest-of-jenkins/pytest-22/test_corpus0/sub' E + where '/tmp/pytest-of-jenkins/pytest-22/test_corpus0/sub' = str(PosixPath('/tmp/pytest-of-jenkins/pytest-22/test_corpus0/sub')) tests/test_api.py:30: AssertionError ___________________________ TestCorpus.test_svmlight ___________________________ self = corpus = def test_svmlight(self, corpus): output = pathlib.Path("corpus.svmlight") model.Corpus.svmlight(corpus.dtm, output) assert output.exists() with output.open("r", encoding="utf-8") as file: > assert file.read() == "document document a:3 b:2 c:3 d:1 e:1 f:1\n" E AssertionError: assert 'document a:3...d:1 e:1 f:1\n' == 'document docu...d:1 e:1 f:1\n' E - document a:3 b:2 c:3 d:1 e:1 f:1 E + document document a:3 b:2 c:3 d:1 e:1 f:1 E ? +++++++++ tests/test_model.py:295: AssertionError --- generated xml file: /mnt/data/jenkins/workspace/cophi_toolbox/tests.xml ---- ----------- coverage: platform linux, python 3.6.8-final-0 ----------- Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ================= 3 failed, 87 passed, 1 error in 1.07 seconds ================= ERROR: InvocationError for command '/mnt/data/jenkins/workspace/cophi_toolbox/.tox/py36/bin/pytest' (exited with code 1) py37 inst-nodeps: /mnt/data/jenkins/workspace/cophi_toolbox/.tox/.tmp/package/1/cophi-1.3.0.zip py37 installed: atomicwrites==1.3.0,attrs==19.1.0,cophi==1.3.0,coverage==4.5.3,lxml==4.3.2,more-itertools==6.0.0,numpy==1.16.2,pandas==0.24.2,pluggy==0.9.0,py==1.8.0,pytest==4.3.1,pytest-cov==2.6.1,python-dateutil==2.8.0,pytz==2018.9,regex==2019.3.12,six==1.12.0 py37 run-test-pre: PYTHONHASHSEED='489211000' py37 runtests: commands[0] | pytest ============================= test session starts ============================== platform linux -- Python 3.7.2+, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 cachedir: .tox/py37/.pytest_cache rootdir: /mnt/data/jenkins/workspace/cophi_toolbox, inifile: setup.cfg plugins: cov-2.6.1 collected 91 items tests/test_api.py FFE [ 3%] tests/test_complexity.py ...................... [ 27%] tests/test_model.py .................................................... [ 84%] .......F. [ 94%] tests/test_utils.py ..... [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_export _________________________ @pytest.fixture def document(): > return cophi.model.Document(DOCUMENT, "document", r"\w") E AttributeError: module 'cophi' has no attribute 'model' tests/test_api.py:15: AttributeError =================================== FAILURES =================================== ________________________________ test_document _________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-23/test_document0') def test_document(tmpdir): filepath = make_file(tmpdir, "document.txt", DOCUMENT) > document = cophi.document(str(filepath), token_pattern=r"\w") tests/test_api.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filepath = '/tmp/pytest-of-jenkins/pytest-23/test_document0/sub/document.txt' lemma = False, pos = None, jar = 'ddw-0.4.6.jar', language = 'de' kwargs = {'token_pattern': '\\w'} def document(filepath, lemma=False, pos=None, jar="ddw-0.4.6.jar", language="de", **kwargs): """Read a text file and create a Document object. Parameter: filepath (str): Path to the text file. lemma (bool): If True, lemmatize text (optional). pos (list): If not None, filter POS tags (optional). jar (str): Path to DARIAH-DKPro-Wrapper JAR file (optional). language (str): Language of text (optional). title (str): Describing title for the document (optional). lowercase (bool): If True, writes all letters in lowercase (optional). n (int): Number of tokens per ngram (optional). token_pattern (str): Regex pattern for one token (optional). maximum (int): Stop tokenizing after that much tokens (optional). Returns: A Document object. """ if lemma or pos: return dkpro.pipe(filepath, jar, language, lemma, pos, **kwargs) else: > filepath = text.model.filepath(filepath) E AttributeError: module 'cophi.text.model' has no attribute 'filepath' src/cophi/api.py:42: AttributeError _________________________________ test_corpus __________________________________ tmpdir = local('/tmp/pytest-of-jenkins/pytest-23/test_corpus0') def test_corpus(tmpdir): p = make_file(tmpdir, "document.txt", DOCUMENT) directory = pathlib.Path(str(p)).parent corpus, metadata = cophi.corpus(directory, metadata=True) > assert metadata["parent"].iloc[0] == str(directory) E AssertionError: assert PosixPath('/tmp/pytest-of-jenkins/pytest-23/test_corpus0/sub') == '/tmp/pytest-of-jenkins/pytest-23/test_corpus0/sub' E + where '/tmp/pytest-of-jenkins/pytest-23/test_corpus0/sub' = str(PosixPath('/tmp/pytest-of-jenkins/pytest-23/test_corpus0/sub')) tests/test_api.py:30: AssertionError ___________________________ TestCorpus.test_svmlight ___________________________ self = corpus = def test_svmlight(self, corpus): output = pathlib.Path("corpus.svmlight") model.Corpus.svmlight(corpus.dtm, output) assert output.exists() with output.open("r", encoding="utf-8") as file: > assert file.read() == "document document a:3 b:2 c:3 d:1 e:1 f:1\n" E AssertionError: assert 'document a:3...d:1 e:1 f:1\n' == 'document docu...d:1 e:1 f:1\n' E - document a:3 b:2 c:3 d:1 e:1 f:1 E + document document a:3 b:2 c:3 d:1 e:1 f:1 E ? +++++++++ tests/test_model.py:295: AssertionError --- generated xml file: /mnt/data/jenkins/workspace/cophi_toolbox/tests.xml ---- ----------- coverage: platform linux, python 3.7.2-final-0 ----------- Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ================= 3 failed, 87 passed, 1 error in 1.06 seconds ================= ERROR: InvocationError for command '/mnt/data/jenkins/workspace/cophi_toolbox/.tox/py37/bin/pytest' (exited with code 1) docs inst-nodeps: /mnt/data/jenkins/workspace/cophi_toolbox/.tox/.tmp/package/1/cophi-1.3.0.zip docs installed: alabaster==0.7.12,Babel==2.6.0,certifi==2019.3.9,chardet==3.0.4,cophi==1.3.0,docutils==0.14,idna==2.8,imagesize==1.1.0,Jinja2==2.10,lxml==4.3.2,MarkupSafe==1.1.1,numpy==1.16.2,packaging==19.0,pandas==0.24.2,Pygments==2.3.1,pyparsing==2.3.1,python-dateutil==2.8.0,pytz==2018.9,regex==2019.3.12,requests==2.21.0,six==1.12.0,snowballstemmer==1.2.1,Sphinx==1.8.5,sphinxcontrib-websupport==1.1.0,urllib3==1.24.1 docs run-test-pre: PYTHONHASHSEED='489211000' docs runtests: commands[0] | sphinx-build -E -b html docs dist/docs Running Sphinx v1.8.5 loading intersphinx inventory from https://docs.python.org/objects.inv... intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv building [mo]: targets for 0 po files that are out of date building [html]: targets for 3 source files that are out of date updating environment: 3 added, 0 changed, 0 removed reading sources... [ 33%] index reading sources... [ 66%] reference/cophi-toolbox reading sources... [100%] reference/index /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/cophi-toolbox.rst:3: WARNING: Unknown directive type "testsetup". .. testsetup:: from cophi import * WARNING: autodoc: failed to import module 'preprocessing' from module 'cophi_toolbox'; the following exception was raised: No module named 'cophi_toolbox' looking for now-outdated files... none found pickling environment... done checking consistency... /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/cophi-toolbox.rst: WARNING: document isn't included in any toctree /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/index.rst: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 33%] index writing output... [ 66%] reference/cophi-toolbox writing output... [100%] reference/index generating indices... genindex writing additional pages... search copying static files... WARNING: html_static_path entry '/mnt/data/jenkins/workspace/cophi_toolbox/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 5 warnings. The HTML pages are in dist/docs. docs runtests: commands[1] | sphinx-build -b linkcheck docs dist/docs Running Sphinx v1.8.5 loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [linkcheck]: targets for 3 source files that are out of date updating environment: [] 0 added, 1 changed, 0 removed reading sources... [100%] reference/cophi-toolbox /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/cophi-toolbox.rst:3: WARNING: Unknown directive type "testsetup". .. testsetup:: from cophi import * WARNING: autodoc: failed to import module 'preprocessing' from module 'cophi_toolbox'; the following exception was raised: No module named 'cophi_toolbox' looking for now-outdated files... none found pickling environment... done checking consistency... /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/cophi-toolbox.rst: WARNING: document isn't included in any toctree /mnt/data/jenkins/workspace/cophi_toolbox/docs/reference/index.rst: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 33%] index writing output... [ 66%] reference/cophi-toolbox writing output... [100%] reference/index build succeeded, 4 warnings. Look for any errors in the above output or in dist/docs/output.txt ___________________________________ summary ____________________________________ SKIPPED: py34: InterpreterNotFound: python3.4 ERROR: py35: commands failed ERROR: py36: commands failed ERROR: py37: commands failed docs: commands succeeded Build step 'Execute shell' marked build as failure [TASKS] Skipping publisher since build result is FAILURE Recording test results [Cobertura] Publishing Cobertura coverage report... [Cobertura] Publishing Cobertura coverage results... [Cobertura] Cobertura coverage report found. [Set GitHub commit status (universal)] ERROR on repos [GHRepository@31d43d8e[description=A repository containing general functions for processing and accessing text corpora,homepage=,name=cophi-toolbox,license=,fork=false,size=511,milestones={},language=Jupyter Notebook,commits={},source=,parent=,responseHeaderFields={null=[HTTP/1.1 200 OK], Access-Control-Allow-Origin=[*], Access-Control-Expose-Headers=[ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type], Cache-Control=[private, max-age=60, s-maxage=60], Content-Encoding=[gzip], Content-Security-Policy=[default-src 'none'], Content-Type=[application/json; charset=utf-8], Date=[Thu, 25 Apr 2019 18:00:09 GMT], ETag=[W/"425fd83d8d76b3aa0c5117f945854bc7"], Last-Modified=[Sun, 14 Apr 2019 03:45:43 GMT], OkHttp-Received-Millis=[1556215209584], OkHttp-Response-Source=[CONDITIONAL_CACHE 200], OkHttp-Selected-Protocol=[http/1.1], OkHttp-Sent-Millis=[1556215209360], Referrer-Policy=[origin-when-cross-origin, strict-origin-when-cross-origin], Server=[GitHub.com], Status=[200 OK], Strict-Transport-Security=[max-age=31536000; includeSubdomains; preload], Transfer-Encoding=[chunked], Vary=[Accept, Authorization, Cookie, X-GitHub-OTP], X-Accepted-OAuth-Scopes=[repo], X-Content-Type-Options=[nosniff], X-Frame-Options=[deny], X-GitHub-Media-Type=[github.v3; format=json], X-GitHub-Request-Id=[B1AF:5FB3:7316A2:F82BEA:5CC1F5A9], X-OAuth-Scopes=[admin:repo_hook, repo, repo:status], X-RateLimit-Limit=[5000], X-RateLimit-Remaining=[4982], X-RateLimit-Reset=[1556216433], X-XSS-Protection=[1; mode=block]},url=https://api.github.com/repos/cophi-wue/cophi-toolbox,id=113045733]] (sha:5c8c5a3) with context:cophi_toolbox Setting commit status on GitHub for https://github.com/cophi-wue/cophi-toolbox/commit/5c8c5a3eb6878b492dbfdfa317cb825e57dbb3aa [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Notifying upstream projects of job completion Finished: FAILURE