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

Issue 984553002: Added helper scripts for modifying polymer_resources.grdp. (Closed)

Created:
5 years, 9 months ago by dzhioev (left Google)
Modified:
5 years, 6 months ago
Reviewers:
Dan Beam, michaelpg
CC:
chromium-reviews, oshima+watch_chromium.org, michaelpg+watch-polymer_chromium.org, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added helper scripts for modifying polymer_resources.grdp. The first one, "polymer_grdp_to_txt.py", converts "polymer_resources.grdp" to a plane list of used Polymer components: ... core-animation/core-animation.html core-animation/web-animations.html core-collapse/core-collapse-extracted.js core-collapse/core-collapse.css core-collapse/core-collapse.html core-dropdown/core-dropdown-base-extracted.js ... The second, "txt_to_polymer_grdp.py", converts list back to grdp file. Both scripts enforce correct alphabetical order. BUG=none NOPRESUBMIT=true (long lines) Committed: https://crrev.com/3f408e0259c930ad6dca686e481025b03ec7b106 Cr-Commit-Position: refs/heads/master@{#334514}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rewritten in Python. #

Patch Set 3 : newline #

Total comments: 10

Patch Set 4 : Comments addressed. #

Total comments: 9

Patch Set 5 : More changes. #

Total comments: 2

Patch Set 6 : Merge conflict resolved. #

Patch Set 7 : Added 1.0 support. #

Patch Set 8 : Rebased onto ToT. #

Patch Set 9 : Rebased again. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -290 lines) Patch
A tools/polymer/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A tools/polymer/polymer_grdp_to_txt.py View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A tools/polymer/txt_to_polymer_grdp.py View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 3 comments Download
M ui/webui/resources/polymer_resources.grdp View 1 2 3 4 5 6 7 8 16 chunks +308 lines, -290 lines 0 comments Download

Messages

Total messages: 53 (19 generated)
dzhioev (left Google)
5 years, 9 months ago (2015-03-05 11:18:27 UTC) #2
michaelpg
https://codereview.chromium.org/984553002/diff/1/tools/polymer/txt_to_polymer_grdp.sh File tools/polymer/txt_to_polymer_grdp.sh (right): https://codereview.chromium.org/984553002/diff/1/tools/polymer/txt_to_polymer_grdp.sh#newcode16 tools/polymer/txt_to_polymer_grdp.sh:16: cat "$1" | LC_ALL=C sort -u | while read ...
5 years, 9 months ago (2015-03-06 04:09:32 UTC) #3
Dan Beam
i think these scripts would be better off written in python: a) because we'll have ...
5 years, 9 months ago (2015-03-06 17:41:15 UTC) #5
dzhioev (left Google)
On 2015/03/06 17:41:15, Dan Beam wrote: > i think these scripts would be better off ...
5 years, 9 months ago (2015-03-16 19:00:15 UTC) #6
dzhioev (left Google)
https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp File ui/webui/resources/polymer_resources.grdp (right): https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp#newcode18 ui/webui/resources/polymer_resources.grdp:18: <structure name="IDR_POLYMER_CORE_ANIMATED_PAGES_CORE_ANIMATED_PAGES_EXTRACTED_JS" On 2015/03/06 04:09:31, michaelpg wrote: > :-\ ...
5 years, 9 months ago (2015-03-16 19:00:23 UTC) #7
Dan Beam
https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp File ui/webui/resources/polymer_resources.grdp (right): https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp#newcode18 ui/webui/resources/polymer_resources.grdp:18: <structure name="IDR_POLYMER_CORE_ANIMATED_PAGES_CORE_ANIMATED_PAGES_EXTRACTED_JS" On 2015/03/16 19:00:23, dzhioev wrote: > On ...
5 years, 9 months ago (2015-03-16 19:28:10 UTC) #8
dzhioev (left Google)
https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp File ui/webui/resources/polymer_resources.grdp (right): https://codereview.chromium.org/984553002/diff/1/ui/webui/resources/polymer_resources.grdp#newcode18 ui/webui/resources/polymer_resources.grdp:18: <structure name="IDR_POLYMER_CORE_ANIMATED_PAGES_CORE_ANIMATED_PAGES_EXTRACTED_JS" On 2015/03/16 19:28:09, Dan Beam wrote: > ...
5 years, 9 months ago (2015-03-17 12:43:18 UTC) #9
Dan Beam
https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py File tools/polymer/polymer_grdp_to_txt.py (right): https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py#newcode34 tools/polymer/polymer_grdp_to_txt.py:34: sys.exit(main(sys.argv)) I don't think this is the way you're ...
5 years, 9 months ago (2015-03-17 16:37:53 UTC) #10
dzhioev (left Google)
https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py File tools/polymer/polymer_grdp_to_txt.py (right): https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py#newcode29 tools/polymer/polymer_grdp_to_txt.py:29: xml.sax.parse(sys.argv[1], xml_handler) Should be just "argv[1]". Fixed in the ...
5 years, 9 months ago (2015-03-17 18:26:46 UTC) #11
Dan Beam
lgtm https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py File tools/polymer/polymer_grdp_to_txt.py (right): https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py#newcode34 tools/polymer/polymer_grdp_to_txt.py:34: sys.exit(main(sys.argv)) On 2015/03/17 18:26:46, dzhioev wrote: > On ...
5 years, 9 months ago (2015-03-17 18:37:54 UTC) #12
michaelpg
lgtm
5 years, 9 months ago (2015-03-17 20:53:52 UTC) #13
dzhioev (left Google)
https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py File tools/polymer/polymer_grdp_to_txt.py (right): https://codereview.chromium.org/984553002/diff/60001/tools/polymer/polymer_grdp_to_txt.py#newcode34 tools/polymer/polymer_grdp_to_txt.py:34: sys.exit(main(sys.argv)) On 2015/03/17 18:37:53, Dan Beam wrote: > On ...
5 years, 9 months ago (2015-03-18 16:38:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/80001
5 years, 9 months ago (2015-03-18 16:38:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/6510) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 9 months ago (2015-03-18 16:41:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/100001
5 years, 9 months ago (2015-03-18 18:29:54 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50535)
5 years, 9 months ago (2015-03-18 18:36:54 UTC) #23
michaelpg
ping. any reason not to submit this?
5 years, 8 months ago (2015-04-09 01:41:45 UTC) #24
dzhioev (left Google)
Michael, could you please take another look. I've adapted the tools to work with both ...
5 years, 6 months ago (2015-06-12 22:18:16 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/120001
5 years, 6 months ago (2015-06-12 22:19:14 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/62741) ios_dbg_simulator_ninja on ...
5 years, 6 months ago (2015-06-12 22:25:47 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/140001
5 years, 6 months ago (2015-06-12 22:33:37 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/70680)
5 years, 6 months ago (2015-06-12 22:47:42 UTC) #35
dzhioev (left Google)
Michael, I'm committing this CL since you are OOO. Please take a look when you ...
5 years, 6 months ago (2015-06-15 22:08:10 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/140001
5 years, 6 months ago (2015-06-15 22:08:57 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/86117) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 6 months ago (2015-06-15 22:18:40 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/160001
5 years, 6 months ago (2015-06-15 22:51:20 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/71056)
5 years, 6 months ago (2015-06-15 23:04:02 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984553002/160001
5 years, 6 months ago (2015-06-15 23:58:58 UTC) #47
Dan Beam
https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py File tools/polymer/txt_to_polymer_grdp.py (right): https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py#newcode46 tools/polymer/txt_to_polymer_grdp.py:46: file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js.map" the presubmit is not fond of your examples... ...
5 years, 6 months ago (2015-06-16 00:09:18 UTC) #48
dzhioev (left Google)
https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py File tools/polymer/txt_to_polymer_grdp.py (right): https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py#newcode46 tools/polymer/txt_to_polymer_grdp.py:46: file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js.map" On 2015/06/16 00:09:18, Dan Beam wrote: > the ...
5 years, 6 months ago (2015-06-16 00:18:16 UTC) #49
Dan Beam
https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py File tools/polymer/txt_to_polymer_grdp.py (right): https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py#newcode46 tools/polymer/txt_to_polymer_grdp.py:46: file="../../../third_party/web-animations-js/sources/web-animations-next-lite.min.js.map" On 2015/06/16 00:18:16, dzhioev wrote: > On 2015/06/16 ...
5 years, 6 months ago (2015-06-16 00:19:40 UTC) #50
dzhioev (left Google)
On 2015/06/16 00:19:40, Dan Beam wrote: > https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py > File tools/polymer/txt_to_polymer_grdp.py (right): > > https://codereview.chromium.org/984553002/diff/160001/tools/polymer/txt_to_polymer_grdp.py#newcode46 ...
5 years, 6 months ago (2015-06-16 00:24:10 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-06-16 00:37:40 UTC) #52
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 00:39:48 UTC) #53
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3f408e0259c930ad6dca686e481025b03ec7b106
Cr-Commit-Position: refs/heads/master@{#334514}

Powered by Google App Engine
This is Rietveld 408576698