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

Issue 725933 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

DEPS presubmit finds false positives on Windows

Project Member Reported by manzagop@chromium.org, May 24 2017

Issue description

(newb here - the bug is possibly filed with the wrong component / missing labels)

_CalculateAddedDeps calls into depot tools' scm.py GetOldContents to compare previous and current versions of the DEPS file. GetOldContents attempts to 'git show <sha>:<path>'. The problem on Windows is that path uses '\' but git show seems to want a posix path. Git show therefore doesn't find the file and returns an empty output, leading presubmit to think all the deps are new.

 

Comment 2 by no...@chromium.org, May 25 2017

Components: -Infra Infra>SDK

Comment 3 by no...@chromium.org, May 25 2017

Labels: Pri-2 Type-Bug
Project Member

Comment 4 by bugdroid1@chromium.org, May 31 2017

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

commit fc1c6f4c1fac4de7647da83425f4398dde6e77ca
Author: Pierre-Antoine Manzagol <manzagop@chromium.org>
Date: Wed May 31 21:54:17 2017

Correct Git show's path format on Windows

_CalculateAddedDeps calls into depot tools' scm.py GetOldContents to
compare previous and current versions of the DEPS file. GetOldContents
attempts to 'git show <sha>:<path>'. The problem on Windows is that path
uses '\' but git show seems to want a posix path. Git show therefore
doesn't find the file and returns an empty output, leading presubmit to
think all the deps are new.

Bug:725933
Change-Id: Ifbbfbcba4be466d9be623826818fd191bd2ca525
Reviewed-on: https://chromium-review.googlesource.com/514142
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>

[modify] https://crrev.com/fc1c6f4c1fac4de7647da83425f4398dde6e77ca/scm.py
[modify] https://crrev.com/fc1c6f4c1fac4de7647da83425f4398dde6e77ca/tests/scm_unittest.py

Status: Fixed (was: Started)

Sign in to add a comment