Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In #2997960: Missing taxonomy hierarchy items in 8.6.0 after running taxonomy_update_8502 we changed \Drupal\Tests\taxonomy\Functional\Update\TaxonomyParentUpdateTest
to only do one entity update per batch by changing the value of the entity_update_batch_size
setting to 1.
Proposed resolution
We should generalize that setting for all update path tests.
Remaining tasks
Do it.
User interface changes
Nope.
API changes
Nope.
Data model changes
Nope.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3007606.patch | 1.44 KB | amateescu |
Comments
Comment #2
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThis should do it.
Comment #3
jibranWhy do we want to do this?
Comment #4
BerdirBecause we for example only caught a major bug in #2725523: Add a revision_parent field to revisionable entities with manual testing, where I was suspicious how fast the update was.
Writing batches correctly is hard, and this makes it more likely to catch bugs related to that.
Comment #6
Mixologicdispatcher/testbot issue. back to rtbc
Comment #7
alexpottCommitted and pushed c51bacbcc6 to 8.8.x and c86f4a26f6 to 8.7.x. Thanks!
This is a great idea. Batches are hard.