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

Issue 27575002: Patch path filtering script. (Closed)

Created:
7 years, 2 months ago by kjellander_chromium
Modified:
7 years ago
CC:
chromium-reviews, cmp-cc_chromium.org, ilevy-cc_chromium.org, xusydoc+watch_chromium.org, kjellander+cc_chromium.org
Visibility:
Public.

Description

Patch path filtering script. A script that makes it possible to filter out files from a patch using paths, which can be useful for some trybot situations. It is used if additional flags are passed to the apply_svn_patch.py script. This is required in order to make https://codereview.chromium.org/75163006/ possible. TEST=local testing and unit tests. BUG=312827 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=240099

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fixed str type of arguments to patch command #

Patch Set 3 : Now using patch.py and its test data #

Total comments: 10

Patch Set 4 : Simplified after discovering upload.py stuff, and more tests! #

Total comments: 11

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2819 lines, -0 lines) Patch
M scripts/slave/apply_svn_patch.py View 1 2 3 1 chunk +24 lines, -3 lines 0 comments Download
A scripts/slave/patch_path_filter.py View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/README View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.args1 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.args2 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.args3 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.args4 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.output1 View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.output2 View 1 2 3 1 chunk +436 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.output3 View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
A + scripts/slave/unittests/data/patch_path_filter/git_patch1.output4 View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch1.patch View 1 2 3 1 chunk +544 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.args1 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.args2 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.args3 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.output1 View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.output2 View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.output3 View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/git_patch2.patch View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.args1 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.args2 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.args3 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.output1 View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.output2 View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.output3 View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A scripts/slave/unittests/data/patch_path_filter/svn_patch1.patch View 1 2 3 1 chunk +130 lines, -0 lines 0 comments Download
A scripts/slave/unittests/patch_path_filter_test.py View 1 2 3 1 chunk +121 lines, -0 lines 0 comments Download
A third_party/depot_tools/README.chromium View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A + third_party/depot_tools/__init__.py View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/depot_tools/patch.py View 1 2 1 chunk +543 lines, -0 lines 0 comments Download
A + third_party/depot_tools/test_support/__init__.py View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/depot_tools/test_support/patches_data.py View 1 2 1 chunk +351 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
kjellander_chromium
Here's the script I was talking about. It's a piece I think I'll need for ...
7 years, 1 month ago (2013-10-29 16:19:21 UTC) #1
iannucci
very high-level comments. https://codereview.chromium.org/27575002/diff/22001/scripts/slave/patch_path_filter.py File scripts/slave/patch_path_filter.py (right): https://codereview.chromium.org/27575002/diff/22001/scripts/slave/patch_path_filter.py#newcode45 scripts/slave/patch_path_filter.py:45: '^\+{3}\s(.*?)$') I would use a raw ...
7 years, 1 month ago (2013-10-29 17:15:02 UTC) #2
kjellander_chromium
Robert: I agree with your comments and I looked around in the depot_tools/patch.py. It looks ...
7 years, 1 month ago (2013-11-07 12:55:25 UTC) #3
M-A Ruel
On 2013/11/07 12:55:25, Henrik Kjellander wrote: > Robert: I agree with your comments and I ...
7 years, 1 month ago (2013-11-07 13:04:47 UTC) #4
kjellander_chromium
On 2013/11/07 13:04:47, M-A Ruel wrote: > On 2013/11/07 12:55:25, Henrik Kjellander wrote: > > ...
7 years, 1 month ago (2013-11-07 14:17:39 UTC) #5
kjellander_chromium
Mike, would you mind taking a look at this too? I think I'll need help ...
7 years, 1 month ago (2013-11-20 14:44:35 UTC) #6
ghost stip (do not use)
I recall discussing this when you were in MTV. Can you remind me the scenario ...
7 years, 1 month ago (2013-11-20 18:48:30 UTC) #7
kjellander_chromium
On 2013/11/20 18:48:30, stip wrote: > I recall discussing this when you were in MTV. ...
7 years, 1 month ago (2013-11-20 18:51:38 UTC) #8
ghost stip (do not use)
some thoughts after talking to Henrik offline: depot_tools/patch.py looks to be a fully-featured patch parser. ...
7 years, 1 month ago (2013-11-21 10:00:09 UTC) #9
M-A Ruel
On 2013/11/21 10:00:09, stip wrote: > some thoughts after talking to Henrik offline: > > ...
7 years, 1 month ago (2013-11-21 14:58:27 UTC) #10
kjellander_chromium
Finally ready for another round (Robert). I'm now using depot tools' patch.py as suggested by ...
7 years ago (2013-11-26 22:11:25 UTC) #11
kjellander_chromium
On 2013/11/21 14:58:27, M-A Ruel wrote: > On 2013/11/21 10:00:09, stip wrote: > > some ...
7 years ago (2013-11-26 22:12:09 UTC) #12
iannucci
https://chromiumcodereview.appspot.com/27575002/diff/272001/scripts/slave/apply_svn_patch.py File scripts/slave/apply_svn_patch.py (right): https://chromiumcodereview.appspot.com/27575002/diff/272001/scripts/slave/apply_svn_patch.py#newcode18 scripts/slave/apply_svn_patch.py:18: help=('A script that filter out contents of a patch. ...
7 years ago (2013-12-05 21:40:56 UTC) #13
kjellander_chromium
iannucci@: PTAL! Puh! A lot of work goes into this one. At least now I'm ...
7 years ago (2013-12-10 20:46:02 UTC) #14
iannucci
lgtm :) https://chromiumcodereview.appspot.com/27575002/diff/272001/third_party/depot_tools/patch.py File third_party/depot_tools/patch.py (right): https://chromiumcodereview.appspot.com/27575002/diff/272001/third_party/depot_tools/patch.py#newcode5 third_party/depot_tools/patch.py:5: """Utility functions to handle patches.""" On 2013/12/10 ...
7 years ago (2013-12-10 21:32:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kjellander@chromium.org/27575002/312001
7 years ago (2013-12-11 10:01:43 UTC) #16
kjellander_chromium
Fixed the last nits, but kept my conversion of the Git patches to make them ...
7 years ago (2013-12-11 13:31:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kjellander@chromium.org/27575002/332001
7 years ago (2013-12-11 13:31:46 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-11 13:33:29 UTC) #19
Message was sent while issue was closed.
Change committed as 240099

Powered by Google App Engine
This is Rietveld 408576698