Problem/Motivation
The way in which core/modules/system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz and core/modules/system/tests/fixtures/update/drupal-8.8.0.filled.standard.php.gz were built has resulted in core.extension:profile being NULL.
This happened because these databases were created by importing the 8-rc1 equivalents on the 8.8.0 codebase and then running updates. This meant that nothing wrote a value for the install profile to settings.php and therefore system_update_8601() couldn't set the profile.
There aren't really any bad impacts from this other than we're not the scanning install profile's directory for stuff.
Proposed resolution
Fix the dumps so this value is set and add an assertion to \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest::testDatabaseLoaded() so that we can ensure it is set correctly.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3109433-5.patch | 1.12 MB | alexpott |
| #5 | 3109433-5.test-only.patch | 767 bytes | alexpott |
| #3 | 3109433-3.patch | 1.12 MB | alexpott |
| #2 | 3109433-2.patch | 4.65 KB | alexpott |
Comments
Comment #2
alexpottHere's a test only patch.
Comment #3
alexpottHere's a fix. No interdiff because it is compressed files.
I ran the dump scripts on an empty db and then ran the following script:
And then dumped the db again and recompressed it.
Comment #5
alexpottWhoops some cruft crept in the patch.
Comment #6
berdirLooks good now to me. I didn't diff the unzipped dumps, but I think that @alexpott has easier ways to sneak something into core if he'd really wanted to :)
Comment #11
catchCommitted f791e76 and pushed to 9.0.x. Thanks! Also cherry-picked to 8.9.x and 8.8.x.
Comment #12
catch