New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 619959 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: ----



Sign in to add a comment

Post git upgrade, this test keeps failing in depot_tools blocking CQ

Project Member Reported by tandrii@chromium.org, Jun 14 2016

Issue description


FAIL: testMove (__main__.GitCheckout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/checkout_test.py", line 321, in testMove
    self.assertEquals(expected, out)
AssertionError: Lists differ: ['A\tchromeos/views/webui_menu... != ['R067\tchromeos/views/DOMui_m...

First differing element 0:
A	chromeos/views/webui_menu_widget.h
R067	chromeos/views/DOMui_menu_widget.h	chromeos/views/webui_menu_widget.h

First list contains 1 additional elements.
First extra element 1:
D	chromeos/views/DOMui_menu_widget.h

+ ['R067\tchromeos/views/DOMui_menu_widget.h\tchromeos/views/webui_menu_widget.h']
- ['A\tchromeos/views/webui_menu_widget.h',
-  'D\tchromeos/views/DOMui_menu_widget.h']

----------------------------------------------------------------------
Ran 4 tests in 2.603s

FAILED (failures=1, skipped=1)
Found unpatched files: ['chromeos/views/DOMui_menu_widget.h']
 
Cc: mar...@chromium.org
 Issue 620411  has been merged into this issue.
Cc: iannucci@chromium.org hinoka@chromium.org
Who did the git upgrade?
I believe it's because of

https://github.com/blog/2188-git-2-9-has-been-released """

Rename detection is now enabled by default for diffs. You may have heard that Git doesn't record renames. It's true! Git infers on the fly when a file has been renamed by looking for similarities between the contents of the old and new files. This feature, which has existed since the early days of Git, is now enabled by default. [source]

"""

What used to be D+A in the test has turned into a detected rename. I guess it's fine to just update the test?

Comment 4 by mar...@chromium.org, Jun 16 2016

Yes or add a flag to disable the detection. Whatever that works for everyone.
Project Member

Comment 6 by bugdroid1@chromium.org, Jun 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/f3c688bf2ccbd54a302f69846b97e51c3e2fcc82

commit f3c688bf2ccbd54a302f69846b97e51c3e2fcc82
Author: scottmg <scottmg@chromium.org>
Date: Thu Jun 16 00:16:44 2016

Fix presubmit checkout test after git 2.9.0

Quoting https://github.com/blog/2188-git-2-9-has-been-released

"""Rename detection is now enabled by default for diffs..."

which broke this test.

R=tandrii@chromium.org, iannucci@chromium.org
BUG= 619959 

Review-Url: https://codereview.chromium.org/2073553003

[modify] https://crrev.com/f3c688bf2ccbd54a302f69846b97e51c3e2fcc82/tests/checkout_test.py

Owner: scottmg@chromium.org
Status: Fixed (was: Untriaged)
https://codereview.chromium.org/2067653002/ made it through cq.
Project Member

Comment 8 by bugdroid1@chromium.org, Jun 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/build.git/+/a54265971ed8380214881f80b8d44942b99a2ec4

commit a54265971ed8380214881f80b8d44942b99a2ec4
Author: recipe-roller <recipe-roller@chromium.org>
Date: Thu Jun 16 00:25:30 2016

Roll recipe dependencies (trivial).

This is an automated CL created by the recipe roller. This CL rolls recipe
changes from upstream projects (e.g. depot_tools) into downstream projects
(e.g. tools/build).

More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug
(or complain)

depot_tools:
  https://crrev.com/f3c688bf2ccbd54a302f69846b97e51c3e2fcc82 Fix presubmit checkout test after git 2.9.0 (scottmg@chromium.org)
  https://crrev.com/0205656321a66c2d2af5b71fad0caaa0f6391c27 drover win: Use --stdin so update-index doesn't fail on long cmdline (scottmg@chromium.org)

R=tandrii@chromium.org,iannucci@chromium.org,scottmg@chromium.org
BUG= 598808 , 619959 

TBR=martiniss@chromium.org,phajdan.jr@chromium.org

Review-Url: https://codereview.chromium.org/2073653002

[modify] https://crrev.com/a54265971ed8380214881f80b8d44942b99a2ec4/infra/config/recipes.cfg

Project Member

Comment 9 by bugdroid1@chromium.org, Jun 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/infra.git/+/b3af2b14e935491432f01f9625be093994c77af6

commit b3af2b14e935491432f01f9625be093994c77af6
Author: recipe-roller <recipe-roller@chromium.org>
Date: Thu Jun 16 00:46:03 2016

Roll recipe dependencies (trivial).

This is an automated CL created by the recipe roller. This CL rolls recipe
changes from upstream projects (e.g. depot_tools) into downstream projects
(e.g. tools/build).

More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug
(or complain)

build:
  https://crrev.com/a54265971ed8380214881f80b8d44942b99a2ec4 Roll recipe dependencies (trivial). (recipe-roller@chromium.org)
depot_tools:
  https://crrev.com/f3c688bf2ccbd54a302f69846b97e51c3e2fcc82 Fix presubmit checkout test after git 2.9.0 (scottmg@chromium.org)
  https://crrev.com/0205656321a66c2d2af5b71fad0caaa0f6391c27 drover win: Use --stdin so update-index doesn't fail on long cmdline (scottmg@chromium.org)

R=tandrii@chromium.org,iannucci@chromium.org,scottmg@chromium.org,martiniss@chromium.org,phajdan.jr@chromium.org,recipe-roller@chromium.org
BUG= 598808 , 619959 

TBR=martiniss@chromium.org,phajdan.jr@chromium.org

Review-Url: https://codereview.chromium.org/2068073003

[modify] https://crrev.com/b3af2b14e935491432f01f9625be093994c77af6/infra/config/recipes.cfg

Project Member

Comment 10 by bugdroid1@chromium.org, Jun 17 2016

Sign in to add a comment