On Sat, 24 Dec 2016 16:07:05 -0500 Sergio Durigan Junior
<[email protected]> wrote:
> OK, managed to reproduce it here.
Bleach issue is fixed now, but I get 5 failures and 3 errors.
Attaching log.
======================================================================
ERROR: test_group_user_delete
(tests.test_pagure_flask_ui_groups.PagureFlaskGroupstests)
Test the group_user_delete endpoint.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pagure_flask_ui_groups.py", line 425, in
test_group_user_delete
output = self.app.get('/new/')
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 778, in get
return self.open(*args, **kw)
File "/usr/lib/python2.7/dist-packages/flask/testing.py", line 127, in open
follow_redirects=follow_redirects)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 751, in open
response = self.run_wsgi_app(environ, buffered=buffered)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 668, in
run_wsgi_app
rv = run_wsgi_app(self.application, environ, buffered=buffered)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 871, in
run_wsgi_app
app_rv = app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1994, in __call__
return self.wsgi_app(environ, start_response)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/proxy.py",
line 71, in __call__
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1540, in
handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in
full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1517, in
handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in
full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in
dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/__init__.py",
line 328, in decorated_function
return function(*args, **kwargs)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/ui/app.py",
line 371, in new_project
user = pagure.lib.search_user(SESSION, username=flask.g.fas_user.username)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/lib/__init__.py",
line 180, in search_user
output = query.first()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2690,
in first
ret = list(self[0:1])
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2482,
in __getitem__
return list(res)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2790,
in __iter__
return self._execute_and_instances(context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2813,
in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 945,
in execute
return meth(self, multiparams, params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 263,
in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1053,
in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1189,
in _execute_context
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1393,
in _handle_dbapi_exception
exc_info
File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203,
in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182,
in _execute_context
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line
470, in do_execute
cursor.execute(statement, parameters)
OperationalError: (pysqlite2.dbapi2.OperationalError) no such table: users
[SQL: u'SELECT users.id AS users_id, users.user AS users_user, users.fullname
AS users_fullname, users.public_ssh_key AS users_public_ssh_key,
users.default_email AS users_default_email, users.password AS users_password,
users.token AS users_token, users.created AS users_created, users.updated_on AS
users_updated_on \nFROM users \nWHERE users.user = ? ORDER BY users.user\n
LIMIT ? OFFSET ?'] [parameters: ('username', 1, 0)]
======================================================================
ERROR: test_view_tree (tests.test_pagure_flask_ui_repo.PagureFlaskRepotests)
Test the view_tree endpoint.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pagure_flask_ui_repo.py", line 1949, in test_view_tree
'/fork/pingou/test3/blob/master/f/folder1/folder2')
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 778, in get
return self.open(*args, **kw)
File "/usr/lib/python2.7/dist-packages/flask/testing.py", line 127, in open
follow_redirects=follow_redirects)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 751, in open
response = self.run_wsgi_app(environ, buffered=buffered)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 668, in
run_wsgi_app
rv = run_wsgi_app(self.application, environ, buffered=buffered)
File "/usr/lib/python2.7/dist-packages/werkzeug/test.py", line 871, in
run_wsgi_app
app_rv = app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1994, in __call__
return self.wsgi_app(environ, start_response)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/proxy.py",
line 71, in __call__
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1540, in
handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in
full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1517, in
handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in
full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in
dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/tests/../pagure/ui/repo.py",
line 565, in view_file
safe=safe,
File "/usr/lib/python2.7/dist-packages/flask/templating.py", line 134, in
render_template
context, ctx.app)
File "/usr/lib/python2.7/dist-packages/flask/templating.py", line 116, in
_render
rv = template.render(context)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in
render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in
handle_exception
reraise(exc_type, exc_value, tb)
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/pagure/templates/file.html",
line 5, in top-level template code
{% set tag = "home" %}
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/pagure/templates/repo_master.html",
line 5, in top-level template code
{% set tag = "home" %}
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/pagure/templates/master.html",
line 116, in top-level template code
{% block content %}{% endblock %}
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/pagure/templates/repo_master.html",
line 286, in block "content"
{% block repo %}
File
"/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build/pagure/templates/file.html",
line 80, in block "repo"
{% set path = path + '/' + file %}
UndefinedError: 'path' is undefined
======================================================================
ERROR: tests.test_pagure_flask_ui_issues (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_pagure_flask_ui_issues
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 232, in
_get_module_from_name
__import__(name)
File "tests/test_pagure_flask_ui_issues.py", line 19, in <module>
import pyclamd
ImportError: No module named pyclamd
======================================================================
FAIL: test_is_watching (tests.test_pagure_lib.PagureLibtests)
Test the is_watching method of pagure.lib.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pagure_lib.py", line 2488, in test_is_watching
self.assertFalse(watch)
AssertionError: True is not false
======================================================================
FAIL: test_private_ticket_add_comment
(tests.test_pagure_flask_internal.PagureFlaskInternaltests)
Test the ticket_add_comment function on a private ticket.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "tests/test_pagure_flask_internal.py", line 288, in
test_private_ticket_add_comment
self.assertEqual(output.status_code, 403)
AssertionError: 200 != 403
======================================================================
FAIL: test_pull_request_add_comment
(tests.test_pagure_flask_internal.PagureFlaskInternaltests)
Test the pull_request_add_comment function.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "tests/test_pagure_flask_internal.py", line 130, in
test_pull_request_add_comment
self.assertEqual(output.status_code, 403)
AssertionError: 200 != 403
======================================================================
FAIL: test_ticket_add_comment
(tests.test_pagure_flask_internal.PagureFlaskInternaltests)
Test the ticket_add_comment function.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "tests/test_pagure_flask_internal.py", line 204, in
test_ticket_add_comment
self.assertEqual(output.status_code, 403)
AssertionError: 200 != 403
======================================================================
FAIL: test_do_login (tests.test_pagure_flask_ui_login.PagureFlaskLogintests)
Test the do_login endpoint.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_pagure_flask_ui_login.py", line 237, in test_do_login
'to an admin', output.data)
AssertionError: 'Could not set the session in the db, please report this error
to an admin' not found in '<!DOCTYPE html>\n<html lang=\'en\'>\n<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>\n
<title>Home - Pagure</title>\n <link rel="shortcut icon"
type="image/vnd.microsoft.icon"\n href="/static/favicon.ico"/>\n
<link
href="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css"\n
type="text/css" rel="stylesheet" />\n <link
href="/static/pagure.css"\n type="text/css" rel="stylesheet" />\n
<link href="/static/open-iconic/css/open-iconic.min.css"\n
type="text/css" rel="stylesheet" />\n <link href="/static/fonts/fonts.css"\n
rel="stylesheet" type="text/css" />\n <link
href="/static/hack_fonts/css/hack-extended.min.css"\n type="text/css"
rel="stylesheet" />\n<link href="/static/selectize.bootstrap3.css"\n
rel="stylesheet" />\n </head>\n <body id="home">\n <!-- start masthead -->\n
<div class="masthead">\n <div class="container">\n <div
class="row">\n <div class="col-sm-3">\n <a href="/">\n
<img height=40px src="/static/pagure-logo.png"\n
alt="pagure Logo" id="pagureLogo"/>\n </a>\n </div>\n
<div class="col-sm-9">\n <div class="row">\n\n <nav
class="navbar navbar-light p-t-0 p-b-0">\n <div class="container">\n
<ul class="nav navbar-nav nav-underline pull-xs-right">\n <li
class="nav-item p-l-1">\n <a class="nav-link btn btn-primary"
href="/login/?next=http://localhost/">\n Log In\n
</a>\n </li>\n </ul>\n </div>\n </nav>\n\n
</div>\n </div>\n </div>\n </div>\n </div><!-- close
masthead-->\n\n <div class="bodycontent p-b-3">\n\n <div
class="notification-spacer">\n <div class="container p-t-2">\n
<div class="alert alert-info alert-dismissible"
role="alert">\n <button type="button" class="close"
data-dismiss="alert" aria-label="Close">\n <span
aria-hidden="true">×</span>\n <span
class="sr-only">Close</span>\n </button>\n
Welcome foouser\n </div>\n </div>\n
</div>\n\n<div class="repo-header p-t-1">\n <div
class="container">\n <div class="row">\n <div class="col-md-8
col-md-offset-2">\n <form action="/search" id="headerSearch"
class="m-y-2">\n\n <select name="type" class="c-select"
style="display:none;">\n <option value="projects" selected
>Projects</option>\n <option value="projects_forks">Projects &
Forks</option>\n <option value="user">Users</option>\n
</select>\n\n <input type="text" name="term" id="term" placeholder="Search
projects" class="form-control" title="Search" />\n <input type="submit"
style="display:none;" value="Search" class="btn btn-primary" />\n </form>\n
</div>\n</div>\n<ul class="nav nav-tabs nav-small">\n <li class="nav-item">\n
<a class="nav-link active" href="/browse/projects/">Projects</a>\n </li>\n
<li class="nav-item">\n <a class="nav-link" href="/users">Users</a>\n
</li>\n <li class="nav-item">\n <a class="nav-link"
href="/groups">Groups</a>\n </li>\n</ul>\n </div>\n</div>\n <div
class="container">\n \n <section class="project_list container p-t-2"
id="repos">\n <h2 class="m-b-1">All Projects <span class="label
label-default">0</span></h2>\n <div class="row">\n <div
class="col-sm-6">\n </div>\n <div class="col-sm-6
text-xs-right">\n <span class="btn-group">\n <button
type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">\n Sort\n
</button>\n <div class="dropdown-menu dropdown-menu-right">\n
<a class="dropdown-item" href="/browse/projects/">\n
<span class="oi" data-glyph="check"></span>\n Name\n
</a>\n <a class="dropdown-item"
href="/browse/projects/?sorting=latest">\n Recent First\n
</a>\n <a class="dropdown-item"
href="/browse/projects/?sorting=oldest">\n Oldest First\n
</a>\n </div>\n </span>\n </div>\n
</div>\n <div class="row">\n <p>No projects
found</p>\n\n </div>\n </section>\n\n </div>\n\n </div>\n\n
<div class="footer p-t-1 p-b-1">\n <div class="container">\n
<p class="text-muted credit">\n Copyright © 2014-2016 Red Hat\n
<a href="https://pagure.io/pagure">pagure</a> --\n 2.6\n
</p>\n <p><a href="/ssh_info">SSH Hostkey/Fingerprint</a></p>\n
</div>\n </div>\n\n <script type="text/javascript"\n
src="/static/jquery.min.js">\n </script>\n <script
type="text/javascript"\n src="/static/jquery-ui.min.js">\n
</script>\n <script type="text/javascript"\n
src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.js">\n
</script>\n <script
type="text/javascript">\n$(\'[data-toggle="tooltip"]\').tooltip({placement :
\'bottom\'});\n </script>\n\n<script src="/static/jdenticon.min.js"
type="text/javascript"></script>\n<script src="/static/selectize.min.js"
type="text/javascript"> </script>\n<script
src="/static/jquery.dotdotdot.min.js" type="text/javascript"></script>\n<script
type="text/javascript">\n$(document).ready(function() {\n
$(\'#headerSearch\').on(\'keypress keydown keyup\', function(e) {\n if
(e.which == 13) {\n e.preventDefault();\n return false;\n
}\n});\n $(\'#term\').selectize({\n valueField: \'name\',\n labelField:
\'name\',\n onType: function(value){\n if (value == ""){\n
this.close();\n }\n },\n onChange: function(value){\n if (value
!= ""){\n $(\'#headerSearch\').submit();\n }\n },\n
searchField: \'name\',\n maxItems: 1,\n create: false,\n load:
function(query, callback) {\n if (!query.length) return callback();\n
$.getJSON(\n "/api/0/projects", {\n pattern: "*"+query+"*"\n
},\n function( data ) {\n callback( data.projects );\n
}\n );\n },\n render: {\n option: function(item, escape) {\n
return \'<div>\' +\n \'<div class="projecticon-search
pull-xs-left"><span class="oi" data-glyph="document"></span></div>\'+\n
\'<div class="title">\' +\n \'<span class="name"><strong>\' +
escape(item.name) + \'</strong></span>\' +\n \'</div>\' +\n
\'<div class="description"><small>\' + escape(item.description) +
\'</small></div>\' +\n \'</div>\';\n }\n },\n
});\n});\n</script>\n\n<script type="text/javascript">\n
$(document).ready(function() {\n $(".repo_desc").dotdotdot({\n
watch:"window"\n });\n });\n</script>\n\n\n\n</body>\n</html>'
----------------------------------------------------------------------
Ran 256 tests in 150.888s
FAILED (failures=5, errors=3)
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your user account
in_reply_to: None
mail_id: None
Contents:
Dear foouser,
Thank you for registering on pagure at
https://pagure.org/confirm/HSY89BRS7YQPC8097K236VVJ8OO7Z4I0GM34AWJQ.
To finish your registration, please click on the following link or copy/paste
it in your browser:
https://pagure.org/confirm/HSY89BRS7YQPC8097K236VVJ8OO7Z4I0GM34AWJQ
You account will not be activated until you finish this step.
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your user account
in_reply_to: None
mail_id: None
Contents:
Dear foouser,
Thank you for registering on pagure at
https://pagure.org/confirm/4AMAUSQ0PYZDYS67MPH1SBHGSP9NP5DVKCFGGS9J.
To finish your registration, please click on the following link or copy/paste
it in your browser:
https://pagure.org/confirm/4AMAUSQ0PYZDYS67MPH1SBHGSP9NP5DVKCFGGS9J
You account will not be activated until you finish this step.
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your user account
in_reply_to: None
mail_id: None
Contents:
Dear foouser,
Thank you for registering on pagure at
https://pagure.org/confirm/2N57K4T640LB59U5HXDSPIIF7I5J7KT0RSKJIS3K.
To finish your registration, please click on the following link or copy/paste
it in your browser:
https://pagure.org/confirm/2N57K4T640LB59U5HXDSPIIF7I5J7KT0RSKJIS3K
You account will not be activated until you finish this step.
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your password change
in_reply_to: None
mail_id: None
Contents:
Dear foo,
The IP address 127.0.0.1 has requested a password change for this account.
If you wish to change your password, please click on the following link or
copy/paste it in your browser:
https://pagure.org/password/reset/40JGEFQJC1FIEAMSMKDZTWYQJ5JHHEYTCU5XP7BZ
If you did not request this change, please inform an admin immediately!
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your user account
in_reply_to: None
mail_id: None
Contents:
Dear foouser,
Thank you for registering on pagure at
https://pagure.org/confirm/YHCKAC63AHNCSBMCYGKOSTTMRFIG96OFB69QQMA4.
To finish your registration, please click on the following link or copy/paste
it in your browser:
https://pagure.org/confirm/YHCKAC63AHNCSBMCYGKOSTTMRFIG96OFB69QQMA4
You account will not be activated until you finish this step.
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your password change
in_reply_to: None
mail_id: None
Contents:
Dear foo,
The IP address 127.0.0.1 has requested a password change for this account.
If you wish to change your password, please click on the following link or
copy/paste it in your browser:
https://pagure.org/password/reset/LSRPYWF62SGWUPN155KW72005SMCQMRWV6T3V9YW
If you did not request this change, please inform an admin immediately!
Sincerely,
Your pagure admin.
*****/EMAIL******
******EMAIL******
To: [email protected]
Subject: [Pagure] Confirm your user account
in_reply_to: None
mail_id: None
Contents:
Dear foouser,
Thank you for registering on pagure at
https://pagure.org/confirm/Q8H6QCDM9NTZEZ0Z9DC70IIPSM13AMH6T9995REC.
To finish your registration, please click on the following link or copy/paste
it in your browser:
https://pagure.org/confirm/Q8H6QCDM9NTZEZ0Z9DC70IIPSM13AMH6T9995REC
You account will not be activated until you finish this step.
Sincerely,
Your pagure admin.
*****/EMAIL******
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd
/home/pravi/forge/debian/git/pagure-new/.pybuild/pythonX.Y_2.7/build; python2.7
-m unittest discover -v
dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit
code 13
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1036:
dpkg-buildpackage -rfakeroot -us -uc -i -I --check-command=lintian failed
gbp:error: 'debuild -i -I -k0x4512c22a' failed: it exited with 29