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

Issue 2638763004: Report CHECK/DCHECK to test launcher summary output. (Closed)

Created:
3 years, 11 months ago by alex-ac
Modified:
3 years, 8 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Report CHECK/DCHECK to test launcher summary output. This CL is continuation of previous one: https://codereview.chromium.org/2606153003/ BUG= Review-Url: https://codereview.chromium.org/2638763004 Cr-Commit-Position: refs/heads/master@{#465531} Committed: https://chromium.googlesource.com/chromium/src/+/cc1bde6592ae5e0b5064e7680941569625db9d09

Patch Set 1 #

Patch Set 2 : Fix logging unittest. #

Total comments: 4

Patch Set 3 : Add stack trace marker. #

Total comments: 6

Patch Set 4 : Change LogAssertHandler signature and support overriding. #

Patch Set 5 : Add comment. Fix missed usage of SetLogAssertHandler. #

Total comments: 22

Patch Set 6 : Fix review issues. #

Patch Set 7 : Fix review issues. #

Total comments: 24

Patch Set 8 : Fix formatting & function signature. #

Total comments: 8

Patch Set 9 : Use unique_ptr, StringPiece, Hide Push/Pop functions. #

Patch Set 10 : Use LazyIsntance and stl stack. #

Total comments: 2

Patch Set 11 : Fix forward declaration for StringPiece. #

Patch Set 12 : Rebase & git cl format. #

Patch Set 13 : Fix compilation of LazyInstance. #

Total comments: 2

Patch Set 14 : Fix compile errors on android, windows and ios. #

Patch Set 15 : Fix error on ios. #

Total comments: 6

Patch Set 16 : Fix review issues. #

Patch Set 17 : Fix missed semicolon. #

Total comments: 6

Patch Set 18 : Try to fix tests on android. #

Patch Set 19 : Pass StringPiece as value. #

Patch Set 20 : Fix segmentation fault on android. #

Total comments: 8

Patch Set 21 : Add test for assert handlers nesting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -63 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M base/logging.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +17 lines, -2 lines 0 comments Download
M base/logging.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +31 lines, -8 lines 0 comments Download
M base/logging_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +57 lines, -6 lines 0 comments Download
M base/metrics/statistics_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M base/strings/string_piece.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -4 lines 0 comments Download
A base/strings/string_piece_forward.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +23 lines, -0 lines 0 comments Download
M base/test/gtest_xml_unittest_result_printer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -1 line 0 comments Download
M base/test/gtest_xml_unittest_result_printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +19 lines, -7 lines 0 comments Download
M base/test/test_suite.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +11 lines, -1 line 0 comments Download
M base/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +19 lines, -6 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +7 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/collection_view/collection_view_model_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +8 lines, -3 lines 0 comments Download
M net/test/scoped_disable_exit_on_dfatal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -4 lines 0 comments Download
M net/test/scoped_disable_exit_on_dfatal.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +10 lines, -14 lines 0 comments Download
M net/tools/stress_cache/stress_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -2 lines 0 comments Download
M sandbox/linux/tests/main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 77 (47 generated)
alex-ac
ping phajdan.jr: Please take a look on changes in base/test. dcheng: Please take a look ...
3 years, 11 months ago (2017-01-20 08:13:56 UTC) #4
dcheng
https://codereview.chromium.org/2638763004/diff/20001/base/logging_unittest.cc File base/logging_unittest.cc (right): https://codereview.chromium.org/2638763004/diff/20001/base/logging_unittest.cc#newcode56 base/logging_unittest.cc:56: // This object will temporary disable message handler for ...
3 years, 11 months ago (2017-01-20 08:26:23 UTC) #5
alex-ac
https://codereview.chromium.org/2638763004/diff/20001/base/logging_unittest.cc File base/logging_unittest.cc (right): https://codereview.chromium.org/2638763004/diff/20001/base/logging_unittest.cc#newcode56 base/logging_unittest.cc:56: // This object will temporary disable message handler for ...
3 years, 11 months ago (2017-01-20 12:11:17 UTC) #6
Paweł Hajdan Jr.
https://codereview.chromium.org/2638763004/diff/40001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/40001/base/logging.cc#newcode345 base/logging.cc:345: const char kStackTraceMarker[] = "\nStack trace is below:\n"; nit: ...
3 years, 11 months ago (2017-01-23 16:55:07 UTC) #7
alex-ac
https://codereview.chromium.org/2638763004/diff/40001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/40001/base/logging.cc#newcode345 base/logging.cc:345: const char kStackTraceMarker[] = "\nStack trace is below:\n"; On ...
3 years, 10 months ago (2017-01-27 12:55:46 UTC) #8
Paweł Hajdan Jr.
Thank you for the changes. It looks like moving in the right direction. Some more ...
3 years, 10 months ago (2017-01-27 17:19:44 UTC) #9
alex-ac
https://codereview.chromium.org/2638763004/diff/80001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/80001/base/logging.cc#newcode477 base/logging.cc:477: PushLogAssertHandler(handler); On 2017/01/27 17:19:43, Paweł Hajdan Jr. wrote: > ...
3 years, 10 months ago (2017-02-11 20:12:20 UTC) #10
Paweł Hajdan Jr.
+brettw to double-check this review ; consider this FYI https://codereview.chromium.org/2638763004/diff/120001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/120001/base/logging.cc#newcode771 base/logging.cc:771: ...
3 years, 10 months ago (2017-02-13 17:17:24 UTC) #12
alex-ac
https://codereview.chromium.org/2638763004/diff/120001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/120001/base/logging.cc#newcode771 base/logging.cc:771: // Make a copy of the string for the ...
3 years, 10 months ago (2017-02-14 10:34:28 UTC) #13
Paweł Hajdan Jr.
https://codereview.chromium.org/2638763004/diff/120001/base/test/logging_utils.h File base/test/logging_utils.h (right): https://codereview.chromium.org/2638763004/diff/120001/base/test/logging_utils.h#newcode18 base/test/logging_utils.h:18: ScopedLogAssertHandler(); On 2017/02/14 10:34:28, alex-ac wrote: > On 2017/02/13 ...
3 years, 10 months ago (2017-02-14 19:23:26 UTC) #14
dcheng
https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc#newcode130 base/logging.cc:130: }; Perhaps just use something from STL here? We ...
3 years, 10 months ago (2017-02-14 23:59:26 UTC) #15
alex-ac
https://codereview.chromium.org/2638763004/diff/120001/base/test/logging_utils.h File base/test/logging_utils.h (right): https://codereview.chromium.org/2638763004/diff/120001/base/test/logging_utils.h#newcode18 base/test/logging_utils.h:18: ScopedLogAssertHandler(); On 2017/02/14 19:23:26, Paweł Hajdan Jr. wrote: > ...
3 years, 9 months ago (2017-03-09 14:15:53 UTC) #16
dcheng
https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc#newcode130 base/logging.cc:130: }; On 2017/03/09 14:15:53, alex-ac wrote: > On 2017/02/14 ...
3 years, 9 months ago (2017-03-09 19:41:02 UTC) #17
alex-ac
On 2017/03/09 19:41:02, dcheng wrote: > https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc > File base/logging.cc (right): > > https://codereview.chromium.org/2638763004/diff/140001/base/logging.cc#newcode130 > ...
3 years, 9 months ago (2017-03-10 08:16:40 UTC) #18
Paweł Hajdan Jr.
I think it's good, just one tiny thing left. https://codereview.chromium.org/2638763004/diff/180001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/2638763004/diff/180001/base/logging.h#newcode147 base/logging.h:147: ...
3 years, 9 months ago (2017-03-13 15:49:50 UTC) #19
alex-ac
https://codereview.chromium.org/2638763004/diff/180001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/2638763004/diff/180001/base/logging.h#newcode147 base/logging.h:147: template <typename STRING_TYPE> On 2017/03/13 15:49:50, Paweł Hajdan Jr. ...
3 years, 9 months ago (2017-03-14 10:23:14 UTC) #20
Paweł Hajdan Jr.
LGTM Nice work!
3 years, 9 months ago (2017-03-14 15:06:27 UTC) #21
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/2638763004/280001
3 years, 9 months ago (2017-03-14 18:06:52 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/385126)
3 years, 9 months ago (2017-03-14 18:16:25 UTC) #42
dcheng
https://codereview.chromium.org/2638763004/diff/240001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/2638763004/diff/240001/base/logging.h#newcode287 base/logging.h:287: LogAssertHandlerFunction; Nit: prefer using LogAssertHandlerFunction = base::Callback<...>; https://codereview.chromium.org/2638763004/diff/280001/base/logging.cc File ...
3 years, 9 months ago (2017-03-15 09:57:24 UTC) #43
alex-ac
https://codereview.chromium.org/2638763004/diff/240001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/2638763004/diff/240001/base/logging.h#newcode287 base/logging.h:287: LogAssertHandlerFunction; On 2017/03/15 09:57:24, dcheng wrote: > Nit: prefer ...
3 years, 9 months ago (2017-03-21 12:37:12 UTC) #44
dcheng
LGTM https://codereview.chromium.org/2638763004/diff/320001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/320001/base/logging.cc#newcode15 base/logging.cc:15: #include <windows.h> Btw, it's not clear to me ...
3 years, 9 months ago (2017-03-22 09:27:25 UTC) #53
alex-ac
https://codereview.chromium.org/2638763004/diff/320001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2638763004/diff/320001/base/logging.cc#newcode15 base/logging.cc:15: #include <windows.h> On 2017/03/22 09:27:25, dcheng wrote: > Btw, ...
3 years, 8 months ago (2017-04-04 11:25:15 UTC) #54
alex-ac
brettw, please take a look.
3 years, 8 months ago (2017-04-17 19:38:20 UTC) #65
brettw
This looks like a good improvement. https://codereview.chromium.org/2638763004/diff/380001/base/logging_unittest.cc File base/logging_unittest.cc (right): https://codereview.chromium.org/2638763004/diff/380001/base/logging_unittest.cc#newcode40 base/logging_unittest.cc:40: void LogSink(const char* ...
3 years, 8 months ago (2017-04-17 22:20:35 UTC) #68
alex-ac
https://codereview.chromium.org/2638763004/diff/380001/base/logging_unittest.cc File base/logging_unittest.cc (right): https://codereview.chromium.org/2638763004/diff/380001/base/logging_unittest.cc#newcode40 base/logging_unittest.cc:40: void LogSink(const char* file, On 2017/04/17 22:20:34, brettw (plz ...
3 years, 8 months ago (2017-04-18 06:34:21 UTC) #69
brettw
lgtm
3 years, 8 months ago (2017-04-18 20:36:59 UTC) #70
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/2638763004/400001
3 years, 8 months ago (2017-04-19 06:36:12 UTC) #73
commit-bot: I haz the power
Committed patchset #21 (id:400001) as https://chromium.googlesource.com/chromium/src/+/cc1bde6592ae5e0b5064e7680941569625db9d09
3 years, 8 months ago (2017-04-19 08:34:14 UTC) #76
krasin1
3 years, 8 months ago (2017-04-20 17:39:51 UTC) #77
Message was sent while issue was closed.
A revert of this CL (patchset #21 id:400001) has been created in
https://codereview.chromium.org/2828373002/ by krasin@chromium.org.

The reason for reverting is: Breaks 'LTO Linux' bot:
https://build.chromium.org/p/chromium.fyi/builders/LTO%20Linux/builds/2531

Quick investigation revealed, it's official / chrome branded related, not lto
related, as LoggingTest.NestedLogAssertHandlers test is failing even if
LinkTimeOptimization is explicitly turned off, like with the following gn flags:

$ gn gen out/off '--args=is_chrome_branded=true is_official_build=true
is_debug=false is_cfi=false use_thin_lto=false allow_posix_link_time_opt=false
use_lld=false use_goma=true' --check
.

Powered by Google App Engine
This is Rietveld 408576698