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

Side by Side Diff: scripts/slave/recipes/infra/git_hash_metric.py

Issue 1880343003: Added git-hash-metrics builder and recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 from recipe_engine.recipe_api import Property
2
3 DEPS = [
4 'recipe_engine/properties',
5 'recipe_engine/python',
6 ]
7
8
9 def RunSteps(api):
10 git_revision = api.properties['git_revision']
11 repository = api.properties['repository']
12
13 api.python(
14 'send hash to ts_mon',
15 '/opt/infra-python/run.py',
16 ['infra.tools.send_ts_mon_values',
17 '--verbose',
18 '--ts-mon-target-type=task',
19 '--ts-mon-task-service-name=git_hash_metric',
20 ('--gauge=\'{"name":"repository/hash", '
Sergey Berezin 2016/04/18 17:22:45 You want --string.
21 '"value": "%s", "repository": "%s"}\'' % (git_revision, repository)),
22 ]
23 )
24
25
26 def GenTests(api):
27 yield (api.test('infra') +
28 api.properties.git_scheduled(
29 git_revision='deadbeefdeadbeefdeadbeefdeadbeefdeadbeef',
30 repository='https://chromium.googlesource.com/infra/infra'
31 )
32 )
OLDNEW
« no previous file with comments | « masters/master.chromium.infra.cron/slaves.cfg ('k') | scripts/slave/recipes/infra/git_hash_metric.expected/infra.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698