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

Issue 2866283002: named caches: move instead of symlinking (Closed)

Created:
3 years, 7 months ago by nodir
Modified:
3 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

named caches: move instead of symlinking Moving named caches is better than symlinking because - C++ compiler used in swarming tasks reads symlinks => compiler output contains absolute paths to named caches => compiler cache key contains CWD => compiler cache is useless - if a bot dies, there is a higher chance that a cache is corrupted => better to discard the cache by not moving it back - simpler Move named cache directories to the task rundir before running a task, and move them back when task completes (and bot did not die). Revisit NamedCacheManager design, simplify its API. install() leaves the cache manager in consistent state: the entries are removed from the cache. uninstall() puts them back. R=maruel@chromium.org BUG=715326 Review-Url: https://codereview.chromium.org/2866283002 Committed: https://github.com/luci/luci-py/commit/d1ab255eac4e9ef88d437d476a586d22cda15952

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 14

Patch Set 3 : address comments #

Patch Set 4 : update comments and strings, unlint #

Patch Set 5 : docstring #

Total comments: 6

Patch Set 6 : final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -160 lines) Patch
M client/named_cache.py View 1 2 3 4 5 11 chunks +129 lines, -96 lines 0 comments Download
M client/run_isolated.py View 1 2 3 4 8 chunks +22 lines, -16 lines 0 comments Download
M client/tests/named_cache_test.py View 1 2 3 chunks +90 lines, -37 lines 0 comments Download
M client/tests/run_isolated_test.py View 1 2 3 4 5 3 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
nodir
PTAL
3 years, 7 months ago (2017-05-09 18:19:32 UTC) #8
M-A Ruel
lgtm with comments I with CachedManager and LocalCache had similar APIs. We should refactor them ...
3 years, 7 months ago (2017-05-09 18:35:14 UTC) #11
nodir
I like that NamedCacheManager API is simple and low level, but we can build another ...
3 years, 7 months ago (2017-05-09 23:20:10 UTC) #12
M-A Ruel
lgtm https://codereview.chromium.org/2866283002/diff/120001/client/named_cache.py File client/named_cache.py (right): https://codereview.chromium.org/2866283002/diff/120001/client/named_cache.py#newcode153 client/named_cache.py:153: # Just create an empty directory. Remove the ...
3 years, 7 months ago (2017-05-10 18:48:01 UTC) #15
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/2866283002/140001
3 years, 7 months ago (2017-05-10 19:15:33 UTC) #20
nodir
https://codereview.chromium.org/2866283002/diff/120001/client/named_cache.py File client/named_cache.py (right): https://codereview.chromium.org/2866283002/diff/120001/client/named_cache.py#newcode153 client/named_cache.py:153: # Just create an empty directory. On 2017/05/10 18:48:01, ...
3 years, 7 months ago (2017-05-10 19:15:35 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 19:18:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://github.com/luci/luci-py/commit/d1ab255eac4e9ef88d437d476a586d22cda15952

Powered by Google App Engine
This is Rietveld 408576698