See
<https://ci-builds.apache.org/job/Allura/job/Allura-py3.7/211/display/redirect?page=changes>
Changes:
[Dillon Walls] [#8503] deprecation warnings - hotfix for failing tests
------------------------------------------
[...truncated 34.61 KB...]
'bugs', 'mount_label': 'Tickets', 'ordinal': 4,
'EnableVoting': True, 'TicketMonitoringEmail': '',
'TicketMonitoringType': None, 'AllowEmailPosting': True}
tool_data=I{} acl=I[{'access': 'ALLOW', 'permission':
'read', 'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe9')}, {'access': 'ALLOW',
'permission': 'post', 'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe8')}, {'access': 'ALLOW',
'permission': 'unmoderated_post', 'reason': None,
'role_id': ObjectId('64186e14ac8fb69f26842fe8')},
{'access': 'ALLOW', 'permission': 'create', 'reason':
None, 'role_id': ObjectId('64186e14ac8fb69f26842fe8')},
{'access': 'ALLOW', 'permission': 'update', 'reason':
None, 'role_id': ObjectId('64186e14ac8fb69f26842fe6')},
{'access': 'ALLOW', 'permission': 'moderate', 'reason':
None, 'role_id': ObjectId('64186e14ac8fb69f26842fe6')},
{'access': 'ALLOW', 'permission': 'save_searches',
'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe6')}, {'access': 'ALLOW',
'permission': 'delete', 'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe6')}, {'access': 'ALLOW',
'permission': 'configure', 'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe5')}, {'access': 'ALLOW',
'permission': 'admin', 'reason': None, 'role_id':
ObjectId('64186e14ac8fb69f26842fe5')}]>]
WARNING allura.lib.custom_middleware:custom_middleware.py:202 CSRF attempt
detected: cookie
'0f9e671f6a67c4b2da74c49fc5ba9debbe1496aa9b03f8792ec9188a65efcb9d637faef92fb42716'
!= param None
___________ TestTracTicketImportController.test_url_wiki_import_fail ___________
[gw0] linux -- Python 3.7.16 /allura-data/virtualenv/bin/python3.7
self = <forgeimporters.trac.tests.test_tickets.TestTracTicketImportController
testMethod=test_url_wiki_import_fail>
import_tool = <MagicMock name='import_tool' id='140060044658896'>
head = <MagicMock name='head' id='140059954874320'>
@with_wiki
@patch('forgeimporters.trac.requests.head')
@patch('forgeimporters.base.import_tool')
def test_url_wiki_import_fail(self, import_tool, head):
head.return_value.status_code = 200
params = dict(trac_url='https://sf-1.xb.sf.net/trac/url',
mount_label='mylabel',
mount_point='mymount',
)
r = self.app.post('/p/test/admin/ext/import/trac-wiki/create', params,
> status=200)
forgeimporters/trac/tests/test_tickets.py:208:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../AlluraTest/alluratest/validation.py:351: in post
resp = super().post(*args, **kw)
../AlluraTest/alluratest/validation.py:293: in post
return super().post(*args, **kwargs)
../AlluraTest/alluratest/validation.py:230: in post
return super().post(*args, **kwargs)
/allura-data/virtualenv/lib/python3.7/site-packages/webtest/app.py:372: in post
content_type=content_type)
/allura-data/virtualenv/lib/python3.7/site-packages/webtest/app.py:750: in
_gen_request
expect_errors=expect_errors)
../AlluraTest/alluratest/validation.py:368: in do_request
resp = super().do_request(*args, **kwargs)
/allura-data/virtualenv/lib/python3.7/site-packages/webtest/app.py:646: in
do_request
self._check_status(status, res)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <alluratest.validation.ValidatingTestApp object at 0x7f6244074050>
status = 200, res = <404 Not Found text/plain body=b'404 Not ...n '/52>
def _check_status(self, status, res):
if status == '*':
return
res_status = res.status
if (isinstance(status, str) and '*' in status):
if re.match(fnmatch.translate(status), res_status, re.I):
return
if isinstance(status, str):
if status == res_status:
return
if isinstance(status, (list, tuple)):
if res.status_int not in status:
raise AppError(
"Bad response: %s (not one of %s for %s)\n%s",
res_status, ', '.join(map(str, status)),
res.request.url, res)
return
if status is None:
if res.status_int >= 200 and res.status_int < 400:
return
raise AppError(
"Bad response: %s (not 200 OK or 3xx redirect for %s)\n%s",
res_status, res.request.url,
res)
if status != res.status_int:
raise AppError(
> "Bad response: %s (not %s)\n%s", res_status, status, res)
E webtest.app.AppError: Bad response: 404 Not Found (not 200)
E 404 Not Found
E
E The resource could not be found.
/allura-data/virtualenv/lib/python3.7/site-packages/webtest/app.py:681: AppError
------------------------------ Captured log call -------------------------------
DEBUG allura.model.artifact:artifact.py:629 Snapshot version 1 of <class
'forgewiki.model.wiki.Page'>
DEBUG allura.model.notification:notification.py:251 Notifications disabled
for project test, not sending metadata(<Page title='Home' text='Welcome to your
wiki!\n\nThis is
the default page, edit it as you see fit. To add a new
page simply reference it within brackets, e.g.:
[SamplePage].\n\nThe wiki uses
[Markdown](/p/test/wiki/markdown_syntax/)
syntax.\n\n[[members limit=20]]\n' text_cache=I{'md5':
None, 'fix7528': <Missing>, 'html': None, 'render_time':
None} version=1 _id=ObjectId('64186e16ac8fb69f268431f8')
mod_date=datetime.datetime(2023, 3, 20, 14, 30, 46,
258107) app_config_id=ObjectId('64186e16ac8fb69f268431f2')
acl=I[] labels=I[] import_id=None deleted=False>)
INFO allura.model.monq_model:monq_model.py:241 starting <MonQTask
64186e16ac8fb69f268431f5 (ready) P:10 allura.tasks.index_tasks.add_artifacts
setup project:/p/test/ app:wiki user:test-admin>
WARNING allura.tasks.index_tasks:index_tasks.py:62 add_artifacts task changed
objects, causing writes back to mongo: [<AppConfig
_id=ObjectId('64186e16ac8fb69f268431f2')
project_id=ObjectId('64186e16ac8fb69f268431bf')
discussion_id=ObjectId('64186e16ac8fb69f268431f3')
tool_name='wiki' version=None options=I{'mount_point':
'wiki', 'mount_label': 'Wiki', 'ordinal': 4,
'AllowEmailPosting': True, 'project_name': 'Test Project'}
tool_data=I{} acl=I[{'access': 'ALLOW', 'permission':
'read', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c4')}, {'access': 'ALLOW',
'permission': 'post', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c3')}, {'access': 'ALLOW',
'permission': 'unmoderated_post', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c3')},
{'access': 'ALLOW', 'permission': 'create', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'edit', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'delete', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'moderate', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'configure', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c0')},
{'access': 'ALLOW', 'permission': 'admin', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c0')}]>]
INFO allura.model.monq_model:monq_model.py:241 starting <MonQTask
64186e16ac8fb69f268431fb (ready) P:10 allura.tasks.index_tasks.add_artifacts
setup project:/p/test/ app:wiki user:test-admin>
WARNING allura.tasks.index_tasks:index_tasks.py:62 add_artifacts task changed
objects, causing writes back to mongo: [<AppConfig
_id=ObjectId('64186e16ac8fb69f268431f2')
project_id=ObjectId('64186e16ac8fb69f268431bf')
discussion_id=ObjectId('64186e16ac8fb69f268431f3')
tool_name='wiki' version=None options=I{'mount_point':
'wiki', 'mount_label': 'Wiki', 'ordinal': 4,
'AllowEmailPosting': True, 'project_name': 'Test Project'}
tool_data=I{} acl=I[{'access': 'ALLOW', 'permission':
'read', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c4')}, {'access': 'ALLOW',
'permission': 'post', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c3')}, {'access': 'ALLOW',
'permission': 'unmoderated_post', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c3')},
{'access': 'ALLOW', 'permission': 'create', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'edit', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'delete', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'moderate', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'configure', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c0')},
{'access': 'ALLOW', 'permission': 'admin', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c0')}]>]
INFO allura.model.monq_model:monq_model.py:241 starting <MonQTask
64186e16ac8fb69f268431fe (ready) P:10 allura.tasks.index_tasks.add_artifacts
setup project:/p/test/ app:wiki user:test-admin>
WARNING allura.tasks.index_tasks:index_tasks.py:62 add_artifacts task changed
objects, causing writes back to mongo: [<AppConfig
_id=ObjectId('64186e16ac8fb69f268431f2')
project_id=ObjectId('64186e16ac8fb69f268431bf')
discussion_id=ObjectId('64186e16ac8fb69f268431f3')
tool_name='wiki' version=None options=I{'mount_point':
'wiki', 'mount_label': 'Wiki', 'ordinal': 4,
'AllowEmailPosting': True, 'project_name': 'Test Project'}
tool_data=I{} acl=I[{'access': 'ALLOW', 'permission':
'read', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c4')}, {'access': 'ALLOW',
'permission': 'post', 'reason': None, 'role_id':
ObjectId('64186e16ac8fb69f268431c3')}, {'access': 'ALLOW',
'permission': 'unmoderated_post', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c3')},
{'access': 'ALLOW', 'permission': 'create', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'edit', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c2')},
{'access': 'ALLOW', 'permission': 'delete', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'moderate', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c1')},
{'access': 'ALLOW', 'permission': 'configure', 'reason':
None, 'role_id': ObjectId('64186e16ac8fb69f268431c0')},
{'access': 'ALLOW', 'permission': 'admin', 'reason': None,
'role_id': ObjectId('64186e16ac8fb69f268431c0')}]>]
WARNING allura.lib.custom_middleware:custom_middleware.py:202 CSRF attempt
detected: cookie
'66ef5df37198c0ab1d8867511a1a4609738681c54488cc64f127d08e86baebda4cdb587a39c95b1e'
!= param None
--------- generated xml file: /allura/ForgeImporters/pytest.junit.xml ----------
=========================== short test summary info ============================
FAILED
forgeimporters/trac/tests/test_tickets.py::TestTracTicketImportController::test_url_ticket_import_fail
FAILED
forgeimporters/trac/tests/test_tickets.py::TestTracTicketImportController::test_url_wiki_import_fail
====== 2 failed, 138 passed, 8 skipped, 292 warnings in 141.69s (0:02:21) ======
finished `pytest --disable-warnings --junit-xml=pytest.junit.xml -n 4 --dist
loadfile` in ForgeImporters, with returncode: 1
........................................................................ [ 52%]
........................................................................ [ 57%]
.........................................................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 198.46s (0:03:18) =================
finished `pytest --disable-warnings --junit-xml=pytest.junit.xml ` in
ForgeSVN, with returncode: 0
........................................................................ [ 69%]
...................................................... [ 62%]
........................................................................ [ 75%]
........................................................................ [ 81%]
........................................................................ [ 69%]
forgegit/tests/model/test_repository.py ................................ [ 83%]
........................................................................ [ 86%]
........................................................................ [ 92%]
...................................s.sssssss............................ [ 98%]
.......................... [100%]
------------ generated xml file: /allura/ForgeGit/pytest.junit.xml -------------
================ 154 passed, 406 warnings in 260.72s (0:04:20) =================
finished `pytest --disable-warnings --junit-xml=pytest.junit.xml ` in
ForgeGit, with returncode: 0
................... [100%]
------------- generated xml file: /allura/Allura/pytest.junit.xml --------------
========= 1233 passed, 10 skipped, 1819 warnings in 261.89s (0:04:21) ==========
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, 665 warnings in 376.98s (0:06:16) =================
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_solr_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.