Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/285569)
3 years, 7 months ago
(2017-05-04 09:07:50 UTC)
#9
Again, thanks a lot for doing this!! I ve been all over these dull conversions ...
3 years, 7 months ago
(2017-05-04 19:04:43 UTC)
#10
Again, thanks a lot for doing this!! I ve been all over these dull conversions
recently, so I am really grate someone else is helping out!
One thing out of curiosity, did you by any chance use this script to run an auto
convert? (https://github.com/yoland68/chromium-junit-auto-migrate/), if not,
feel free to try it out, it does a bunch of tedious work (e.g. add `Assert.` to
every assert call) for you
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
File
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappActivityTestRule.java
(right):
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappActivityTestRule.java:114:
startActivityCompletely(intent);
The issue you are running in the try job is that the intent lacks a
FLAG_ACTIVITY_NEW_TASK flag. This is because in JUnit3 styled instrumentation
test, the activities are launched with this flag by default. Yet, this CL is
using the ChromeActivityTestRule/TestBase's special startActivityCompletely,
which doesn't have the flag. This should work if you use launchActivity(Intent
intent).
Sorry that this difference is very ambiguous right now, but I do intent to
refactor this.
https://android.googlesource.com/platform/frameworks/base/+/master/legacy-tes...https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
File
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenHomescreenIconTest.java
(right):
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenHomescreenIconTest.java:46:
private Intent createIntent() {
I would recommend just change the createIntent() method in
WebappActivityTestRule to createIntent(String name, String value) and not create
a new method here
piotrs
The CQ bit was checked by piotrs@chromium.org to run a CQ dry run
3 years, 7 months ago
(2017-05-04 23:55:17 UTC)
#11
3 years, 7 months ago
(2017-05-05 01:10:10 UTC)
#14
Dry run: This issue passed the CQ dry run.
piotrs
Thanks Yoland! Thanks for the pointer with launchActivity()! Dom, can you take a look, CQ ...
3 years, 7 months ago
(2017-05-05 01:15:53 UTC)
#15
Thanks Yoland! Thanks for the pointer with launchActivity()!
Dom, can you take a look, CQ has passed.
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
File
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappActivityTestRule.java
(right):
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappActivityTestRule.java:114:
startActivityCompletely(intent);
On 2017/05/04 19:04:43, the real yoland wrote:
> The issue you are running in the try job is that the intent lacks a
> FLAG_ACTIVITY_NEW_TASK flag. This is because in JUnit3 styled instrumentation
> test, the activities are launched with this flag by default. Yet, this CL is
> using the ChromeActivityTestRule/TestBase's special startActivityCompletely,
> which doesn't have the flag. This should work if you use launchActivity(Intent
> intent).
>
> Sorry that this difference is very ambiguous right now, but I do intent to
> refactor this.
>
>
https://android.googlesource.com/platform/frameworks/base/+/master/legacy-tes...
It indeed fixed it! Thanks a lot for that comment :)
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
File
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenHomescreenIconTest.java
(right):
https://codereview.chromium.org/2863583002/diff/20001/chrome/android/javatest...
chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenHomescreenIconTest.java:46:
private Intent createIntent() {
On 2017/05/04 19:04:43, the real yoland wrote:
> I would recommend just change the createIntent() method in
> WebappActivityTestRule to createIntent(String name, String value) and not
create
> a new method here
I got around it just inlining createIntent() with putExtra(), shorter and nicer.
creating createIntent(String name, String value) would be fine as well, but one
tests requires to additional extras, so it's less flexible.
dominickn
Looks good, just the one question. https://codereview.chromium.org/2863583002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappDeferredStartupTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappDeferredStartupTest.java (right): https://codereview.chromium.org/2863583002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappDeferredStartupTest.java#newcode31 chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappDeferredStartupTest.java:31: ChromeActivityTestRule.DISABLE_NETWORK_PREDICTION_FLAG}) Question: will ...
3 years, 7 months ago
(2017-05-05 02:42:49 UTC)
#16
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/286388)
3 years, 7 months ago
(2017-05-05 05:48:11 UTC)
#20
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/428186)
3 years, 7 months ago
(2017-05-05 06:01:47 UTC)
#26
3 years, 7 months ago
(2017-05-05 07:12:12 UTC)
#32
Dry run: This issue passed the CQ dry run.
gone
I'd defer to Yoland's review l-g-t-m; he knows it better than I do.
3 years, 7 months ago
(2017-05-05 17:26:03 UTC)
#33
I'd defer to Yoland's review l-g-t-m; he knows it better than I do.
piotrs
Hi Yoland, Can you please take a second look? To answer your question I was ...
3 years, 7 months ago
(2017-05-07 23:58:15 UTC)
#34
Hi Yoland,
Can you please take a second look? To answer your question I was aware of the
script, but decided to do the initial conversion by hand to understand better
what's the scope of changes etc. I will try to convert the rests of tests if
webapp directory later this week with the script and see how that goes.
the real yoland
lgtm
3 years, 7 months ago
(2017-05-09 00:06:54 UTC)
#35
lgtm
the real yoland
lgtm
3 years, 7 months ago
(2017-05-09 00:06:54 UTC)
#36
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1494477331534280, "parent_rev": "aed44111a1f008907b532b9232b6075f44e598f2", "commit_rev": "34f6d311a968d33e65faa33312b6298d1460e626"}
3 years, 7 months ago
(2017-05-11 04:47:33 UTC)
#59
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1494477331534280,
"parent_rev": "aed44111a1f008907b532b9232b6075f44e598f2", "commit_rev":
"34f6d311a968d33e65faa33312b6298d1460e626"}
commit-bot: I haz the power
Description was changed from ========== Convert WebappActivityTestBase and direct children to JUnit4. The difference I ...
3 years, 7 months ago
(2017-05-11 04:47:41 UTC)
#60
Message was sent while issue was closed.
Description was changed from
==========
Convert WebappActivityTestBase and direct children to JUnit4.
The difference I found is that with previous setup test device was woken up by
tests, while it has to be configured to keep the screen on (as recommended in
android_test_instructions.md). Is this known regression? Or maybe it's
intended?
BUG=640116
==========
to
==========
Convert WebappActivityTestBase and direct children to JUnit4.
The difference I found is that with previous setup test device was woken up by
tests, while it has to be configured to keep the screen on (as recommended in
android_test_instructions.md). Is this known regression? Or maybe it's
intended?
BUG=640116
Review-Url: https://codereview.chromium.org/2863583002
Cr-Commit-Position: refs/heads/master@{#470809}
Committed:
https://chromium.googlesource.com/chromium/src/+/34f6d311a968d33e65faa33312b6...
==========
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://chromium.googlesource.com/chromium/src/+/34f6d311a968d33e65faa33312b6298d1460e626
3 years, 7 months ago
(2017-05-11 04:47:42 UTC)
#61
Issue 2863583002: Convert WebappActivityTestBase and direct children to JUnit4.
(Closed)
Created 3 years, 7 months ago by piotrs
Modified 3 years, 7 months ago
Reviewers: the real yoland, dominickn, David Trainor- moved to gerrit
Base URL:
Comments: 5