Patch: Test Cases
by Corey Maynard
This patch adds the Test class for tracking/storing test cases that
are in the wiki.
I'm going to be traveling for the next week so I won't be on IRC, but
if you've got any questions, you can contact me through email.
Thanks,
Corey Maynard
12 years, 10 months
bodhi/model.py
by Luke Macken
bodhi/model.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 1672d7ffdae93ecf36a9495e32e136dca0905440
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jun 23 15:18:07 2011 -0400
Add 'pushed to stable' comments on Security Response bugs (#485)
diff --git a/bodhi/model.py b/bodhi/model.py
index bc7d5ca..9169dc7 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -1376,7 +1376,12 @@ class Bugzilla(SQLObject):
comment = self._default_message(update)
try:
bug = bz.getbug(self.bz_id)
- if bug.product not in config.get('bz_products', '').split(','):
+ # We only want to comment on Security Response bugs when an update
+ # reaches the stable repository (#485)
+ if bug.product == 'Security Response' and update.status == 'stable':
+ pass
+ # Skip commenting on any products not listed in our config
+ elif bug.product not in config.get('bz_products', '').split(','):
log.warning("Skipping %r bug #%d" % (bug.product, self.bz_id))
return
log.debug("Adding comment to Bug #%d: %s" % (self.bz_id, comment))
12 years, 10 months
Bodhi 2.0 KarmaType Patch
by Corey Maynard
The attached patch adds the KarmaTypes enum, and implements it in the
commenting process.
Corey Maynard
12 years, 10 months
bodhi.egg-info/PKG-INFO bodhi/release.py bodhi.spec
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 2 +-
bodhi/release.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 6c8cade94eece7dd074117a7ac2aea4cbd30f283
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 21 14:06:42 2011 -0400
0.8.1
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index fe88104..2bfa05c 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.8.0
+Version: 0.8.1
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution
Home-page: https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index acf0c9c..0ac96dd 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: bodhi
-Version: 0.8.0
+Version: 0.8.1
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
diff --git a/bodhi/release.py b/bodhi/release.py
index 9f5f797..0c456f2 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.8.0'
+VERSION = '0.8.1'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'
12 years, 10 months
bodhi/overrides.py
by Luke Macken
bodhi/overrides.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7d9d1450373e9ddb13f35c768663c8982c7d9d94
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Jun 21 13:31:13 2011 -0400
Fix a bug in our buildroot override sanity checking.
This allows people to submit overrides for updates that are already pushed to
testing.
https://fedorahosted.org/rel-eng/ticket/4779
diff --git a/bodhi/overrides.py b/bodhi/overrides.py
index c5da652..4766aa6 100644
--- a/bodhi/overrides.py
+++ b/bodhi/overrides.py
@@ -164,9 +164,9 @@ class BuildRootOverrideController(Controller):
# Determine the release by the tag, and sanity check the builds
for tag in tags:
for rel in Release.select():
- if tag == rel.candidate_tag:
+ if tag in (rel.candidate_tag, rel.testing_tag):
release = last_release = rel
- elif tag in (rel.testing_tag, rel.stable_tag):
+ elif tag == rel.stable_tag:
flash('Error: %s is already tagged with %s' % (
build, tag))
if request_format() == 'json': return dict()
12 years, 10 months
bodhi/jobs.py
by Luke Macken
bodhi/jobs.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 80301359c174e13604cba2d6fc9de277d2ae4a4b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jun 16 21:35:52 2011 -0400
Fix some bugs in our buildroot override expiration job
diff --git a/bodhi/jobs.py b/bodhi/jobs.py
index 6e65508..d230a8a 100644
--- a/bodhi/jobs.py
+++ b/bodhi/jobs.py
@@ -204,12 +204,12 @@ def expire_buildroot_overrides():
""" Iterate over all of the buildroot overrides, expiring appropriately """
log.info('Running expire_buildroot_overrides job')
now = datetime.utcnow()
- for override in BuildRootOverride.select():
- if (now - override.expiration).days >= 0:
+ for override in BuildRootOverride.select(BuildRootOverride.date_expired == None):
+ if now > override.expiration:
log.info('Automatically expiring buildroot override: %s' %
- override.builds)
+ override.build)
override.untag()
- override.destroySelf()
+ override.date_expired = now
log.info('expire_buildroot_overrides job complete!')
12 years, 10 months
docs/bodhi.1
by Luke Macken
docs/bodhi.1 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
New commits:
commit 3bb6acb0f2b361e34b43804b06217a1bfe41b9bb
Author: Petr Písař <ppisar(a)redhat.com>
Date: Tue Jun 14 10:27:58 2011 +0200
Document build root override options
diff --git a/docs/bodhi.1 b/docs/bodhi.1
index 0947350..261662c 100644
--- a/docs/bodhi.1
+++ b/docs/bodhi.1
@@ -49,6 +49,23 @@ Display and push any pending updates (releng only)
Show debugging messages
.IP "\fB\-l --limit\fP"
Maximum number of updates to return (default: 10)
+.IP "\fB\-o --buildroot-override\fP BUILD"
+Submit a not-yet-stable build (NVR) to build root temporarily until
+\fB--duration\fP period expires or the build becomes stable or deleted or
+unpushed or obsoleted
+.IP "\fB--duration\fP DAYS"
+Set duration of build as build root override in days (default: 3)
+.IP "\fB\-O --list-overrides\fP"
+List effective build root overrides
+.IP "\fB\--my-overrides\fP"
+List effective build root overrides submitted by you
+.IP "\fB--show-expired\fP"
+Show expired build root overrides in addition (requires
+\fB\--list-overrides\fP or \fB\--my-overrides\fP)
+.IP "\fB--edit-override\fP BUILD"
+Edit override duration od notes
+.IP "\fB\-E --expire-override\fP BUILD"
+Remove overriding build from build root
.IP "\fB\-h --help\fP"
display the usage message
12 years, 10 months
Bodhi v0.8 in production
by Luke Macken
https://admin.fedoraproject.org/updates
Frontend Web/Client Changes
---------------------------
* Buildroot Override Management
http://fedoraproject.org/wiki/Bodhi/BuildRootOverrides
* Make update notes mandatory (fesco#457)
* Gracefully handle invalid update template values (#597)
* Fixed a bug that would prevent people from editing updates
Backend Changes
---------------
* Support blacklisting certain users from receiving bodhi emails (for autoqa)
* More robust handling of 'pending' koji tags (#594)
* More configurable for non-Fedora deployments
* Added more metrics to our report generator
* # of updates that reach the stable karma threshold
* # of updates that spent the minimum time in testing
* # of proventester karma types
* output: https://fedorahosted.org/fesco/ticket/517#comment:5
API Changes
-----------
* Optimize our 'list' API when querying updates by bug number (#610)
* Support adding comments without triggering email notifications (to prevent AutoQA spamming)
12 years, 10 months
2 commits - bodhi/mail.py
by Luke Macken
bodhi/mail.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 55bcd17c9f544f9790077568ec11565f7ddcb6c5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jun 9 21:11:17 2011 -0400
remove unused module
diff --git a/bodhi/mail.py b/bodhi/mail.py
index b2d3010..e84fdee 100644
--- a/bodhi/mail.py
+++ b/bodhi/mail.py
@@ -16,7 +16,6 @@ import rpm
import logging
import turbomail
-from textwrap import wrap
from turbogears import config, identity
from bodhi.util import rpm_fileheader, to_unicode
commit 2e0257f3b3f943ff2b23386a9acaa85d121b5d80
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jun 9 21:10:58 2011 -0400
Make our mail.send() method work with our new override objects, as well as updates
diff --git a/bodhi/mail.py b/bodhi/mail.py
index 8ac4f72..b2d3010 100644
--- a/bodhi/mail.py
+++ b/bodhi/mail.py
@@ -458,10 +458,12 @@ def send(to, msg_type, update, sender=None):
return
if type(to) not in (list, set, tuple):
to = [to]
+ critpath = getattr(update, 'critpath', False) and '[CRITPATH] ' or ''
+ title = getattr(update, 'title', getattr(update, 'build', ''))
for person in to:
send_mail(sender, person, '[Fedora Update] %s[%s] %s' % (
- update.critpath and '[CRITPATH] ' or '',
- msg_type, update.title), messages[msg_type]['body'] %
+ critpath, msg_type, title),
+ messages[msg_type]['body'] %
messages[msg_type]['fields'](update))
def send_releng(subject, body):
12 years, 10 months