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

Unified Diff: scripts/slave/recipes/bisection/desktop_bisect.py

Issue 1573293002: Change auto_bisect to post results to perf dashboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: post_bisect to post_bisect_results Created 4 years, 11 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
Index: scripts/slave/recipes/bisection/desktop_bisect.py
diff --git a/scripts/slave/recipes/bisection/desktop_bisect.py b/scripts/slave/recipes/bisection/desktop_bisect.py
index 5f6210f0c9f63b62a6d06ed627b83a3d4eaf9f8d..72617f0356a8598a7210373f9b980bbfe5a1ae6c 100644
--- a/scripts/slave/recipes/bisection/desktop_bisect.py
+++ b/scripts/slave/recipes/bisection/desktop_bisect.py
@@ -16,6 +16,7 @@ DEPS = [
'recipe_engine/step'
]
+
def RunSteps(api):
mastername = api.properties.get('mastername')
buildername = api.properties.get('buildername')
@@ -28,6 +29,7 @@ def RunSteps(api):
api.auto_bisect.start_try_job(api, update_step=update_step,
master_dict=master_dict)
+
def GenTests(api):
yield (api.test('basic')
+api.properties.tryserver(
@@ -78,7 +80,9 @@ results-without_patch
stdout=api.raw_io.output(str(results_without_patch)))
+ api.step_data('Performance Test (With Patch) 1 of 1',
stdout=api.raw_io.output(str(results_with_patch)))
-
+ + api.step_data(
+ 'Post bisect results',
+ stdout=api.json.output({'status_code': 200}))
)
config_json.update({"metric": "dummy/dummy"})
@@ -97,6 +101,9 @@ results-without_patch
stdout=api.raw_io.output(results_without_patch))
+ api.step_data('Performance Test (With Patch) 1 of 1',
stdout=api.raw_io.output(results_with_patch))
+ + api.step_data(
+ 'Post bisect results',
+ stdout=api.json.output({'status_code': 200}))
)
yield (api.test('perf_tryjob_failed_test')
@@ -134,6 +141,9 @@ results-without_patch
+ api.step_data(
'Performance Test (bad49c331def2a3bbf3ddd0096eb51551155) 1 of 1',
stdout=api.raw_io.output(results_with_patch))
+ + api.step_data(
+ 'Post bisect results',
+ stdout=api.json.output({'status_code': 200}))
)
config_json = {
@@ -243,4 +253,3 @@ results-without_patch
+ api.properties(parent_got_revision='1111111')
+ api.properties(parent_build_archive_url='gs://test-domain/test-archive.zip')
)
-

Powered by Google App Engine
This is Rietveld 408576698