Problem/Motivation
LocalePluralFormatTest::testPluralEditDateFormatter()
randomly fails with:
fail: [Other] Line 201 of core/modules/locale/src/Tests/LocalePluralFormatTest.php:
'Member for' text is translated.
See https://www.drupal.org/pift-ci-job/85244 (postgres) and https://www.drupal.org/pift-ci-job/80754 (mysql). Interestingly it seems to occur more often on postgres.
Another random fail (postgres only) was recently fixed in the same test in #2615776: LocalePluralFormatTest is failing on Postgres
Opening as critical. While I won't hold up the release on it, if we can resolve the random fail before tagging, I think that's worth doing.
Proposed resolution
Change the user created time as necessary to ensure the random fail cannot occur.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#9 | 7-9-interdiff.txt | 1023 bytes | alexpott |
#9 | 2618886-9.patch | 2.28 KB | alexpott |
#7 | 2618886-6.patch | 2.47 KB | alexpott |
Comments
Comment #2
catch[edit: not awake yet].
Comment #3
catchIgnore #2, that's a different test entirely.
Comment #4
alexpottI don't think it is just postgres it just seems to be more often on postgres from some reason - https://www.drupal.org/pift-ci-job/80754
I've run this test 100's of times locally and have not managed to reproduce :(
Comment #5
alexpottSo the reason why this test fails on Postgres more often then any other DB and has not failed on PHP7 is because it is timing based fail. Postgres is slower atm because the DB server is completely untuned.
So if the last access time a multiple of 60 then the test will fail.
Comment #6
YesCT CreditAttribution: YesCT commentedComment #7
alexpottHere's a fix that also improves the test.
Comment #8
Berdirmultiple :)
Comment #9
alexpottFixed #8 and removed an unused use.
Comment #10
catch#9 looks solid, and all green from the bot.
I think we should commit this today (now that 8.0.0 is tagged), to get DrupalCI back to all green again.
Comment #11
catchCommitted/pushed to 8.0.x, thanks!