bodhi-client query issues
by Roberto Sassu
Hi all
i'm using Fedora 12 and i have bodhi-client-0.7.4-1 installed.
I'm trying to execute this query:
bodhi -t bugfix -r F12 --status stable
to obtain the complete list of bugfix updates since release.
The problem is that i cannot disable the limit option and i'm only able
to receive the first 1000 records. Specifying the option -l 5000 doesn't
work for me.
Further i have another issue when executing:
bodhi kdenetwork -r F12
The program displays not only the history of the requested package but it includes
some other packages. I report a small output:
kdeaccessibility-4.4.2-1.fc12 security stable 2010-04-09
kdeadmin-4.4.2-1.fc12
kdeartwork-4.4.2-1.fc12
kdebase-4.4.2-1.fc12
kdebase-runtime-4.4.2-1.fc12
kdebindings-4.4.2-1.fc12
.....
konq-plugins-4.4.0-3.fc12
kdebase-workspace-4.4.2-5.fc12
kdelibs-4.4.2-2.fc12
kde-l10n-4.4.1-2.fc12 bugfix stable 2010-03-09
kdeaccessibility-4.4.1-1.fc12
kdeadmin-4.4.1-1.fc12
kdeartwork-4.4.1-1.fc12
.....
Thanks in advance for replies.
13 years, 6 months
bodhi/templates
by Luke Macken
bodhi/templates/master.kid | 2 +-
bodhi/templates/welcome.kid | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 15edfba566088639f8c4387646b28f2935c8f866
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri May 21 05:38:38 2010 -0400
Force https on our links to bodhi's fedorahosted (#430)
diff --git a/bodhi/templates/master.kid b/bodhi/templates/master.kid
index 930fc9b..5b6c789 100644
--- a/bodhi/templates/master.kid
+++ b/bodhi/templates/master.kid
@@ -142,7 +142,7 @@ $(document).ready(function() {
Copyright © 2007-2010 Red Hat, Inc. and others. All Rights Reserved.<br/>
Licensed under the GNU Public License v2 or later.<br />
The Fedora Project is maintained and driven by the community and sponsored by Red Hat.<br/>This is a community maintained site. Red Hat is not responsible for content.<br/>
- [ <a href="http://fedoraproject.org/wiki/Legal">Legal</a>, <a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a>, <a href="http://bodhi.fedorahosted.org">Source Code</a> ]
+ [ <a href="http://fedoraproject.org/wiki/Legal">Legal</a>, <a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a>, <a href="https://fedorahosted.org/bodhi">Source Code</a> ]
</div>
<!-- footer END -->
diff --git a/bodhi/templates/welcome.kid b/bodhi/templates/welcome.kid
index 62c602a..474d870 100644
--- a/bodhi/templates/welcome.kid
+++ b/bodhi/templates/welcome.kid
@@ -32,7 +32,7 @@
<tr>
<td>
<span id="bodhitip" title="Bodhi Project Homepage">
- <a href="http://fedorahosted.org/bodhi"><img src="${tg.url('/static/images/bodhi-icon-36.png')}" border="0" height="36" width="36"/></a>
+ <a href="https://fedorahosted.org/bodhi"><img src="${tg.url('/static/images/bodhi-icon-36.png')}" border="0" height="36" width="36"/></a>
</span>
</td>
<td>
13 years, 7 months
2 commits - bodhi/model.py bodhi/tests
by Luke Macken
bodhi/model.py | 3 +
bodhi/tests/test_controllers.py | 75 ++++++++++++++++++++++++++++++++++++++--
2 files changed, 74 insertions(+), 4 deletions(-)
New commits:
commit 4c5df526eda59d1edae9b8a1ae625f7d9af9dd2d
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Jun 30 19:41:56 2010 -0400
Improve our test suite to ensure that people can disable autokarma with critpath updates
diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py
index bb068a1..fe5804a 100644
--- a/bodhi/tests/test_controllers.py
+++ b/bodhi/tests/test_controllers.py
@@ -1510,6 +1510,73 @@ class TestControllers(testutil.DBTest):
update = PackageUpdate.byTitle(params['builds'])
assert update.request == 'testing'
+ def test_critpath_with_autokarma_disabled(self):
+ """
+ Ensure that people can still disable karma automatism with critpath
+ updates.
+ """
+ releng = login(group='proventesters')
+ create_release(locked=True)
+ params = {
+ 'builds' : 'kernel-2.6.31-1.fc7',
+ 'release' : 'Fedora 7',
+ 'type_' : 'bugfix',
+ 'bugs' : '',
+ 'notes' : 'foobar',
+ 'autokarma': False,
+ 'stable_karma' : 10,
+ 'request': None,
+ 'unstable_karma' : -10,
+ }
+ self.save_update(params, releng)
+ update = PackageUpdate.byTitle(params['builds'])
+ testutil.create_request('/updates/%s' % params['builds'],
+ method='GET', headers=releng)
+
+ # Ensure releng/QA can't push critpath updates alone
+ assert "Push to Testing" in cherrypy.response.body[0]
+ assert "Push Critical Path update to Stable" not in cherrypy.response.body[0]
+
+ # Have a developer +1 the update
+ developer = login(username='bob')
+ testutil.create_request('/updates/comment?text=foobar&title=%s&karma=1' %
+ params['builds'], method='POST', headers=developer)
+ testutil.create_request('/updates/%s' % params['builds'],
+ method='GET', headers=developer)
+ assert "Push Critical Path update to Stable" not in cherrypy.response.body[0]
+ update = PackageUpdate.byTitle(params['builds'])
+ assert not update.request
+ assert len(update.comments) == 1
+ assert update.comments[0].author == 'bob'
+
+ # Make sure not even releng can submit it to stable until it gets another
+ # approval
+ testutil.create_request('/updates/request/stable/%s' % params['builds'],
+ method='GET', headers=releng)
+ update = PackageUpdate.byTitle(params['builds'])
+ assert update.request == 'testing'
+ assert update.karma == 1
+ update.request = None
+
+ # Have another developer +1 it, so it gets up to +2
+ # Ensure we can't push it to stable, until we get admin approval
+ testutil.create_request('/updates/comment?text=foobar&title=%s&karma=1' %
+ params['builds'], method='POST',
+ headers=login(username='foobar'))
+ testutil.create_request('/updates/%s' % params['builds'],
+ method='GET', headers=login(username='foobar'))
+ assert "Push Critical Path update to Stable" not in cherrypy.response.body[0]
+ update = PackageUpdate.byTitle(params['builds'])
+ assert update.karma == 2
+ assert update.request != 'stable', update.request
+
+ # Have releng try again, and ensure it can be pushed to stable
+ testutil.create_request('/updates/comment?text=foobar&title=%s&karma=1' %
+ params['builds'], method='POST', headers=releng)
+ update = PackageUpdate.byTitle(params['builds'])
+ print update.stable_karma, update.unstable_karma
+ assert update.request == None
+
def test_critpath_to_pending_release_num_approved_comments(self):
"""
Ensure releng/qa can push critpath updates to stable for pending releases
@@ -1523,9 +1590,10 @@ class TestControllers(testutil.DBTest):
'type_' : 'bugfix',
'bugs' : '',
'notes' : 'foobar',
- 'stable_karma' : 1,
+ 'autokarma': True,
+ 'stable_karma' : 10,
'request': None,
- 'unstable_karma' : -1,
+ 'unstable_karma' : -10,
}
self.save_update(params, releng)
update = PackageUpdate.byTitle(params['builds'])
@@ -1573,7 +1641,8 @@ class TestControllers(testutil.DBTest):
testutil.create_request('/updates/comment?text=foobar&title=%s&karma=1' %
params['builds'], method='POST', headers=releng)
update = PackageUpdate.byTitle(params['builds'])
- assert update.request == 'stable'
+ print update.stable_karma, update.unstable_karma
+ assert update.request == 'stable', update.request
# Reset it
update.request = None
commit 7dcecc0e4061d9715948c441a67ac8788a315ffc
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Jun 30 19:32:26 2010 -0400
Only push approved critpath updates to stable if karma automatism is enabled
diff --git a/bodhi/model.py b/bodhi/model.py
index cd0320c..333f48b 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -766,8 +766,9 @@ class PackageUpdate(SQLObject):
# If we weren't approved before, and now are, push to stable
if not critpath_approved and self.critpath_approved:
self.comment('Critical path update approved', author='bodhi')
- self.request = 'stable'
mail.send_admin('critpath_approved', self)
+ if self.stable_karma != 0:
+ self.request = 'stable'
# Send a notification to everyone that has commented on this update
mail.send(self.people_to_notify(), 'comment', self)
13 years, 9 months
3 commits - bodhi/config bodhi/controllers.py bodhi/model.py bodhi/tools
by Luke Macken
bodhi/config/app.cfg | 2 +-
bodhi/controllers.py | 1 +
bodhi/model.py | 11 +++++------
bodhi/tools/client.py | 3 ++-
4 files changed, 9 insertions(+), 8 deletions(-)
New commits:
commit fc368a313119ac909d36228d0657577f33870f1b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Jun 30 19:15:50 2010 -0400
Hide obsolete updates in our critpath view (#447)
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index bffb70d..37a18ad 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -1308,6 +1308,7 @@ class Root(controllers.RootController):
releases = Release.select()
for update in PackageUpdate.select(
AND(PackageUpdate.q.status != 'stable',
+ PackageUpdate.q.status != 'obsolete',
OR(*[PackageUpdate.q.releaseID == release.id
for release in releases]))):
if update.critpath:
commit 83470a6daea3abe7abbdefc2fa0be4489521c820
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Jun 30 19:06:52 2010 -0400
Spit out some extra authentication related debugging in the client (#533666)
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py
index 9598efb..6f68796 100755
--- a/bodhi/tools/client.py
+++ b/bodhi/tools/client.py
@@ -379,7 +379,8 @@ def main():
parser.print_help()
break
- except AuthError:
+ except AuthError, e:
+ log.debug('Caught AuthError: %s' % str(e))
bodhi.password = getpass('Password for %s: ' % opts.username)
except ServerError, e:
log.exception(e)
commit a2561d966ac87c16fcb9a5552c902ee9348aa87f
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Jun 30 19:05:18 2010 -0400
Change the admin group ordering, and detection.
diff --git a/bodhi/config/app.cfg b/bodhi/config/app.cfg
index 67bcdf5..9813a99 100644
--- a/bodhi/config/app.cfg
+++ b/bodhi/config/app.cfg
@@ -74,7 +74,7 @@ release_team_address = None
security_team = None
# Superuser groups
-admin_groups = 'security_respons proventesters'
+admin_groups = 'proventesters security_respons'
# Where do we send update announcements to ?
# These variables should be named per: Release.prefix_id.lower()_announce_list
diff --git a/bodhi/model.py b/bodhi/model.py
index a63caa4..cd0320c 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -712,13 +712,12 @@ class PackageUpdate(SQLObject):
# Add admin groups to usernames (eg: "lmacken (releng)")
if not anonymous and author != 'bodhi':
- admin_groups = config.get('admin_groups',
- 'releng qa security_respons').split()
-
+ admin_groups = config.get('admin_groups', '').split()
try:
- for group in list(identity.current.groups)[::-1]:
- if group in admin_groups:
- author += ' (%s)' % group
+ groups = list(identity.current.groups)
+ for admin_group in admin_groups:
+ if admin_group in groups:
+ author += ' (%s)' % admin_group
break
except RequestRequiredException:
# This happens when we're adding comments from the masher,
13 years, 9 months
Build failed in Hudson: bodhi-py2.4 #57
by Luke Macken
See <http://ci.csh.rit.edu/job/bodhi-py2.4/57/changes>
Changes:
[Luke Macken] Enable strict critical path update policy across all releases.
[Luke Macken] Prep for 0.7.5 release
[Luke Macken] Improve our critpath controller method.
[Luke Macken] Use the new hashlib module instead of `sha`
[Luke Macken] Add an --untested argument to the bodhi client to display untested critpath
[Luke Macken] Update the title of our critpath updates table
[Luke Macken] Fix the logic in our /updates/critpath?untested=True method
------------------------------------------
Started by an SCM change
Checkout:workspace / <http://ci.csh.rit.edu/job/bodhi-py2.4/ws/> - hudson.remoting.LocalChannel@19cec59
Last Built Revision: Revision 7058f4e6363b6b36b414dca706e7e74ff00c9a92 (origin/master)
Checkout:workspace / <http://ci.csh.rit.edu/job/bodhi-py2.4/ws/> - hudson.remoting.LocalChannel@19cec59
GitAPI created
Env: _=/usr/bin/java
Env: BUILD_ID=2010-06-29_15-01-17
Env: BUILD_NUMBER=57
Env: BUILD_TAG=hudson-bodhi-py2.4-57
Env: BUILD_URL=http://ci.csh.rit.edu/job/bodhi-py2.4/57/
Env: CLASSPATH=
Env: EXECUTOR_NUMBER=0
Env: G_BROKEN_FILENAMES=1
Env: HISTSIZE=1000
Env: HOME=/home/hudson
Env: HOSTNAME=ci
Env: HUDSON_HOME=/home/hudson/.hudson
Env: HUDSON_URL=http://ci.csh.rit.edu/
Env: INPUTRC=/etc/inputrc
Env: JOB_NAME=bodhi-py2.4
Env: JOB_URL=http://ci.csh.rit.edu/job/bodhi-py2.4/
Env: LANG=en_US.UTF-8
Env: LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386
Env: LESSOPEN=|/usr/bin/lesspipe.sh %s
Env: LOGNAME=hudson
Env: LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
Env: MAIL=/var/spool/mail/hudson
Env: NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
Env: NODE_NAME=
Env: PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/hudson/bin
Env: PWD=/home/hudson
Env: SHELL=/bin/bash
Env: SHLVL=1
Env: TERM=screen
Env: USER=hudson
Env: WORKSPACE=<http://ci.csh.rit.edu/job/bodhi-py2.4/ws/>
Env: XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
Fetching changes from the remote Git repository
Fetching upstream changes from git://git.fedorahosted.org/git/bodhi
[workspace] $ git fetch -t git://git.fedorahosted.org/git/bodhi +refs/heads/*:refs/remotes/origin/*
[workspace] $ git ls-tree HEAD
[workspace] $ git tag -l master
[workspace] $ git rev-parse origin/master
Commencing build of Revision 3701e47d155b586e8e7bd3e5979db90e137c2f08 (origin/master)
GitAPI created
Env: _=/usr/bin/java
Env: BUILD_ID=2010-06-29_15-01-17
Env: BUILD_NUMBER=57
Env: BUILD_TAG=hudson-bodhi-py2.4-57
Env: BUILD_URL=http://ci.csh.rit.edu/job/bodhi-py2.4/57/
Env: CLASSPATH=
Env: EXECUTOR_NUMBER=0
Env: G_BROKEN_FILENAMES=1
Env: HISTSIZE=1000
Env: HOME=/home/hudson
Env: HOSTNAME=ci
Env: HUDSON_HOME=/home/hudson/.hudson
Env: HUDSON_URL=http://ci.csh.rit.edu/
Env: INPUTRC=/etc/inputrc
Env: JOB_NAME=bodhi-py2.4
Env: JOB_URL=http://ci.csh.rit.edu/job/bodhi-py2.4/
Env: LANG=en_US.UTF-8
Env: LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386
Env: LESSOPEN=|/usr/bin/lesspipe.sh %s
Env: LOGNAME=hudson
Env: LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
Env: MAIL=/var/spool/mail/hudson
Env: NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
Env: NODE_NAME=
Env: PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/hudson/bin
Env: PWD=/home/hudson
Env: SHELL=/bin/bash
Env: SHLVL=1
Env: TERM=screen
Env: USER=hudson
Env: WORKSPACE=<http://ci.csh.rit.edu/job/bodhi-py2.4/ws/>
Env: XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
Checking out Revision 3701e47d155b586e8e7bd3e5979db90e137c2f08 (origin/master)
[workspace] $ git checkout -f 3701e47d155b586e8e7bd3e5979db90e137c2f08
[workspace] $ git tag -a -f -m "Hudson Build #57" hudson-bodhi-py2.4-57
Recording changes in branch origin/master
[workspace] $ git log --pretty=format:%H 7058f4e6363b6b36b414dca706e7e74ff00c9a92..3701e47d155b586e8e7bd3e5979db90e137c2f08
[workspace] $ git log -M --summary --pretty=raw -n 1 3701e47d155b586e8e7bd3e5979db90e137c2f08
[workspace] $ git diff-tree -M -r 3701e47d155b586e8e7bd3e5979db90e137c2f08
[workspace] $ git log -M --summary --pretty=raw -n 1 7c71874695a6c1c710c2ba7641fae78e9e14355b
[workspace] $ git diff-tree -M -r 7c71874695a6c1c710c2ba7641fae78e9e14355b
[workspace] $ git log -M --summary --pretty=raw -n 1 570b250681d4a09a9d132fa094ee5b526bb90048
[workspace] $ git diff-tree -M -r 570b250681d4a09a9d132fa094ee5b526bb90048
[workspace] $ git log -M --summary --pretty=raw -n 1 1032ac2d04160fd94c0ac7574bf262eeaecd2a9b
[workspace] $ git diff-tree -M -r 1032ac2d04160fd94c0ac7574bf262eeaecd2a9b
[workspace] $ git log -M --summary --pretty=raw -n 1 d988cd2dd629e6f4b839c8d70612a214a33fc54c
[workspace] $ git diff-tree -M -r d988cd2dd629e6f4b839c8d70612a214a33fc54c
[workspace] $ git log -M --summary --pretty=raw -n 1 1656abac9ebee027d848e51a224a5a48e5de6c07
[workspace] $ git diff-tree -M -r 1656abac9ebee027d848e51a224a5a48e5de6c07
[workspace] $ git log -M --summary --pretty=raw -n 1 cc0325c1531c7b3affbe22ce98c55c64a20b91f2
[workspace] $ git diff-tree -M -r cc0325c1531c7b3affbe22ce98c55c64a20b91f2
[workspace] $ /bin/sh -xe /tmp/hudson8881383322653716888.sh
+ python setup.py egg_info
running egg_info
writing requirements to bodhi.egg-info/requires.txt
writing bodhi.egg-info/PKG-INFO
writing top-level names to bodhi.egg-info/top_level.txt
writing dependency_links to bodhi.egg-info/dependency_links.txt
writing entry points to bodhi.egg-info/entry_points.txt
reading manifest file 'bodhi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'start-bodhi'
warning: no files found matching 'ChangeLog'
writing manifest file 'bodhi.egg-info/SOURCES.txt'
+ nosetests
...............F..............................................Exception in thread VisitManager:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/usr/lib/python2.4/site-packages/turbogears/visit/api.py", line 352, in run
self.update_queued_visits(queue)
File "/usr/lib/python2.4/site-packages/turbogears/visit/sovisit.py", line 86, in update_queued_visits
conn.query(conn.sqlrepr(u))
File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py", line 846, in query
return self._dbConnection._query(self._connection, s)
File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py", line 349, in _query
self._executeRetry(conn, conn.cursor(), s)
File "/usr/lib/python2.4/site-packages/sqlobject/sqlite/sqliteconnection.py", line 178, in _executeRetry
raise OperationalError(ErrorMessage(e))
OperationalError: no such table: visit
..........E..........................................
======================================================================
ERROR: Failure: ImportError (No module named hashlib)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/nose/loader.py", line 363, in loadTestsFromName
module = self.importer.importFromPath(
File "/usr/lib/python2.4/site-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.4/site-packages/nose/importer.py", line 84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/hudson/.hudson/jobs/Bodhi/workspace/bodhi/tests/test_metadata.py", line 16, in ?
File "<http://ci.csh.rit.edu/job/bodhi-py2.4/ws/bodhi/metadata.py",> line 29, in ?
from bodhi.modifyrepo import RepoMetadata
File "<http://ci.csh.rit.edu/job/bodhi-py2.4/ws/bodhi/modifyrepo.py",> line 31, in ?
from hashlib import sha1 as sha
ImportError: No module named hashlib
======================================================================
FAIL: test_admin_push (bodhi.tests.test_controllers.TestControllers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<http://ci.csh.rit.edu/job/bodhi-py2.4/ws/bodhi/tests/test_controllers.py",> line 1110, in test_admin_push
assert '0 pending requests' in cherrypy.response.body[0]
AssertionError
----------------------------------------------------------------------
Ran 115 tests in 210.586s
FAILED (errors=1, failures=1)
13 years, 9 months
Changes to 'refs/tags/0.7.5'
by Luke Macken
Tag '0.7.5' created by Luke Macken <lmacken(a)redhat.com> at 2010-06-30 02:52 +0000
0.7.5
Changes since 0.7.4:
Bill Nottingham (2):
Handle git as well as CVS locations for comps.
Switch default to git for comps; rename config option.
Josh Kayse (1):
force https for login page
Luke Macken (68):
Make our unstable karma obsoletion message configurable, and slightly more useful
Spit out TurboMail's exception instead of printing our own message
Fix the karma icons in the 'My Updates' section
Add the paginator to the bottom of the My Updates section
Add a PackageUpdate.people_to_notify method, and make sure that
Don't add the admin group to the commenter name if they're bodhi or anonymous
Improve our search results (ticket #389)
Don't set the package.suggest_requires permanently when the developer enables it.
Merge branch 'master' of git+ssh://git.fedoraproject.org/git/bodhi
Reverse the release list in our sidebar
The pkgdb changed their URL structure...
Right now bodhi requires that you disable transactions
BuildRequires python-turboflot and python-tgcaptcha for the unit tests
Update our copyright (infra#2081)
Restore the epoch value when loading cached updateinfo (#519405)
Only display the faultString from Bugzilla XMLRPC Faults (#412)
Remove an unnecessary debugging statement
Inject the 'critpath' and 'critpath_approved' properties into
Handle edge cases where a testing update has a testing request in the
Comment about critpath requirements as bodhi, but mention the submitter
Only force critpath updates into testing if they're not there already
Get our test suite running at 100% again.
[nofrozenrawhide] Add the stable dist tag, instead of moving it from testing (#416)
Update our nagmail script to handle critpath updates.
Fix our clean-testing.py script to work with our new tag properties
More clean-testing.py fixes
Update our critpath list
Add a script that scrapes bodhi's mod_wsgi logs to calculate autokarma statistics.
Add a metrics.py tool for generating more in-dept statistics
Store the 'anonymous' comment property in our pickledb tool
Make our pickledb script skip duplicate updates & releases
Update our admin_groups to include security_respons & proventesters
Store stderr from mash when it fails...
Only write out stderr if it is not None
Fix a bug in the metrics script
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/bodhi
Set the epoch to 0 instead of None if it doesn't exist
Re-enable our auto-obsoletion code, and expand the test suite a bit
Remove a duplicate log message
Auto-obsoletion improvements. Ensure the same packages are present in the
Get the test suite running again after the recent admin_groups changes
More s/qa/proventesters
Only deny editing an update if there is an active request. If not, log a warning...
Add a unit test to ensure that developers can go from a -1 to a +1
Make the test actually work as expected
Update our pickledb to fix #431
Force https on our links to bodhi's fedorahosted (#430)
Use an external compressed copy of the bodhi-pickledb when running `make init`.
Update our gitignore for bodhi-pickledb*
Disable ProxyClient debugging
Ignore admin groups when tracking comment author metrics
strip() the username after we remove the admin group
update log_stats.py to show the length of time in testing for updates
Track the number of +0's, +1's, and -1's.
Look for the start_date/end_date arguments in our list method
Gracefully handle private bugs when they are added to existing updates (#442)
Enable strict critical path update policy across all releases.
Prep for 0.7.5 release
Improve our critpath controller method.
Use the new hashlib module instead of `sha`
Add an --untested argument to the bodhi client to display untested critpath
Update the title of our critpath updates table
Fix the logic in our /updates/critpath?untested=True method
Calling bodhi.util.load_config in our client breaks the logger (#303)
Handle u'None' releases sent to /critpath
Require hashlib
Avoid self-obsoletion
Fix a bug with the new auto-obsoletion code (#444)
Mathieu Bridon (2):
Ticket #395: URLs containing underscores in descriptions break when shown on web interface
Markdown module dependency.
---
.gitignore | 1
Makefile | 3
apache/bodhi.conf | 8
bodhi-pickledb-091211.1944 |1125556 ----------------------------------------
bodhi.cfg | 4
bodhi.egg-info/PKG-INFO | 2
bodhi.egg-info/SOURCES.txt | 1
bodhi.egg-info/requires.txt | 3
bodhi.spec | 9
bodhi/admin.py | 2
bodhi/buildsys.py | 6
bodhi/config/app.cfg | 8
bodhi/controllers.py | 148
bodhi/jobs.py | 20
bodhi/mail.py | 17
bodhi/masher.py | 27
bodhi/metadata.py | 5
bodhi/model.py | 114
bodhi/modifyrepo.py | 10
bodhi/release.py | 4
bodhi/templates/critpath.kid | 2
bodhi/templates/master.kid | 4
bodhi/templates/mine.kid | 15
bodhi/templates/pkg.kid | 2
bodhi/templates/search.kid | 41
bodhi/templates/show.kid | 38
bodhi/templates/welcome.kid | 2
bodhi/tests/test_client.py | 2
bodhi/tests/test_controllers.py | 197
bodhi/tools/clean-testing.py | 17
bodhi/tools/client.py | 16
bodhi/tools/log_stats.py | 109
bodhi/tools/metrics.py | 172
bodhi/tools/pickledb.py | 42
setup.py | 2
35 files changed, 769 insertions(+), 1125840 deletions(-)
---
13 years, 9 months
2 commits - bodhi/controllers.py
by Luke Macken
bodhi/controllers.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 6d3833c7a9f40894c3acd8e15bf227e1e27d4026
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 29 22:38:35 2010 -0400
Fix a bug with the new auto-obsoletion code (#444)
Be kind to the locals()
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 3a48897..bffb70d 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -805,8 +805,8 @@ class Root(controllers.RootController):
# Ensure that all of the packages in the old update are
# present in the new one.
pkgs = [get_nvr(b)[0] for b in releases[update.release]]
- for build in update.builds:
- if build.package.name not in pkgs:
+ for _build in update.builds:
+ if _build.package.name not in pkgs:
obsoletable = False
break
if rpm.labelCompare(util.get_nvr(oldBuild.nvr), nvr) < 0:
commit cee58d40461259b748ad3c9f307cbcd75bebfc26
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 29 22:26:30 2010 -0400
Avoid self-obsoletion
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index ec28322..3a48897 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -788,6 +788,8 @@ class Root(controllers.RootController):
# all updates are safe to obsolete, or else just skip it.
for oldBuild in package.builds:
obsoletable = False
+ if oldBuild.nvr == build:
+ continue
for update in oldBuild.updates:
if update.status not in ('pending', 'testing') or \
update.request or \
13 years, 9 months
bodhi.spec setup.py
by Luke Macken
bodhi.spec | 1 +
setup.py | 1 +
2 files changed, 2 insertions(+)
New commits:
commit 1418d03dda781c17c2da8630203b2fc460bb9cf8
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 29 19:59:43 2010 -0400
Require hashlib
diff --git a/bodhi.spec b/bodhi.spec
index 9f84ce9..bf400ad 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -60,6 +60,7 @@ Requires: python-decorator
Requires: mod_wsgi
Requires: httpd
Requires: python-markdown
+Requires: python-hashlib
%description server
diff --git a/setup.py b/setup.py
index 170d17a..2657b32 100755
--- a/setup.py
+++ b/setup.py
@@ -166,6 +166,7 @@ setup(
"TurboMail",
"python_fedora",
"markdown",
+ "hashlib",
],
scripts = [],
data_files = data_files,
13 years, 9 months
bodhi/controllers.py
by Luke Macken
bodhi/controllers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ef00bdc4ed31c77cedba40fbf69457b7ef481ffd
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 29 17:58:01 2010 -0400
Handle u'None' releases sent to /critpath
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index d34739a..ec28322 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -1300,7 +1300,7 @@ class Root(controllers.RootController):
@paginate('updates', limit=1000, max_limit=1000)
def critpath(self, untested=False, release=None, *args, **kw):
updates = []
- if release:
+ if release and release != u'None':
releases = [Release.byName(release)]
else:
releases = Release.select()
13 years, 9 months
bodhi/tools
by Luke Macken
bodhi/tools/client.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
New commits:
commit 3676bc978f6b30c1c29bf63f33c6a928e172c620
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 29 17:53:48 2010 -0400
Calling bodhi.util.load_config in our client breaks the logger (#303)
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py
index 2b47e3b..9598efb 100755
--- a/bodhi/tools/client.py
+++ b/bodhi/tools/client.py
@@ -29,13 +29,7 @@ from optparse import OptionParser
from fedora.client import AuthError, ServerError
from fedora.client.bodhi import BodhiClient
-try:
- from turbogears import config
- from bodhi.util import load_config
- load_config()
- BODHI_URL = config.get('bodhi_url', 'https://admin.fedoraproject.org/updates/')
-except:
- BODHI_URL = 'https://admin.fedoraproject.org/updates/'
+BODHI_URL = 'https://admin.fedoraproject.org/updates/'
log = logging.getLogger(__name__)
13 years, 9 months