See <https://ci-builds.apache.org/job/Allura/job/Allura-py3.7/191/display/redirect?page=changes>
Changes: [dbrondsema] [#8495] fix DeprecationWarning '_to_python' [dbrondsema] [#8495] fix DeprecationWarning '_from_python' [dbrondsema] [#8495] fix DeprecationWarning 'ming.orm' -> 'ming.odm' [dbrondsema] [#8495] fix DeprecationWarning pymongo - 'remove' -> 'delete_many/one' [dbrondsema] [#8495] fix DeprecationWarning tg use ['tm.enabled'] = False instead of 'use_transaction_manager' [dbrondsema] [#8495] fix DeprecationWarning 'beaker.session.*' config keys -> 'session.*' [dbrondsema] [#8495] fix DeprecationWarning 'log.warn' - 'log.warning' [dbrondsema] [#8495] fix DeprecationWarning PIL 'ANTIALIAS' -> 'LANCZOS' ------------------------------------------ [...truncated 146.21 KB...] ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 > [email protected] lint-es6 /allura > eslint -c .eslintrc-es6 --ignore-path .eslintignore-es6 > Allura/allura/public/**/*.es6.js || true ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 ============================= test session starts ============================== platform linux -- Python 3.7.16, pytest-7.2.1, pluggy-1.0.0 rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I rootdir: /allura, configfile: pytest.ini plugins: sugar-0.9.6, xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I gw0 [29] / gw1 [29] / gw2 [29] / gw3 [29] finished `npm run lint-es6` in ., with returncode: 0 collected 87 items gw0 [12] / gw1 [12] / gw2 [12] / gw3 [12] gw0 [11] / gw1 [11] / gw2 [11] / gw3 [11] gw0 [19] / gw1 [19] / gw2 [19] / gw3 [19] gw0 [14] / gw1 [14] / gw2 [14] / gw3 [14] gw0 [59] / gw1 [59] / gw2 [59] / gw3 [59] gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2] gw0 [72] / gw1 [72] / gw2 [72] / gw3 [72] gw0 [22] / gw1 [22] / gw2 [22] / gw3 [22] collected 154 items gw0 [13] / gw1 [13] / gw2 [13] / gw3 [13] gw0 [206] / gw1 [206] / gw2 [206] / gw3 [206] gw0 [76] / gw1 [76] / gw2 [76] / gw3 [76] gw0 [146] / gw1 [146] / gw2 [146] / gw3 [146] forgesvn/tests/test_svn_app.py .. [ 2%] forgegit/tests/test_git_app.py .. [ 1%] gw0 [1241] / gw1 [1241] / gw2 [1241] / gw3 [1241] .. [100%] ------------ generated xml file: /allura/ForgeChat/pytest.junit.xml ------------ ======================= 2 passed, 11 warnings in 24.15s ======================== finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeChat, with returncode: 0 forgesvn/tests/test_tasks.py .... [ 6%] ...................................................s.................... [ 5%] forgegit/tests/test_tasks.py ..... [ 4%] ........................................................................ [ 11%] forgesvn/tests/functional/test_auth.py .. [ 9%] ............. [100%] ---------- generated xml file: /allura/ForgeFeedback/pytest.junit.xml ---------- ======================= 13 passed, 43 warnings in 31.00s ======================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeFeedback, with returncode: 0 ............................s.......ss........................s......... [ 49%] ...s.s.s.s.s.s.s.s.s.s.s.s.s. [100%] ----------- generated xml file: /allura/AlluraTest/pytest.junit.xml ------------ ======================= 16 passed, 13 skipped in 33.66s ======================== finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in AlluraTest, with returncode: 0 ........... [100%] ---------- generated xml file: /allura/ForgeShortUrl/pytest.junit.xml ---------- ======================= 11 passed, 66 warnings in 35.44s ======================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeShortUrl, with returncode: 0 ............ [100%] --------- generated xml file: /allura/ForgeUserStats/pytest.junit.xml ---------- ====================== 12 passed, 144 warnings in 40.04s ======================= ................... [100%] ------------ generated xml file: /allura/ForgeLink/pytest.junit.xml ------------ ====================== 19 passed, 108 warnings in 40.30s ======================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeUserStats, with returncode: 0 finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeLink, with returncode: 0 ........................................................................ [ 17%] forgegit/tests/functional/test_auth.py ......... [ 10%] ........................................................................ [ 23%] .............. [100%] ----------- generated xml file: /allura/ForgeFiles/pytest.junit.xml ------------ ======================= 14 passed, 65 warnings in 56.51s ======================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeFiles, with returncode: 0 ...................... [100%] ---------- generated xml file: /allura/ForgeActivity/pytest.junit.xml ---------- ====================== 22 passed, 118 warnings in 58.64s ======================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeActivity, with returncode: 0 ........................................................................ [ 34%] ........................................................................ [ 29%] .s......................................................... [100%] ------------ generated xml file: /allura/ForgeBlog/pytest.junit.xml ------------ ============ 58 passed, 1 skipped, 404 warnings in 88.81s (0:01:28) ============ finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeBlog, with returncode: 0 ........................................................................ [ 34%] .........ss..................................................s.......... [ 98%] ........................................................................ [ 40%] forgegit/tests/functional/test_controllers.py .......................... [ 27%] s. [100%] --------- generated xml file: /allura/ForgeImporters/pytest.junit.xml ---------- =========== 138 passed, 8 skipped, 514 warnings in 147.36s (0:02:27) =========== finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeImporters, with returncode: 0 s....................................................................... [ 94%] .... [100%] ------------ generated xml file: /allura/ForgeWiki/pytest.junit.xml ------------ =========== 75 passed, 1 skipped, 852 warnings in 173.40s (0:02:53) ============ finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeWiki, with returncode: 0 ........................................................................ [ 46%] forgesvn/tests/functional/test_controllers.py ........................ [ 36%] ........................................................................ [100%] --------- generated xml file: /allura/ForgeDiscussion/pytest.junit.xml --------- ================ 72 passed, 1010 warnings in 193.97s (0:03:13) ================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeDiscussion, with returncode: 0 ........................................................................ [ 52%] ........................................................................ [ 58%] forgesvn/tests/model/test_repository.py ................................ [ 73%] ........................................................s............... [ 63%] ................... [ 95%] forgesvn/tests/model/test_svnimplementation.py .... [100%] ------------ generated xml file: /allura/ForgeSVN/pytest.junit.xml ------------- ================ 87 passed, 4406 warnings in 316.43s (0:05:16) ================= finished `pytest --disable-warnings --junit-xml=pytest.junit.xml ` in ForgeSVN, with returncode: 0 ........................................................................ [ 69%] ...................................................... [ 62%] ........................................................................ [ 75%] ......................F................................................. [ 81%] ........................................................................ [ 69%] forgegit/tests/model/test_repository.py ................................ [ 83%] ........................................................................ [ 87%] ........................................................................ [ 92%] ...................................ssssssss............................. [ 98%] ................. [100%] =================================== FAILURES =================================== _____________________ TestAuth.test_user_by_email_address ______________________ [gw0] linux -- Python 3.7.16 /allura-data/virtualenv/bin/python3.7 self = <allura.tests.model.test_auth.TestAuth object at 0x7f73a897b790> log = <MagicMock name='log' id='140134489852112'> @patch('allura.model.auth.log') def test_user_by_email_address(self, log): u1 = M.User.register(dict(username='abc1'), make_project=False) u2 = M.User.register(dict(username='abc2'), make_project=False) addr1 = M.EmailAddress(email='[email protected]', confirmed=True, claimed_by_user_id=u1._id) addr2 = M.EmailAddress(email='[email protected]', confirmed=True, claimed_by_user_id=u2._id) # both users are disabled u1.disabled, u2.disabled = True, True ThreadLocalODMSession.flush_all() assert M.User.by_email_address('[email protected]') is None assert log.warn.call_count == 0 # only u2 is active u1.disabled, u2.disabled = True, False ThreadLocalODMSession.flush_all() assert M.User.by_email_address('[email protected]') == u2 assert log.warn.call_count == 0 # both are active u1.disabled, u2.disabled = False, False ThreadLocalODMSession.flush_all() assert M.User.by_email_address('[email protected]') in [u1, u2] > assert log.warn.call_count == 1 E AssertionError: assert 0 == 1 E + where 0 = <MagicMock name='log.warn' id='140134487653776'>.call_count E + where <MagicMock name='log.warn' id='140134487653776'> = <MagicMock name='log' id='140134489852112'>.warn allura/tests/model/test_auth.py:199: AssertionError ------------- generated xml file: /allura/Allura/pytest.junit.xml -------------- =========================== short test summary info ============================ FAILED allura/tests/model/test_auth.py::TestAuth::test_user_by_email_address ==== 1 failed, 1230 passed, 10 skipped, 5404 warnings in 435.23s (0:07:15) ===== finished `pytest allura/tests/ --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in Allura, with returncode: 1 .......................... [100%] ------------ generated xml file: /allura/ForgeGit/pytest.junit.xml ------------- ================ 154 passed, 3486 warnings in 435.40s (0:07:15) ================ finished `pytest --disable-warnings --junit-xml=pytest.junit.xml ` in ForgeGit, with returncode: 0 .............................................................. [100%] ---------- generated xml file: /allura/ForgeTracker/pytest.junit.xml ----------- ================ 206 passed, 2539 warnings in 669.49s (0:11:09) ================ finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist loadfile` in ForgeTracker, with returncode: 0 ============================================================================= Shutdown ============================================================================= Stopping allura_web_1 ... Stopping allura_solr_1 ... Stopping allura_web_1 ... done Stopping allura_solr_1 ... done Removing allura_web_1 ... Removing allura_solr_1 ... Removing allura_mongo_1 ... Removing allura_solr_1 ... done Removing allura_mongo_1 ... done Removing allura_web_1 ... done Removing network allura_default Total reclaimed space: 0B Total reclaimed space: 0B Build step 'Execute shell' marked build as failure Recording test results [Checks API] No suitable checks publisher found. Publishing Clover coverage report... No Clover report will be published due to a build Failure
