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

Issue 2187043004: Makes an expensive CTLogVerifier test into a value-parameterized test (Closed)

Created:
4 years, 4 months ago by Rob Percival
Modified:
4 years, 4 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, cbentzel+watch_chromium.org, Eran Messeri
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes an expensive CTLogVerifier test into a value-parameterized test As recommended by Ryan Sleevi in https://codereview.chromium.org/2178153003/, this turns one test case with nested loops into a value-parameterized test. This avoids having a single test case that runs for ~13s in exchange for 128 test cases which each take ~1-350ms each (proportional to the tree size). It reduces the chance of the test case timing out, but increases the overall test duration by ~3s. BUG=598406 Committed: https://crrev.com/844c3d233e4b9a47cb1d8a5b2f60811200a8310c Cr-Commit-Position: refs/heads/master@{#408534}

Patch Set 1 #

Patch Set 2 : Simplifies generation of test params #

Patch Set 3 : Improves documentation and adds missing #includes #

Total comments: 2

Patch Set 4 : Parameterize tests only on tree size #

Patch Set 5 : Adds SCOPED_TRACE to loop in test #

Total comments: 4

Patch Set 6 : Addresses Ryan's comments #

Total comments: 1

Patch Set 7 : Fixes compilation on 64-bit architectures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -25 lines) Patch
M net/cert/ct_log_verifier_unittest.cc View 1 2 3 4 5 6 2 chunks +29 lines, -25 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
Rob Percival
PTAL
4 years, 4 months ago (2016-07-28 04:07:32 UTC) #6
Ryan Sleevi
Mostly LG, but a Q on a design decision here below https://codereview.chromium.org/2187043004/diff/60001/net/cert/ct_log_verifier_unittest.cc File net/cert/ct_log_verifier_unittest.cc (right): ...
4 years, 4 months ago (2016-07-28 16:46:50 UTC) #8
Rob Percival
https://codereview.chromium.org/2187043004/diff/60001/net/cert/ct_log_verifier_unittest.cc File net/cert/ct_log_verifier_unittest.cc (right): https://codereview.chromium.org/2187043004/diff/60001/net/cert/ct_log_verifier_unittest.cc#newcode532 net/cert/ct_log_verifier_unittest.cc:532: testing::ValuesIn(GenerateTestParams(128))); On 2016/07/28 16:46:50, Ryan Sleevi (slow) wrote: > ...
4 years, 4 months ago (2016-07-28 17:39:24 UTC) #10
Ryan Sleevi
LGTM with two nits, and a request you update the CL description to reflect the ...
4 years, 4 months ago (2016-07-28 18:03:31 UTC) #11
Rob Percival
https://codereview.chromium.org/2187043004/diff/120001/net/cert/ct_log_verifier_unittest.cc File net/cert/ct_log_verifier_unittest.cc (right): https://codereview.chromium.org/2187043004/diff/120001/net/cert/ct_log_verifier_unittest.cc#newcode505 net/cert/ct_log_verifier_unittest.cc:505: std::string root2 = ReferenceMerkleTreeHash(data.data(), tree_size); On 2016/07/28 18:03:31, Ryan ...
4 years, 4 months ago (2016-07-28 18:16:43 UTC) #13
Ryan Sleevi
Thanks. LGTM still.
4 years, 4 months ago (2016-07-28 18:19:41 UTC) #14
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/2187043004/140001
4 years, 4 months ago (2016-07-28 18:22:20 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/43311) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-07-28 18:27:41 UTC) #18
Ryan Sleevi
https://codereview.chromium.org/2187043004/diff/140001/net/cert/ct_log_verifier_unittest.cc File net/cert/ct_log_verifier_unittest.cc (right): https://codereview.chromium.org/2187043004/diff/140001/net/cert/ct_log_verifier_unittest.cc#newcode518 net/cert/ct_log_verifier_unittest.cc:518: testing::Range(1ul, (kReferenceTreeSize / 2) + 1)); UINT64_C(1) should resolve ...
4 years, 4 months ago (2016-07-28 18:45:41 UTC) #19
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/2187043004/160001
4 years, 4 months ago (2016-07-29 00:00:00 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 4 months ago (2016-07-29 00:44:19 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 00:47:17 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/844c3d233e4b9a47cb1d8a5b2f60811200a8310c
Cr-Commit-Position: refs/heads/master@{#408534}

Powered by Google App Engine
This is Rietveld 408576698