- Issue created by @spokje
- π³π±Netherlands spokje
Whilst we're only trying to fix
CommentPreviewTest::testCommentPreview
here, this means making changes in\Drupal\user_hooks_test\Hook\UserHooksTest
.
In turn, those changes affect the following tests:\Drupal\Tests\comment\Functional\CommentPreviewTest::testCommentPreview
\Drupal\Tests\user\Kernel\UserEntityLabelTest::testLabelCallback
\Drupal\Tests\user\Functional\UserEditTest::testUserEdit
\Drupal\Tests\user\Functional\UserTokenReplaceTest::testUserTokenReplacement
So I think we have to run our multiple-run tests on all of them before and after the chage.
MR !10711 Has some pipeline changes to make those tests, and only those tests, run 2500 times and gives us 28 fails out of the 2500 runs. Those fails are all in
\Drupal\Tests\comment\Functional\CommentPreviewTest::testCommentPreview
MR !10712 shows that changing \Drupal::state()->set()/get() to Drupal::keyValue()->set()/get(); passes a 2500 times run on all four mentioned tests without errors.
- Merge request !10713\Drupal::state()-get()/set() to Drupal::keyValue()->get()/set() β (Closed) created by spokje
- πΊπΈUnited States smustgrave
Based on the other one reviewed and merged this seems like a good refactor.
- πΊπΈUnited States smustgrave
For 1 open thread
If you are another contributor eager to jump in, please allow the original poster @spokje at least 48 hours to respond to feedback first, so they have the opportunity to finish what they started!
- π³π±Netherlands spokje
I'm not getting anywhere with the remark in the MR, so throwing it out in the open for other, bigger brains.
- π³π±Netherlands spokje
spokje β changed the visibility of the branch 11.x to hidden.
- πΊπΈUnited States smustgrave
Believe all feedback has been addressed on this one.
- π¬π§United Kingdom catch
Committed/pushed to 11.x and cherry-picked back to 11.1.x.
This doesn't apply to 11.0/10.5/10.4 due to OOP hooks, moving to 'to be ported'.