aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/swarm_test.py
diff options
context:
space:
mode:
authorGravatar rmistry <rmistry@google.com>2016-08-24 05:07:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-24 05:07:06 -0700
commit3f1c9c0a7227d4ea45c39eb1e596538bb483f65a (patch)
tree55208de5c2469cc70cedce760ae3a753d75f0b66 /infra/bots/recipes/swarm_test.py
parent6a88206b2ece8b64534c87fca156e5fe161f884e (diff)
Apply gerrit ref if it is a Gerrit patch.
Also: * Pass through a new property 'patch_storage' to DM/Nanobench/Coverage. This will be used by the different frameworks to figure out if it is Rietveld or Gerrit issue. * Calculate issue and patchset for Gerrit patches similar to Rietveld. BUG=skia:5627 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2263323002 Review-Url: https://codereview.chromium.org/2263323002
Diffstat (limited to 'infra/bots/recipes/swarm_test.py')
-rw-r--r--infra/bots/recipes/swarm_test.py25
1 files changed, 23 insertions, 2 deletions
diff --git a/infra/bots/recipes/swarm_test.py b/infra/bots/recipes/swarm_test.py
index 1ceba3a1a2..67c9f2745d 100644
--- a/infra/bots/recipes/swarm_test.py
+++ b/infra/bots/recipes/swarm_test.py
@@ -431,8 +431,9 @@ def test_steps(api):
]
if api.vars.is_trybot:
properties.extend([
- 'issue', api.vars.issue,
- 'patchset', api.vars.patchset,
+ 'issue', api.vars.issue,
+ 'patchset', api.vars.patchset,
+ 'patch_storage', api.vars.patch_storage,
])
args = [
@@ -860,3 +861,23 @@ def GenTests(api):
) +
api.platform('win', 64)
)
+
+ builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug-Trybot'
+ gerrit_kwargs = {
+ 'patch_storage': 'gerrit',
+ 'repository': 'skia',
+ 'event.patchSet.ref': 'refs/changes/00/2100/2',
+ 'event.change.number': '2100',
+ }
+ yield (
+ api.test('recipe_with_gerrit_patch') +
+ api.properties(
+ buildername=builder,
+ mastername='client.skia',
+ slavename='skiabot-linux-swarm-000',
+ buildnumber=5,
+ path_config='kitchen',
+ swarm_out_dir='[SWARM_OUT_DIR]',
+ revision='abc123',
+ **gerrit_kwargs)
+ )