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

Issue 10699034: Add presubmit script to verify that scaled resources are correct dimensions. (Closed)

Created:
8 years, 5 months ago by flackr
Modified:
8 years, 5 months ago
CC:
chromium-reviews, oshima+watch_chromium.org
Visibility:
Public.

Description

Add presubmit script to verify that scaled resources are correct dimensions. BUG=133573 TEST=Add an incorrectly sized resource, run presubmit checks and see error with details about incorrect size. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147742

Patch Set 1 #

Total comments: 11

Patch Set 2 : Use tuples. #

Patch Set 3 : Include and use pypng library to get image sizes. #

Patch Set 4 : Add license and readme. #

Patch Set 5 : TEST - Always include the library to test on try bots. #

Total comments: 2

Patch Set 6 : Read PNG header directly to avoid third party library. #

Patch Set 7 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, --1 lines) Patch
A chrome/app/theme/PRESUBMIT.py View 1 1 chunk +48 lines, -0 lines 0 comments Download
A ui/resources/PRESUBMIT.py View 1 1 chunk +47 lines, -0 lines 0 comments Download
A + ui/resources/resource_check/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A ui/resources/resource_check/resource_scale_factors.py View 1 2 3 4 5 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
flackr
Hi, please take a look, thanks!
8 years, 5 months ago (2012-06-29 14:00:44 UTC) #1
flackr
ping
8 years, 5 months ago (2012-07-16 15:55:28 UTC) #2
oshima_google
Did I miss this? I'm very sorry about that. I'm not (no longer) familiar with ...
8 years, 5 months ago (2012-07-16 19:23:20 UTC) #3
oshima
http://codereview.chromium.org/10699034/diff/1/chrome/app/theme/PRESUBMIT.py File chrome/app/theme/PRESUBMIT.py (right): http://codereview.chromium.org/10699034/diff/1/chrome/app/theme/PRESUBMIT.py#newcode33 chrome/app/theme/PRESUBMIT.py:33: ] On 2012/07/16 19:23:20, oshima1 wrote: > This must ...
8 years, 5 months ago (2012-07-17 20:20:49 UTC) #4
flackr
On 2012/07/17 20:20:49, oshima wrote: > http://codereview.chromium.org/10699034/diff/1/chrome/app/theme/PRESUBMIT.py > File chrome/app/theme/PRESUBMIT.py (right): > > http://codereview.chromium.org/10699034/diff/1/chrome/app/theme/PRESUBMIT.py#newcode33 > ...
8 years, 5 months ago (2012-07-17 20:25:57 UTC) #5
flackr
I guess we should add a presubmit check for WebUI image scale factors too even ...
8 years, 5 months ago (2012-07-19 20:24:50 UTC) #6
oshima
lgtm On 2012/07/19 20:24:50, flackr wrote: > I guess we should add a presubmit check ...
8 years, 5 months ago (2012-07-19 20:31:41 UTC) #7
benrg
lgtm http://codereview.chromium.org/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py File ui/resources/resource_check/resource_scale_factors.py (right): http://codereview.chromium.org/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py#newcode27 ui/resources/resource_check/resource_scale_factors.py:27: [[1, 'default_100_percent'], [2, 'default_200_percent']] Nit: I'd prefer tuples: ...
8 years, 5 months ago (2012-07-19 21:47:55 UTC) #8
flackr
http://codereview.chromium.org/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py File ui/resources/resource_check/resource_scale_factors.py (right): http://codereview.chromium.org/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py#newcode27 ui/resources/resource_check/resource_scale_factors.py:27: [[1, 'default_100_percent'], [2, 'default_200_percent']] On 2012/07/19 21:47:56, benrg wrote: ...
8 years, 5 months ago (2012-07-20 13:53:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10699034/10005
8 years, 5 months ago (2012-07-20 13:54:18 UTC) #10
commit-bot: I haz the power
Presubmit check for 10699034-10005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-20 13:54:21 UTC) #11
flackr
Hi, can you take another look. I've added the pypng library (a pure python png ...
8 years, 5 months ago (2012-07-20 18:37:58 UTC) #12
benrg
https://chromiumcodereview.appspot.com/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py File ui/resources/resource_check/resource_scale_factors.py (right): https://chromiumcodereview.appspot.com/10699034/diff/1/ui/resources/resource_check/resource_scale_factors.py#newcode27 ui/resources/resource_check/resource_scale_factors.py:27: [[1, 'default_100_percent'], [2, 'default_200_percent']] On 2012/07/20 13:53:34, flackr wrote: ...
8 years, 5 months ago (2012-07-20 19:51:24 UTC) #13
flackr
https://chromiumcodereview.appspot.com/10699034/diff/7003/ui/resources/resource_check/resource_scale_factors.py File ui/resources/resource_check/resource_scale_factors.py (right): https://chromiumcodereview.appspot.com/10699034/diff/7003/ui/resources/resource_check/resource_scale_factors.py#newcode46 ui/resources/resource_check/resource_scale_factors.py:46: return (image[0], image[1]) On 2012/07/20 19:51:25, benrg wrote: > ...
8 years, 5 months ago (2012-07-20 20:01:14 UTC) #14
benrg
(lgtm)
8 years, 5 months ago (2012-07-20 20:40:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10699034/19001
8 years, 5 months ago (2012-07-20 21:30:31 UTC) #16
commit-bot: I haz the power
Try job failure for 10699034-19001 (retry) on mac_rel for step "update". It's a second try, ...
8 years, 5 months ago (2012-07-20 21:35:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10699034/12006
8 years, 5 months ago (2012-07-20 23:22:24 UTC) #18
commit-bot: I haz the power
8 years, 5 months ago (2012-07-20 23:24:45 UTC) #19
Try job failure for 10699034-12006 on mac_rel for step "update".
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Step "update" is always a major failure.
Look at the try server FAQ for more details.

Powered by Google App Engine
This is Rietveld 408576698