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

Issue 11280143: Create CachingRietveld to automatically cache results for presubmit checks. (Closed)

Created:
8 years ago by M-A Ruel
Modified:
8 years ago
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, Isaac (away)
Visibility:
Public.

Description

Create CachingRietveld to automatically cache results for presubmit checks. Multiple presubmit checks may call the same function multiple times, so it's worth caching the results to speed up the presubmit check run. Convert presubmit_support, git-cl and gcl to use it. R=dpranke@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169726

Patch Set 1 #

Total comments: 2

Patch Set 2 : add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -47 lines) Patch
M gcl.py View 1 chunk +1 line, -1 line 0 comments Download
M git_cl.py View 1 chunk +2 lines, -2 lines 0 comments Download
M presubmit_support.py View 1 chunk +1 line, -1 line 0 comments Download
M rietveld.py View 1 2 chunks +51 lines, -0 lines 0 comments Download
M tests/git_cl_test.py View 1 chunk +1 line, -0 lines 0 comments Download
M tests/rietveld_test.py View 1 20 chunks +81 lines, -43 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
8 years ago (2012-11-22 15:42:29 UTC) #1
Dirk Pranke
lgtm, although it might be nice to have some tests that ensure that the caching ...
8 years ago (2012-11-22 18:41:25 UTC) #2
Isaac (away)
https://codereview.chromium.org/11280143/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/11280143/diff/1/rietveld.py#newcode426 rietveld.py:426: def get_issue_properties(self, issue, messages): get_issue_properties(<issue>, True) returns a superset ...
8 years ago (2012-11-26 05:12:39 UTC) #3
M-A Ruel
ptal, now with proper unit test. https://codereview.chromium.org/11280143/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/11280143/diff/1/rietveld.py#newcode426 rietveld.py:426: def get_issue_properties(self, issue, ...
8 years ago (2012-11-27 20:15:06 UTC) #4
Dirk Pranke
lgtm.
8 years ago (2012-11-27 20:27:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/11280143/5001
8 years ago (2012-11-27 20:31:06 UTC) #6
Isaac (away)
lgtm
8 years ago (2012-11-27 20:31:40 UTC) #7
commit-bot: I haz the power
8 years ago (2012-11-27 20:33:53 UTC) #8
Message was sent while issue was closed.
Change committed as 169726

Powered by Google App Engine
This is Rietveld 408576698