Needs review
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2026 at 22:31 UTC
Updated:
28 Apr 2026 at 14:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
godotislateReplaced state with keyvalue and changed to a kernel test in MR 15551.
Comment #4
godotislateComment #5
godotislateWorking on this gave me the idea that similar to how kernel tests can define their own hook implementations, it'd probably be useful for them to be able to define their own routes as well. So I opened #3586832: Allow kernel test classes to define their own routes. MR is ready; it was pretty easy lift.
Comment #8
longwaveIMO we don't need the
drupalGet()calls at all -HelpTopicTest::verifyHelp()already does a smoke test of the controller, I don't think we explicitly need to test each page load. If we don't do the refactoring here either then the change is easier to read too.Locally MR!15577 runs in under 9 seconds:
Comment #9
godotislateThere are still a lot of State storage writes, which is the main impetus for this issue, and caused the test run to take 20 minutes when #3496257: Race conditions in CacheCollector/State (again) was in.
Comment #10
longwaveShould we merge the two MRs together then, if you agree that we can drop the
drupalGet()calls?Comment #11
godotislateYeah, that sounds good.
Comment #13
longwaveMerged the two together, also split out the
nodeVisitorProcessingInformationarray to individual variables, then realised we don't even need one of them (max chunk and chunk count were the same!) so refactored that away as well.edit: @godotislate I just realised I overwrote your changes.. but I think my merge commit is effectively the same, just then I went a bit further with the refactoring?
Comment #14
needs-review-queue-bot commentedThe 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.
Comment #15
godotislateFixed merge conflict.