Needs review
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Aug 2026 at 07:15 UTC
Updated:
21 Aug 2026 at 01:44 UTC
Jump to comment: Most recent
Comments
Comment #3
catchNot sure how much this does, but to really optimize it a lot more we'd need to split entity_test into multiple modules probably so that there's less entity types in the system at any one time or completely remove the dependency on entity_test in this test.
Comment #4
smustgrave commentedNot sure how to measure but seems to be passing, minus the almost consistent JS failures now.
Comment #5
mstrelan commentedFound some more optimisations.
For reference, here are the test times from one run on my machine:
main: 143.2s
MR (d37bcab4): 82.2s
additional optimisations: 42.8s
Comment #6
catchThat sounds worth doing. I was wondering about opening an issue top split entity_test module up so it's closer to a module per entity type or something but that seemed like a lot of work. This might achieve the same thing.
Comment #7
mstrelan commentedOK I pushed my changes. I was a little concerned about the words "Multiple Types" in the class name
EntityDefinitionUpdateMultipleTypesTestbut then found it was only after splitting in #3492944: Split up EntityDefinitionUpdateTest. Are we losing coverage here or is this fine?Also note a few minor assertion changes. We can roll those functions back if needed.
Comment #8
catchIt's only called multiple types because it explicitly relies on a handful of different entity types. The implicit extra entity types I really don't think we are losing anything except wasted time and CPU running the test.