| Index: scripts/slave/recipes/webrtc/auto_roll_chromium_deps.py
|
| diff --git a/scripts/slave/recipes/v8/auto_roll_deps.py b/scripts/slave/recipes/webrtc/auto_roll_chromium_deps.py
|
| similarity index 67%
|
| copy from scripts/slave/recipes/v8/auto_roll_deps.py
|
| copy to scripts/slave/recipes/webrtc/auto_roll_chromium_deps.py
|
| index 092466142c873adcc073f8b38aff063fa2ccd0e3..7d46ce1fca98f0ee3858fe5818b761503cc0fcbd 100644
|
| --- a/scripts/slave/recipes/v8/auto_roll_deps.py
|
| +++ b/scripts/slave/recipes/webrtc/auto_roll_chromium_deps.py
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| @@ -16,9 +16,12 @@ DEPS = [
|
| ]
|
|
|
|
|
| +LKGR_URL = 'https://webrtc-status.appspot.com/lkgr'
|
| +
|
| +
|
| def ContainsChromiumRoll(changes):
|
| for change in changes:
|
| - if change['subject'].startswith('Update V8 to'):
|
| + if change['subject'].startswith('Roll WebRTC '):
|
| return True
|
| return False
|
|
|
| @@ -26,13 +29,12 @@ def ContainsChromiumRoll(changes):
|
| def RunSteps(api):
|
| api.chromium.cleanup_temp()
|
| api.gclient.set_config('chromium')
|
| - api.gclient.apply_config('v8_bleeding_edge_git')
|
|
|
| step_result = api.python(
|
| 'check roll status',
|
| api.path['build'].join('scripts', 'tools', 'runit.py'),
|
| [api.path['build'].join('scripts', 'tools', 'pycurl.py'),
|
| - 'https://v8-roll.appspot.com/status'],
|
| + 'https://webrtc-roll.appspot.com/status'],
|
| stdout=api.raw_io.output(),
|
| step_test_data=lambda: api.raw_io.test_api.stream_output(
|
| '1', stream='stdout')
|
| @@ -46,7 +48,7 @@ def RunSteps(api):
|
|
|
| params = {
|
| 'closed': 3,
|
| - 'owner': 'v8-autoroll@chromium.org',
|
| + 'owner': 'webrtc-autoroll@chromium.org',
|
| 'limit': 30,
|
| 'format': 'json',
|
| }
|
| @@ -71,33 +73,34 @@ def RunSteps(api):
|
|
|
| api.bot_update.ensure_checkout(force=True, no_shallow=True)
|
|
|
| + # Get the LKGR revision.
|
| + result = api.url.fetch(
|
| + LKGR_URL,
|
| + 'get lkgr revision',
|
| + step_test_data=lambda: api.raw_io.test_api.output('deadbeef')
|
| + )
|
| +
|
| api.python(
|
| 'roll deps',
|
| - api.path['checkout'].join(
|
| - 'v8', 'tools', 'release', 'auto_roll.py'),
|
| - ['--chromium', api.path['checkout'],
|
| - '--author', 'v8-autoroll@chromium.org',
|
| - '--reviewer',
|
| - 'hablich@chromium.org,machenbach@chromium.org,'
|
| - 'yangguo@chromium.org,vogelheim@chromium.org',
|
| - '--roll',
|
| - '--work-dir', api.path['slave_build'].join('workdir')],
|
| - cwd=api.path['checkout'].join('v8'),
|
| - )
|
| + api.path['checkout'].join('tools', 'roll_webrtc.py'),
|
| + ['--revision', result, '--wait-for-trybots', '--close-previous-roll',
|
| + '--verbose'],
|
| + cwd=api.path['checkout'],
|
| + )
|
|
|
|
|
| def GenTests(api):
|
| - yield api.test('standard') + api.properties.generic(
|
| - mastername='client.v8.fyi')
|
| + yield (api.test('standard') +
|
| + api.properties.generic(mastername='client.webrtc.fyi')
|
| + )
|
| yield (api.test('rolling_deactivated') +
|
| - api.properties.generic(mastername='client.v8') +
|
| + api.properties.generic(mastername='client.webrtc.fyi') +
|
| api.override_step_data(
|
| 'check roll status', api.raw_io.stream_output('0', stream='stdout'))
|
| - )
|
| + )
|
| yield (api.test('active_roll') +
|
| - api.properties.generic(mastername='client.v8') +
|
| + api.properties.generic(mastername='client.webrtc.fyi') +
|
| api.override_step_data(
|
| 'check active roll', api.raw_io.output(
|
| - '{"results": [{"subject": "Update V8 to foo"}]}'))
|
| - )
|
| -
|
| + '{"results": [{"subject": "Roll WebRTC to 123"}]}'))
|
| + )
|
|
|