|
|
Created:
6 years, 9 months ago by agable Modified:
6 years, 9 months ago CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org Visibility:
Public. |
DescriptionAssume 'master' when remote branch not specified.
This prevents apply_patch from attempting to check out a branch tracking 'origin/None'.
R=pgervais@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=257763
Patch Set 1 #Patch Set 2 : Fix apply_issue #
Total comments: 2
Messages
Total messages: 19 (0 generated)
On 2014/03/18 01:27:38, agable wrote: lgtm, but I do not fully understand the consequences if this.
The CQ bit was checked by agable@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/202483008/1
The CQ bit was unchecked by commit-bot@chromium.org
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an LGTM may have been provided, it was from a non-committer or a lowly provisional committer, _not_ a full super star committer. See http://www.chromium.org/getting-involved/become-a-committer Note that this has nothing to do with OWNERS files.
On 2014/03/18 17:15:37, I haz the power (commit-bot) wrote: > No LGTM from a valid reviewer yet. Only full committers are accepted. > Even if an LGTM may have been provided, it was from a non-committer or > a lowly provisional committer, _not_ a full super star committer. > See http://www.chromium.org/getting-involved/become-a-committer > Note that this has nothing to do with OWNERS files. maruel@, please take a look.
This patch breaks if there is an existing local 'master' branch (and it's not up-to-date). apply_issue.py creates a 'working_branch' based on 'master', then checks that it worked properly by diffing origin/master and working_branch. In addition, if working_branch already exists, it fails. That makes sense for a human, but screws up the bots if the branch is a leftover from a previous failure. On Tue, Mar 18, 2014 at 10:22 AM, <agable@chromium.org> wrote: > On 2014/03/18 17:15:37, I haz the power (commit-bot) wrote: > >> No LGTM from a valid reviewer yet. Only full committers are accepted. >> Even if an LGTM may have been provided, it was from a non-committer or >> a lowly provisional committer, _not_ a full super star committer. >> See http://www.chromium.org/getting-involved/become-a-committer >> Note that this has nothing to do with OWNERS files. >> > > maruel@, please take a look. > > https://codereview.chromium.org/202483008/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
On 2014/03/18 17:55:06, pgervais wrote: > This patch breaks if there is an existing local 'master' branch (and it's > not up-to-date). > > apply_issue.py creates a 'working_branch' based on 'master', then checks > that it worked properly by diffing origin/master and working_branch. > In addition, if working_branch already exists, it fails. That makes sense > for a human, but screws up the bots if the branch is a leftover from a > previous failure. I prefer "assert remote_branch" than defaulting to "master". E.g. fix the callers instead of papering over. In practice, the code should checkout from origin/master, not master.
On 2014/03/18 19:14:40, M-A Ruel wrote: > On 2014/03/18 17:55:06, pgervais wrote: > > This patch breaks if there is an existing local 'master' branch (and it's > > not up-to-date). > > > > apply_issue.py creates a 'working_branch' based on 'master', then checks > > that it worked properly by diffing origin/master and working_branch. > > In addition, if working_branch already exists, it fails. That makes sense > > for a human, but screws up the bots if the branch is a leftover from a > > previous failure. > > I prefer "assert remote_branch" than defaulting to "master". E.g. fix the > callers instead of papering over. > > In practice, the code should checkout from origin/master, not master. I agree -- apply_issue.py passes 'None' to this method. Will send a CL to that effect now.
On 2014/03/18 20:44:49, agable wrote: > On 2014/03/18 19:14:40, M-A Ruel wrote: > > On 2014/03/18 17:55:06, pgervais wrote: > > > This patch breaks if there is an existing local 'master' branch (and it's > > > not up-to-date). > > > > > > apply_issue.py creates a 'working_branch' based on 'master', then checks > > > that it worked properly by diffing origin/master and working_branch. > > > In addition, if working_branch already exists, it fails. That makes sense > > > for a human, but screws up the bots if the branch is a leftover from a > > > previous failure. > > > > I prefer "assert remote_branch" than defaulting to "master". E.g. fix the > > callers instead of papering over. > > > > In practice, the code should checkout from origin/master, not master. > > I agree -- apply_issue.py passes 'None' to this method. Will send a CL to that > effect now. PTAL, this patch will resolve the issues being seen by Ravi on the skiabuildbot CQ.
https://codereview.chromium.org/202483008/diff/20001/checkout.py File checkout.py (right): https://codereview.chromium.org/202483008/diff/20001/checkout.py#newcode630 checkout.py:630: '-t', '%s/%s' % (self.pull_remote, self.remote_branch), Ravi: apply_issue was checking out a branch tracking local master rather than origin/master, which is why the skiabuildbot CQ was failing.
LGTM
lgtm
The CQ bit was checked by agable@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/202483008/20001
Message was sent while issue was closed.
Change committed as 257763
Message was sent while issue was closed.
This actually broke bot_update on linux_clang (or well, elsewhere too) for cases that a revision is specified because if you specify a remote_branch, GitCheckout tries to check out a "working_branch" tracking master instead of committing on top of HEAD.
Message was sent while issue was closed.
https://codereview.chromium.org/202483008/diff/20001/checkout.py File checkout.py (right): https://codereview.chromium.org/202483008/diff/20001/checkout.py#newcode626 checkout.py:626: if self.remote_branch: Maybe "if self.remote_branch and not self.base_ref"? Since if we have a base_ref set, thats actually the ref we want to base this patch on top of, rather than the remote branch. We can't use remote branch because a ref isn't always a branch. |