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

Issue 1612323004: Make apply_issue fail if the content of a large file is missing. (Closed)

Created:
4 years, 11 months ago by Sébastien Marchand
Modified:
4 years, 11 months ago
Reviewers:
tandrii(chromium)
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make apply_issue fail if the content of a large file is missing. Currently apply_issue fail if the content of a newly added file is missing (because of the 900ko threshold in upload.py). But this doesn't apply to the large file that get modified (instead of being added). This is wrong because apply_issue will indicates a success without really applying the patch. It looks like the patch content is set to "None" in this cases (the string value, not the empty value None). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298366

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M rietveld.py View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 9 (3 generated)
Sébastien Marchand
PTAL.
4 years, 11 months ago (2016-01-22 19:19:56 UTC) #2
tandrii(chromium)
LGTM thanks! https://codereview.chromium.org/1612323004/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/1612323004/diff/1/rietveld.py#newcode151 rietveld.py:151: if not content or content == 'None': ...
4 years, 11 months ago (2016-01-22 21:08:25 UTC) #3
Sébastien Marchand
https://codereview.chromium.org/1612323004/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/1612323004/diff/1/rietveld.py#newcode151 rietveld.py:151: if not content or content == 'None': On 2016/01/22 ...
4 years, 11 months ago (2016-01-22 21:11:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1612323004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1612323004/1
4 years, 11 months ago (2016-01-22 21:11:31 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=298366
4 years, 11 months ago (2016-01-22 21:13:25 UTC) #8
tandrii(chromium)
4 years, 11 months ago (2016-01-22 21:26:07 UTC) #9
Message was sent while issue was closed.
On 2016/01/22 21:11:21, Sébastien Marchand wrote:
> https://codereview.chromium.org/1612323004/diff/1/rietveld.py
> File rietveld.py (right):
> 
> https://codereview.chromium.org/1612323004/diff/1/rietveld.py#newcode151
> rietveld.py:151: if not content or content == 'None':
> On 2016/01/22 21:08:25, tandrii(chromium) wrote:
> > ugh, but whatever works.
> 
> Yeah, this is ugly and it took me quite some time to debug this (because I was
> printing the value of |content|, so I was confused by the fact that no
exception
> was raised although content was 'None'...). I don't know who's emitting this
> string, but we should probably change it to something less confusing (or set
it
> to the 'real' None).

if you file a bug for Infra-codereview, we might have a look, though thanks to
this patch of yours, we may never do so, as we intend to deprecate Rietveld.

Powered by Google App Engine
This is Rietveld 408576698