|
|
DescriptionUpdate CL description by adding CQ_EXTRA_TRYBOTS for Telemetry changes.
This CL adds a post upload hook to add extra try bots list to the CL description in order to run
Telemetry benchmarks on Perf trybots in addtion to CQ trybots if the CL
contains any changes to Telemetry benchmarks.
BUG=462581
Committed: https://crrev.com/3d3ed829fb2e178a0174f518096f553e591a2061
Cr-Commit-Position: refs/heads/master@{#327150}
Patch Set 1 #
Total comments: 8
Patch Set 2 : #
Total comments: 2
Patch Set 3 : #Patch Set 4 : rebasing #
Messages
Total messages: 38 (12 generated)
prasadv@chromium.org changed reviewers: + iannucci@chromium.org, simonhatch@chromium.org, sullivan@chromium.org
Friendly ping, PTAL
prasadv@chromium.org changed reviewers: + qyearsley@chromium.org
https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py File tools/perf/PRESUBMIT.py (right): https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:110: benchmarks_modified = True [Optional] The above block could be extracted to a function: def _BenchmarksModified(change): for affected_file in change.AffectedFiles(): affected_file_path = affected_file.LocalPath() file_path, _ = os.path.splitext(affected_file_path) if (os.path.join('tools', 'perf', 'benchmarks') in file_path or os.path.join('tools', 'perf', 'measurements') in file_path): return True return False https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:114: r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): TRYBOYS -> TRYBOTS https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:114: r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): [Optional] If you want to avoid having a long if statement body, you could first check if you *don't* want to make any changes, and return early: if not benchmarks_modified or re.search( r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): return [] # ... update description and add PresubmitNotifyResult ... return results https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:124: description += '\nCQ_EXTRA_TRYBOYS=%s' % bots_string TRYBOYS -> TRYBOTS
https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py File tools/perf/PRESUBMIT.py (right): https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:110: benchmarks_modified = True On 2015/04/07 17:55:53, qyearsley wrote: > [Optional] The above block could be extracted to a function: > > def _BenchmarksModified(change): > for affected_file in change.AffectedFiles(): > affected_file_path = affected_file.LocalPath() > file_path, _ = os.path.splitext(affected_file_path) > if (os.path.join('tools', 'perf', 'benchmarks') in file_path or > os.path.join('tools', 'perf', 'measurements') in file_path): > return True > return False Done. https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:114: r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): On 2015/04/07 17:55:53, qyearsley wrote: > TRYBOYS -> TRYBOTS Done. https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:114: r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): On 2015/04/07 17:55:53, qyearsley wrote: > [Optional] If you want to avoid having a long if statement body, you could first > check if you *don't* want to make any changes, and return early: > > if not benchmarks_modified or re.search( > r'^CQ_EXTRA_TRYBOYS=.*', original_description, re.M | re.I): > return [] > > # ... update description and add PresubmitNotifyResult ... > return results Done. https://codereview.chromium.org/1060763002/diff/1/tools/perf/PRESUBMIT.py#new... tools/perf/PRESUBMIT.py:124: description += '\nCQ_EXTRA_TRYBOYS=%s' % bots_string On 2015/04/07 17:55:53, qyearsley wrote: > TRYBOYS -> TRYBOTS Done.
LGTM https://codereview.chromium.org/1060763002/diff/20001/tools/perf/PRESUBMIT.py File tools/perf/PRESUBMIT.py (right): https://codereview.chromium.org/1060763002/diff/20001/tools/perf/PRESUBMIT.py... tools/perf/PRESUBMIT.py:91: def _IsBenchmarksModified(change_list): Should the argument be called change or change_list? It's called change below.
https://codereview.chromium.org/1060763002/diff/20001/tools/perf/PRESUBMIT.py File tools/perf/PRESUBMIT.py (right): https://codereview.chromium.org/1060763002/diff/20001/tools/perf/PRESUBMIT.py... tools/perf/PRESUBMIT.py:91: def _IsBenchmarksModified(change_list): On 2015/04/08 00:07:13, qyearsley wrote: > Should the argument be called change or change_list? It's called change below. Done.
Hi Simon and Robbie, Can you please take a look at this CL. Thanks
On 2015/04/08 18:30:24, prasadv wrote: > Hi Simon and Robbie, Can you please take a look at this CL. > Thanks lgtm
Why don't we always trigger the bots and have them early-exit with analyze.py? that's how all of the rest of the bots work.....
prasadv@chromium.org changed reviewers: + phajdan.jr@chromium.org
LGTM
The CQ bit was checked by prasadv@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from qyearsley@chromium.org, simonhatch@chromium.org, phajdan.jr@chromium.org Link to the patchset: https://codereview.chromium.org/1060763002/#ps60001 (title: "rebasing")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060763002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by prasadv@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060763002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
On 2015/04/27 04:01:06, I haz the power (commit-bot) wrote: > Try jobs failed on following builders: > chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) I think this is missing an owner for codereview.settings.
On 2015/04/27 15:20:08, shatch wrote: > On 2015/04/27 04:01:06, I haz the power (commit-bot) wrote: > > Try jobs failed on following builders: > > chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) > > I think this is missing an owner for codereview.settings. Rs-lgtm
The CQ bit was checked by prasadv@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060763002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
prasadv@chromium.org changed reviewers: + jam@chromium.org
+jam, for owner approval.
lgtm
The CQ bit was checked by prasadv@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060763002/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/3d3ed829fb2e178a0174f518096f553e591a2061 Cr-Commit-Position: refs/heads/master@{#327150} |