Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414283006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414283006/40001
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/115570)
Description was changed from ========== Hook up new distillability signal to DistillablePageUtils BUG=509869 TEST=browser_tests --gtest_filter="Distillable*" ...
5 years, 1 month ago
(2015-11-12 05:02:58 UTC)
#15
Description was changed from
==========
Hook up new distillability signal to DistillablePageUtils
BUG=509869
TEST=browser_tests --gtest_filter="Distillable*"
==========
to
==========
Hook up new distillability signal to DistillablePageUtils
A new push-based mechanism of distillability test (http://crrev.com/1434433002/)
is available in DistillablePageUtils.
BUG=509869
TEST=browser_tests --gtest_filter="Distillable*"
==========
wychen
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right): https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc#newcode1 chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 1 month ago
(2015-11-12 05:39:28 UTC)
#16
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right): https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc#newcode77 chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:77: base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( On 2015/11/12 05:39:28, wychen wrote: > On 2015/11/11 ...
5 years, 1 month ago
(2015-11-12 07:08:19 UTC)
#17
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_dist...
File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right):
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_dist...
chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:77:
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
On 2015/11/12 05:39:28, wychen wrote:
> On 2015/11/11 23:12:46, Lei Zhang wrote:
> > How well will the timing work if the bot is being slow?
>
> I tried waiting for only 1ms, and the error rate is 2/100 locally. Waiting for
> 100ms should be pretty safe.
Is there some other signal you can listen for? Memory tools incur slowdowns and
what may seem like a long wait on normal bots can actually time out on some
memory bots.
https://codereview.chromium.org/1414283006/diff/80001/chrome/browser/dom_dist...
File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right):
https://codereview.chromium.org/1414283006/diff/80001/chrome/browser/dom_dist...
chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:28: const
char* kSimpleArticlePath = "/dom_distiller/simple_article.html";
const char foo[] = "bar";
with const char* qux = baz, you can still accidentally change what qux is
pointing to.
wychen
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right): https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc#newcode77 chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:77: base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( On 2015/11/12 07:08:19, Lei Zhang wrote: > On ...
5 years, 1 month ago
(2015-11-12 22:42:52 UTC)
#18
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_dist...
File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right):
https://codereview.chromium.org/1414283006/diff/60001/chrome/browser/dom_dist...
chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:77:
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
On 2015/11/12 07:08:19, Lei Zhang wrote:
> On 2015/11/12 05:39:28, wychen wrote:
> > On 2015/11/11 23:12:46, Lei Zhang wrote:
> > > How well will the timing work if the bot is being slow?
> >
> > I tried waiting for only 1ms, and the error rate is 2/100 locally. Waiting
for
> > 100ms should be pretty safe.
>
> Is there some other signal you can listen for? Memory tools incur slowdowns
and
> what may seem like a long wait on normal bots can actually time out on some
> memory bots.
Unfortunately we couldn't guarantee the delegate would be called before a known
signal. The only thing we know is that the delegate would be called slightly
after the first paint after onload(). If 100X safety margin turns out to be not
enough for memory bots, we can increase the wait even longer later on.
One possible alternative is to create a run_loop and terminate it in the
MockDelegate. However, we can no longer use EXPECT_CALL, and the test code would
be much longer.
https://codereview.chromium.org/1414283006/diff/80001/chrome/browser/dom_dist...
File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right):
https://codereview.chromium.org/1414283006/diff/80001/chrome/browser/dom_dist...
chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:28: const
char* kSimpleArticlePath = "/dom_distiller/simple_article.html";
On 2015/11/12 07:08:19, Lei Zhang wrote:
> const char foo[] = "bar";
>
> with const char* qux = baz, you can still accidentally change what qux is
> pointing to.
Done.
Lei Zhang
On 2015/11/12 22:42:52, wychen wrote: > Unfortunately we couldn't guarantee the delegate would be called ...
5 years, 1 month ago
(2015-11-12 22:49:34 UTC)
#19
On 2015/11/12 22:42:52, wychen wrote:
> Unfortunately we couldn't guarantee the delegate would be called before a
known
> signal. The only thing we know is that the delegate would be called slightly
> after the first paint after onload(). If 100X safety margin turns out to be
not
> enough for memory bots, we can increase the wait even longer later on.
I don't know enough about the distiller code to know how much work it would be
to redesign it with an observable event so you don't have to wait in this
manner. It would be nice to do that later if possible. We can see if the 100X
safety margin is sufficient and how much these tests actually flake.
> One possible alternative is to create a run_loop and terminate it in the
> MockDelegate. However, we can no longer use EXPECT_CALL, and the test code
would
> be much longer.
Ack. And I would not want your tests to become more complicated.
Lei Zhang
https://codereview.chromium.org/1414283006/diff/100001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1414283006/diff/100001/chrome/browser/chrome_content_browser_client.cc#newcode1584 chrome/browser/chrome_content_browser_client.cc:1584: switches::kReaderModeHeuristics, You are forwarding this switch to renderers, but ...
5 years, 1 month ago
(2015-11-12 22:51:37 UTC)
#20
Matt, you wrote ltgm, not lgtm. https://codereview.chromium.org/1414283006/diff/120001/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java File components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java (right): https://codereview.chromium.org/1414283006/diff/120001/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java#newcode41 components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java:41: public void onIsPageDistillableResult(boolean ...
5 years, 1 month ago
(2015-11-13 01:55:12 UTC)
#24
On 2015/11/13 01:55:12, wychen wrote: > Matt, you wrote ltgm, not lgtm. > > https://codereview.chromium.org/1414283006/diff/120001/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java ...
5 years, 1 month ago
(2015-11-13 03:30:10 UTC)
#25
On 2015/11/13 01:55:12, wychen wrote:
> Matt, you wrote ltgm, not lgtm.
>
>
https://codereview.chromium.org/1414283006/diff/120001/components/dom_distill...
> File
>
components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java
> (right):
>
>
https://codereview.chromium.org/1414283006/diff/120001/components/dom_distill...
>
components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java:41:
> public void onIsPageDistillableResult(boolean isDistillable, boolean isLast);
> On 2015/11/12 23:46:48, mdjones wrote:
> > Nit: javadoc for public interface.
>
> Done.
lgtm
wychen
Patchset #7 (id:160001) has been deleted
5 years, 1 month ago
(2015-11-13 09:21:18 UTC)
#26
Patchset #7 (id:160001) has been deleted
wychen
Patchset #7 (id:180001) has been deleted
5 years, 1 month ago
(2015-11-13 09:21:49 UTC)
#27
Patchset #7 (id:180001) has been deleted
wychen
The CQ bit was checked by wychen@chromium.org to run a CQ dry run
5 years, 1 month ago
(2015-11-13 09:22:41 UTC)
#28
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414283006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414283006/200001
5 years, 1 month ago
(2015-11-13 09:23:15 UTC)
#29
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/118267)
5 years, 1 month ago
(2015-11-13 09:30:57 UTC)
#31
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414283006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414283006/200001
5 years, 1 month ago
(2015-11-13 20:21:35 UTC)
#35
Issue 1414283006: Hook up new distillability signal to DistillablePageUtils
(Closed)
Created 5 years, 1 month ago by wychen
Modified 5 years, 1 month ago
Reviewers: mdjones, Lei Zhang, nyquist
Base URL: https://chromium.googlesource.com/chromium/src.git@agent
Comments: 22