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

Issue 2833723003: [autoroller] All commits in updates(), only roll interesting ones. (Closed)

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

Description

[autoroller] All commits in updates(), only roll interesting ones. Previously `updates` would only include the 'interesting' updates, which meant that the new autoroller algorithm skips over chunks of the repo history. If multiple repos have chunks of non-interesting history, the autoroller can end up not proposing any good candidates. This CL simplifies the repo interface by having `updates()` always return the full list of commits, but adds a new field to the CommitMetadata which indicates that a given commit was `interesting`. This way the full history of every repo is available when picking candidates (e.g. for `CommitList.advance_to`), but find_best_rev will only consider rolling to interesting commits. R=dnj@chromium.org, phajdan.jr@chromium.org BUG= Review-Url: https://codereview.chromium.org/2833723003 Committed: https://github.com/luci/recipes-py/commit/30925bd08c1f78e835f04a2a3d409cf027cde55e

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix test #

Patch Set 3 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -99 lines) Patch
M recipe_engine/autoroll_impl/candidate_algorithm.py View 1 2 3 chunks +9 lines, -4 lines 0 comments Download
M recipe_engine/autoroll_impl/commit_list.py View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M recipe_engine/fetch.py View 1 2 14 chunks +44 lines, -38 lines 0 comments Download
M recipe_engine/package.py View 1 2 chunks +4 lines, -13 lines 0 comments Download
M recipe_engine/unittests/fetch_test.py View 1 13 chunks +58 lines, -31 lines 0 comments Download
M unittests/autoroll_test.py View 1 1 chunk +10 lines, -10 lines 0 comments Download
M unittests/repo_test_util.py View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
iannucci
3 years, 8 months ago (2017-04-20 18:04:57 UTC) #1
dnj
lgtm, small comments https://codereview.chromium.org/2833723003/diff/1/recipe_engine/autoroll_impl/candidate_algorithm.py File recipe_engine/autoroll_impl/candidate_algorithm.py (right): https://codereview.chromium.org/2833723003/diff/1/recipe_engine/autoroll_impl/candidate_algorithm.py#newcode37 recipe_engine/autoroll_impl/candidate_algorithm.py:37: 'Interesting' means 'the commit modifies one ...
3 years, 8 months ago (2017-04-20 18:16:22 UTC) #2
iannucci
https://codereview.chromium.org/2833723003/diff/1/recipe_engine/autoroll_impl/candidate_algorithm.py File recipe_engine/autoroll_impl/candidate_algorithm.py (right): https://codereview.chromium.org/2833723003/diff/1/recipe_engine/autoroll_impl/candidate_algorithm.py#newcode37 recipe_engine/autoroll_impl/candidate_algorithm.py:37: 'Interesting' means 'the commit modifies one or more recipe ...
3 years, 8 months ago (2017-04-20 21:53:20 UTC) #3
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/2833723003/40001
3 years, 8 months ago (2017-04-20 21:54:12 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://github.com/luci/recipes-py/commit/30925bd08c1f78e835f04a2a3d409cf027cde55e
3 years, 8 months ago (2017-04-20 21:57:48 UTC) #9
iannucci1
3 years, 8 months ago (2017-04-20 23:03:56 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2835593002/ by iannucci@google.com.

The reason for reverting is: '^!' apparently gets some crappy escape magic on
windows: https://luci-milo.appspot.com/swarming/task/35a662db00607910.

Powered by Google App Engine
This is Rietveld 408576698