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

Issue 2444403003: Avoid unnecessary file churn by "git reset --hard" step. (Closed)

Created:
4 years, 1 month ago by sdefresne
Modified:
4 years, 1 month ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Avoid unnecessary file churn by "git reset --hard" step. Some of the build step create hard-links to files in the checked out repository which change the file ctime timestamp even. In turn, this cause "git reset --hard" to consider the file as modified due to a cache mismatch between its index and the checkout. As a workaround, add a "git update-index --refresh" call to force a refresh of the git index, which will update the ctime stored in the cache, thus avoiding the unnecessary recreation of the file. This is necessary as otherwise ninja would consider the output of the hardlink step as stale and would re-run the corresponding step thus creating a vicious cycle. BUG=642711 Committed: https://chromium.googlesource.com/chromium/tools/build/+/a3067d9bb46a84753a2c19dd391b9896c629dfbf

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M scripts/slave/gclient_safe_revert.py View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
sdefresne
justincohen: FYI dpranke: Please take a look.
4 years, 1 month ago (2016-10-26 14:56:57 UTC) #6
justincohen
lgtm, can you update the Cl description with the --refresh flag
4 years, 1 month ago (2016-10-26 15:53:33 UTC) #7
sdefresne
On 2016/10/26 15:53:33, justincohen wrote: > lgtm, can you update the Cl description with the ...
4 years, 1 month ago (2016-10-26 15:57:01 UTC) #9
Dirk Pranke
lgtm
4 years, 1 month ago (2016-10-26 17:26:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444403003/1
4 years, 1 month ago (2016-10-26 17:36:17 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 17:45:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/tools/build/+/a3067d9bb46a84753a2c...

Powered by Google App Engine
This is Rietveld 408576698