- 🇦🇺Australia acbramley
It looks like a lot of the test failures are now something like this:
1) /builds/issue/drupal-3426302/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php:211 The 'status' setting for content blocks is deprecated in drupal:11.2.0 and is removed from drupal 12.0.0. It was unused, so there is no replacement. See https://www.drupal.org/node/3499836.
Which is coming from an update path test, I'm assuming because the db fixture has those keys set. Not entirely sure how we usually solve this kind of thing.
- 🇺🇸United States nicxvan
Removing release manager tag per discussion in slack and @catch's comment here.
- 🇬🇧United Kingdom catch
We discussed this in slack - the 'soft' deprecation so that people don't jump the gun here is good.
I also wondered about a 'hard' (normal) deprecation in a future release so that we eventually tell people to remove it, but the risk of people still jumping the gun (e.g. breaking support with Drupal < 11.2 prematurely) will be there, and then when we finally get to a core release where that's not a problem, we might as well have just removed the supporting code anyway instead of formally deprecating the hook. That means some modules could still ship with crufty hook_hook_info() implementations, but when we eventually deprecate .module files altogether, it will get deleted with those.
- @nicxvan opened merge request.
- 🇦🇺Australia acbramley
Fixed merge conflicts and created a CR, still NW as we need an upgrade path
- 🇺🇸United States dww
- Pipeline is now green.
- All feedback addressed.
- All threads resolved.
- Title and summary are accurate and clear.
- CR is simple, accurate and clear.
I see nothing left to improve. RTBC.
Thanks!
-Derek - First commit to issue fork.
- 🇺🇸United States dww
p.s. I did some minor edits and formatting cleanups on the CR: https://www.drupal.org/node/3489411/revisions/view/13800107/13851975 →
- 🇺🇸United States dww
Sorry, I missed something in previous reviews (or this is a new bug). 1 suggestion to apply, otherwise seems RTBC to me.
- 🇺🇸United States nicxvan
Yeah I'm working on baseline, the deprecated function was moved to views.module
- 🇺🇸United States dww
Related, but the rebase seems to have clobbered views.views.inc entirely. I thought we still needed a deprecated views_entity_field_label() in there.
TL;DR: Probably wise not to self-RTBC after a rebase, especially with merge conflicts, so that peer review can help spot trouble. 😅
- 🇷🇴Romania amateescu
@andypost, thanks for fixing the pgsql issue, I was really scratching my head around it. Reverted your latest commit, we can't add them at the same time until the issue you just opened is fixed, and it's also not worth waiting for it :)
- 🇫🇷France andypost
Fixed pgsql and filed issue for mysql schema 🐛 Mysql Schema::addField() incorectly processing indexes specification Active
- 🇫🇷France andypost
on pgsql able to reproduce, the failing value is
php -r 'var_dump(unserialize(hex2bin("4f3a33313a2253796d666f6e795c436f6d706f6e656e745c526f7574696e675c416c696173223a323a7b733a34343a22")));' PHP Warning: unserialize(): Error at offset 44 of 48 bytes in Command line code on line 1 PHP Stack trace: PHP 1. {main}() Command line code:0 PHP 2. unserialize($data = 'O:31:"Symfony\\Component\\Routing\\Alias":2:{s:44:"') Command line code:1 Command line code:1: bool(false)
- 🇫🇷France andypost
The only failure is pgsql with strange warning
1) /builds/issue/drupal-3159210/core/lib/Drupal/Core/Routing/RouteProvider.php:267 unserialize(): Error at offset 44 of 48 bytes
- 🇫🇷France andypost
@amateescu Thank you fixing update hook! Probably it needs follow-up and todo added to allow add field with index to mysql table in one transaction
- 🇬🇧United Kingdom catch
├ The update failed with the following message: "Failed: Drupal\Core\Database\SchemaException: MySQL needs the 'alias' field specification in order to normalize the 'alias' index in Drupal\mysql\Driver\Database\mysql\Schema->getNormalizedIndexes() (line 332 of /builds/issue/drupal-3159210/core/modules/mysql/src/Driver/Database/mysql/Schema.php)."
To me this looks broken in the MySQL driver.
::addField() calls ::createKeysSql(), ::createKeysSql() calls ::getNormalizedIndexes(), ::getNormalizedIndexes() expects a $spec['fields'] to be passed in with the field definition(s) and that is not done.
- 🇫🇷France andypost
upgrade fails on mysql (every upgrade test) https://git.drupalcode.org/issue/drupal-3159210/-/jobs/4004297
pgsql fails only 1 test
RouteProviderTest
https://git.drupalcode.org/issue/drupal-3159210/-/jobs/4004507sqlite pass all
- 🇫🇷France andypost
any somehow update hooks fails on mysql
Run updates ┐ ├ The update failed with the following message: "Failed: Drupal\Core\Database\SchemaException: MySQL needs the 'alias' field specification in order to normalize the 'alias' index in Drupal\mysql\Driver\Database\mysql\Schema->getNormalizedIndexes() (line 332 of /builds/issue/drupal-3159210/core/modules/mysql/src/Driver/Database/mysql/Schema.php)." │ │ /builds/issue/drupal-3159210/core/tests/Drupal/Tests/UpdatePathTestTrait.php:68 │ /builds/issue/drupal-3159210/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:196 │ /builds/issue/drupal-3159210/core/modules/workspaces/tests/src/Functional/Update/WorkspaceAssociationStringIdsUpdatePathTest.php:42
- First commit to issue fork.
- 🇺🇸United States nicxvan
Tagging this for the deprecation method since this is a unique deprecation.