Problem/Motivation
While working on removing Migrate Drupal UI, there were test failures dues to trying to install an obsolete module.
Steps to reproduce
One way to find tests is
$ git grep -l ExtensionLifecycle::LIFECYCLE_IDENTIFIE | grep Test.php
core/modules/config/tests/src/Functional/ConfigImportAllTest.php
core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php
core/modules/jsonapi/tests/src/Kernel/TestCoverageTest.php
core/modules/rest/tests/src/Kernel/EntityResource/EntityResourceRestTestCoverageTest.php
core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php
core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php
core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php
core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php
core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php
Proposed resolution
Modify tests that are not testing install of an obsolete extension to not try to install an obsolete extension.
Add a check for obsolete in the relevant test in these files.
- core/modules/config/tests/src/Functional/ConfigImportAllTest.php
- core/modules/jsonapi/tests/src/Kernel/TestCoverageTest.php
- core/modules/rest/tests/src/Kernel/EntityResource/EntityResourceRestTestCoverageTest.php
- core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php
- core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php
- core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php
- core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTestBase.php
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #3
quietone commentedComment #4
nicxvan commentedShould we do something like this https://www.drupal.org/project/drupal/issues/3271010
Comment #5
quietone commentedI would think so. However, later. I don't want to delay this change because it is blocking removing of Migrate Drupal UI and Migrate Drupal.
Comment #6
catchBumping to critical because it blocks making modules obsolete at all.
Comment #7
smustgrave commentedSince this appears to be the same change that was used in the remove migrate ticket and know it works going to mark.
Really surprised this never came up before? But guess we haven’t been marking modules obsolete just deprecated.
Comment #10
catchYeah we haven't marked many modules obsolete yet.
Committed/pushed to main and 11.x, thanks!