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

Unified Diff: recipe_modules/bot_update_lite/example.py

Issue 1954833002: Add bot_update_lite into recipes (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Also lite Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/bot_update_lite/api.py ('k') | recipe_modules/bot_update_lite/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/bot_update_lite/example.py
diff --git a/recipe_modules/bot_update/example.py b/recipe_modules/bot_update_lite/example.py
similarity index 64%
copy from recipe_modules/bot_update/example.py
copy to recipe_modules/bot_update_lite/example.py
index 7bdef5ba0e4a2aa93178a56344eb2f137b47b05e..1e24128cb59c2c8dad67052fb643b5a8674474af 100644
--- a/recipe_modules/bot_update/example.py
+++ b/recipe_modules/bot_update_lite/example.py
@@ -15,7 +15,7 @@ def RunSteps(api):
src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[GIT_CACHE]')
soln = src_cfg.solutions.add()
soln.name = 'src'
- soln.url = 'svn://svn.chromium.org/chrome/trunk/src'
+ soln.url = 'https://chromium.googlesource.com/chromium/src.git'
soln.revision = api.properties.get('revision')
api.gclient.c = src_cfg
api.gclient.c.revisions.update(api.properties.get('revisions', {}))
@@ -25,7 +25,6 @@ def RunSteps(api):
'HEAD')
patch = api.properties.get('patch', True)
clobber = True if api.properties.get('clobber') else False
- force = True if api.properties.get('force') else False
no_shallow = True if api.properties.get('no_shallow') else False
output_manifest = api.properties.get('output_manifest', False)
with_branch_heads = api.properties.get('with_branch_heads', False)
@@ -34,8 +33,7 @@ def RunSteps(api):
root_solution_revision = api.properties.get('root_solution_revision')
suffix = api.properties.get('suffix')
gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False
- api.bot_update.ensure_checkout(force=force,
- no_shallow=no_shallow,
+ api.bot_update.ensure_checkout(no_shallow=no_shallow,
patch=patch,
with_branch_heads=with_branch_heads,
output_manifest=output_manifest,
@@ -48,116 +46,57 @@ def RunSteps(api):
def GenTests(api):
yield api.test('basic') + api.properties(
- mastername='chromium.linux',
- buildername='Linux Builder',
- slavename='totallyaslave-m1',
patch=False,
revision='abc'
)
yield api.test('basic_with_branch_heads') + api.properties(
- mastername='chromium.linux',
- buildername='Linux Builder',
- slavename='totallyaslave-m1',
with_branch_heads=True,
suffix='with branch heads'
)
yield api.test('basic_output_manifest') + api.properties(
- mastername='chromium.linux',
- buildername='Linux Builder',
- slavename='totallyaslave-m1',
output_manifest=True,
)
yield api.test('tryjob') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
issue=12345,
patchset=654321,
patch_url='http://src.chromium.org/foo/bar'
)
yield api.test('trychange') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
refs=['+refs/change/1/2/333'],
)
yield api.test('trychange_oauth2') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
oauth2=True,
)
yield api.test('tryjob_fail') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
issue=12345,
patchset=654321,
patch_url='http://src.chromium.org/foo/bar',
) + api.step_data('bot_update', retcode=1)
yield api.test('tryjob_fail_patch') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
issue=12345,
patchset=654321,
patch_url='http://src.chromium.org/foo/bar',
fail_patch='apply',
) + api.step_data('bot_update', retcode=88)
yield api.test('tryjob_fail_patch_download') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
issue=12345,
patchset=654321,
patch_url='http://src.chromium.org/foo/bar',
fail_patch='download'
) + api.step_data('bot_update', retcode=87)
- yield api.test('forced') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
- force=1
- )
yield api.test('no_shallow') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
no_shallow=1
)
- yield api.test('off') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
- )
- yield api.test('svn_mode') + api.properties(
- mastername='experimental.svn',
- buildername='Experimental SVN Builder',
- slavename='somehost',
- force=1
- )
yield api.test('clobber') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
clobber=1
)
yield api.test('reset_root_solution_revision') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
root_solution_revision='revision',
)
yield api.test('gerrit_no_reset') + api.properties(
- mastername='experimental',
- buildername='Experimental Builder',
- slavename='somehost',
gerrit_no_reset=1
)
yield api.test('tryjob_v8') + api.properties(
- mastername='tryserver.chromium.linux',
- buildername='linux_rel',
- slavename='totallyaslave-c4',
issue=12345,
patchset=654321,
patch_url='http://src.chromium.org/foo/bar',
« no previous file with comments | « recipe_modules/bot_update_lite/api.py ('k') | recipe_modules/bot_update_lite/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698