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

Issue 1778153002: [Findit] Strip platform from step_name before triggering try job. (Closed)

Created:
4 years, 9 months ago by chanli
Modified:
4 years, 9 months ago
Reviewers:
stgao, lijeffrey
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Findit] Strip platform from step_name before triggering try job. BUG=593528 Committed: https://chromium.googlesource.com/infra/infra/+/b21f57d3906379654fdb9adacb7eb46df1d74a11

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Patch Set 3 : address comments #

Total comments: 16

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -39 lines) Patch
M appengine/findit/waterfall/process_swarming_task_result_pipeline.py View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M appengine/findit/waterfall/run_try_job_for_reliable_failure_pipeline.py View 1 1 chunk +4 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/test/process_swarming_task_result_pipeline_test.py View 1 2 3 4 7 chunks +16 lines, -12 lines 0 comments Download
M appengine/findit/waterfall/test/run_try_job_for_reliable_failure_pipeline_test.py View 1 4 chunks +32 lines, -21 lines 0 comments Download
M appengine/findit/waterfall/test/trigger_swarming_task_pipeline_test.py View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M appengine/findit/waterfall/trigger_swarming_task_pipeline.py View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
chanli
PTAL.
4 years, 9 months ago (2016-03-10 00:20:02 UTC) #2
stgao
https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py File appengine/findit/waterfall/try_job_util.py (right): https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py#newcode88 appengine/findit/waterfall/try_job_util.py:88: updated_tests[step_name.strip()[0]] = tests How about using the value of ...
4 years, 9 months ago (2016-03-10 00:39:30 UTC) #3
lijeffrey
https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py File appengine/findit/waterfall/try_job_util.py (right): https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py#newcode82 appengine/findit/waterfall/try_job_util.py:82: def _StripPlatform(targeted_tests): nit: just for clarity maybe rename this ...
4 years, 9 months ago (2016-03-10 00:43:56 UTC) #4
chanli
PTAL https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py File appengine/findit/waterfall/try_job_util.py (right): https://codereview.chromium.org/1778153002/diff/1/appengine/findit/waterfall/try_job_util.py#newcode82 appengine/findit/waterfall/try_job_util.py:82: def _StripPlatform(targeted_tests): On 2016/03/10 00:43:56, lijeffrey wrote: > ...
4 years, 9 months ago (2016-03-10 23:31:51 UTC) #5
stgao
https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py#newcode88 appengine/findit/waterfall/process_swarming_task_result_pipeline.py:88: step_name_no_platform = step_name Should not default to step name ...
4 years, 9 months ago (2016-03-10 23:50:28 UTC) #6
chanli
https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py#newcode88 appengine/findit/waterfall/process_swarming_task_result_pipeline.py:88: step_name_no_platform = step_name On 2016/03/10 23:50:28, stgao wrote: > ...
4 years, 9 months ago (2016-03-11 00:49:41 UTC) #7
stgao
https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py#newcode88 appengine/findit/waterfall/process_swarming_task_result_pipeline.py:88: step_name_no_platform = step_name On 2016/03/11 00:49:41, chanli wrote: > ...
4 years, 9 months ago (2016-03-11 01:03:20 UTC) #8
chanli
https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py#newcode88 appengine/findit/waterfall/process_swarming_task_result_pipeline.py:88: step_name_no_platform = step_name On 2016/03/11 01:03:20, stgao wrote: > ...
4 years, 9 months ago (2016-03-11 03:47:00 UTC) #9
stgao
https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/1778153002/diff/40001/appengine/findit/waterfall/process_swarming_task_result_pipeline.py#newcode88 appengine/findit/waterfall/process_swarming_task_result_pipeline.py:88: step_name_no_platform = step_name On 2016/03/11 03:47:00, chanli wrote: > ...
4 years, 9 months ago (2016-03-11 06:42:59 UTC) #10
chanli
4 years, 9 months ago (2016-03-11 07:15:24 UTC) #11
stgao
lgtm
4 years, 9 months ago (2016-03-11 18:36:57 UTC) #12
lijeffrey
lgtm
4 years, 9 months ago (2016-03-11 18:37:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778153002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778153002/80001
4 years, 9 months ago (2016-03-11 19:51:42 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/infra/infra/+/b21f57d3906379654fdb9adacb7eb46df1d74a11
4 years, 9 months ago (2016-03-11 20:00:54 UTC) #17
dnj
On 2016/03/11 20:00:54, commit-bot: I haz the power wrote: > Committed patchset #5 (id:80001) as ...
4 years, 9 months ago (2016-03-11 22:38:30 UTC) #18
chanli
On 2016/03/11 22:38:30, dnj wrote: > On 2016/03/11 20:00:54, commit-bot: I haz the power wrote: ...
4 years, 9 months ago (2016-03-11 22:39:51 UTC) #19
chanli
4 years, 9 months ago (2016-03-12 00:01:59 UTC) #20
Message was sent while issue was closed.
On 2016/03/11 22:38:30, dnj wrote:
> On 2016/03/11 20:00:54, commit-bot: I haz the power wrote:
> > Committed patchset #5 (id:80001) as
> >
>
https://chromium.googlesource.com/infra/infra/+/b21f57d3906379654fdb9adacb7eb...
> 
> I think this CL is causing test failures (e.g.,
>
https://build.chromium.org/p/tryserver.infra/builders/Infra%20Linux%20Trusty%...):
> 
> 
> ======================================================================
> ERROR:
>
handlers.test.build_failure_test.BuildFailureTest.testUpdateAnalysisResultWithTryJob
>
(/b/build/slave/infra/build/infra/appengine/findit/handlers/test/build_failure_test.expected/BuildFailureTest.testUpdateAnalysisResultWithTryJob.json)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
"/b/build/slave/infra/build/infra/ENV/local/lib/python2.7/site-packages/expect_tests/pipeline.py",
> line 397, in process_test
>     subresult = subtest.run()
>   File
>
"/b/build/slave/infra/build/infra/ENV/local/lib/python2.7/site-packages/expect_tests/type_definitions.py",
> line 240, in run
>     return self.func_call(context=context)
>   File
>
"/b/build/slave/infra/build/infra/ENV/local/lib/python2.7/site-packages/expect_tests/type_definitions.py",
> line 155, in __call__
>     return f.func(*f.args, **f.kwargs)
>   File
>
"/b/build/slave/infra/build/infra/ENV/local/lib/python2.7/site-packages/expect_tests/unittest_helper.py",
> line 30, in _RunTestCaseSingle
>     return Result(getattr(test_instance, test_name)())
>   File
>
"/b/build/slave/infra/build/infra/appengine/findit/handlers/test/build_failure_test.py",
> line 737, in testUpdateAnalysisResultWithTryJob
>     self.assertEqual(result, expected_updated_result)
>   File "/usr/lib/python2.7/unittest/case.py", line 515, in assertEqual
>     assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 837, in assertDictEqual
>     self.fail(self._formatMessage(msg, standardMsg))
>   File "/usr/lib/python2.7/unittest/case.py", line 412, in fail
>     raise self.failureException(msg)
> AssertionError: {'failures': [{'tests': [{'suspected_cls':
[{'commit_position':
> 123, 'revision': [truncated]... != {'failures': [{'tests': [{'suspected_cls':
> [{'result_source': ['heuristic analys [truncated]...

It turned out there was a flaky test in another CL of
mine(https://codereview.chromium.org/1761783005). I have reverted it. Thanks.

Powered by Google App Engine
This is Rietveld 408576698