Problem/Motivation
I don't think we need to tag the tests for migrate, migrate_drupal and migrate_drupal_ui any longer with @group legacy
Proposed resolution
Remove the annotation.
Remaining tasks
Remove itFix any issues- Commit
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | interdiff_9-12.txt | 678 bytes | ridhimaabrol24 |
| #12 | 3134459-12.patch | 10.32 KB | ridhimaabrol24 |
| #9 | 3134459-9.patch | 10.77 KB | longwave |
| #7 | interdiff.3134459.1-7.txt | 33 KB | aleevas |
| #7 | 3134459-7.patch | 34.09 KB | aleevas |
Comments
Comment #2
heddnComment #3
longwaveI don't see why these are legacy either, so RTBC.
Comment #4
longwaveIn fact there are a few more migrate-related tests that have @group legacy, should these tags be removed too?
Comment #5
quietone commentedThe title states this is removing @group legacy from migrate tests, but it is then limited to the migrate modules. Shouldn't this cover all migration tests in core?
Comment #6
quietone commentedI didn't reload the page and missed comment #4. I agree, lets do all the migrate tests in core.
Comment #7
aleevasWas removed all
@group legacythat mentioned in #4Comment #8
longwaveWe can't remove the group from all tests, this is only about migrate related ones.
Comment #9
longwaveComment #10
quietone commentedI applied the patch and did 'grep -r '@group legacy' core'. There were 43 instances found, none of which are related to migrate. So, looking good.
However,
this rename is out of scope.
Comment #11
quietone commentedThe change above is straightforward, this is suitable for a novice.
Comment #12
ridhimaabrol24 commentedDid the changes as mentioned in #10.
Comment #13
ridhimaabrol24 commentedComment #14
quietone commented@ridhimaabrol24, thanks the change looks good.
I redid the steps in #10 just to be sure. There was a failing test but it was unrelated so I retested the patch and it passes all tests. Onward.
Comment #15
xjmDo we know why these were marked legacy in the first place? I blamed the first one and it was introduced in #2409435-87: Upgrade path for Book 6.x and 7.x (comment 87 of that issue) without specific explanation, but the test hadn't been failing in the patch before that.
Comment #16
xjmAdding reviewer credit. Also leaving credit for @aleevas for #7, but in the future please read the issue more carefully to get credit. Thanks!
Comment #17
alexpottThese were probably marked legacy because of deprecated plugins.
For example in D8 there's \Drupal\Tests\book\Kernel\Plugin\migrate\source\BookTest::testDeprecatedPlugin() The patch that removed that should have remove this.
Also running \Drupal\Tests\migrate_drupal\Unit\MigrationStateUnitTest in D8 without the legacy group triggers
Some of them don't trigger deprecations in D8 either.
I think we should have a follow-up issue to evaluate the other 43 instances in D9 core and remove them. But I also think that doing this on its own is fine. It's great to be sure that we're not triggering deprecated code in Drupal 9 migration tests.
Comment #18
alexpottBackported to 9.0.x as this is a test only change.
Comment #21
alexpottComment #22
xjmTo review the other 43.
Comment #23
quietone commentedFollow up, #3136389: Remove '@group legacy' from tests that do not exercise deprecated code