Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: pending_manager.py

Issue 130983010: Reduce spam from CQ. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: Try again (rietveld glitch?) Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/pending_manager_test.py » ('j') | tests/pending_manager_test.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pending_manager.py
diff --git a/pending_manager.py b/pending_manager.py
index 6f61d4b8641745cd1b41dce570bed1dcc5824ba9..4ba87b5b5e858b0419a420b13bff087f1ebac704 100644
--- a/pending_manager.py
+++ b/pending_manager.py
@@ -544,18 +544,11 @@ class PendingManager(object):
self.context.rietveld.close_issue(pending.issue)
self.context.rietveld.update_description(
pending.issue, issue_desc.description)
- self.context.rietveld.add_comment(
- pending.issue, 'Change committed as %s' % pending.revision)
+ self._discard_pending(pending,
Paweł Hajdan Jr. 2014/02/03 18:47:34 I think this discard_pending call should be outsid
iannucci 2014/02/03 19:21:32 Yes, but then the Issue won't have the final commi
Sergey Berezin 2014/02/03 19:48:43 Actually, moving _discard_pending() after try...ex
+ 'Change committed as %s' % pending.revision)
except (urllib2.HTTPError, urllib2.URLError) as e:
# Ignore AppEngine flakiness.
logging.warning('Unable to fully close the issue')
- # And finally remove the issue. If the close_issue() call above failed,
- # it is possible the dashboard will be confused but it is harmless.
- try:
- self.queue.get(pending.issue)
- except KeyError:
- logging.error('Internal inconsistency for %d', pending.issue)
- self.queue.remove(pending.issue)
except (
checkout.PatchApplicationFailed, patch.UnsupportedPatchFormat) as e:
raise base.DiscardPending(pending, str(e))
« no previous file with comments | « no previous file | tests/pending_manager_test.py » ('j') | tests/pending_manager_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698