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

Issue 149503005: Change actions.txt to actions.xml (Closed)

Created:
6 years, 10 months ago by yao
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, M-A Ruel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Change the user action file format from .txt to .xml. In this way, more information can be added (currently added 'description' and 'owner' for each action) A few functions are moved from tools/metrics/histograms to tools/metrics/common to be shared by tools/metrics and tools/histograms. BUG=340735 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255357

Patch Set 1 : Refactor the code. #

Patch Set 2 : Make pretty-print histograms work. #

Patch Set 3 : Read in txt and output xml. #

Patch Set 4 : Read in .xml and output .xml. #

Patch Set 5 : Reupload #

Patch Set 6 : Update comment. #

Patch Set 7 : Update OWNERS file. #

Patch Set 8 : Put <owner> before <description>. #

Total comments: 4

Patch Set 9 : Change --similarity to 10. #

Patch Set 10 : Add copyright header. #

Patch Set 11 : Reupload(Resolve old chunk mismatch) #

Total comments: 12

Patch Set 12 : Adress comments. #

Patch Set 13 : Add multiple <owner> tag under <owners> tag. #

Patch Set 14 : Rebase, and re-generate actions.xml #

Patch Set 15 : Set similarity to 50% #

Patch Set 16 : Change Indentation of PrettyPrintNode just for review. #

Patch Set 17 : Indent PrettyPrintNode back. #

Total comments: 6

Patch Set 18 : Added presubmit check for actions.xml. Moved histogram style parameter to a new file. #

Patch Set 19 : Rebase. #

Total comments: 55

Patch Set 20 : Address code review comments. #

Total comments: 8

Patch Set 21 : Address code review comments 2. #

Patch Set 22 : Add 'obsolete' tag. #

Patch Set 23 : Add unit test. #

Patch Set 24 : Fix function name. #

Total comments: 13

Patch Set 25 : Added unittests. #

Total comments: 2

Patch Set 26 : Preserve top-level comments & update general presubmit. #

Total comments: 22

Patch Set 27 : Address comments #

Patch Set 28 : Delete chromeactions.txt #

Patch Set 29 : Address comments #

Patch Set 30 : Address comments #

Total comments: 14

Patch Set 31 : Address comments for pathch 30. #

Total comments: 2

Patch Set 32 : Change back to direct string search. #

Total comments: 2

Patch Set 33 : Nit fix #

Total comments: 2

Patch Set 34 : Delay file loading to until it's needed. #

Total comments: 3

Patch Set 35 : address comment on patch 34 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10432 lines, -2325 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +14 lines, -10 lines 0 comments Download
D tools/metrics/actions/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -2 lines 0 comments Download
A + tools/metrics/actions/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -13 lines 0 comments Download
A tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +9694 lines, -0 lines 0 comments Download
D tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +0 lines, -1931 lines 0 comments Download
M tools/metrics/actions/extract_actions.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 chunks +223 lines, -34 lines 0 comments Download
A tools/metrics/actions/extract_actions_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +199 lines, -0 lines 0 comments Download
A + tools/metrics/actions/print_style.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +33 lines, -32 lines 0 comments Download
A + tools/metrics/common/diff_util.py View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/metrics/common/pretty_print_xml.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +193 lines, -0 lines 0 comments Download
D tools/metrics/histograms/diffutil.py View 1 chunk +0 lines, -47 lines 0 comments Download
M tools/metrics/histograms/pretty_print.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +8 lines, -205 lines 0 comments Download
A + tools/metrics/histograms/print_style.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +47 lines, -43 lines 0 comments Download
M tools/metrics/histograms/update_extension_functions.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -3 lines 0 comments Download
M tools/metrics/histograms/update_policies.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
yao
6 years, 10 months ago (2014-01-29 18:32:08 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/140001/tools/metrics/common/pretty_print_xml.py File tools/metrics/common/pretty_print_xml.py (right): https://codereview.chromium.org/149503005/diff/140001/tools/metrics/common/pretty_print_xml.py#newcode1 tools/metrics/common/pretty_print_xml.py:1: import logging Needs some comments / copyright block at ...
6 years, 10 months ago (2014-01-31 19:56:57 UTC) #2
yao
https://codereview.chromium.org/149503005/diff/140001/tools/metrics/common/pretty_print_xml.py File tools/metrics/common/pretty_print_xml.py (right): https://codereview.chromium.org/149503005/diff/140001/tools/metrics/common/pretty_print_xml.py#newcode1 tools/metrics/common/pretty_print_xml.py:1: import logging On 2014/01/31 19:56:58, Alexei Svitkine wrote: > ...
6 years, 10 months ago (2014-02-03 14:39:19 UTC) #3
Alexei Svitkine (slow)
Generally, looks good. Thanks for working on this! Adding Ilya to help with the review. ...
6 years, 10 months ago (2014-02-03 19:37:34 UTC) #4
yao
The --similarity param for copy/rename detection is set back to 50%. After making PrettyPrintNode as ...
6 years, 10 months ago (2014-02-04 19:08:11 UTC) #5
Alexei Svitkine (slow)
One thing I don't see in this CL is changes to the presubmit that validates ...
6 years, 10 months ago (2014-02-11 19:05:26 UTC) #6
yao
https://codereview.chromium.org/149503005/diff/650001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/149503005/diff/650001/tools/metrics/actions/extract_actions.py#newcode765 tools/metrics/actions/extract_actions.py:765: pretty = xml_style.PrettyPrintNode(new_dom) On 2014/02/11 19:05:31, Alexei Svitkine wrote: ...
6 years, 10 months ago (2014-02-13 15:58:07 UTC) #7
Alexei Svitkine (slow)
Looks good. A few more comments. Any chance you could add some simple sanity tests ...
6 years, 10 months ago (2014-02-20 22:50:54 UTC) #8
Alexei Svitkine (slow)
Ilya, could you also take a look when you have the chance? I think this ...
6 years, 10 months ago (2014-02-20 23:03:37 UTC) #9
Ilya Sherman
https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/OWNERS File tools/metrics/actions/OWNERS (right): https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/OWNERS#newcode2 tools/metrics/actions/OWNERS:2: per-file actions.xml=* I think we should enforce strict OWNERS ...
6 years, 10 months ago (2014-02-22 07:07:36 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/actions.xml#newcode15 tools/metrics/actions/actions.xml:15: </action> On 2014/02/22 07:07:37, Ilya Sherman wrote: > Yikes, ...
6 years, 10 months ago (2014-02-22 15:04:06 UTC) #11
Ilya Sherman
https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/actions.xml#newcode15 tools/metrics/actions/actions.xml:15: </action> On 2014/02/22 15:04:07, Alexei Svitkine wrote: > On ...
6 years, 10 months ago (2014-02-22 22:04:41 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/PRESUBMIT.py File tools/metrics/actions/PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/PRESUBMIT.py#newcode13 tools/metrics/actions/PRESUBMIT.py:13: """Checks that actions.xml is up to date and pretty-printed.""" ...
6 years, 10 months ago (2014-02-24 18:32:34 UTC) #13
Ilya Sherman
https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/PRESUBMIT.py File tools/metrics/actions/PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/800001/tools/metrics/actions/PRESUBMIT.py#newcode13 tools/metrics/actions/PRESUBMIT.py:13: """Checks that actions.xml is up to date and pretty-printed.""" ...
6 years, 10 months ago (2014-02-24 18:48:04 UTC) #14
yao
I will create a separate CL for pre-submit check. In the meanwhile, other comments have ...
6 years, 10 months ago (2014-02-24 19:16:22 UTC) #15
Alexei Svitkine (slow)
Note sure if you saw my message at the top of my earlier reply: [Any ...
6 years, 10 months ago (2014-02-24 19:27:52 UTC) #16
Ilya Sherman
On 2014/02/24 19:16:22, yao wrote: > I will create a separate CL for pre-submit check. ...
6 years, 10 months ago (2014-02-24 20:38:39 UTC) #17
yao
https://codereview.chromium.org/149503005/diff/1110001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/149503005/diff/1110001/tools/metrics/actions/actions.xml#newcode7 tools/metrics/actions/actions.xml:7: needed. On 2014/02/24 20:38:41, Ilya Sherman wrote: > A ...
6 years, 10 months ago (2014-02-25 20:08:09 UTC) #18
yiyaoliu
Sorry I forgot to add the test. Will push another patch. Please not review yet. ...
6 years, 10 months ago (2014-02-25 20:18:54 UTC) #19
yao
Sorry for the mistake just now. It's ready for review now. Thanks!
6 years, 10 months ago (2014-02-25 21:37:42 UTC) #20
Ilya Sherman
Thanks, this generally looks good! Some nits and comments on testing; but in addition to ...
6 years, 10 months ago (2014-02-26 01:32:17 UTC) #21
yao
Hi, Sorry I forget to say this last time, I will make sure the presubmit ...
6 years, 9 months ago (2014-02-27 14:45:19 UTC) #22
yao
https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py File tools/metrics/actions/extract_actions_test.py (right): https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py#newcode31 tools/metrics/actions/extract_actions_test.py:31: actions, actions_dict = extract_actions._ParseActionFile(file_name) On 2014/02/27 14:45:21, yao wrote: ...
6 years, 9 months ago (2014-02-27 14:50:54 UTC) #23
Ilya Sherman
https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py File tools/metrics/actions/extract_actions_test.py (right): https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py#newcode31 tools/metrics/actions/extract_actions_test.py:31: actions, actions_dict = extract_actions._ParseActionFile(file_name) On 2014/02/27 14:50:55, yao wrote: ...
6 years, 9 months ago (2014-03-01 00:58:13 UTC) #24
yiyaoliu
https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py File tools/metrics/actions/extract_actions_test.py (right): https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py#newcode19 tools/metrics/actions/extract_actions_test.py:19: </action> On 2014/02/26 01:32:18, Ilya Sherman wrote: > Please ...
6 years, 9 months ago (2014-03-03 20:44:21 UTC) #25
yiyaoliu
https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py File tools/metrics/actions/extract_actions_test.py (right): https://codereview.chromium.org/149503005/diff/1530001/tools/metrics/actions/extract_actions_test.py#newcode19 tools/metrics/actions/extract_actions_test.py:19: </action> On 2014/03/03 20:44:22, yiyaoliu wrote: > On 2014/02/26 ...
6 years, 9 months ago (2014-03-03 20:48:24 UTC) #26
Alexei Svitkine (slow)
This CL should also update the src/PRESUBMIT.py check you landed. https://codereview.chromium.org/149503005/diff/1600002/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/149503005/diff/1600002/tools/metrics/actions/actions.xml#newcode1 ...
6 years, 9 months ago (2014-03-03 20:55:52 UTC) #27
yiyaoliu
https://codereview.chromium.org/149503005/diff/1600002/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/149503005/diff/1600002/tools/metrics/actions/actions.xml#newcode1 tools/metrics/actions/actions.xml:1: <actions> On 2014/03/03 20:55:53, Alexei Svitkine wrote: > I ...
6 years, 9 months ago (2014-03-03 23:04:27 UTC) #28
Ilya Sherman
LGTM % the remaining comments. Thanks. https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py#newcode1034 PRESUBMIT.py:1034: if name_pattern not ...
6 years, 9 months ago (2014-03-03 23:17:32 UTC) #29
yiyaoliu
https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py#newcode1034 PRESUBMIT.py:1034: if name_pattern not in current_actions: On 2014/03/03 23:17:34, Ilya ...
6 years, 9 months ago (2014-03-04 15:31:06 UTC) #30
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py#newcode1034 PRESUBMIT.py:1034: if name_pattern not in current_actions: On 2014/03/03 23:17:34, Ilya ...
6 years, 9 months ago (2014-03-04 15:32:12 UTC) #31
yiyaoliu
https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1690001/PRESUBMIT.py#newcode1034 PRESUBMIT.py:1034: if name_pattern not in current_actions: On 2014/03/04 15:32:13, Alexei ...
6 years, 9 months ago (2014-03-04 18:02:52 UTC) #32
yiyaoliu
6 years, 9 months ago (2014-03-04 18:10:16 UTC) #33
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/1750001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/149503005/diff/1750001/tools/metrics/actions/extract_actions.py#newcode636 tools/metrics/actions/extract_actions.py:636: file_content: a string representing the action XML file content. ...
6 years, 9 months ago (2014-03-04 18:40:20 UTC) #34
yiyaoliu
https://codereview.chromium.org/149503005/diff/1750001/tools/metrics/actions/extract_actions.py File tools/metrics/actions/extract_actions.py (right): https://codereview.chromium.org/149503005/diff/1750001/tools/metrics/actions/extract_actions.py#newcode636 tools/metrics/actions/extract_actions.py:636: file_content: a string representing the action XML file content. ...
6 years, 9 months ago (2014-03-04 18:53:26 UTC) #35
Alexei Svitkine (slow)
LGTM, great work! Please sync and update the XML file to make sure you have ...
6 years, 9 months ago (2014-03-04 19:01:29 UTC) #36
yiyaoliu
+maruel Could you please take a look at src/PRESUBMIT.py file? Thanks! Yiyao On Tue, Mar ...
6 years, 9 months ago (2014-03-04 19:08:31 UTC) #37
yiyaoliu
-maruel since maruel@ is OOO. +joi. Hi joi, Could you please take a look at ...
6 years, 9 months ago (2014-03-04 19:15:16 UTC) #38
Jói
https://codereview.chromium.org/149503005/diff/1770001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1770001/PRESUBMIT.py#newcode1035 PRESUBMIT.py:1035: minidom.parse('tools/metrics/actions/actions.xml'). I am concerned about the performance of parsing ...
6 years, 9 months ago (2014-03-05 09:09:33 UTC) #39
yiyaoliu
https://codereview.chromium.org/149503005/diff/1770001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1770001/PRESUBMIT.py#newcode1035 PRESUBMIT.py:1035: minidom.parse('tools/metrics/actions/actions.xml'). On 2014/03/05 09:09:35, Jói wrote: > I am ...
6 years, 9 months ago (2014-03-05 15:07:05 UTC) #40
Jói
OK, so this adds 140 ms to the presubmit checks any time there is an ...
6 years, 9 months ago (2014-03-05 15:40:31 UTC) #41
yiyaoliu
Hi, It took less than 4s, you were right, this way is faster. I modified ...
6 years, 9 months ago (2014-03-05 16:04:31 UTC) #42
Alexei Svitkine (slow)
Still LGTM % comment below https://codereview.chromium.org/149503005/diff/1830001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1830001/PRESUBMIT.py#newcode14 PRESUBMIT.py:14: from xml.dom import minidom ...
6 years, 9 months ago (2014-03-05 16:06:36 UTC) #43
Jói
Thanks for making the change, shaving 100 ms off the presubmit runtime is definitely a ...
6 years, 9 months ago (2014-03-05 16:17:43 UTC) #44
yiyaoliu
https://codereview.chromium.org/149503005/diff/1830001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1830001/PRESUBMIT.py#newcode14 PRESUBMIT.py:14: from xml.dom import minidom On 2014/03/05 16:06:37, Alexei Svitkine ...
6 years, 9 months ago (2014-03-05 18:14:23 UTC) #45
Alexei Svitkine (slow)
https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py#newcode1032 PRESUBMIT.py:1032: current_actions Instead, can you put this above the loop: ...
6 years, 9 months ago (2014-03-05 18:23:34 UTC) #46
Jói
https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py#newcode1032 PRESUBMIT.py:1032: current_actions On 2014/03/05 18:23:36, Alexei Svitkine wrote: > Instead, ...
6 years, 9 months ago (2014-03-06 12:46:48 UTC) #47
yiyaoliu
https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/149503005/diff/1910001/PRESUBMIT.py#newcode1032 PRESUBMIT.py:1032: current_actions On 2014/03/06 12:46:49, Jói wrote: > On 2014/03/05 ...
6 years, 9 months ago (2014-03-06 14:32:44 UTC) #48
Alexei Svitkine (slow)
LGTM, thanks
6 years, 9 months ago (2014-03-06 15:32:36 UTC) #49
Jói
LGTM, thanks!
6 years, 9 months ago (2014-03-06 15:35:52 UTC) #50
yiyaoliu
The CQ bit was checked by yiyaoliu@google.com
6 years, 9 months ago (2014-03-06 15:55:34 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yiyaoliu@chromium.org/149503005/1930001
6 years, 9 months ago (2014-03-06 15:57:45 UTC) #52
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 16:00:29 UTC) #53
Message was sent while issue was closed.
Change committed as 255357

Powered by Google App Engine
This is Rietveld 408576698