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

Issue 266193002: Extend PR_ParseTimeString() to accept some ISO 8601 formats to fix timezone parsing in SyslogParser. (Closed)

Created:
6 years, 7 months ago by Thiemo Nagel
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Shin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Extend PR_ParseTimeString() to accept some ISO 8601 formats to fix timezone parsing in SyslogParser. Previously, SyslogParser::ParseTime() would parse time, reformat it in a way that is understood by NSPR and then hand it off to PR_ParseTimeString() where it is parsed again. This double-parsing is unnecessarily convoluted and slow. Extending PR_ParseTimeString() simplifies and speeds up SyslogParser::ParseTime() which is time-critical in case of large log files. BUG=370509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270815

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Rebase. #

Patch Set 3 : Address kalman's comments. #

Patch Set 4 : Rebase. #

Patch Set 5 : New approach: Extend PR_ParseTimeString() to handle some ISO 8601 formats. #

Total comments: 20

Patch Set 6 : Address wtc's comments. #

Total comments: 15

Patch Set 7 : Rebase. #

Patch Set 8 : Address wtc's comments. #

Patch Set 9 : Fix microsecond parsing for Windows and for timezoneless (local time) inputs. #

Total comments: 4

Patch Set 10 : Address Mark's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -95 lines) Patch
M base/third_party/nspr/prtime.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -3 lines 0 comments Download
M base/third_party/nspr/prtime.cc View 1 2 3 4 5 6 7 8 15 chunks +81 lines, -35 lines 0 comments Download
M base/time/pr_time_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +134 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/log_private/syslog_parser.cc View 1 2 3 4 2 chunks +2 lines, -28 lines 0 comments Download
M chrome/browser/extensions/api/log_private/syslog_parser_unittest.cc View 2 chunks +17 lines, -18 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Thiemo Nagel
Hi Benjamin, could you please take a look at this CL? I saw the test ...
6 years, 7 months ago (2014-05-05 09:49:27 UTC) #1
not at google - send to devlin
thanks! I have no idea how this ever worked, but I've never seen this code, ...
6 years, 7 months ago (2014-05-05 19:36:23 UTC) #2
xiaowenx
On 2014/05/05 19:36:23, kalman wrote: > +Xiaowen who owns this stuff these days? +benchan maybe
6 years, 7 months ago (2014-05-05 20:14:37 UTC) #3
Ben Chan
It'd be helpful to briefly describe the issue in the commit, or better, file a ...
6 years, 7 months ago (2014-05-06 03:21:02 UTC) #4
Thiemo Nagel
Hi Benjamin, thank you for your comments! I've tried to address them, but there's a ...
6 years, 7 months ago (2014-05-06 18:15:48 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/266193002/diff/20001/chrome/browser/extensions/api/log_private/syslog_parser.cc File chrome/browser/extensions/api/log_private/syslog_parser.cc (right): https://codereview.chromium.org/266193002/diff/20001/chrome/browser/extensions/api/log_private/syslog_parser.cc#newcode105 chrome/browser/extensions/api/log_private/syslog_parser.cc:105: tokens[13] + tokens[14] + tokens[16]; // +/- tz offset ...
6 years, 7 months ago (2014-05-06 18:24:50 UTC) #6
Thiemo Nagel
Hi Ryan and Benjamin! Ryan: What do you think about adding (partial) ISO 8601 support ...
6 years, 7 months ago (2014-05-07 11:39:58 UTC) #7
not at google - send to devlin
I don't think we can just change third_party code like that.
6 years, 7 months ago (2014-05-07 15:20:48 UTC) #8
not at google - send to devlin
(Much as it would be nice to leave syslog date parsing out of the extensions ...
6 years, 7 months ago (2014-05-07 15:21:20 UTC) #9
Ryan Sleevi
Ditto kalman. Not LGTM.
6 years, 7 months ago (2014-05-07 15:27:13 UTC) #10
Thiemo Nagel
On 2014/05/07 15:27:13, Ryan Sleevi wrote: > Ditto kalman. Not LGTM. Oh well. What do ...
6 years, 7 months ago (2014-05-07 15:31:19 UTC) #11
Ryan Sleevi
Wtc maintains upstream, he would know.
6 years, 7 months ago (2014-05-07 15:35:50 UTC) #12
wtc
On 2014/05/07 15:31:19, Thiemo Nagel wrote: > Is there any chance to get that change ...
6 years, 7 months ago (2014-05-07 19:05:49 UTC) #13
Thiemo Nagel
On 2014/05/07 19:05:49, wtc wrote: > I treat base/third_party/nspr/prtime.cc as a permanent fork of the ...
6 years, 7 months ago (2014-05-07 20:07:03 UTC) #14
wtc
Review comments on patch set 5: Thiemo: I have some suggested changes for your changes ...
6 years, 7 months ago (2014-05-08 21:04:19 UTC) #15
Thiemo Nagel
Hi wtc, I've updated the CL with the improvements that you have suggested, except for ...
6 years, 7 months ago (2014-05-09 16:18:59 UTC) #16
wtc
Patch set 6 LGTM. I have some questions and suggested changes for coding style nits. ...
6 years, 7 months ago (2014-05-12 19:47:14 UTC) #17
Thiemo Nagel
Hi Mark, I've extended PR_ParseTimeString() functionality and added test coverage in pr_time_unittest.cc for it. Could ...
6 years, 7 months ago (2014-05-13 14:08:18 UTC) #18
Mark Mentovai
https://codereview.chromium.org/266193002/diff/180001/base/time/pr_time_unittest.cc File base/time/pr_time_unittest.cc (right): https://codereview.chromium.org/266193002/diff/180001/base/time/pr_time_unittest.cc#newcode59 base/time/pr_time_unittest.cc:59: }; Alignment nit: this closing } should not line ...
6 years, 7 months ago (2014-05-13 14:22:49 UTC) #19
Thiemo Nagel
Hi Mark, many thanks you for comments! I've uploaded a new version that takes these ...
6 years, 7 months ago (2014-05-13 14:29:32 UTC) #20
Mark Mentovai
LGTM in base/time.
6 years, 7 months ago (2014-05-13 14:33:02 UTC) #21
wtc
Patch set 10 LGTM. Nice work!
6 years, 7 months ago (2014-05-15 04:10:40 UTC) #22
Thiemo Nagel
On 2014/05/15 04:10:40, wtc wrote: > Patch set 10 LGTM. Nice work! Thank you! :)
6 years, 7 months ago (2014-05-15 05:56:42 UTC) #23
Thiemo Nagel
The CQ bit was checked by tnagel@chromium.org
6 years, 7 months ago (2014-05-15 05:57:12 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tnagel@chromium.org/266193002/200001
6 years, 7 months ago (2014-05-15 05:57:52 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 05:57:56 UTC) #26
commit-bot: I haz the power
A disapproval has been posted by following reviewers: rsleevi@chromium.org. Please make sure to get positive ...
6 years, 7 months ago (2014-05-15 05:57:56 UTC) #27
Ben Chan
On 2014/05/15 05:56:42, Thiemo Nagel wrote: > On 2014/05/15 04:10:40, wtc wrote: > > Patch ...
6 years, 7 months ago (2014-05-15 05:58:36 UTC) #28
Ryan Sleevi
Clearing disapproval - LGTM
6 years, 7 months ago (2014-05-15 06:13:35 UTC) #29
Thiemo Nagel
The CQ bit was unchecked by tnagel@chromium.org
6 years, 7 months ago (2014-05-15 06:14:33 UTC) #30
Thiemo Nagel
The CQ bit was checked by tnagel@chromium.org
6 years, 7 months ago (2014-05-15 06:50:18 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tnagel@chromium.org/266193002/200001
6 years, 7 months ago (2014-05-15 06:50:39 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 10:53:51 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 10:57:04 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/67851)
6 years, 7 months ago (2014-05-15 10:57:04 UTC) #35
Thiemo Nagel
Hi Kalman, sorry, I had overlooked that I need your approval, too. Could you please ...
6 years, 7 months ago (2014-05-15 11:22:30 UTC) #36
not at google - send to devlin
lgtm, nice cleanup.
6 years, 7 months ago (2014-05-15 14:57:06 UTC) #37
Thiemo Nagel
On 2014/05/15 14:57:06, kalman wrote: > lgtm, nice cleanup. Thank you!
6 years, 7 months ago (2014-05-15 15:10:28 UTC) #38
Thiemo Nagel
The CQ bit was checked by tnagel@chromium.org
6 years, 7 months ago (2014-05-15 15:10:35 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tnagel@chromium.org/266193002/200001
6 years, 7 months ago (2014-05-15 15:11:24 UTC) #40
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 21:13:01 UTC) #41
Message was sent while issue was closed.
Change committed as 270815

Powered by Google App Engine
This is Rietveld 408576698