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

Side by Side Diff: appengine/findit/waterfall/test/try_job_pipeline_test.py

Issue 1924173003: [Findit] Fix urls in dashboard and result page and prevent duplicated culprits in dashboard. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « appengine/findit/waterfall/test/swarming_tasks_to_try_job_pipeline_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 6
7 from common.git_repository import GitRepository 7 from common.git_repository import GitRepository
8 from common.pipeline_wrapper import pipeline_handlers 8 from common.pipeline_wrapper import pipeline_handlers
9 from common.waterfall import buildbucket_client 9 from common.waterfall import buildbucket_client
10 from model import analysis_status 10 from model import analysis_status
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 root_pipeline = TryJobPipeline( 112 root_pipeline = TryJobPipeline(
113 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], 113 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'],
114 TryJobType.COMPILE, []) 114 TryJobType.COMPILE, [])
115 root_pipeline.start() 115 root_pipeline.start()
116 self.execute_queued_tasks() 116 self.execute_queued_tasks()
117 117
118 try_job = WfTryJob.Get(master_name, builder_name, build_number) 118 try_job = WfTryJob.Get(master_name, builder_name, build_number)
119 expected_suspected_cl = { 119 expected_suspected_cl = {
120 'revision': 'rev2', 120 'revision': 'rev2',
121 'commit_position': '2', 121 'commit_position': '2',
122 'review_url': 'url_2', 122 'url': 'url_2',
123 'repo_name': 'chromium' 123 'repo_name': 'chromium'
124 } 124 }
125 125
126 expected_try_job_results = [ 126 expected_try_job_results = [
127 { 127 {
128 'report': { 128 'report': {
129 'result': { 129 'result': {
130 'rev1': 'passed', 130 'rev1': 'passed',
131 'rev2': 'failed' 131 'rev2': 'failed'
132 }, 132 },
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 build_number = 1 168 build_number = 1
169 169
170 root_pipeline = TryJobPipeline( 170 root_pipeline = TryJobPipeline(
171 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], 171 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'],
172 TryJobType.COMPILE, []) 172 TryJobType.COMPILE, [])
173 root_pipeline._LogUnexpectedAbort(True) 173 root_pipeline._LogUnexpectedAbort(True)
174 174
175 try_job = WfTryJob.Get(master_name, builder_name, build_number) 175 try_job = WfTryJob.Get(master_name, builder_name, build_number)
176 176
177 self.assertIsNone(try_job) 177 self.assertIsNone(try_job)
OLDNEW
« no previous file with comments | « appengine/findit/waterfall/test/swarming_tasks_to_try_job_pipeline_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698