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

Issue 273543002: Have apply_patch.py/checkout.py stage git patches instead of committing them (Closed)

Created:
6 years, 7 months ago by hinoka
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Have apply_patch.py/checkout.py stage git patches instead of committing them For a bot_update Git world, we don't really want to commit patches. Instead we just want to leave them unstaged. BUG=370503 TEST=ran locally with and without flag Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=269468

Patch Set 1 #

Patch Set 2 : Stage the change #

Patch Set 3 : Never commit #

Patch Set 4 : Spacing #

Patch Set 5 : Actually remove base_ref #

Total comments: 2

Patch Set 6 : Test fixes, make commit not amend (to match apply patch behavior), add todo to nuke commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -39 lines) Patch
M apply_issue.py View 1 2 3 4 3 chunks +2 lines, -8 lines 0 comments Download
M checkout.py View 1 2 3 4 5 8 chunks +12 lines, -29 lines 0 comments Download
M tests/checkout_test.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Ryan Tseng
ptal, adding this in, and then will call it from bot_update.py
6 years, 7 months ago (2014-05-07 02:11:59 UTC) #1
M-A Ruel
Why?
6 years, 7 months ago (2014-05-07 11:56:26 UTC) #2
Ryan Tseng
My reasoning is that in the context of a tryjob, committing the patch doesn't gain ...
6 years, 7 months ago (2014-05-07 18:48:24 UTC) #3
iannucci
On 2014/05/07 18:48:24, Ryan T. wrote: > My reasoning is that in the context of ...
6 years, 7 months ago (2014-05-07 18:56:13 UTC) #4
M-A Ruel
On 2014/05/07 18:56:13, iannucci wrote: > On 2014/05/07 18:48:24, Ryan T. wrote: > > My ...
6 years, 7 months ago (2014-05-07 19:01:46 UTC) #5
iannucci
On 2014/05/07 19:01:46, M-A Ruel wrote: > On 2014/05/07 18:56:13, iannucci wrote: > > On ...
6 years, 7 months ago (2014-05-07 19:12:25 UTC) #6
Ryan Tseng
I don't have a opinion as to whether or not to stage, but it sounds ...
6 years, 7 months ago (2014-05-07 19:23:16 UTC) #7
M-A Ruel
On 2014/05/07 19:23:16, Ryan T. wrote: > I don't have a opinion as to whether ...
6 years, 7 months ago (2014-05-07 19:48:44 UTC) #8
Ryan Tseng
Done. Tested with "apply_issue --issue 267713009 --patchset 100001 --no_commit" and "apply_issue --issue 267713009 --patchset 100001" ...
6 years, 7 months ago (2014-05-07 21:02:40 UTC) #9
Ryan Tseng
Modified checkout.py to never commit, always stage
6 years, 7 months ago (2014-05-07 23:40:55 UTC) #10
Ryan Tseng
Fixed bug, tested and works with "apply_issue --issue 274773003 --patchset 1" in a chromium checkout.
6 years, 7 months ago (2014-05-07 23:45:17 UTC) #11
iannucci
On 2014/05/07 23:45:17, Ryan T. wrote: > Fixed bug, tested and works with "apply_issue --issue ...
6 years, 7 months ago (2014-05-08 07:28:43 UTC) #12
iannucci
https://codereview.chromium.org/273543002/diff/70001/checkout.py File checkout.py (right): https://codereview.chromium.org/273543002/diff/70001/checkout.py#newcode630 checkout.py:630: def apply_patch(self, patches, post_processors=None, verbose=False): (also, this code terrifies ...
6 years, 7 months ago (2014-05-08 07:29:48 UTC) #13
M-A Ruel
Please update the CL description. On 2014/05/08 07:28:43, iannucci wrote: > Hm. Since this changes ...
6 years, 7 months ago (2014-05-08 16:40:17 UTC) #14
iannucci
On 2014/05/08 16:40:17, M-A Ruel wrote: > Please update the CL description. > > On ...
6 years, 7 months ago (2014-05-08 17:47:00 UTC) #15
iannucci
On 2014/05/08 17:47:00, iannucci wrote: > On 2014/05/08 16:40:17, M-A Ruel wrote: > > Please ...
6 years, 7 months ago (2014-05-08 17:48:24 UTC) #16
Ryan Tseng
git cl patch uses its own logic and doesn't touch apply_issue.py :)
6 years, 7 months ago (2014-05-09 22:17:46 UTC) #17
Ryan Tseng
CL title updated
6 years, 7 months ago (2014-05-09 22:18:35 UTC) #18
iannucci
lgtm
6 years, 7 months ago (2014-05-09 22:45:50 UTC) #19
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 7 months ago (2014-05-09 23:14:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/273543002/70001
6 years, 7 months ago (2014-05-09 23:16:39 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 23:19:09 UTC) #22
commit-bot: I haz the power
Presubmit check for 273543002-70001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 7 months ago (2014-05-09 23:19:09 UTC) #23
hinoka
Added new PS to fix test breakage. I think the commit function can just be ...
6 years, 7 months ago (2014-05-10 00:36:27 UTC) #24
hinoka
The CQ bit was checked by hinoka@chromium.org
6 years, 7 months ago (2014-05-10 00:36:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/273543002/90001
6 years, 7 months ago (2014-05-10 00:37:21 UTC) #26
commit-bot: I haz the power
Change committed as 269468
6 years, 7 months ago (2014-05-10 00:38:55 UTC) #27
hinoka
6 years, 7 months ago (2014-05-10 02:05:55 UTC) #28
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/271283003/ by hinoka@chromium.org.

The reason for reverting is: Borked all the tryjobs due to missing --base_ref,
needed to land with https://codereview.chromium.org/273543002/.

Powered by Google App Engine
This is Rietveld 408576698