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

Issue 2439693003: rebaseline-cl: Don't trigger new try jobs for builders that already have jobs started. (Closed)

Created:
4 years, 2 months ago by qyearsley
Modified:
4 years, 2 months ago
Reviewers:
Dirk Pranke, wkorman
CC:
blink-reviews, cbentzel+watch_chromium.org, chromium-reviews, jeffcarp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

rebaseline-cl: Don't trigger new try jobs for builders that already have jobs started. In the preliminary CL http://crrev.com/2406153003, I changed Rietveld.latest_try_jobs to Rietveld.latest_try_job_results and made it return a dict of Builds (named tuple objects with builder_name and build_number) to result info dicts. The purpose of this was to make it so that rebaseline-cl could look through the result info dicts to see whether each build is completed or just started, to avoid starting extra builds. After looking at it some more, I see that in the Rietveld response, builds that are just started but not completed have no build number information. To avoid having to pass around the result dict information from Rietveld, it's possible to just have a list of Build objects with build_number set to None when the build is just pending or started but not completed. So, in summary, this CL makes it so that when one runs rebaseline-cl twice in a row, it now prints out: $ ./webkit-patch rebaseline-cl Triggering try jobs for: android_blink_rel linux_precise_blink_rel linux_trusty_blink_rel mac10.10_blink_rel mac10.11_blink_rel mac10.11_retina_blink_rel mac10.9_blink_rel win10_blink_rel win7_blink_rel Please re-run webkit-patch rebaseline-cl once all pending try jobs have finished. $ ./webkit-patch rebaseline-cl There are existing pending builds for: android_blink_rel linux_precise_blink_rel linux_trusty_blink_rel mac10.10_blink_rel mac10.11_blink_rel mac10.11_retina_blink_rel mac10.9_blink_rel win10_blink_rel win7_blink_rel Please re-run webkit-patch rebaseline-cl once all pending try jobs have finished. And this CL undoes some of the changes made in http://crrev.com/2406153003 in order to simplify the code, because now I think passing full result info dicts is unnecessary. BUG=654919 Committed: https://crrev.com/9b5bb47fa0a7e219fdaf093a83ba2a1f63f63b7e Cr-Commit-Position: refs/heads/master@{#426837}

Patch Set 1 #

Patch Set 2 : Revert latest_try_job_results to only return a list of Builds again (simpler) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -57 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py View 1 4 chunks +25 lines, -23 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py View 1 5 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py View 1 3 chunks +30 lines, -20 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py View 1 3 chunks +40 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
qyearsley
4 years, 2 months ago (2016-10-20 23:48:40 UTC) #3
Dirk Pranke
lgtm
4 years, 2 months ago (2016-10-21 03:14:00 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/2439693003/20001
4 years, 2 months ago (2016-10-21 16:23:27 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-21 17:52:02 UTC) #7
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 18:06:57 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9b5bb47fa0a7e219fdaf093a83ba2a1f63f63b7e
Cr-Commit-Position: refs/heads/master@{#426837}

Powered by Google App Engine
This is Rietveld 408576698