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

Changes:

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


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

> allura@0.0.0 lint-es6 /allura
> eslint -c .eslintrc-es6  --ignore-path .eslintignore-es6 
> Allura/allura/public/**/*.es6.js || true

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.11.3 /allura-data/virtualenv/bin/python3.11
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.18s ==========================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in AlluraTest, with returncode: 1
collected 87 items

collected 154 items

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

gw0 [19] / gw1 [19] / gw2 [19] / gw3 [19]

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

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

gw0 [11] / gw1 [11] / gw2 [11] / gw3 [11]

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

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

gw0 [147] / gw1 [147] / gw2 [147] / gw3 [147]

gw0 [12] / gw1 [12] / gw2 [12] / gw3 [12]

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

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

forgesvn/tests/test_svn_app.py ..                                        [  2%]
gw0 [206] / gw1 [206] / gw2 [206] / gw3 [206]

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, 32 warnings in 20.84s ========================
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%]
forgesvn/tests/functional/test_auth.py ..                                [  9%]
forgegit/tests/test_tasks.py .....                                       [  4%]
........................................................................ [ 11%]
........................s.s.s.s.............s............................ [ 48%]
.............                                                            [100%]
---------- generated xml file: /allura/ForgeFeedback/pytest.junit.xml ----------
======================= 13 passed, 48 warnings in 31.11s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeFeedback, with returncode: 0
...................                                                      [100%]
------------ generated xml file: /allura/ForgeLink/pytest.junit.xml ------------
======================= 19 passed, 86 warnings in 34.74s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeLink, with returncode: 0
............                                                             [100%]
--------- generated xml file: /allura/ForgeUserStats/pytest.junit.xml ----------
======================= 12 passed, 51 warnings in 36.26s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeUserStats, with returncode: 0
........................................................................ [ 17%]
forgegit/tests/functional/test_auth.py .........                         [ 10%]
...........                                                              [100%]
---------- generated xml file: /allura/ForgeShortUrl/pytest.junit.xml ----------
======================= 11 passed, 61 warnings in 37.83s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeShortUrl, with returncode: 0
........................................................................ [ 23%]
......................                                                   [100%]
---------- generated xml file: /allura/ForgeActivity/pytest.junit.xml ----------
======================= 22 passed, 92 warnings in 48.70s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeActivity, with returncode: 0
..............                                                           [100%]
----------- generated xml file: /allura/ForgeFiles/pytest.junit.xml ------------
======================= 14 passed, 71 warnings in 49.14s =======================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeFiles, with returncode: 0
........................................................................ [ 34%]
........................................................................ [ 28%]
.s.........................................................              [100%]
------------ generated xml file: /allura/ForgeBlog/pytest.junit.xml ------------
============ 58 passed, 1 skipped, 199 warnings in 66.32s (0:01:06) ============
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..............................................s................... [ 98%]
s....................................................................... [ 94%]
forgesvn/tests/functional/test_controllers.py ........................   [ 36%]
....                                                                     [100%]
------------ generated xml file: /allura/ForgeWiki/pytest.junit.xml ------------
=========== 75 passed, 1 skipped, 266 warnings in 112.77s (0:01:52) ============
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeWiki, with returncode: 0
........................................................................ [ 46%]
........................................................................ [100%]
--------- generated xml file: /allura/ForgeDiscussion/pytest.junit.xml ---------
================= 72 passed, 318 warnings in 131.37s (0:02:11) =================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeDiscussion, with returncode: 0
........................................................................ [ 52%]
s.                                                                       [100%]
--------- generated xml file: /allura/ForgeImporters/pytest.junit.xml ----------
=========== 139 passed, 8 skipped, 308 warnings in 140.31s (0:02:20) ===========
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist 
loadfile` in ForgeImporters, with returncode: 0
........................................................................ [ 57%]
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, 159 warnings in 182.65s (0:03:02) =================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml ` in 
ForgeSVN, with returncode: 0
......................................................                   [ 62%]
........................................................................ [ 69%]
........................................................................ [ 75%]
forgegit/tests/model/test_repository.py ................................ [ 83%]
........................................................................ [ 81%]
........................................................................ [ 86%]
........................................................................ [ 92%]
........................................................................ [ 69%]
..........................                                               [100%]

------------ generated xml file: /allura/ForgeGit/pytest.junit.xml -------------
================ 154 passed, 406 warnings in 232.46s (0:03:52) =================
finished `pytest  --disable-warnings --junit-xml=pytest.junit.xml ` in 
ForgeGit, with returncode: 0
....................................sss.sssss........................... [ 98%]
...................                                                      [100%]
------------- generated xml file: /allura/Allura/pytest.junit.xml --------------
========= 1233 passed, 10 skipped, 1830 warnings in 245.54s (0:04:05) ==========
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/ForgeTracker/pytest.junit.xml -----------
================ 206 passed, 676 warnings in 362.64s (0:06:02) =================
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
Deleted Volumes:
7a93e1766e4b2f4a47980509822c3d8d1b5c6e2d21c783629300bdc6b76e2741

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

Reply via email to