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

Unified Diff: scripts/slave/recipe_modules/v8/api.py

Issue 1489293003: V8 Buildbot: Properly set revision property for triggered tryjobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years 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 | « no previous file | scripts/slave/recipes/v8.expected/full_tryserver_v8_v8_win64_rel_ng.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/v8/api.py
diff --git a/scripts/slave/recipe_modules/v8/api.py b/scripts/slave/recipe_modules/v8/api.py
index 1775ba98a641aa01bf765741688eaeddb89faae9..05d7ef853b6054e5d19cd39592c18bd20e04f261 100644
--- a/scripts/slave/recipe_modules/v8/api.py
+++ b/scripts/slave/recipe_modules/v8/api.py
@@ -1003,7 +1003,6 @@ class V8Api(recipe_api.RecipeApi):
triggers = self.bot_config.get('triggers')
if triggers:
properties = {
- 'revision': self.revision,
'parent_got_revision': self.revision,
'parent_got_revision_cp': self.revision_cp,
}
@@ -1014,8 +1013,13 @@ class V8Api(recipe_api.RecipeApi):
patch_storage=str(self.m.properties['patch_storage']),
patchset=str(self.m.properties['patchset']),
requester=str(self.m.properties['requester']),
+ revision=str(self.m.properties.get('revision', 'HEAD')),
rietveld=str(self.m.properties['rietveld']),
)
+ else:
+ # Don't set revision on tryservers, as CQ expects builders and
+ # testers to match the revision field.
tandrii(chromium) 2015/12/02 17:13:04 this is confusing because it's in the "else" block
Michael Achenbach 2015/12/02 17:36:00 Improved my comments.
tandrii(chromium) 2015/12/02 17:39:46 yep, very readable now.
+ properties['revision'] = self.revision
swarm_hashes = self.m.isolate.isolated_tests
if swarm_hashes:
properties['swarm_hashes'] = swarm_hashes
« no previous file with comments | « no previous file | scripts/slave/recipes/v8.expected/full_tryserver_v8_v8_win64_rel_ng.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698