|
|
DescriptionNQE: Add default RTT and throughput observations
Add default estimates for different connection types in the network
quality estimator (NQE). Putting the estimates in the src code itself
makes them accessible for Cronet embedders, and simplies the field
trial configs.
Additionally, RTT and throughput observers are notified of the default
observations as soon as they are added
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
BUG=638304
Committed: https://crrev.com/e71312541dfbef6a53b0dd81923e9db1816dfc36
Cr-Commit-Position: refs/heads/master@{#437396}
Patch Set 1 : PS #
Total comments: 6
Patch Set 2 : Addressed ryansturm comments #
Total comments: 8
Patch Set 3 : Rebased, addressed bengr comments #
Messages
Total messages: 73 (61 generated)
Description was changed from ========== Add default estimates BUG= ========== to ========== Add default estimates BUG=638304 ==========
Description was changed from ========== Add default estimates BUG=638304 ========== to ========== Add default estimates CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ==========
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_cronet_tester on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cron...)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:60001) has been deleted
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Add default estimates CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ========== to ========== NQE: Add default estimates CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ==========
Patchset #1 (id:40001) has been deleted
Patchset #2 (id:100001) has been deleted
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== NQE: Add default estimates CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ========== to ========== NQE: Add default estimates Observer is notified of current estimates as soon as it is added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ==========
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:80001) has been deleted
Patchset #1 (id:120001) has been deleted
Patchset #1 (id:140001) has been deleted
Patchset #1 (id:160001) has been deleted
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== NQE: Add default estimates Observer is notified of current estimates as soon as it is added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ========== to ========== NQE: Add default RTT and throughput observations Add default estimates for different connection types in the network quality estimator (NQE). Putting the estimates in the src code itself makes them accessible for Cronet embedders, and simplies the field trial configs. Additionally, RTT and throughput observers are notified of the default observations as soon as they are added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ==========
tbansal@chromium.org changed reviewers: + ryansturm@chromium.org
ryansturm: ptal when you are back. Thanks.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator.cc:234: bool use_default_platform_values) nit: maybe s/use_default_platform_observations/add_default_platform_observations/ https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.h (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator.h:301: // A protected constructor for testing that allows settting the value of nit: s/settting/setting https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_unittest.cc (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:536: TEST(NetworkQualityEstimatorTest, DefaultObservations) { nit: Can you switch the order of these tests? It makes more sense to have DefaultObservations before DefaultObservationsOverridden IMO.
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
ryansturm: ptal. thanks. https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.cc (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator.cc:234: bool use_default_platform_values) On 2016/11/28 21:10:03, Ryan Sturm wrote: > nit: maybe > s/use_default_platform_observations/add_default_platform_observations/ > Done. https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.h (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator.h:301: // A protected constructor for testing that allows settting the value of On 2016/11/28 21:10:03, Ryan Sturm wrote: > nit: s/settting/setting Done. https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_unittest.cc (right): https://codereview.chromium.org/2481373004/diff/180001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:536: TEST(NetworkQualityEstimatorTest, DefaultObservations) { On 2016/11/28 21:10:03, Ryan Sturm wrote: > nit: Can you switch the order of these tests? It makes more sense to have > DefaultObservations before DefaultObservationsOverridden IMO. Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
tbansal@chromium.org changed reviewers: + bengr@chromium.org
bengr: ptal. thanks.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.h (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator.h:635: default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; Why is this +1 now? https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_params.cc (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_params.cc:136: // First set the default thresholds. Add to this comment to be a little clearer: // Default thresholds for HTTP RTT, transport RTT, and downstream throughput Kbps for the various effective connection types. These may be overridden by variations p[arams. Also, I have no idea what threshold means in this context. Is it the starting observation, the lowest values, or what? https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_unittest.cc (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:454: // Verify that the observers receive the notifications when default estimates Verify -> Verifies https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:491: // Taken from network_quality_estimator_params.cc. I would say only once per test that the constant values are taken from that file.
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
bengr: ptal. Thanks. https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator.h (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator.h:635: default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; On 2016/11/29 18:39:15, bengr wrote: > Why is this +1 now? CONNECTION_LAST + 1 is correct. The size of the array should be 1 more than the last connection type. https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_params.cc (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_params.cc:136: // First set the default thresholds. On 2016/11/29 18:39:15, bengr wrote: > Add to this comment to be a little clearer: > > // Default thresholds for HTTP RTT, transport RTT, and downstream throughput > Kbps for the various effective connection types. These may be overridden by > variations p[arams. > > Also, I have no idea what threshold means in this context. Is it the starting > observation, the lowest values, or what? Done. https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... File net/nqe/network_quality_estimator_unittest.cc (right): https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:454: // Verify that the observers receive the notifications when default estimates On 2016/11/29 18:39:15, bengr wrote: > Verify -> Verifies Done. https://codereview.chromium.org/2481373004/diff/200001/net/nqe/network_qualit... net/nqe/network_quality_estimator_unittest.cc:491: // Taken from network_quality_estimator_params.cc. On 2016/11/29 18:39:15, bengr wrote: > I would say only once per test that the constant values are taken from that > file. Done.
bengr: ping. Thanks.
lgtm
The CQ bit was checked by tbansal@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ryansturm@chromium.org Link to the patchset: https://codereview.chromium.org/2481373004/#ps220001 (title: "Rebased, addressed bengr comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1481234201923410, "parent_rev": "8bd48a37447bb9420d830cfdfc2f578fea2fd1ab", "commit_rev": "65b42f52c2a98698887750456cd471942f7c3e32"}
Message was sent while issue was closed.
Description was changed from ========== NQE: Add default RTT and throughput observations Add default estimates for different connection types in the network quality estimator (NQE). Putting the estimates in the src code itself makes them accessible for Cronet embedders, and simplies the field trial configs. Additionally, RTT and throughput observers are notified of the default observations as soon as they are added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ========== to ========== NQE: Add default RTT and throughput observations Add default estimates for different connection types in the network quality estimator (NQE). Putting the estimates in the src code itself makes them accessible for Cronet embedders, and simplies the field trial configs. Additionally, RTT and throughput observers are notified of the default observations as soon as they are added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:220001)
Message was sent while issue was closed.
Description was changed from ========== NQE: Add default RTT and throughput observations Add default estimates for different connection types in the network quality estimator (NQE). Putting the estimates in the src code itself makes them accessible for Cronet embedders, and simplies the field trial configs. Additionally, RTT and throughput observers are notified of the default observations as soon as they are added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 ========== to ========== NQE: Add default RTT and throughput observations Add default estimates for different connection types in the network quality estimator (NQE). Putting the estimates in the src code itself makes them accessible for Cronet embedders, and simplies the field trial configs. Additionally, RTT and throughput observers are notified of the default observations as soon as they are added CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=638304 Committed: https://crrev.com/e71312541dfbef6a53b0dd81923e9db1816dfc36 Cr-Commit-Position: refs/heads/master@{#437396} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/e71312541dfbef6a53b0dd81923e9db1816dfc36 Cr-Commit-Position: refs/heads/master@{#437396} |