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

Issue 2858043006: Test for Gradle project generation. (Closed)

Created:
3 years, 7 months ago by sakal
Modified:
3 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Test for Gradle project generation. BUG=webrtc:7608 Review-Url: https://codereview.webrtc.org/2858043006 Cr-Commit-Position: refs/heads/master@{#18063} Committed: https://chromium.googlesource.com/external/webrtc/+/2e3574dd1828aef31b2e5cdaeb3e1376ea8001be

Patch Set 1 : Test for Gradle project generation. #

Total comments: 7

Patch Set 2 : Address kjellander's comments. #

Patch Set 3 : Import gradle in DEPS. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
M DEPS View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A webrtc/examples/androidtests/gradle_project_test.py View 1 1 chunk +74 lines, -0 lines 1 comment Download
A webrtc/examples/androidtests/third_party/.gitignore View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A webrtc/examples/androidtests/third_party/README.webrtc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
sakal
PTAL, does this look like something we could run on the bots?
3 years, 7 months ago (2017-05-04 14:15:00 UTC) #3
kjellander_webrtc
The gradle stuff needs to be put in a third_party directory, similar to https://chromium.googlesource.com/external/webrtc/+/master/webrtc/examples/androidapp/third_party/autobanh etc. ...
3 years, 7 months ago (2017-05-05 07:30:14 UTC) #4
sakal
Gradle source code is available here: https://github.com/gradle/gradle If you can get that to the Chrome ...
3 years, 7 months ago (2017-05-05 07:53:26 UTC) #5
kjellander_webrtc
Please file a ticket similar to https://bugs.chromium.org/p/chromium/issues/detail?id=689036 and we'll get a repo setup at https://chromium.googlesource.com/external/github.com/gradle/gradle ...
3 years, 7 months ago (2017-05-05 08:38:46 UTC) #6
sakal
On 2017/05/05 08:38:46, kjellander_webrtc wrote: > Please file a ticket similar to > https://bugs.chromium.org/p/chromium/issues/detail?id=689036 and ...
3 years, 7 months ago (2017-05-09 07:44:28 UTC) #8
kjellander_webrtc
lgtm but please create a bug to track rolling this out, as it will also ...
3 years, 7 months ago (2017-05-09 07:58:26 UTC) #9
sakal
Added Magnus for androidtests ownership. PTAL
3 years, 7 months ago (2017-05-09 08:40:01 UTC) #12
kjellander_webrtc
On 2017/05/09 08:40:01, sakal wrote: > Added Magnus for androidtests ownership. PTAL I added webrtc: ...
3 years, 7 months ago (2017-05-09 08:44:54 UTC) #16
magjed_webrtc
lgtm
3 years, 7 months ago (2017-05-09 09:07:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2858043006/80001
3 years, 7 months ago (2017-05-09 09:08:25 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/external/webrtc/+/2e3574dd1828aef31b2e5cdaeb3e1376ea8001be
3 years, 7 months ago (2017-05-09 09:11:04 UTC) #24
kjellander_webrtc
3 years, 7 months ago (2017-05-11 05:21:32 UTC) #25
Message was sent while issue was closed.
https://codereview.webrtc.org/2858043006/diff/80001/webrtc/examples/androidte...
File webrtc/examples/androidtests/gradle_project_test.py (right):

https://codereview.webrtc.org/2858043006/diff/80001/webrtc/examples/androidte...
webrtc/examples/androidtests/gradle_project_test.py:70:
shutil.rmtree(project_dir, True)
Hmm, I was going to try this script locally and I didn't read the instructions
carefully.
Because of this I interpreted the build_dir_android directory to be the one
where the output would be generated. Then after running and seeing it fail due
to missing  the build_vars.txt file in it, I passed --project_dir=. thinking
maybe the script just wants a path to my checkout (don't know why I thought
that).

To my surprise my whole src/ dir was wiped! Luckily I don't think I had any
unfinished work on it (that isn't at least in Rietveld as well), but maybe we
can add a check for a .git directory in it and raise an error instead of wiping
it?

Powered by Google App Engine
This is Rietveld 408576698