Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
install system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jul 2014 at 12:52 UTC
Updated:
27 Oct 2014 at 12:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
alexpottPatch fixes the test for me be ensuring it has a settings.php to write to and makes file_unmanaged_deletemore robust for use by run-tests.sh (via simpletest_clean_temporary_directories and file_unmanaged_delete_recursive) by moving stuff around.
I have no clue how or why Testbot is not failing here. @beejeebus had exactly the same problem on a fresh checkout and install of D8.
Comment #2
dawehnerHad the exact same problem, thanks @tstoeckler for the pointer.
Comment #3
sunInstallerTestBaseonly provisions a settings.php upfront, if the test defines$settingsthat should be written upfront.There are two possible installer code paths here:
A) Install from clean slate, no settings.php (only a site directory)
B) Install with prepared settings.php that primes some settings prior to hitting the installer.
This patch changes all installer tests to always run through B), because the code unconditionally copies settings.php ahead of time.
Comment #4
sunMost likely caused by this issue.
I assume we're missing a logger in the minimal container that's set up by
InstallerTestBase.Comment #5
sunI'm not able to reproduce this issue, neither when running
DistributionProfileTestvia CLI nor through the UI.Comment #6
dawehnerIn didn't worked for me on the InstallerTest, installed in a subdir (if this matters at all).
Comment #7
olli commentedchown wwwrun default.settings.php and sudo -u wwwrun php run-tests.sh works.
Comment #8
sunThanks, that's a useful hint, @olli.
So I suspect the problematic flow is the following — only applies to installer tests that do NOT write out a settings.php upfront:
Comment #9
sunHm. I think I ran into this problem space a while ago already. Played with the slightly crazy idea of adding a test-only "self-destruct" route in #2194089-11: file_unmanaged_delete_recursive() randomly fails
Comment #10
alexpottDowngrading since fixing this is not release blocking - it sure is annoying though.
Comment #11
xjmComment #12
penyaskitoRerolled #1, but it didnt work for me. #7 permissions didnt work for me neither.
Needs review just for the testbot.
Comment #13
olli commentedSetting owner for both the default.settings.php and default.services.yml files works for me. I guess these lines in install_check_requirements might be related:
Comment #14
alexpottI think I have a solution that preserves testing the installer creating files. Not bothering with interdiff since the whole patch needs a review as the fix is different.
Comment #15
penyaskito#14 didn't work for me :/
Comment #16
penyaskito#14 DID WORK for me. The problem I was having is that php5-sqlite was not installed on my system, so the database type radio couldn't be set as it was disabled.
Requiring sqlite for running tests is another story, so marking as RTBC as this is a really annoying bug which looks like is not possible to reproduce in a test.
Comment #17
penyaskitoSqlite issue: #2355523: InstallerTestBase tests should not require sqlite to be installed
Comment #18
vijaycs85Looks like the change is minimal (just a condition addition and if statement placement change). +1 to get this in :)
Comment #19
bzrudi71 commentedThis also affects the new Docker based TestBots where most Installer group tests are failing. With patch from #14 all Installer tests do pass now, for both, MySQL and PostgreSQL environments. Great!
Comment #20
catchCommitted/pushed to 8.0.x quickly to unblock things.