Skip to content

Conversation

@PVince81
Copy link
Contributor

Backport of #28432 to stable9.1.

Need retesting.

@PVince81 PVince81 added this to the development milestone Jul 27, 2017
@PVince81 PVince81 requested a review from tomneedham July 27, 2017 08:46
@PVince81 PVince81 force-pushed the stable9.1-scanner-detectmissinghome branch from ed8e9ad to b4ad753 Compare August 1, 2017 08:21
@PVince81
Copy link
Contributor Author

PVince81 commented Aug 1, 2017

fixed createMock for old phpunit

@PVince81
Copy link
Contributor Author

PVince81 commented Aug 1, 2017

10:31:24 1) TrashbinTest::testExpireOldFilesShared
10:31:24 OCP\Files\StorageNotAvailableException: Missing important folder "files" in home storage - home::test-trashbin-user2
10:31:24 
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:119
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:150
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Watcher.php:105
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1307
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1343
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:180
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Folder.php:117
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:358
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Server.php:813
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_trashbin/tests/TrashbinTest.php:672
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_trashbin/tests/TrashbinTest.php:235
10:31:24 
10:31:24 2) OCA\Files_Versions\Tests\VersioningTest::testRenameInSharedFolder
10:31:24 OCP\Files\StorageNotAvailableException: Missing important folder "files" in home storage - home::test-versions-user2
10:31:24 
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:119
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:150
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Watcher.php:105
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1307
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1343
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:180
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Folder.php:117
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:358
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Server.php:813
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_versions/tests/VersioningTest.php:905
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_versions/tests/VersioningTest.php:327
10:31:24 
10:31:24 3) OCA\Files_Versions\Tests\VersioningTest::testMoveFolderIntoSharedFolderAsRecipient
10:31:24 OCP\Files\StorageNotAvailableException: Missing important folder "files" in home storage - home::test-versions-user2
10:31:24 
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:119
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:150
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Watcher.php:105
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1307
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1343
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:180
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Folder.php:117
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:358
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Server.php:813
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_versions/tests/VersioningTest.php:905
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_versions/tests/VersioningTest.php:444
10:31:24 
10:31:24 4) OCA\Files_Versions\Tests\VersioningTest::testRestoreNoPermission
10:31:24 OCP\Files\StorageNotAvailableException: Missing important folder "files" in home storage - home::test-versions-user2
10:31:24 
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:119
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Scanner.php:150
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Cache/Watcher.php:105
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1307
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/View.php:1343
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:180
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Folder.php:117
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Files/Node/Root.php:358
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/lib/private/Server.php:813
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/tests/lib/TestCase.php:341
10:31:24 /var/lib/jenkins/workspace/owncloud-core_core_PR-28505-3TRPAGZJ43NCVPOHX36J7XNDOI3MEHO2TPRR6ELOECZ3EZB7BDXA/apps/files_versions/tests/VersioningTest.php:662
10:31:24 

Seems we'll need to adjust these tests to properly initialize the storages

@PVince81 PVince81 self-assigned this Aug 3, 2017
@PVince81
Copy link
Contributor Author

Argh... running these test suites individually works fine. It's likely that when running the full suite, something is destroying the test storages or preventing them to come back up again.

This is to prevent the safety check to kick in because the "files"
folder is missing.
@PVince81
Copy link
Contributor Author

Ok, so on stable10 it works fine because the skeleton copy is happening much earlier now.

Here on stable9.1 the versioning and trashbin tests are deleting the "files" folder at the end of tests, so trying to $node->get() these folders fail due to the safety check, since in stable9.1 the skeleton copy happens later. The fix for the tests is to simply recreate the "files" folders after removing their contents in tearDown.

@DeepDiver1975 DeepDiver1975 merged commit 5334874 into stable9.1 Oct 30, 2017
@DeepDiver1975 DeepDiver1975 deleted the stable9.1-scanner-detectmissinghome branch October 30, 2017 15:03
@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants