See 
<https://ci-builds.apache.org/job/Allura/job/Allura-py3.7/231/display/redirect?page=changes>

Changes:

[dbrondsema] Escape colons in the registration_ip field for IPv6 addresses


------------------------------------------
[...truncated 25.55 KB...]
rootdir: /allura
configfile: pytest.ini
plugins: sugar-0.9.7, xdist-3.2.1
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [4] / gw1 [4] / gw2 [4] / gw3 [4]

finished `npm run lint-es6` in ., with returncode: 0
...F                                                                     [100%]
=================================== FAILURES ===================================
__________________________________ test_ruff ___________________________________
[gw0] linux -- Python 3.7.16 /allura-data/virtualenv/bin/python3.7
alluratest/test_syntax.py:71: in test_ruff
    raise Exception('ruff failure, see stdout')
E   Exception: ruff failure, see stdout
----------------------------- Captured stdout call -----------------------------
Allura/allura/lib/search.py:228:29: W605 [*] Invalid escape sequence: `\:`
    |
228 |         # and wouldn't handle f...@bar.com split on @ either
229 |         # This should work, but doesn't for unknown reasons: q = u'{!term 
f=%s}%s' % (field, q)
230 |         q = q.replace(':', '\:') # Must escape the colon for IPv6 
addresses
    |                             ^^ W605
231 |         q = obj.translate_query(f'{field}:({q})', fields)
232 |         kw['q.op'] = 'AND'  # so that all terms within the () are required
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:35: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                   ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:40: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                        ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:46: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                              ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:52: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                                    ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:58: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                                          ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:64: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                                                ^^ W605
    |
    = help: Add backslash to escape sequence

Allura/allura/tests/unit/test_solr.py:125:70: W605 [*] Invalid escape sequence: 
`\:`
    |
125 |         site_admin_search(User, '2601:404:c300:a560:598f:9336:d2bb:9e32', 
'registration_ip')
126 |         search.assert_called_once_with(
127 |             
'registration_ip:(2601\:404\:c300\:a560\:598f\:9336\:d2bb\:9e32)', fq=fq, 
ignore_errors=False, **{'q.op': 'AND'})
    |                                                                      ^^ 
W605
    |
    = help: Add backslash to escape sequence

Found 8 errors.
[*] 8 potentially fixable with the --fix option.
----------- generated xml file: /allura/AlluraTest/pytest.junit.xml ------------
=========================== short test summary info ============================
FAILED alluratest/test_syntax.py::test_ruff - Exception: ruff failure, see st...
========================= 1 failed, 3 passed in 5.29s ==========================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in AlluraTest, with returncode: 1
collected 87 items

gw0 [14] / gw1 [14] / gw2 [14] / gw3 [14]

collected 154 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 [147] / gw1 [147] / gw2 [147] / gw3 [147]

gw0 [72] / gw1 [72] / gw2 [72] / gw3 [72]

gw0 [13] / gw1 [13] / gw2 [13] / gw3 [13]

gw0 [2] / gw1 [2] / gw2 [2] / gw3 [2]

gw0 [76] / gw1 [76] / gw2 [76] / gw3 [76]

gw0 [22] / gw1 [22] / gw2 [22] / gw3 [22]

gw0 [59] / gw1 [59] / gw2 [59] / gw3 [59]

gw0 [206] / gw1 [206] / gw2 [206] / gw3 [206]

forgesvn/tests/test_svn_app.py ..                                        [  2%]
forgegit/tests/test_git_app.py ..                                        [  1%]
gw0 [1243] / gw1 [1243] / gw2 [1243] / gw3 [1243]

..                                                                       [100%]
------------ generated xml file: /allura/ForgeChat/pytest.junit.xml ------------
======================= 2 passed, 11 warnings in 21.32s ========================
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%]
forgesvn/tests/functional/test_auth.py ..                                [  9%]
........................................................................ [ 11%]
............................s...s....................ss................. [ 48%]
.............                                                            [100%]
---------- generated xml file: /allura/ForgeFeedback/pytest.junit.xml ----------
======================= 13 passed, 24 warnings in 35.02s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeFeedback, with returncode: 0
............                                                             [100%]
--------- generated xml file: /allura/ForgeUserStats/pytest.junit.xml ----------
======================= 12 passed, 29 warnings in 38.66s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeUserStats, with returncode: 0
...........                                                              [100%]
---------- generated xml file: /allura/ForgeShortUrl/pytest.junit.xml ----------
======================= 11 passed, 40 warnings in 39.41s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeShortUrl, with returncode: 0
...................                                                      [100%]
------------ generated xml file: /allura/ForgeLink/pytest.junit.xml ------------
======================= 19 passed, 63 warnings in 41.10s =======================
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%]
......................                                                   [100%]
---------- generated xml file: /allura/ForgeActivity/pytest.junit.xml ----------
======================= 22 passed, 74 warnings in 44.80s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeActivity, with returncode: 0
........................................................................ [ 34%]
........................................................................ [ 23%]
..............                                                           [100%]
----------- generated xml file: /allura/ForgeFiles/pytest.junit.xml ------------
======================= 14 passed, 48 warnings in 51.06s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeFiles, with returncode: 0
......................s.s...................................s........... [ 97%]
........................................................................ [ 29%]
...s.......................................................              [100%]
------------ generated xml file: /allura/ForgeBlog/pytest.junit.xml ------------
============ 58 passed, 1 skipped, 175 warnings in 68.92s (0:01:08) ============
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeBlog, with returncode: 0
........................................................................ [ 34%]
........................................................................ [ 40%]
forgegit/tests/functional/test_controllers.py .......................... [ 27%]
s....................................................................... [ 94%]
....                                                                     [100%]
------------ generated xml file: /allura/ForgeWiki/pytest.junit.xml ------------
=========== 75 passed, 1 skipped, 243 warnings in 113.09s (0:01:53) ============
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeWiki, with returncode: 0
forgesvn/tests/functional/test_controllers.py ........................   [ 36%]
........................................................................ [ 46%]
........................................................................ [100%]
--------- generated xml file: /allura/ForgeDiscussion/pytest.junit.xml ---------
================= 72 passed, 294 warnings in 127.72s (0:02:07) =================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeDiscussion, with returncode: 0
.s.                                                                      [100%]
--------- generated xml file: /allura/ForgeImporters/pytest.junit.xml ----------
=========== 139 passed, 8 skipped, 284 warnings in 142.90s (0:02:22) ===========
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeImporters, with returncode: 0
........................................................................ [ 52%]
........................................................................ [ 58%]
.................................................s...................... [ 63%]
forgesvn/tests/model/test_repository.py ................................ [ 73%]
...................                                                      [ 95%]
forgesvn/tests/model/test_svnimplementation.py ....                      [100%]

------------ generated xml file: /allura/ForgeSVN/pytest.junit.xml -------------
================= 87 passed, 153 warnings in 203.62s (0:03:23) =================
........................................................................ [ 69%]
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml ` in 
ForgeSVN, with returncode: 0
......................................................                   [ 62%]
........................................................................ [ 75%]
........................................................................ [ 69%]
........................................................................ [ 81%]
forgegit/tests/model/test_repository.py ................................ [ 83%]
........................................................................ [ 86%]
........................................................................ [ 92%]
...............................ssssssss................................. [ 98%]
..................                                                       [100%]
------------- generated xml file: /allura/Allura/pytest.junit.xml --------------
========= 1233 passed, 10 skipped, 1805 warnings in 263.55s (0:04:23) ==========
finished `pytest allura/tests/ --disable-warnings --junit-xml=pytest.junit.xml 
-n 4 --dist loadfile` in Allura, with returncode: 0
..........................                                               [100%]

------------ generated xml file: /allura/ForgeGit/pytest.junit.xml -------------
================ 154 passed, 400 warnings in 266.18s (0:04:26) =================
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, 652 warnings in 375.11s (0:06:15) =================
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_mongo_1 ... done
Removing allura_web_1   ... done
Removing allura_solr_1  ... done
Removing network allura_default
Total reclaimed space: 0B
Deleted Volumes:
2665786743a4f73a04ebd16d9217bd9a91778645c59928a7f22c3bfe43e86c5e
692e56cc017bcd40792905714635e997091f4d960456b9dfddf667b3469bacf7
e8737f5c23f2164156eaa14dd3f4277be7cf1543b33025bd3d5540ca818ae73a
741a96e6c55d36717e9bd3705eb5714ce4eba93c66fec96a94fd6004b52bfb58
5c86eaac1eac54f8d7a614d5508f80ed4a5c91adfe62e6b4d9f132ebf0dcdf0e

Total reclaimed space: 675.5MB
Build step 'Execute shell' marked build as failure
Recording test results
[Checks API] No suitable checks publisher found.

Reply via email to