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

Issue 2829203002: [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. Originally landed: https://codereview.chromium.org/2833723003 R=dnj@chromium.org, phajdan.jr@chromium.org BUG= Review-Url: https://codereview.chromium.org/2829203002 Committed: https://github.com/luci/recipes-py/commit/763b5442fe13969bc3ffc0fa37bcc527fa9814bf

Patch Set 1 #

Patch Set 2 : windows fix #

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

Messages

Total messages: 10 (3 generated)
iannucci
3 years, 8 months ago (2017-04-20 23:54:15 UTC) #1
dnj
lgtm from last time, carrots seemed to work on Windows box.
3 years, 8 months ago (2017-04-21 00:05:06 UTC) #2
iannucci
3 years, 8 months ago (2017-04-21 00:06:07 UTC) #3
dnj
On 2017/04/21 00:05:06, dnj wrote: > lgtm from last time, carrots seemed to work on ...
3 years, 8 months ago (2017-04-21 00:06:08 UTC) #4
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/2829203002/20001
3 years, 8 months ago (2017-04-21 00:06:16 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://github.com/luci/recipes-py/commit/763b5442fe13969bc3ffc0fa37bcc527fa9814bf
3 years, 8 months ago (2017-04-21 00:09:30 UTC) #9
iannucci
3 years, 8 months ago (2017-04-21 00:22:48 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2837493002/ by iannucci@chromium.org.

The reason for reverting is: somehow this is still broken....

Powered by Google App Engine
This is Rietveld 408576698