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

Issue 2455053004: Moving ScheduleNewAnalysis to break the cycle (Closed)

Created:
4 years, 1 month ago by wrengr
Modified:
4 years, 1 month ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, aarya
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Moving ScheduleNewAnalysis to break the cycle BUG=659345 Committed: https://chromium.googlesource.com/infra/infra/+/b74c6a6cd22bfc0e9ed6baddd089ce394644a395

Patch Set 1 #

Total comments: 11

Patch Set 2 : rebase #

Patch Set 3 : rebase & adding some tests #

Total comments: 18

Patch Set 4 : addressing nits #

Patch Set 5 : rebase #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -397 lines) Patch
M appengine/findit/crash/changelist_classifier.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/crash/crash_pipeline.py View 1 2 3 7 chunks +75 lines, -44 lines 20 comments Download
M appengine/findit/crash/findit.py View 1 2 3 chunks +1 line, -50 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/findit/crash/findit_for_clusterfuzz.py View 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/findit/crash/results.py View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M appengine/findit/crash/test/crash_pipeline_test.py View 1 2 4 chunks +50 lines, -189 lines 0 comments Download
M appengine/findit/crash/test/findit_for_chromecrash_test.py View 1 2 3 4 3 chunks +2 lines, -38 lines 0 comments Download
M appengine/findit/crash/test/findit_test.py View 1 2 3 chunks +2 lines, -58 lines 0 comments Download
M appengine/findit/handlers/crash/crash_handler.py View 1 2 3 2 chunks +50 lines, -5 lines 0 comments Download
M appengine/findit/handlers/crash/test/crash_handler_test.py View 1 2 3 chunks +282 lines, -5 lines 0 comments Download
M appengine/findit/lib/gitiles/change_log.py View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
wrengr
Broke the cycle for ScheduleNewAnalysis. PTAL
4 years, 1 month ago (2016-10-27 21:28:13 UTC) #3
Sharu Jiang
https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py#newcode107 appengine/findit/crash/crash_pipeline.py:107: def run(self): # pragma: no cover This is wrong... ...
4 years, 1 month ago (2016-10-27 23:55:33 UTC) #4
wrengr
https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py#newcode107 appengine/findit/crash/crash_pipeline.py:107: def run(self): # pragma: no cover On 2016/10/27 23:55:33, ...
4 years, 1 month ago (2016-10-28 18:10:59 UTC) #5
Sharu Jiang
https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py#newcode107 appengine/findit/crash/crash_pipeline.py:107: def run(self): # pragma: no cover On 2016/10/28 18:10:59, ...
4 years, 1 month ago (2016-11-01 23:03:24 UTC) #6
stgao
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode68 appengine/findit/crash/crash_pipeline.py:68: # unclear what sort of terrible introspection AppEngine does ...
4 years, 1 month ago (2016-11-02 01:28:27 UTC) #7
stgao
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode68 appengine/findit/crash/crash_pipeline.py:68: # unclear what sort of terrible introspection AppEngine does ...
4 years, 1 month ago (2016-11-02 01:28:27 UTC) #8
Sharu Jiang
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode157 appengine/findit/crash/crash_pipeline.py:157: def run(self, *_args, **_kwargs): # pragma: no cover On ...
4 years, 1 month ago (2016-11-02 17:01:35 UTC) #9
stgao
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode157 appengine/findit/crash/crash_pipeline.py:157: def run(self, *_args, **_kwargs): # pragma: no cover On ...
4 years, 1 month ago (2016-11-02 21:22:09 UTC) #10
wrengr
New version addresses nits. Anything else before cq? https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode68 appengine/findit/crash/crash_pipeline.py:68: # ...
4 years, 1 month ago (2016-11-02 23:52:26 UTC) #11
stgao
lgtm for code. But I have comments on the docstrings regarding pipeline. Once fixed, please ...
4 years, 1 month ago (2016-11-03 04:48:10 UTC) #12
wrengr
https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py#newcode60 appengine/findit/crash/crash_pipeline.py:60: # The pipeline library is designed in a strange ...
4 years, 1 month ago (2016-11-03 17:40:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2455053004/80001
4 years, 1 month ago (2016-11-03 17:41:24 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/infra/infra/+/b74c6a6cd22bfc0e9ed6baddd089ce394644a395
4 years, 1 month ago (2016-11-03 17:56:25 UTC) #17
stgao
https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py#newcode66 appengine/findit/crash/crash_pipeline.py:66: # ``run`` method itself. For more about all this, ...
4 years, 1 month ago (2016-11-03 18:17:37 UTC) #18
wrengr
https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/1/appengine/findit/crash/crash_pipeline.py#newcode107 appengine/findit/crash/crash_pipeline.py:107: def run(self): # pragma: no cover On 2016/11/01 23:03:24, ...
4 years, 1 month ago (2016-11-03 18:20:20 UTC) #19
stgao
https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py#newcode60 appengine/findit/crash/crash_pipeline.py:60: # The pipeline library is designed in a strange ...
4 years, 1 month ago (2016-11-03 18:48:30 UTC) #20
wrengr
https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py#newcode60 appengine/findit/crash/crash_pipeline.py:60: # The pipeline library is designed in a strange ...
4 years, 1 month ago (2016-11-03 20:04:21 UTC) #21
stgao
https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/crash_pipeline.py#newcode74 appengine/findit/crash/crash_pipeline.py:74: # be JSON-serializable. The pipeline class handles most of ...
4 years, 1 month ago (2016-11-03 21:07:08 UTC) #22
Sharu Jiang
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode157 appengine/findit/crash/crash_pipeline.py:157: def run(self, *_args, **_kwargs): # pragma: no cover On ...
4 years, 1 month ago (2016-11-03 23:03:25 UTC) #23
Sharu Jiang
lgtm
4 years, 1 month ago (2016-11-03 23:04:17 UTC) #24
Sharu Jiang
4 years, 1 month ago (2016-11-04 00:19:00 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/...
File appengine/findit/crash/crash_pipeline.py (right):

https://codereview.chromium.org/2455053004/diff/40001/appengine/findit/crash/...
appengine/findit/crash/crash_pipeline.py:157: def run(self, *_args, **_kwargs):
# pragma: no cover
On 2016/11/03 23:03:25, Sharu Jiang wrote:
> On 2016/11/02 23:52:26, wrengr wrote:
> > On 2016/11/01 23:03:24, sharu jiang wrote:
> > > This is a little hacky, we should at lease add doc saying we will throw
out
> > > parameters because of the yield statement. 
> > 
> > I agree it's a terrible hack, but it's forced on us by the structure of
> > AppEngine pipelines. I'll add docstrings to reiterate the discussion from
> lines
> > 57--81.
> 
> Sorry for the late response, was busy working on my several pending cls, the
doc
> is in here:
> https://sookocheff.com/post/appengine/pipelines/connecting-pipelines/
> 
> Saying: "The rule of thumb here is that anything you instantiate your pipeline
> with (and subsequently pass to the run method) is accessible within your
> pipeline. These are called immediate values and you can treat them as regular
> Python values."

Calling ``run`` directly is not a correct usage for a pipeline ( thus, we cannot
find an example in a doc), so that's why I was suggesting to add that note in
the doc to avoid that. However, if that's very obvious to all pipeline users,
then it's ok to not to bother adding that note in the doc :)

https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/...
File appengine/findit/crash/crash_pipeline.py (right):

https://codereview.chromium.org/2455053004/diff/80001/appengine/findit/crash/...
appengine/findit/crash/crash_pipeline.py:66: # ``run`` method itself. For more
about all this, see:
On 2016/11/03 18:17:37, stgao (slow on Monday) wrote:
> On 2016/11/03 17:40:34, wrengr wrote:
> > On 2016/11/03 04:48:10, stgao (slow on Monday) wrote:
> > > I don't understand why the yielded objects must take the same arguments as
> the
> > > run itself.
> > > 
> > > We have examples that is against this statement.
> > >
> >
>
https://chromium.googlesource.com/infra/infra/+/master/appengine/findit/water...
> > > 
> > > The official documentation also has similar example
> > >
> >
>
https://github.com/GoogleCloudPlatform/appengine-pipelines/wiki/Python#defini...
> > 
> > I have no idea. This is what katesonia has said repeatedly, and she's showed
> me
> > crash logs for the version where ``run`` accepts no arguments, so I believe
> her.
> 
> Sharu, would you mind clarifying here? I'm confused.

The comment "``CrashWrapperPipeline.run`` yields must take the same arguments as
that ``run`` method itself is not correct and not what I meant, it should be
updated to yield CrashWrapperPipeline(*args, **kwargs), *args and **kwargs
should be the same as CrashWrapperPipeline.run", will update this in following
which mocks CrashWrapperPipeline.

Powered by Google App Engine
This is Rietveld 408576698