New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 804413 link

Starred by 8 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocked on:
issue 829310



Sign in to add a comment

Check failed: external_backend->CanHandleType(file_system_url.type()) on linux-chromeos-dbg

Project Member Reported by warx@chromium.org, Jan 22 2018

Issue description

Example failure trace: 
[23667:23667:0122/042713.995569:FATAL:private_api_file_system.cc(810)] Check failed: external_backend->CanHandleType(file_system_url.type()).
#0 0x7ff22178bc2d base::debug::StackTrace::StackTrace()
#1 0x7ff22178a1ac base::debug::StackTrace::StackTrace()
#2 0x7ff22180e30d logging::LogMessage::~LogMessage()
#3 0x0000034b25b3 extensions::FileManagerPrivateInternalResolveIsolatedEntriesFunction::RunAsync()
#4 0x00000877ad5d ChromeAsyncExtensionFunction::Run()
#5 0x000003c26304 ExtensionFunction::RunWithValidation()
#6 0x000003c2c8ab extensions::ExtensionFunctionDispatcher::DispatchWithCallbackInternal()
#7 0x000003c2b944 extensions::ExtensionFunctionDispatcher::Dispatch()
#8 0x000003c92e2c extensions::ExtensionWebContentsObserver::OnRequest()
#9 0x000003bb1f52 _ZN3IPC20DispatchToMethodImplIN10extensions21AppWindowContentsImplEMS2_FvPN7content15RenderFrameHostERKNSt3__16vectorINS1_15DraggableRegionENS6_9allocatorIS8_EEEEES4_NS6_5tupleIJSB_EEEJLm0EEEEvPT_T0_PT1_OT2_NS6_16integer_sequenceImJXspT3_EEEE
#10 0x000003bb1e80 _ZN3IPC16DispatchToMethodIN10extensions21AppWindowContentsImplEN7content15RenderFrameHostEJRKNSt3__16vectorINS1_15DraggableRegionENS5_9allocatorIS7_EEEEENS5_5tupleIJSA_EEEEENS5_9enable_ifIXeqsZT1_sr3std10tuple_sizeINS5_5decayIT2_E4typeEEE5valueEvE4typeEPT_MSM_FvPT0_DpT1_ESP_OSH_
#11 0x000003c93491 _ZN3IPC8MessageTI29ExtensionHostMsg_Request_MetaNSt3__15tupleIJ31ExtensionHostMsg_Request_ParamsEEEvE8DispatchIN10extensions28ExtensionWebContentsObserverES9_N7content15RenderFrameHostEMS9_FvPSB_RKS4_EEEbPKNS_7MessageEPT_PT0_PT1_T2_
#12 0x000003c92d9c extensions::ExtensionWebContentsObserver::OnMessageReceived()
#13 0x00000877bdfa extensions::ChromeExtensionWebContentsObserver::OnMessageReceived()
#14 0x7ff219d577a9 content::WebContentsImpl::OnMessageReceived()
#15 0x7ff2193d93d1 content::RenderFrameHostImpl::OnMessageReceived()
#16 0x7ff2199dd139 content::RenderProcessHostImpl::OnMessageReceived()
#17 0x7ff21d04bb58 IPC::ChannelProxy::Context::OnDispatchMessage()
#18 0x7ff21d051b8f _ZN4base8internal13FunctorTraitsIMN3IPC12ChannelProxy7ContextEFvRKNS2_7MessageEEvE6InvokeIRK13scoped_refptrIS4_EJS7_EEEvS9_OT_DpOT0_
#19 0x7ff21d051aef _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN3IPC12ChannelProxy7ContextEFvRKNS4_7MessageEEJRK13scoped_refptrIS6_ES9_EEEvOT_DpOT0_
#20 0x7ff21d051a7d _ZN4base8internal7InvokerINS0_9BindStateIMN3IPC12ChannelProxy7ContextEFvRKNS3_7MessageEEJ13scoped_refptrIS5_ES6_EEEFvvEE7RunImplIRKSA_RKNSt3__15tupleIJSC_S6_EEEJLm0ELm1EEEEvOT_OT0_NSJ_16integer_sequenceImJXspT1_EEEE
#21 0x7ff21d05198c _ZN4base8internal7InvokerINS0_9BindStateIMN3IPC12ChannelProxy7ContextEFvRKNS3_7MessageEEJ13scoped_refptrIS5_ES6_EEEFvvEE3RunEPNS0_13BindStateBaseE
#22 0x7ff22173c1e1 _ZNO4base12OnceCallbackIFvvEE3RunEv
#23 0x7ff22178ff20 base::debug::TaskAnnotator::RunTask()
#24 0x7ff22182d09a base::internal::IncomingTaskQueue::RunTask()
#25 0x7ff2218355af base::MessageLoop::RunTask()
#26 0x7ff221835815 base::MessageLoop::DeferOrRunPendingTask()
#27 0x7ff221835b11 base::MessageLoop::DoWork()
#28 0x7ff22183bcb3 base::MessagePumpLibevent::Run()
#29 0x7ff221834e6c base::MessageLoop::Run()
#30 0x7ff2218e9eb5 base::RunLoop::Run()
#31 0x000006ba0686 content::RunThisRunLoop()
#32 0x000006ba064c content::RunMessageLoop()
#33 0x000002353d00 file_manager::(anonymous namespace)::FileManagerTestListener::GetNextMessage()
#34 0x000002353347 file_manager::FileManagerBrowserTestBase::RunTestMessageLoop()
#35 0x0000023532f7 file_manager::FileManagerBrowserTestBase::StartTest()
#36 0x000002371601 file_manager::GalleryBrowserTest_StopStartSlideshowOnDrive_Test::RunTestOnMainThread()

It has affected many issues/tests:
 issue 618198 
 issue 804364 
 issue 803505 
 issue 715963 

At this point, there are still some tests that need to be disabled until this root cause is fixed.
 

Comment 1 by warx@chromium.org, Jan 22 2018

Cc: tetsui@chromium.org fukino@chromium.org
Owner: yamaguchi@chromium.org
Status: Assigned (was: Untriaged)
More affected tests are:

GalleryBrowserTest.SelectAllImagesAfterImageDeletionOnDownloads
                  .TraverseSlideImagesOnDownloads
                  .StopStartSlideshowOnDownloads
                  .SlideshowTraversalOnDownloads
                  .OpenSingleImageOnDownloads
                  .SlideshowTraversalOnDrive
                  .TraverseSlideThumbnailsOnDownloads

AudioPlayerBrowserTest.TogglePlayState
AudioPlayerBrowserTest.ChangeVolumeLevel
VideoPlayerBrowserTest.OpenSingleVideoOnDownloads
QuickView/FileManagerBrowserTest.Test

Comment 2 by warx@chromium.org, Jan 22 2018

Cc: shapiroc@chromium.org marcochen@chromium.org bmgordon@chromium.org
Add this week's sheriffs. I could not identify the culprit CL. I could see the browser test failure as early as Nov 2017 (I didn't check more of them).

I am not sure what is the strategy here as there are multiple failures here, and not reliably failed on every test. We could wait on file app people working on this as this root cause only fails on dbg builders, which I think will not block CQ...

Comment 4 by warx@chromium.org, Jan 22 2018

Yes, but that filter is for browser_tests --mash. There are non-trivial flakiness on recent builds. We need to fix that : /

Comment 6 by joedow@chromium.org, Jan 24 2018

Labels: Sheriff-Chromium
Adding to the sheriff tracking list.  We should consider disabling these tests if we don't get traction (and we continue to see flaky test results).  This is the first time I've seen this error during my rotation so perhaps it is infrequent enough that we can leave then enabled.
Labels: -Sheriff-Chromium
I'm disabling the two tests in https://chromium-review.googlesource.com/c/chromium/src/+/886702
Thanks for handling.
I quickly looked at some tests and got that the cause is not obvious. I could not reproduce all of those locally.
By this reason I think it is reasonable to disable the tests until we do careful investigation.
Project Member

Comment 9 by bugdroid1@chromium.org, Jan 25 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cdb51726002968dfa4f0e88e44b6b69488275f25

commit cdb51726002968dfa4f0e88e44b6b69488275f25
Author: Vasilii Sukhanov <vasilii@chromium.org>
Date: Thu Jan 25 16:17:07 2018

Disable flaky GalleryBrowserTests.

GalleryBrowserTest.StopStartSlideshowOnDrive
GalleryBrowserTest.OpenSingleImageOnDownloads

TBR=yamaguchi@chromium.org

Bug:  804413 
Change-Id: I2c9e7874b8858bc9786f48fff2f3685871abae3f
Reviewed-on: https://chromium-review.googlesource.com/886702
Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531911}
[modify] https://crrev.com/cdb51726002968dfa4f0e88e44b6b69488275f25/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Comment 10 by warx@chromium.org, Jan 25 2018

Labels: Sheriff-Chromium
https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-rel/4627

release build is also flaky. We might want to disable it on non-debug build too.
Looks like https://chromium-review.googlesource.com/886702 broke GalleryBrowserTestInGuestMode.OpenSingleImageOnDownloads.

Fix here: https://crrev.com/c/887374

Comment 12 by warx@chromium.org, Jan 25 2018

Hi, GalleryBrowserTestInGuestMode.OpenSingleImageOnDownloads is also failing on linux-chromeos-rel/: https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-rel/

Could we just disable it for all builders?
I created a CL here: https://chromium-review.googlesource.com/c/chromium/src/+/887618
Labels: -Sheriff-Chromium
Let's land https://chromium-review.googlesource.com/c/chromium/src/+/887618 and the failure will be disabled.
Labels: Test-Disabled
Project Member

Comment 15 by bugdroid1@chromium.org, Jan 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/61912e82b004e6f2ca46647ce7c58e4cf9fefcc8

commit 61912e82b004e6f2ca46647ce7c58e4cf9fefcc8
Author: Qiang Xu <warx@chromium.org>
Date: Fri Jan 26 20:28:58 2018

disable GalleryBrowserTestInGuestMode.OpenSingleImageOnDownloads

Disabling as this test is failing on linux-chromeos-rel builder.
See:
https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-rel/4627

TBR=yamaguchi@chromium.org
TBR=yoshiki@chromium.org

Bug:  804413 
Change-Id: I9591ee8652fc7965b1261a8cf2f1666b6ae7d3ea
Reviewed-on: https://chromium-review.googlesource.com/887618
Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: Qiang(Joe) Xu <warx@chromium.org>
Commit-Queue: Qiang(Joe) Xu <warx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532053}
[modify] https://crrev.com/61912e82b004e6f2ca46647ce7c58e4cf9fefcc8/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Cc: linds...@chromium.org
@yamaguchi Can you please review these disabled tests? Test coverage has been reduced with these disables.

Comment 19 by olka@chromium.org, Feb 9 2018

Cc: olka@chromium.org
 Issue 810743  has been merged into this issue.
Components: Platform>Apps>MediaGalleries

Comment 23 by treib@chromium.org, Feb 12 2018

Cc: imch...@chromium.org gene@chromium.org zhaobin@chromium.org
 Issue 810969  has been merged into this issue.

Comment 24 by treib@chromium.org, Feb 12 2018

Cc: hirono@chromium.org kinaba@chromium.org yoshiki@chromium.org
Adding remaining file_manager owners. Can somebody please prioritize looking into this issue? This has been broken since at least November, and it affects so many tests that it's impractical to disable them all.

Comment 25 by treib@chromium.org, Feb 12 2018

 Issue 811184  has been merged into this issue.

Comment 26 by treib@chromium.org, Feb 12 2018

Cc: yamaguchi@chromium.org
 Issue 803505  has been merged into this issue.
Status: Started (was: Assigned)
Labels: -Sheriff-Chromium
Status: Available (was: Started)
I could not get this in the business hours today. Let me release this bug once, just in case someone can handle in a different timezone.
I will continue to investigate this issue tomorrow with the top priority.

I tried to reproduce on buildbot but still have not got effective result. https://chromium-review.googlesource.com/c/chromium/src/+/904222

Re: assertion with FileSystemBackend::CanHandleType, TestFileSystemBackend only supports kFileSystem and some tests may pass a wrong type URL. However I cannot explain flakiness by this. I'd examine around this tomorrow.
Sheriff here. I can reproduce this locally by just running the Gallery* browser tests in a debug chromeos build. file_system_url.type() is becoming kFileSystemTypeUnknown (which is unsurprisingly not handled). The URLs look reasonable, though (e.g. "filesystem:chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/isolated/F2E300172F2D4C9EB35C9C3646259F4F/fs/"), and do appear registered in an isolated context.
In the crashing case, we start with a URL of type 2 (kFileSystemTypeIsolated). Using the instance found by its filesystem ID, we get a URL of type 109 (kFileSystemTypeNativeForPlatformApp), which is cracked using the crackers and indices 0 and 1, the latter of which produces an invalid URL (type -1).

In successful cases, this results in a URL of type 101 (kFileSystemTypeNativeLocal) or 106 (kFileSystemTypeDrive).
The failing cracker in at least one instance is ExternalMountPoints, which is failing to turn

NativeForPlatformApp@69F21C4C1041F92831AA966AF2167FCA:/usr/local/google/home/jbroman/Downloads)
into
NativeLocal@Downloads-user:/usr/local/google/home/jbroman/Downloads

because the mount /usr/local/google/home/jbroman/Downloads is not present in ExternalMountPoints::path_to_name_map_ (but in other cases it is). Perhaps there is a race on the logic which populates this?
Diagnosis: the problem appears to be that file_manager::VolumeManager::RegisterDownloadsDirectoryForTesting (on the test main thread) is removing the mount before the browser main thread accesses it, but either doesn't add it back due to a validation issue or loses the race (N.B. storage::ExternalMountPoints::lock_ is not held between revoking and re-registering the downloads mount).
Status: Started (was: Available)
In progress. https://chromium-review.googlesource.com/c/chromium/src/+/919121
I think we can consider the cause is some race condition rather than failing to add a mount back.

The invocation of mount_points->RegisterFileSystem would have been success in the failure cases, because if it were returning false, it would have hit the DCHECK condition in SetupInMainThread.

https://cs.chromium.org/chromium/src/chrome/browser/chromeos/file_manager/volume_manager.cc?sq=package:chromium&l=69
> return mount_points->RegisterFileSystem(mount_point_name,
>                                          storage::kFileSystemTypeNativeLocal,
>                                          storage::FileSystemMountOption(),
>                                          path);

https://cs.chromium.org/chromium/src/chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc?sq=package:chromium&l=529
>  ASSERT_TRUE(local_volume_->Mount(profile()));
Cc: liber...@chromium.org
 Issue 811937  has been merged into this issue.
I could double check the analysis noted in Comment 33.
The map is first initialized normally and then overwritten for test. Incoming data is always normal ones (i.e. not /tmp/*), but the map is in either way sometimes. It causes mismatch leading to error.


I could have repro on my local environment by adding a 3 second delay in VolumeManager::Initialize(), before the line invoking RegisterDownloadsMountPoint.

A string like [/usr/local/google/home/yamaguchi/Downloads]
is passed as |path_in| to ExternalMountPoints::GetVirtualPath.

In the failure cases, the |path_to_name_map_| is like:

/special/drive-user/ | drive-user
/tmp/.org.chromium.Chromium.Y4oek2/do88ueS/user/Downloads/ | Downloads-user
/tmp/chromeos/media/archive/ | archive
/tmp/chromeos/media/removable/ | removable

whereas it's like

/special/drive-user/ | drive-user
/tmp/chromeos/media/archive/ | archive
/tmp/chromeos/media/removable/ | removable
/usr/local/google/home/yamaguchi/Downloads/ | Downloads-user
/usr/share/oem/ | oem

When it cannot find the exact match, it falls until this line in the function:
https://cs.chromium.org/chromium/src/storage/browser/fileapi/external_mount_points.cc?q=ExternalMountPoints::GetVirtualPath&sq=package:chromium&l=227
> return iter->first.AppendRelativePath(path, virtual_path);
since virtual_path is not a strict child of |path|, AppendRelativePath refuses to join and returns false, then produce empty URL in the caller.

I have just a beginner with this part, but I got a hypothesis that existing logic was written unintentionally inconsistent but was passing due to another unintentional asynchronous execution.
This is still an incomplete hypothesis not yet fully verified.

- There are 3 url_crackers_. These must be consistent to relay the transformation.
https://cs.chromium.org/chromium/src/storage/browser/fileapi/file_system_context.cc?q=FileSystemContext::CrackFileSystemURL&sq=package:chromium&l=551

- The first one (external_mount_points) is not relevant to this issue.
- The second one is made based on the mounted point in the test. (i.e. the Downloads location was /tmp/.org.* )
- The third one is based on Isolated Context. Generated based on the real profile (this is NOT verified) rather than the test filesystem. (i.e. the Downloads location was /usr/local/... )
- So the second and the third is inconsistent.
- However, due to unintentional asynchronous execution, the second one had also been generated based on the real profile.

I am thinking of revising it to make it emit the Isolated Context coupled with the test filesystem, but I need to consult someone who originally wrote these parts to make sure that's legit and not affect other parts badly.
+kinaba
Status: Assigned (was: Started)
 Issue 618198  has been merged into this issue.
We've decided to disable all the affected test cases as a tentative solution before fixing the root cause, because I got to work on a release blocker bug for the upcoming milestone right now.
Project Member

Comment 42 by bugdroid1@chromium.org, Feb 20 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b62afbeebd9a48eac6b7665d58133caa5ca2c611

commit b62afbeebd9a48eac6b7665d58133caa5ca2c611
Author: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Date: Tue Feb 20 09:57:27 2018

Disable flaky tests affected by  crbug.com/804413 .

This is a tentative care to silence all flaky tests.
We have found all the tests using the test mount point info are flaky
affecting the trybot runs every time. So we'll disable all the affected
test before fixing the root cause.

Bug:  804413 
Change-Id: I6e97504db495e5cd9c06d7e2d43de6a9611a083d
Reviewed-on: https://chromium-review.googlesource.com/925878
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537747}
[modify] https://crrev.com/b62afbeebd9a48eac6b7665d58133caa5ca2c611/chrome/browser/chromeos/file_manager/audio_player_browsertest.cc
[modify] https://crrev.com/b62afbeebd9a48eac6b7665d58133caa5ca2c611/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
[modify] https://crrev.com/b62afbeebd9a48eac6b7665d58133caa5ca2c611/chrome/browser/chromeos/file_manager/gallery_browsertest.cc
[modify] https://crrev.com/b62afbeebd9a48eac6b7665d58133caa5ca2c611/chrome/browser/chromeos/file_manager/video_player_browsertest.cc

Components: Platform>Apps>PhotoEditor
Components: -Platform>Apps>MediaGalleries
Project Member

Comment 45 by bugdroid1@chromium.org, Mar 5 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/94f8117c386b375b74aa6da33846fb83ade00d0a

commit 94f8117c386b375b74aa6da33846fb83ade00d0a
Author: Greg Thompson <grt@chromium.org>
Date: Mon Mar 05 12:17:31 2018

Disable more flaky tests affected by  crbug.com/804413 .

This is a tentative care to silence all flaky tests.
We have found all the tests using the test mount point info are flaky
affecting the trybot runs every time. So we'll disable all the affected
test before fixing the root cause.

TBR=yamaguchi@chromium.org

Bug:  804413 
Change-Id: I7f711446accc61a8bedf00f52c328a1037a11791
Reviewed-on: https://chromium-review.googlesource.com/948483
Reviewed-by: Greg Thompson <grt@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540806}
[modify] https://crrev.com/94f8117c386b375b74aa6da33846fb83ade00d0a/chrome/browser/chromeos/file_manager/gallery_browsertest.cc
[modify] https://crrev.com/94f8117c386b375b74aa6da33846fb83ade00d0a/chrome/browser/chromeos/file_manager/video_player_browsertest.cc

Cc: joelhockey@chromium.org noel@chromium.org
Labels: CrOSFilesCategory-Testing
We lose a lot of coverage by leaving these tests disabled. Marking as P1 for M67, since we want to prioritise fixing our testing coverage.

Yamaguchi - I'm assuming you're no longer working on this? If so, please unassign yourself as owner and we'll find someone else to take this on.
Owner: ----
Status: Available (was: Assigned)
Labels: M-67
Cc: -bmgordon@chromium.org
Labels: Hotlist-DisableReview
@yamaguchi can you ptal at comment 46?
I am currently handling Zip Archiver issues. So it would be nice if someone else could handle this.
Project Member

Comment 52 by bugdroid1@chromium.org, Mar 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/29351787276873f7aed2e6e979721c596bc3bbfd

commit 29351787276873f7aed2e6e979721c596bc3bbfd
Author: Noel Gordon <noel@chromium.org>
Date: Tue Mar 27 05:44:27 2018

Enable GalleryBrowserTestInGuestMode::OpenSingleImageOnDownloads

Test was disabled in  issue 804413  due to the linux-chromeos-release bot
flakiness. Re-enable to determine if the test flakes on the CQ.

Tbr: fukino-san
Bug:  804413 
Change-Id: I14b1f3dfcb78123a3deadd227960cdb3db91a874
Reviewed-on: https://chromium-review.googlesource.com/981812
Reviewed-by: Sasha Morrissey <sashab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546029}
[modify] https://crrev.com/29351787276873f7aed2e6e979721c596bc3bbfd/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Comment 53 by loyso@chromium.org, Mar 27 2018

Status: Untriaged (was: Available)
Tests are still disabled:
https://cs.chromium.org/search/?q= http://crbug.com/804413 &sq=package:chromium&type=cs

The issue (see comments #37, #33) is still here.

Comment 54 by loyso@chromium.org, Mar 27 2018

Components: -Platform>Apps>PhotoEditor Platform>Apps>FileManager
Project Member

Comment 55 by bugdroid1@chromium.org, Mar 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b123aca0757cac1de32d01819fdfcf35e77712a9

commit b123aca0757cac1de32d01819fdfcf35e77712a9
Author: Dominic Battre <battre@chromium.org>
Date: Tue Mar 27 09:09:32 2018

Add debug information on failing CanHandleType

TBR=fukino@chromium.org
notry=true

Bug:  804413 
Change-Id: I6fd7c66036d38bf23c6b77e16f214eff06c7d903
Reviewed-on: https://chromium-review.googlesource.com/980939
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Dominic Battré <battre@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546069}
[modify] https://crrev.com/b123aca0757cac1de32d01819fdfcf35e77712a9/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc

Comment 56 by noel@chromium.org, Mar 27 2018

#55 More logging would be good.  #53 yeah I get that the bug symptom described in this issue maybe still there, but my change was about the code revision landed in #15 which disabled test

GalleryBrowserTestInGuestMode::OpenSingleImageOnDownloads

on the current bug. Looking at the failing browser_test shard log provided in #15,

https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-rel/4627

I see the following:

[ RUN      ] GalleryBrowserTestInGuestMode.MAYBE_OpenSingleImageOnDownloads
../../base/test/test_suite.cc:73: Failure
Value of: TestSuite::IsMarkedMaybe(test_info)
  Actual: true
Expected: false
Probably the OS #ifdefs don't include all of the necessary platforms.
Please ensure that no tests have the MAYBE_ prefix after the code is preprocessed.
[15847:15847:0125/085931.972160:3158493590:FATAL:browser_test_base.cc(147)] Check failed: set_up_called_. SetUp was not called. This probably means that the developer has overridden the method and not called the superclass version. In this case, the test does not run and reports a false positive result.

Seems entirely unrelated to the current bug (hence my change #52 to re-enable).

This result makes me wonder: how many of the other browser tests disabled in this bug actually have the symptom that is the subject of this bug?  Or has this bug become some kind of a dumping ground for flakes related to the CrOS FilesApp or its sub-components (QuickView, GalleryView, MediaView [video || audio] ...).

#20 disabled AudioPlayerBrowserTest.OpenAudioOnDownloads, but provided no logs. Tried looking it up via chromium flakiness dashboard:
https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=AudioPlayerBrowserTest.OpenAudioOnDownloads&testType=browser_tests
Test is disabled of course, so I selected "show all available runs" to look back in time.  Waited, waited and boom, my browser crashed :?
Cc: -malaykeshav@chromium.org
Owner: noel@chromium.org
Status: Assigned (was: Untriaged)

Comment 59 by noel@chromium.org, Mar 28 2018

Filed  issue 826959  about the Flakiness Dashboard "show all available runs" crash.
Project Member

Comment 60 by bugdroid1@chromium.org, Apr 3 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b5da1d7664754928b08997b8f39160529e7adb44

commit b5da1d7664754928b08997b8f39160529e7adb44
Author: Noel Gordon <noel@chromium.org>
Date: Tue Apr 03 00:23:15 2018

Re-enable two GalleryBrowserTestInGuestMode browser tests

Re-enable two GalleryBrowserTestInGuestMode tests, listed below, which
were disabled in  issue 804413  due to linux-chromeos-release bot flakes
on the CQ.

  GalleryBrowserTestInGuestMode.SlideshowTraversalOnDownloads
  GalleryBrowserTestInGuestMode.StopStartSlideshowOnDownloads

Tbr: yamaguchi-san
Bug:  804413 
Change-Id: I2928ba5a849b47a911bbd89382ef5c32d76edec2
Reviewed-on: https://chromium-review.googlesource.com/991212
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547577}
[modify] https://crrev.com/b5da1d7664754928b08997b8f39160529e7adb44/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Project Member

Comment 61 by bugdroid1@chromium.org, Apr 3 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bf88d549e5364269921f0f04bf113a1943d37bab

commit bf88d549e5364269921f0f04bf113a1943d37bab
Author: Noel Gordon <noel@chromium.org>
Date: Tue Apr 03 10:12:45 2018

Remove GalleryBrowserTestBase member scripts_

Per http:crrev.com/336357 the variable existed when the old file
manager browser test was split up after growing too large. It is
not used in GalleryBrowserTestBase today: remove scripts_.

Test: browser_tests --gtest_filter=GalleryBrowserTest*
Bug:  804413 
Change-Id: Iada83b00c5644d8ea8d9d3a334affe103a59d1db
Reviewed-on: https://chromium-review.googlesource.com/991772
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547660}
[modify] https://crrev.com/bf88d549e5364269921f0f04bf113a1943d37bab/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Project Member

Comment 62 by bugdroid1@chromium.org, Apr 4 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5d8129e513f1cffb5797693e3762262324c0d8d4

commit 5d8129e513f1cffb5797693e3762262324c0d8d4
Author: Noel Gordon <noel@chromium.org>
Date: Wed Apr 04 03:59:32 2018

Re-enable all GalleryBrowserTestInGuestMode browser tests

Re-enable all GalleryBrowserTestInGuestMode tests, listed below, which
were disabled in  issue 804413  due to linux-chromeos-release bot flakes
on the CQ. (Guest mode RenameImageOnDownloads disabled on issue 508949
before  issue 804413 ).

  GalleryBrowserTestInGuestMode.RenameImageOnDownloads
  GalleryBrowserTestInGuestMode.
      CheckAvailabilityOfShareButtonOnDownloads
  GalleryBrowserTestInGuestMode.ResizeImageOnDownloads

Bug:  804413 , 508949
Change-Id: I254a9597c7fdd727cfb888db4c552cc3ad67b0a6
Reviewed-on: https://chromium-review.googlesource.com/992592
Reviewed-by: Sasha Morrissey <sashab@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547972}
[modify] https://crrev.com/5d8129e513f1cffb5797693e3762262324c0d8d4/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Labels: Pri-2
Labels: -M-67 M-68

Comment 65 by noel@chromium.org, Apr 5 2018

Results for #60, #61, #62 [1] GalleryBrowserTestInGuestMode.* in browser_tests(with patch), green on these try runs, no evidence of flakes. Zero evidence they ever had the "external_backend->CanHandleType(file_system_url.type())" signature that is the subject of this bug.

[1] https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=browser_tests%20(with%20patch)&tests=GalleryBrowserTestInGuestMode.*
Project Member

Comment 66 by bugdroid1@chromium.org, Apr 9 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/038d0bb1c744460122e07651eaf0f9ee670f7682

commit 038d0bb1c744460122e07651eaf0f9ee670f7682
Author: Noel Gordon <noel@chromium.org>
Date: Mon Apr 09 04:15:18 2018

Re-enable VideoPlayerBrowserTestInGuestMode browser tests

Run VideoPlayerBrowserTestInGuestMode tests (there is only one, listed
below) on all bots.

  VideoPlayerBrowserTestInGuestMode.OpenSingleVideoOnDownloads

Bug:  804413 ,508949
Change-Id: I1f355725775bb104101e108b3872a4b25549a074
Reviewed-on: https://chromium-review.googlesource.com/1002334
Reviewed-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549105}
[modify] https://crrev.com/038d0bb1c744460122e07651eaf0f9ee670f7682/chrome/browser/chromeos/file_manager/video_player_browsertest.cc

Project Member

Comment 67 by bugdroid1@chromium.org, Apr 9 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0a450c32017755bb629c14062cd32f4e1aa2e0db

commit 0a450c32017755bb629c14062cd32f4e1aa2e0db
Author: Noel Gordon <noel@chromium.org>
Date: Mon Apr 09 09:58:21 2018

Re-enable GalleryBrowserTest.TraverseSlideThumbnailsOnDrive in debug

According to the flakiness dashboard, this test works in release mode,
and on the much slower ASAN and MSAN bots. Re-enable on the debug bots
to gather new data about  issue 804364  and related.

Bug:  804413 ,  804364 
Change-Id: Ifc3f1f383ca8b4b385ec65412e070748047683da
Reviewed-on: https://chromium-review.googlesource.com/1002345
Reviewed-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549139}
[modify] https://crrev.com/0a450c32017755bb629c14062cd32f4e1aa2e0db/chrome/browser/chromeos/file_manager/gallery_browsertest.cc

Comment 68 by gab@chromium.org, Apr 10 2018

Blockedon: 829310
Project Member

Comment 69 by bugdroid1@chromium.org, Apr 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ce92ada91522695758a70d18e960194e5f071895

commit ce92ada91522695758a70d18e960194e5f071895
Author: Noel Gordon <noel@chromium.org>
Date: Tue Apr 17 08:30:34 2018

Rid our system of persistent FileManagerBrowserTest flakiness

Postpone the creation of the FilesApp component extensions AudioPlayer
FileManager, Gallery, and VideoPlayer in browser testing. Not doing so
leads to systemic browser test failures (flakiness) per the bugs.

Fix: prepare test resources first, load the component extensions, then
start testing. Failure was the component extensions were active before
the file resources needed by the tests were ready, causing flake-fails
when the component extensions tried to access those resources.

Bug:  831074 ,  804413 ,  829310 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ie794bac638f48c3855e0c1f1609e59aa615c31dd
Reviewed-on: https://chromium-review.googlesource.com/1013823
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Reviewed-by: Tomasz Mikolajewski <mtomasz@chromium.org>
Reviewed-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551279}
[modify] https://crrev.com/ce92ada91522695758a70d18e960194e5f071895/chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc

Comment 70 by noel@chromium.org, Apr 19 2018

Status: Fixed (was: Assigned)
For that last 48 hours after #69, no evidence of the bug symptom

[23667:23667:0122/042713.995569:FATAL:private_api_file_system.cc(810)] Check failed: external_backend->CanHandleType(file_system_url.type()).

anymore on the linux-chromeos-* bots.
Cc: hanxi@chromium.org manisca...@chromium.org mtomasz@chromium.org
 Issue 477360  has been merged into this issue.

Sign in to add a comment