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

Issue 2808713003: path: Add tracking of volatile paths. (Closed)

Created:
3 years, 8 months ago by dnj
Modified:
3 years, 8 months ago
Reviewers:
iannucci, nodir
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

path: Add tracking of volatile paths. Allow a caller to express to the recipe engine that named paths are volatile. This can, in turn, be used by recipes to determine if they should care about residual files in between recipe executions within that path. BUG=chromium:708616 TEST=expectations Review-Url: https://codereview.chromium.org/2808713003 Committed: https://github.com/luci/recipes-py/commit/f31d525eef33613aa537e8ed954e7dfbf1cae8b2

Patch Set 1 #

Patch Set 2 : more generic expression #

Total comments: 5

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -4 lines) Patch
M recipe_modules/path/api.py View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
M recipe_modules/path/config.py View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M recipe_modules/path/example.py View 1 2 chunks +4 lines, -1 line 0 comments Download
M recipe_modules/path/example.expected/linux.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/linux_kitchen.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/linux_luci.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/linux_swarming.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/mac.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/mac_kitchen.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/mac_luci.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/mac_swarming.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/win.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/win_kitchen.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/win_luci.json View 1 chunk +7 lines, -0 lines 0 comments Download
M recipe_modules/path/example.expected/win_swarming.json View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
dnj
PTAL
3 years, 8 months ago (2017-04-10 16:45:15 UTC) #4
nodir
lgtm https://codereview.chromium.org/2808713003/diff/20001/recipe_modules/path/api.py File recipe_modules/path/api.py (right): https://codereview.chromium.org/2808713003/diff/20001/recipe_modules/path/api.py#newcode207 recipe_modules/path/api.py:207: self._tmp_dir_volatile = self._test_data.get('tmp_dir_volatile', False) self._tmp_dir_volatile is not used ...
3 years, 8 months ago (2017-04-10 16:59:21 UTC) #5
dnj
https://codereview.chromium.org/2808713003/diff/20001/recipe_modules/path/api.py File recipe_modules/path/api.py (right): https://codereview.chromium.org/2808713003/diff/20001/recipe_modules/path/api.py#newcode207 recipe_modules/path/api.py:207: self._tmp_dir_volatile = self._test_data.get('tmp_dir_volatile', False) On 2017/04/10 16:59:21, nodir wrote: ...
3 years, 8 months ago (2017-04-10 17:05:20 UTC) #6
iannucci
I'm not exactly sure how this helps with the linked bug though? https://codereview.chromium.org/2808713003/diff/20001/recipe_modules/path/config.py File recipe_modules/path/config.py ...
3 years, 8 months ago (2017-04-10 17:05:33 UTC) #7
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/2808713003/40001
3 years, 8 months ago (2017-04-10 17:06:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Recipes-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/3571a6099f74f010)
3 years, 8 months ago (2017-04-10 17:12:31 UTC) #12
dnj
On 2017/04/10 17:05:33, iannucci wrote: > I'm not exactly sure how this helps with the ...
3 years, 8 months ago (2017-04-10 17:17:54 UTC) #13
iannucci
oops, meant to lgtm
3 years, 8 months ago (2017-04-10 17:27:06 UTC) #14
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/2808713003/40001
3 years, 8 months ago (2017-04-10 17:27:21 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://github.com/luci/recipes-py/commit/f31d525eef33613aa537e8ed954e7dfbf1cae8b2
3 years, 8 months ago (2017-04-10 17:30:21 UTC) #19
dnj
3 years, 8 months ago (2017-04-12 14:31:52 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2811143005/ by dnj@chromium.org.

The reason for reverting is: different approach, no longer needed, reduce extra
complexity..

Powered by Google App Engine
This is Rietveld 408576698