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

Issue 2039563002: Make "vs_toolchain.py update" work on case-sensitive file systems (Closed)

Created:
4 years, 6 months ago by hans
Modified:
4 years, 6 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, Sébastien Marchand, brucedawson
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make "vs_toolchain.py update" work on case-sensitive file systems Filenames must have their case preserved so the files can be opened, but they need to be lowercased when hashed and sorted, to match the expected hash. In other words, this patch moves the lower-casing from GetFileList (except to sort the list) to where filenames are fed into the hash. BUG=495204 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=300696

Patch Set 1 #

Total comments: 3

Patch Set 2 : Ignore ignored_directories on non-Win #

Total comments: 2

Patch Set 3 : Windows hosts still need p to be lowered #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M win_toolchain/get_toolchain_if_necessary.py View 1 2 2 chunks +8 lines, -4 lines 2 comments Download

Messages

Total messages: 28 (8 generated)
hans
I tried to play with https://codereview.chromium.org/1183633003/ on Linux, and wanted to see how far I ...
4 years, 6 months ago (2016-06-03 18:41:47 UTC) #2
hans
+scottmg too
4 years, 6 months ago (2016-06-03 18:42:07 UTC) #4
Nico
nice, lgtm https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py#newcode78 win_toolchain/get_toolchain_if_necessary.py:78: # to store the symbol files. You ...
4 years, 6 months ago (2016-06-03 18:44:46 UTC) #5
hans
https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py#newcode78 win_toolchain/get_toolchain_if_necessary.py:78: # to store the symbol files. On 2016/06/03 18:44:46, ...
4 years, 6 months ago (2016-06-03 18:47:33 UTC) #6
Nico
https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py#newcode78 win_toolchain/get_toolchain_if_necessary.py:78: # to store the symbol files. On 2016/06/03 18:47:32, ...
4 years, 6 months ago (2016-06-03 18:56:00 UTC) #7
hans
On 2016/06/03 18:56:00, Nico wrote: > https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py > File win_toolchain/get_toolchain_if_necessary.py (right): > > https://codereview.chromium.org/2039563002/diff/1/win_toolchain/get_toolchain_if_necessary.py#newcode78 > ...
4 years, 6 months ago (2016-06-03 19:44:40 UTC) #8
Nico
https://codereview.chromium.org/2039563002/diff/20001/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/20001/win_toolchain/get_toolchain_if_necessary.py#newcode89 win_toolchain/get_toolchain_if_necessary.py:89: if any(ignored_dir in p for ignored_dir in ignored_directories): does ...
4 years, 6 months ago (2016-06-03 19:57:41 UTC) #9
hans
https://codereview.chromium.org/2039563002/diff/20001/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/20001/win_toolchain/get_toolchain_if_necessary.py#newcode89 win_toolchain/get_toolchain_if_necessary.py:89: if any(ignored_dir in p for ignored_dir in ignored_directories): On ...
4 years, 6 months ago (2016-06-03 20:01:38 UTC) #10
scottmg
Isn't this going to modify the hash of already downloaded toolchains?
4 years, 6 months ago (2016-06-06 15:50:40 UTC) #12
hans
On 2016/06/06 15:50:40, scottmg wrote: > Isn't this going to modify the hash of already ...
4 years, 6 months ago (2016-06-06 15:59:07 UTC) #13
scottmg
https://codereview.chromium.org/2039563002/diff/40001/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/40001/win_toolchain/get_toolchain_if_necessary.py#newcode165 win_toolchain/get_toolchain_if_necessary.py:165: digest.update(path_without_hash.lower()) I don't really remember what the data looks ...
4 years, 6 months ago (2016-06-06 16:39:22 UTC) #14
scottmg
lgtm https://codereview.chromium.org/2039563002/diff/40001/win_toolchain/get_toolchain_if_necessary.py File win_toolchain/get_toolchain_if_necessary.py (right): https://codereview.chromium.org/2039563002/diff/40001/win_toolchain/get_toolchain_if_necessary.py#newcode165 win_toolchain/get_toolchain_if_necessary.py:165: digest.update(path_without_hash.lower()) On 2016/06/06 16:39:22, scottmg wrote: > I ...
4 years, 6 months ago (2016-06-06 16:40:56 UTC) #15
hans
On 2016/06/06 16:40:56, scottmg wrote: > lgtm > > https://codereview.chromium.org/2039563002/diff/40001/win_toolchain/get_toolchain_if_necessary.py > File win_toolchain/get_toolchain_if_necessary.py (right): > ...
4 years, 6 months ago (2016-06-06 16:46:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039563002/40001
4 years, 6 months ago (2016-06-06 16:46:32 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=300696
4 years, 6 months ago (2016-06-06 16:49:49 UTC) #22
Sébastien Marchand
The 'vs_toolchain_wrapper.py update' hook now takes between 20 and 50 secs each time I call ...
4 years, 6 months ago (2016-06-08 16:13:32 UTC) #24
hans
On 2016/06/08 16:13:32, Sébastien Marchand wrote: > The 'vs_toolchain_wrapper.py update' hook now takes between 20 ...
4 years, 6 months ago (2016-06-08 16:21:28 UTC) #25
Sébastien Marchand
Yep, it says 'Calculating hash of toolchain' each time. I'll try to debug this locally ...
4 years, 6 months ago (2016-06-08 16:25:37 UTC) #26
hans
On 2016/06/08 16:25:37, Sébastien Marchand wrote: > Yep, it says 'Calculating hash of toolchain' each ...
4 years, 6 months ago (2016-06-08 16:31:23 UTC) #27
Sébastien Marchand
4 years, 6 months ago (2016-06-08 16:50:53 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2052533002 should fix this.

Powered by Google App Engine
This is Rietveld 408576698