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

Unified Diff: infra/tools/send_monitoring_event/send_event.py

Issue 1815413002: Add support for patch_url field in BuildEvent (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Added test Created 4 years, 9 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 | « no previous file | infra_libs/event_mon/monitoring.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/send_monitoring_event/send_event.py
diff --git a/infra/tools/send_monitoring_event/send_event.py b/infra/tools/send_monitoring_event/send_event.py
index 1d1cebeba8ecf5a764960ddc1f69dc869996bde6..e406f1409ef9c80ec907b5832f270f4b2bad76a5 100644
--- a/infra/tools/send_monitoring_event/send_event.py
+++ b/infra/tools/send_monitoring_event/send_event.py
@@ -121,6 +121,8 @@ def get_arguments(argv):
help='Extra result code. String, comma-separated '
'list of strings or json-encoded list of string. '
'Each one must be less than 20 characters long.')
+ build_group.add_argument('--build-event-patch-url',
+ help='URL of the patchset that triggered build')
build_group.add_argument('--build-event-goma-stats-path',
metavar='FILENAME',
@@ -324,6 +326,7 @@ def send_build_event(args):
step_number=args.build_event_step_number,
result=args.build_event_result,
extra_result_code=args.build_event_extra_result_code,
+ patch_url=args.build_event_patch_url,
timestamp_kind=args.event_mon_timestamp_kind,
event_timestamp=args.event_mon_event_timestamp,
goma_stats=goma_stats,
@@ -409,7 +412,8 @@ def read_events_from_file(filename):
extra_result_code=args.get('build-event-extra-result-code'),
timestamp_kind=args.get('event-mon-timestamp-kind'),
event_timestamp=args.get('event-mon-event-timestamp'),
- service_name=args.get('event-mon-service-name')))
+ service_name=args.get('event-mon-service-name'),
+ patch_url=args.get('build-event-patch-url')))
else:
LOGGER.warning('build-event-type field not found, skipping line '
'%d in %s', lineno, filename)
« no previous file with comments | « no previous file | infra_libs/event_mon/monitoring.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698