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

Issue 2069543002: Add asset management scripts (Closed)

Created:
4 years, 6 months ago by borenet2
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add asset management scripts These provide an easy way to create assets to be used by bots, eg. Android SDK. To create an asset: $ infra/bots/assets/assets.py add android_sdk (adds scripts in infra/bots/assets/android_sdk) To upload a new version of an asset: $ infra/bots/assets/android_sdk/upload.py -t $ANDROID_SDK_ROOT (uploads Android SDK to GS, writes a version file) $ git commit $ git cl upload To download the current version of the asset: $ infra/bots/assets/android_sdk/download.py -t ../tmp BUG=skia:5427 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2069543002 Committed: https://skia.googlesource.com/skia/+/0f1469bcdad11cf8bfe79ace33d28052418ecb48

Patch Set 1 #

Patch Set 2 : ... #

Patch Set 3 : Fixes #

Patch Set 4 : Add gsutil path #

Patch Set 5 : ... #

Patch Set 6 : Accept full gsutil command #

Patch Set 7 : ?? #

Patch Set 8 : Fixes #

Patch Set 9 : Fix #

Patch Set 10 : Fix #

Patch Set 11 : Add ZIP_BLACKLIST #

Patch Set 12 : Add assets.py #

Patch Set 13 : Fix, remove android_sdk #

Patch Set 14 : Fix, remove android_sdk #

Patch Set 15 : Add README.md #

Patch Set 16 : Add README.md #

Patch Set 17 : Ready for Review #

Patch Set 18 : Make executable #

Total comments: 2

Patch Set 19 : Add FYI prints for asset creation #

Total comments: 19

Patch Set 20 : copyfile -> copy #

Total comments: 1

Patch Set 21 : Address comments #

Patch Set 22 : Add asset_utils_test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+774 lines, -4 lines) Patch
A infra/bots/assets/README.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +47 lines, -0 lines 0 comments Download
A + infra/bots/assets/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -4 lines 0 comments Download
A infra/bots/assets/asset_utils.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 +174 lines, -0 lines 0 comments Download
A infra/bots/assets/asset_utils_test.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 +124 lines, -0 lines 0 comments Download
A infra/bots/assets/assets.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 +80 lines, -0 lines 0 comments Download
A infra/bots/assets/scripts/common.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +26 lines, -0 lines 0 comments Download
A infra/bots/assets/scripts/create.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +28 lines, -0 lines 0 comments Download
A infra/bots/assets/scripts/create_and_upload.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +42 lines, -0 lines 0 comments Download
A infra/bots/assets/scripts/download.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +16 lines, -0 lines 0 comments Download
A infra/bots/assets/scripts/upload.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +16 lines, -0 lines 0 comments Download
A infra/bots/download_asset.isolate View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A infra/bots/test_utils.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 +73 lines, -0 lines 0 comments Download
A infra/bots/zip_utils.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +61 lines, -0 lines 0 comments Download
A infra/bots/zip_utils_test.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 +74 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
borenet
4 years, 6 months ago (2016-06-15 10:24:01 UTC) #4
borenet
Here's an example CL created using assets.py to add the Android SDK asset: https://codereview.chromium.org/2067133003/
4 years, 6 months ago (2016-06-15 10:24:37 UTC) #5
stephana
https://codereview.chromium.org/2069543002/diff/320001/infra/bots/assets/README.md File infra/bots/assets/README.md (right): https://codereview.chromium.org/2069543002/diff/320001/infra/bots/assets/README.md#newcode29 infra/bots/assets/README.md:29: Add script to automate creation of this asset? (y/n) ...
4 years, 6 months ago (2016-06-15 12:32:19 UTC) #6
borenet
https://codereview.chromium.org/2069543002/diff/320001/infra/bots/assets/README.md File infra/bots/assets/README.md (right): https://codereview.chromium.org/2069543002/diff/320001/infra/bots/assets/README.md#newcode29 infra/bots/assets/README.md:29: Add script to automate creation of this asset? (y/n) ...
4 years, 6 months ago (2016-06-15 12:43:10 UTC) #7
kjlubick
lgtm
4 years, 6 months ago (2016-06-15 12:47:53 UTC) #8
rmistry
This is a good idea. L-G-T-M for design. A few code comments below. https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/README.md File ...
4 years, 6 months ago (2016-06-15 13:47:18 UTC) #9
stephana
https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/README.md File infra/bots/assets/README.md (right): https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/README.md#newcode29 infra/bots/assets/README.md:29: Add script to automate creation of this asset? (y/n) ...
4 years, 6 months ago (2016-06-15 13:57:30 UTC) #10
stephana
https://codereview.chromium.org/2069543002/diff/360001/infra/bots/assets/asset_utils.py File infra/bots/assets/asset_utils.py (right): https://codereview.chromium.org/2069543002/diff/360001/infra/bots/assets/asset_utils.py#newcode55 infra/bots/assets/asset_utils.py:55: class Asset(object): It would be useful to add a ...
4 years, 6 months ago (2016-06-15 14:05:41 UTC) #11
borenet
Addressed most comments in patch set 21. Working on adding tests for asset_utils. https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/README.md File ...
4 years, 6 months ago (2016-06-15 14:31:28 UTC) #12
rmistry
lgtm https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/scripts/download.py File infra/bots/assets/scripts/download.py (right): https://codereview.chromium.org/2069543002/diff/340001/infra/bots/assets/scripts/download.py#newcode25 infra/bots/assets/scripts/download.py:25: assets.main(['download', ASSET_NAME] + sys.argv[1:]) On 2016/06/15 14:31:27, borenet ...
4 years, 6 months ago (2016-06-15 14:49:40 UTC) #13
borenet
Added tests in patch set 22.
4 years, 6 months ago (2016-06-15 16:18:03 UTC) #14
stephana
On 2016/06/15 16:18:03, borenet wrote: > Added tests in patch set 22. lgtm
4 years, 6 months ago (2016-06-15 16:19:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2069543002/400001
4 years, 6 months ago (2016-06-15 16:22:26 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 19:07:48 UTC) #20
Message was sent while issue was closed.
Committed patchset #22 (id:400001) as
https://skia.googlesource.com/skia/+/0f1469bcdad11cf8bfe79ace33d28052418ecb48

Powered by Google App Engine
This is Rietveld 408576698