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

Issue 2853413002: Add unit test to clean_caches() (Closed)

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

Description

Add unit test to clean_caches() - Add unit test to ensure clean_caches() work. - Make trim parameter explicit. - Change Cache.trim() to return the number of items trimmed. BUG=717716 R=nodir@chromium.org Review-Url: https://codereview.chromium.org/2853413002 Committed: https://github.com/luci/luci-py/commit/83b611c26b82951c2e435da873c9105c245aaf6e

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : os.path.relpath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -22 lines) Patch
M client/cipd.py View 2 chunks +4 lines, -2 lines 0 comments Download
M client/isolateserver.py View 11 chunks +25 lines, -7 lines 0 comments Download
M client/named_cache.py View 3 chunks +8 lines, -2 lines 0 comments Download
M client/run_isolated.py View 2 chunks +12 lines, -3 lines 0 comments Download
M client/tests/isolateserver_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/run_isolated_smoke_test.py View 3 chunks +6 lines, -6 lines 0 comments Download
M client/tests/run_isolated_test.py View 1 6 chunks +117 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
M-A Ruel
This still doesn't explain the stale named caches that weren't deleted but this documents better ...
3 years, 7 months ago (2017-05-03 21:19:43 UTC) #7
nodir
lgtm https://codereview.chromium.org/2853413002/diff/60001/client/tests/run_isolated_test.py File client/tests/run_isolated_test.py (right): https://codereview.chromium.org/2853413002/diff/60001/client/tests/run_isolated_test.py#newcode64 client/tests/run_isolated_test.py:64: relpath = p[len(path):].lstrip(os.sep) why not os.path.relpath? https://codereview.chromium.org/2853413002/diff/60001/client/tests/run_isolated_test.py#newcode655 client/tests/run_isolated_test.py:655: ...
3 years, 7 months ago (2017-05-04 07:34:42 UTC) #8
M-A Ruel
https://codereview.chromium.org/2853413002/diff/60001/client/tests/run_isolated_test.py File client/tests/run_isolated_test.py (right): https://codereview.chromium.org/2853413002/diff/60001/client/tests/run_isolated_test.py#newcode64 client/tests/run_isolated_test.py:64: relpath = p[len(path):].lstrip(os.sep) On 2017/05/04 07:34:41, nodir wrote: > ...
3 years, 7 months ago (2017-05-04 16:00:56 UTC) #9
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/2853413002/80001
3 years, 7 months ago (2017-05-04 16:01:10 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 16:03:54 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://github.com/luci/luci-py/commit/83b611c26b82951c2e435da873c9105c245aaf6e

Powered by Google App Engine
This is Rietveld 408576698