- Issue created by @quietone
- π³πΏNew Zealand quietone
The test failures are in the following, all of which I think need to switch to using the new dumps. The new dumps are over in π Remove deprecated modules from update testing database dumps etc. Active
- core/modules/datetime_range/tests/src/Functional/DateRangeFormatterSettingsUpdateTest.php
- core/modules/editor/tests/src/Functional/Update/EditorSanitizeImageUploadSettingsUpdateTest.php
- core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderSettingsUpdateTest.php
- core/modules/system/tests/src/Functional/Update/CronLoggingUpdateTest.php
- core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php
- core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php
- core/modules/taxonomy/tests/src/Functional/Update/NullDescriptionTest.php
- core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
- π³πΏNew Zealand quietone
I left some local testing files in the MR, with those removed the failing tests are
- core/modules/datetime_range/tests/src/Functional/DateRangeFormatterSettingsUpdateTest.php
- core/modules/editor/tests/src/Functional/Update/EditorSanitizeImageUploadSettingsUpdateTest.php
- core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderSettingsUpdateTest.php
- core/modules/system/tests/src/Functional/Update/CronLoggingUpdateTest.php
- core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php
- core/modules/taxonomy/tests/src/Functional/Update/NullDescriptionTest.php
- core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
- π³πΏNew Zealand quietone
Need to investigate core/modules/systems/tests/fixtures/update/drupal-8.*.
- Assigned to quietone
- π¬π§United Kingdom catch
Marked π [11.x] [PP-x] Remove updates added up until 10.3.0 from Drupal 11 Active as duplicate since there's an MR here.
- Status changed to Needs work
8 months ago 5:03pm 10 April 2024 - π¬π§United Kingdom catch
It looks like the UpdatePathTestBase failures are because we now have no updates to run - we should add an new, empty, post update to system.post_update.php to make those pass. We can then remove that stub post update when we have a real update in 11.x to run. It is kludgy, but we still want to test that updates will actually run when there's something to run.
- Status changed to Needs review
8 months ago 1:39pm 11 April 2024 - π³πΏNew Zealand quietone
There is now only one failing test, UpdatePathTestBaseTest.php. And that does pass with the new fixture and some schema number changes to UpdatePathTestBase.php. This can be seen in MR7403 from π Remove deprecated modules from update testing database dumps etc. Active .
So, does this do the removals correctly (first time I have done this task)?
- π¬π§United Kingdom catch
Left some notes on the MR. I didn't review the whole thing. Everything I did review looked correct, the only thing is I think we can also remove a lot of hook_ENTITY_presave() implementations which are supporting config entity post updates - any config entity update is supposed to have its logic in presave so that it also runs when config is installed from modules (this is not implemented 100% because we make mistakes, but probably about 90%) - and those can all go when the updates go.
- Status changed to Needs work
8 months ago 11:42am 12 April 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π¬π§United Kingdom catch
I looked at this again.
I think we should actually open a follow-up for the ViewsConfigUpdater/presave removals.
1. It'll reduce the scope here and make it more reviewable.
2. As soon as we commit this, new 11.x update hooks can use the new database dumps, so less merge conflicts in either direction.
3. As soon as we commit this, we can go ahead with module removals.
4. None of the presave hooks or ViewsConfigUpdater methods are part of the public API, more like dead code, so fine to do as 'deprecated code removal' issues without blocking other things.
Looks like this needs a rebase though. Can try to do a line-by-line review after that.
- π³πΏNew Zealand quietone
I've rebased and updated the MR. Not sure what needs to be done for ViewsConfigUpdater and I am too tired to think about it.
- π¬π§United Kingdom catch
I think we can do ViewsConfigUpdater in a follow-up per #13. I'll try to review the MR again soon.
- π³πΏNew Zealand quietone
OK, I have pulled out any thing related to ViewsConfigUpdater. At least, I hope I have.
- π³πΏNew Zealand quietone
For now, I have just added a note to the remaining tasks about ViewConfigUpdater om π± [11.x] [META] Remove deprecated classes, methods, procedural functions and code paths outside of deprecated modules on the Drupal 11 branch Postponed
- π¬π§United Kingdom catch
Pushed one commit here - removes a dblog post update from the list of removed post updates, because it was removed from the 10.3.x and 11.x branches and wasn't run in the database dump from the other issue - so it's as though that update never existed now.
Also restored one system post update which was added after the dump was created. We'll either have to create new database dumps to remove that, or leave it in core. I don't want to block the previous issue here on that because it's blocking so many thing and new updates could be added at any time.
Going to add an extra branch here with the dumps from the other issue to try to figure out the remaining test failures.
- π³πΏNew Zealand quietone
The test failures in this issue are all in UpdatePathTestBase tests. These are the ones that are fixed in the other issue, π Remove deprecated modules from update testing database dumps etc. Active .
I don't see any others. - π¬π§United Kingdom catch
OK the draft MR confirms that https://git.drupalcode.org/project/drupal/-/merge_requests/7400/diffs?co... gives us a green test run once π Remove deprecated modules from update testing database dumps etc. Active is committed. So I think we are good here and just need the other issue to land, then a rebase here once it has.
I had some trouble running update tests (and even manually visiting update.php/selection) locally, but that turns out to be an issue on my local, not caused by anything here or in HEAD afaict.
- Status changed to Needs review
8 months ago 12:50pm 19 April 2024 - π¬π§United Kingdom catch
I reviewed again and didn't find anything.
Added a change record and release note.
- π¬π§United Kingdom alexpott πͺπΊπ
Note that the 10.3.0 dumps have been created before 10.3.0 is released therefore it is possible that more updates will be added so either we will need to update dumps or not remove these updates.
- π¬π§United Kingdom catch
The changes to deprecated modules aren't really necessary here - the contrib modules already exist, and probably won't want to remove these updates. However because we're going to git rm the modules anyway, I'm not sure it matters - would be more work to go through and undo the changes again.
- π«π·France andypost
Looking at action and tracker removal issues - there's 15 tests to update (replace 9.4 with 10.3 dumps)
For example https://git.drupalcode.org/project/drupal/-/merge_requests/7358/diffs?co...
- Status changed to RTBC
8 months ago 5:32pm 19 April 2024 - π¬π§United Kingdom catch
@andypost the removal issues will just need to remove the modules in 11.x, nothing to do in core for those (hopefully). The contrib modules may want to update to using the new database dumps (which every other contrib module with updates tests will also want to do for 11.x compatibility).
- π¬π§United Kingdom catch
Opened π Remove redudundat hook_ENTITY_TYPE_presave() and ViewsConfigUpdater methods Active .
- Status changed to Fixed
8 months ago 6:15pm 19 April 2024 - π¬π§United Kingdom catch
Did one more line-by-line review and found one issue - forum was specifying a couple of help post updates in forum_removed_post_update() - these were also in help_removed_post_updates(). Sure this was copypasta, wouldn't cause any issues except confusion.
I only made very minor changes fixing merge issues/cross commits with HEAD as well as the above, so I think I'm still fine to commit this one.
One more follow-up created - we actually need to remove the old fixtures from core/modules/system/tests/update too π Remove the 9.4 database dump fixtures from 11.x Active .
- Issue was unassigned.
Automatically closed - issue fixed for 2 weeks with no activity.