See <https://builds.apache.org/job/Allura/1561/display/redirect?page=changes>
Changes: [ktaylor] [#8356] Add tox.ini [ktaylor] [#8356] unicode in webtest submits [ktaylor] [#8356] webtest resp.text instead of resp.body for all text usages [ktaylor] [#8356] integer division fixes [ktaylor] [#8356] Request/response encoding fixes [ktaylor] [#8356] assertItemsEqual no longer exists in py3 (and was unreliable in [ktaylor] [#8356] use binary with hashlib [ktaylor] [#8356] Undo some incorrect content_type changes earlier (these are not [ktaylor] [#8356] Some git fixes [ktaylor] [#8356] __func__not needed in py3 for method attrs (in py2 is unbound [ktaylor] [#8356] repr can only return str [ktaylor] [#8356] bytes test fixes [ktaylor] [#8356] avoid dictionary changed size during iteration [ktaylor] [#8356] pickle.loads uses bytes [ktaylor] [#8356] shlex.split helper for py2/3 compatibility [ktaylor] [#8356] NamedTemporaryFile defaults to binary, but we write text here [ktaylor] [#8356] multifactor fixes [ktaylor] [#8356] misc bytes fixes [ktaylor] [#8356] ordering consistency [ktaylor] [#8356] class protocols that six didn't handle automatically [ktaylor] [#8356] core string handling fixes; removes AsciiDammit.py which was [ktaylor] [#8356] comparison type errors ------------------------------------------ [...truncated 14.81 KB...] Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting webhelpers2==2.0 Using cached WebHelpers2-2.0-py2-none-any.whl (75 kB) Collecting webob==1.7.4 Using cached WebOb-1.7.4-py2.py3-none-any.whl (84 kB) Collecting webtest==2.0.33 Using cached WebTest-2.0.33-py2.py3-none-any.whl (32 kB) Processing /home/jenkins/.cache/pip/wheels/aa/0a/cb/e31e525e074359f542ff2240747f3d4cc1dad9c895bb6df70c/wrapt-1.11.2-cp27-cp27mu-linux_x86_64.whl Requirement already satisfied: setuptools>=18.5 in ./.allura-venv/lib/python2.7/site-packages (from ipython==5.8.0->-r requirements.txt (line 44)) (44.1.0) Installing collected packages: pymongo, activitystream, asn1crypto, webob, backlash, backports.functools-lru-cache, backports.shutil-get-terminal-size, funcsigs, beaker, soupsieve, beautifulsoup4, six, webencodings, bleach, certifi, pycparser, cffi, chardet, iso8601, translationstring, enum34, colander, crank, genshi, creoleparser, ipaddress, cryptography, datadiff, decorator, docutils, formencode, paste, markupsafe, python-dateutil, easywidgets, emoji, faulthandler, pytz, feedgenerator, feedparser, future, smmap2, gitdb2, gitpython, gunicorn, html5lib, httplib2, idna, inflection, ipython-genutils, wcwidth, prompt-toolkit, ptyprocess, pexpect, traitlets, simplegeneric, scandir, pathlib2, pickleshare, pygments, ipython, jinja2, markdown, markdown-checklist, ming, mock, nose, oauth2, oauthlib, paginate, pastedeploy, pastescript, pillow, profanityfilter, pyflakes, textile, pypeline, urllib3, requests, pysolr, python-magic, python-oembed, qrcode, repoze.lru, requests-oauthlib, setproctitle, testfixtures, timermiddleware, turbogears2, waitress, webhelpers2, webtest, wrapt Successfully installed activitystream-0.3.0 asn1crypto-0.24.0 backlash-0.1.4 backports.functools-lru-cache-1.5 backports.shutil-get-terminal-size-1.0.0 beaker-1.10.1 beautifulsoup4-4.8.0 bleach-3.1.4 certifi-2019.6.16 cffi-1.12.2 chardet-3.0.4 colander-1.7.0 crank-0.8.1 creoleparser-0.7.5 cryptography-2.6.1 datadiff-2.0.0 decorator-4.4.0 docutils-0.15.2 easywidgets-0.3.5 emoji-0.5.3 enum34-1.1.6 faulthandler-3.1 feedgenerator-1.9.1 feedparser-5.2.1 formencode-1.3.1 funcsigs-1.0.2 future-0.17.1 genshi-0.7.3 gitdb2-2.0.4 gitpython-2.1.11 gunicorn-19.5.0 html5lib-1.0.1 httplib2-0.13.1 idna-2.8 inflection-0.3.1 ipaddress-1.0.22 ipython-5.8.0 ipython-genutils-0.2.0 iso8601-0.1.12 jinja2-2.11.2 markdown-2.6.11 markdown-checklist-0.4.1 markupsafe-1.1.1 ming-0.5.7 mock-3.0.5 nose-1.3.7 oauth2-1.9.0.post1 oauthlib-3.0.2 paginate-0.5.6 paste-3.1.0 pastedeploy-2.0.1 pastescript-3.1.0 pathlib2-2.3.4 pexpect-4.7.0 pickleshare-0.7.5 pillow-6.2.2 profanityfilter-2.0.6 prompt-toolkit-1.0.16 ptyprocess-0.6.0 pycparser-2.19 pyflakes-2.1.1 pygments-2.4.2 pymongo-2.8.1 pypeline-0.5.2 pysolr-3.6.0 python-dateutil-2.8.0 python-magic-0.4.15 python-oembed-0.2.4 pytz-2019.1 qrcode-6.1 repoze.lru-0.7 requests-2.22.0 requests-oauthlib-1.2.0 scandir-1.10.0 setproctitle-1.1.9 simplegeneric-0.8.1 six-1.12.0 smmap2-2.0.4 soupsieve-1.9.3 testfixtures-6.10.0 textile-3.0.4 timermiddleware-0.5.1 traitlets-4.3.2 translationstring-1.3 turbogears2-2.3.12 urllib3-1.25.8 waitress-1.4.3 wcwidth-0.1.7 webencodings-0.5.1 webhelpers2-2.0 webob-1.7.4 webtest-2.0.33 wrapt-1.11.2 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting pycodestyle Using cached pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB) Requirement already satisfied: pyflakes in ./.allura-venv/lib/python2.7/site-packages (2.1.1) Collecting coverage Using cached coverage-5.1-cp27-cp27mu-manylinux1_x86_64.whl (224 kB) Processing /home/jenkins/.cache/pip/wheels/d5/c6/06/f237242ae0d6742cda23895f8741980762b0c1fb5a7f70bbea/nose_xunitmp-0.4.1-py2-none-any.whl Requirement already satisfied: nose in ./.allura-venv/lib/python2.7/site-packages (from nose-xunitmp) (1.3.7) Installing collected packages: pycodestyle, coverage, nose-xunitmp Successfully installed coverage-5.1 nose-xunitmp-0.4.1 pycodestyle-2.5.0 <https://builds.apache.org/job/Allura/ws/.allura-venv/local/lib/python2.7/site-packages/pycodestyle.py>:2527: UserWarning: [pep8] section is deprecated. Use [pycodestyle]. warnings.warn('[pep8] section is deprecated. Use [pycodestyle].') # setting up Allura dependencies /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'message_extractors' warnings.warn(msg) warning: no files found matching 'allura/public/favicon.ico' # setting up AlluraTest dependencies # setting up ForgeActivity dependencies # setting up ForgeBlog dependencies # setting up ForgeChat dependencies # setting up ForgeDiscussion dependencies # setting up ForgeFeedback dependencies # setting up ForgeGit dependencies # setting up ForgeImporters dependencies # setting up ForgeLink dependencies # setting up ForgeShortUrl dependencies # setting up ForgeSVN dependencies pysvn must be installed for ForgeSVN to work Traceback (most recent call last): File "setup.py", line 29, in <module> import pysvn ImportError: No module named pysvn # Error setting up ForgeSVN # You may want to run 'pip uninstall ForgeSVN' to un-register it so you don't get further errors. # setting up ForgeTracker dependencies # setting up ForgeUserStats dependencies # setting up ForgeWiki dependencies npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0. npm WARN deprecated exists-sync@0.0.4: Please replace with usage of fs.existsSync npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. > node-sass@4.13.1 install > <https://builds.apache.org/job/Allura/ws/node_modules/node-sass> > node scripts/install.js Cached binary found at /home/jenkins/.npm/node-sass/4.13.1/linux-x64-72_binding.node > core-js@2.6.11 postinstall > <https://builds.apache.org/job/Allura/ws/node_modules/core-js> > node -e "try{require('./postinstall')}catch(e){}" > node-sass@4.13.1 postinstall > <https://builds.apache.org/job/Allura/ws/node_modules/node-sass> > node scripts/build.js Binary found at <https://builds.apache.org/job/Allura/ws/node_modules/node-sass/vendor/linux-x64-72/binding.node> Testing binary Binary is fine npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN foundation-sites@6.6.3 requires a peer of jquery@>=2.2.0 but none is installed. You must install peer dependencies yourself. npm WARN foundation-sites@6.6.3 requires a peer of what-input@>=4.1.0 but none is installed. You must install peer dependencies yourself. added 553 packages from 388 contributors and audited 2161 packages in 43.038s 5 packages are looking for funding run `npm fund` for details found 34 vulnerabilities (8 low, 2 moderate, 23 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details Not running tests for ForgeSVN, since it isn't set up <DummyProcess(Thread-1, started daemon 140298044319488)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in AlluraTest <DummyProcess(Thread-2, started daemon 140298035926784)> running `nosetests allura/tests/ --with-xunitmp --processes=4 --process-timeout=360` in Allura <DummyProcess(Thread-3, started daemon 140298027534080)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeActivity <DummyProcess(Thread-4, started daemon 140298019141376)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeBlog <DummyProcess(Thread-6, started daemon 140298002355968)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeChat <DummyProcess(Thread-5, started daemon 140298010748672)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeDiscussion <DummyProcess(Thread-7, started daemon 140297656858368)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeFeedback <DummyProcess(Thread-8, started daemon 140297648465664)> running `nosetests --with-xunitmp ` in ForgeGit <DummyProcess(Thread-9, started daemon 140297640072960)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeImporters <DummyProcess(Thread-10, started daemon 140297631680256)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeLink <DummyProcess(Thread-11, started daemon 140297623287552)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeShortUrl <DummyProcess(Thread-12, started daemon 140297614894848)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeTracker <DummyProcess(Thread-13, started daemon 140297606502144)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeUserStats <DummyProcess(Thread-14, started daemon 140297052878592)> running `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeWiki <DummyProcess(Thread-15, started daemon 140297044485888)> running `npm run lint-es6` in . > allura@0.0.0 lint-es6 <https://builds.apache.org/job/Allura/ws/> > eslint -c .eslintrc-es6 --ignore-path .eslintignore-es6 > Allura/allura/public/**/*.es6.js || true finished `npm run lint-es6` in . ---------------------------------------------------------------------- Ran 0 tests in 4.583s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeFeedback .. ---------------------------------------------------------------------- Ran 2 tests in 7.532s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeChat ..........SSSSSSSSSSSSS...... ---------------------------------------------------------------------- Ran 29 tests in 11.622s OK (SKIP=13) ........... ---------------------------------------------------------------------- Ran 11 tests in 12.631s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in AlluraTest finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeShortUrl ................... ---------------------------------------------------------------------- Ran 19 tests in 14.334s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeLink ...................... ---------------------------------------------------------------------- Ran 22 tests in 18.314s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeActivity ............ ---------------------------------------------------------------------- Ran 12 tests in 29.826s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeUserStats .......................................................S.. ---------------------------------------------------------------------- Ran 58 tests in 36.548s OK (SKIP=1) finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeBlog ....................................................................S........................................................SSSS..SS..........S. ---------------------------------------------------------------------- Ran 145 tests in 41.451s OK (SKIP=8) finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeImporters .................................................................S........ ---------------------------------------------------------------------- Ran 74 tests in 53.481s OK (SKIP=1) finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeWiki .........................................................<https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py>:907: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. The code that caused this warning is on line 907 of the file <https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py.> To get rid of this warning, pass the additional argument 'features="html5lib"' to the BeautifulSoup constructor. file_link = BeautifulSoup(form.text).findAll('a')[2] ........................................................................ ---------------------------------------------------------------------- Ran 72 tests in 65.555s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeDiscussion ........................................<https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py>:950: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. The code that caused this warning is on line 950 of the file <https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py.> To get rid of this warning, pass the additional argument 'features="html5lib"' to the BeautifulSoup constructor. download = self.app.get(str(BeautifulSoup(form.text).findAll('a')[2]['href'])) ....<https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py>:1330: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. The code that caused this warning is on line 1330 of the file <https://builds.apache.org/job/Allura/ws/ForgeTracker/forgetracker/tests/functional/test_root.py.> To get rid of this warning, pass the additional argument 'features="html5lib"' to the BeautifulSoup constructor. error_message = BeautifulSoup(form.text).find('div', {'class': 'error'}) ...................................................................................................... ---------------------------------------------------------------------- Ran 203 tests in 116.252s OK finished `nosetests --with-xunitmp --processes=4 --process-timeout=360` in ForgeTracker ...........................................................................................................................................................................................................................................................................................................................................S...........................................................................................................................................................................................................................................................................................SSSSSSSS........................................................................................................................................................S........................................................................................................................................................................................................................................................................................................................................................................................................................................ ---------------------------------------------------------------------- Ran 1200 tests in 193.875s OK (SKIP=10) finished `nosetests allura/tests/ --with-xunitmp --processes=4 --process-timeout=360` in Allura ..................................................................F..................................................................................... ====================================================================== FAIL: forgegit.tests.functional.test_controllers.TestRootController.test_file_raw ---------------------------------------------------------------------- Traceback (most recent call last): File "<https://builds.apache.org/job/Allura/ws/.allura-venv/local/lib/python2.7/site-packages/nose/case.py",> line 197, in runTest self.test(*self.arg) File "<https://builds.apache.org/job/Allura/ws/ForgeGit/forgegit/tests/functional/test_controllers.py",> line 306, in test_file_raw 'attachment;filename="with%2Furlquote-literal.txt"') AssertionError: u'attachment;filename="with%252Furlquote-literal.txt"' != u'attachment;filename="with%2Furlquote-literal.txt"' - attachment;filename="with%252Furlquote-literal.txt" ? -- + attachment;filename="with%2Furlquote-literal.txt" -------------------- >> begin captured stdout << --------------------- Running setup_app() from allura.websetup --------------------- >> end captured stdout << ---------------------- ---------------------------------------------------------------------- Ran 152 tests in 280.093s FAILED (failures=1) finished `nosetests --with-xunitmp ` in ForgeGit Running setup_app() from allura.websetup /p/test/wiki/_discuss/thread/aa6acf8a78/ 200 OK {"sidebar": 1, "jinja": 1, "markdown": 4, "ming": 104} npm: 6.14.4 hostname: asf937 NODE_NAME: H37 Build step 'Execute shell' marked build as failure Recording plot data [Cobertura] Skipping Cobertura coverage report as build was not SUCCESS or better ... Recording test results