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

Issue 1674283003: Fix broken tests on M. (Closed)

Created:
4 years, 10 months ago by hartmanng
Modified:
4 years, 9 months ago
Reviewers:
Yaron, jbudorick
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix broken tests on M. https://codereview.chromium.org/1655983002/ caused a few tests to break on M. Under certain build configurations (in particular, my gn build was fine, but gyp has failing tests, although there may be other differences such as component build), the ModernLinker gets called before PathUtils.setPrivateDataDirectorySuffix() in some tests. BUG=585130

Patch Set 1 #

Total comments: 1

Messages

Total messages: 14 (3 generated)
hartmanng
Yaron, please take a look.
4 years, 10 months ago (2016-02-08 21:34:31 UTC) #2
jbudorick
The gyp/gn difference is surprising, as the bot where this error is happening is using ...
4 years, 10 months ago (2016-02-08 21:36:43 UTC) #4
hartmanng
On 2016/02/08 21:36:43, jbudorick wrote: > The gyp/gn difference is surprising, as the bot where ...
4 years, 10 months ago (2016-02-08 21:39:58 UTC) #5
jbudorick
On 2016/02/08 21:39:58, hartmanng wrote: > On 2016/02/08 21:36:43, jbudorick wrote: > > The gyp/gn ...
4 years, 10 months ago (2016-02-08 21:42:30 UTC) #6
hartmanng
On 2016/02/08 21:42:30, jbudorick wrote: > On 2016/02/08 21:39:58, hartmanng wrote: > > On 2016/02/08 ...
4 years, 10 months ago (2016-02-08 21:45:25 UTC) #7
Yaron
https://codereview.chromium.org/1674283003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java (right): https://codereview.chromium.org/1674283003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java#newcode74 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java:74: public class CustomTabActivityTest extends CustomTabActivityTestBase { I think the ...
4 years, 10 months ago (2016-02-08 21:51:41 UTC) #8
Yaron
On 2016/02/08 21:51:41, Yaron wrote: > https://codereview.chromium.org/1674283003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java > File > chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java > (right): > > ...
4 years, 10 months ago (2016-02-10 14:56:17 UTC) #9
hartmanng
On 2016/02/10 14:56:17, Yaron wrote: > On 2016/02/08 21:51:41, Yaron wrote: > > > https://codereview.chromium.org/1674283003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java ...
4 years, 9 months ago (2016-02-25 22:25:46 UTC) #10
Yaron
On 2016/02/25 22:25:46, hartmanng wrote: > On 2016/02/10 14:56:17, Yaron wrote: > > On 2016/02/08 ...
4 years, 9 months ago (2016-02-26 05:15:29 UTC) #11
hartmanng
On 2016/02/26 05:15:29, Yaron wrote: > Thanks for digging into this. > See comment #11 ...
4 years, 9 months ago (2016-02-26 16:15:34 UTC) #12
Yaron
4 years, 9 months ago (2016-03-01 17:03:37 UTC) #13
On 2016/02/26 16:15:34, hartmanng wrote:
> On 2016/02/26 05:15:29, Yaron wrote:
> > Thanks for digging into this.
> > See comment #11 on crbug/574532
> > Just want to double check that by moving it to the test fixture and rolling
> > forward this change, we don't crash in the scenario mentioned there when
> > ModernLinker is used
> 
> Not sure which crash you're talking about :)

Ah, I thought there was a crash with ModernLinker requiring the directory early
on, and before pathutils was setup but that's addressed belwo
> 
> If we move the code lizeb@ added from CustomTabsConnection into the test
> fixture, then I'm confident that the PathUtils stuff I'm working on won't
cause
> a crash (my change will add a call to
PathUtils.setPrivateDataDirectorySuffix()
> into the beginning of ChromeBrowserInitializer.handlePreNativeStartup(), so
when
> CustomTabsConnection calls into
> ChromeBrowserInitializer.handleSynchronousStartup(), it will set up the
private
> data directory suffix before trying any LibraryLoader stuff).
> 
> 
> However, based on http://crbug.com/574532#c11, if that scenario is possible,
> then moving the "test-only" code out of CustomTabsConnection could cause us to
> have an unwhitelisted StrictMode violation later in ChromeBrowserInitializer
> when the LibraryLoader stuff does happen (as part of
handlePostNativeStartup()).
> Unwhitelisted StrictMode violations do crash on certain types of builds.
> 
> I'm not really sure how likely/common the scenario in
> http://crbug.com/574532#c11 is, or how to even simulate it, actually.

Powered by Google App Engine
This is Rietveld 408576698