Problem/Motivation
The people at the county fair,
Were shocked asethey heard a loud blare:A bear, a bear!
it's right over there, it's right over there!
I swear, I swear!
It shouldn't be there, It _shouldn't_ be there!And one said with some flair:
And why exactly, should we care?
Because it causes a random ExpectationFailedException, you fake Dr. Suess!
1) Drupal\Tests\media_library\FunctionalJavascript\EntityReferenceWidgetTest::testWidget
"Bear" was found but shouldn't be there.
Failed asserting that a boolean is not empty.
/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/var/www/html/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php:86
/var/www/html/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php:212
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
And add to that,
the appearance of a cat!
Which is bad,
because the place it's at,
has no need for a cat.
O no, we don't want that!
Oh, shut up!
It seems that a similar random failure occurs (less frequently than the above one) later on in the test:
1) Drupal\Tests\media_library\FunctionalJavascript\EntityReferenceWidgetTest::testWidget
Behat\Mink\Exception\ResponseTextException: The text "Cat" appears in the text of this page, but it should not.
/var/www/html/vendor/behat/mink/src/WebAssert.php:811
/var/www/html/vendor/behat/mink/src/WebAssert.php:279
/var/www/html/core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php:417
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3191559
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3191559-random-test-failure
changes, plain diff MR !8821
Comments
Comment #2
catchComment #3
spokjeGot a different incarnation in https://www.drupal.org/pift-ci-job/2038024
Comment #4
spokjeAnother one
bites the dustrears its ugly head here.Comment #7
andypostgot it on https://www.drupal.org/pift-ci-job/2318927
Comment #10
catch#3353394: [random test failure] Try to un-skip and fix EntityReferenceWidgetTest::testWidget in context of [#3353085] shows this still fails.
Comment #12
spokjeComment #13
spokjeComment #14
spokjeComment #15
spokjeComment #18
longwaveHopefully this one has gone away either with the move to GitLab or some other fix we have made in the past two years.
https://git.drupalcode.org/project/drupal/-/jobs/2161099 ran 100x with no fails.
https://git.drupalcode.org/project/drupal/-/jobs/2161218 running 500x, if that doesn't fail either then I suggest we revert the skip.
Comment #19
longwave500x job failed due to a GitLab runner system failure, trying again at https://git.drupalcode.org/project/drupal/-/jobs/2161641
Comment #20
longwaveDoesn't seem to be able to run more than 150 or so without crashing the entire runner, but we do now have 500 runs or so with no actual failures.
Comment #21
smustgrave commentedCan the gitlab change be removed and don't mind marking
Comment #22
longwaveDone.
Comment #23
smustgrave commentedAnd done!
Comment #28
catchJust want to stop briefly to appreciate one of the best issue summaries in recent memory.
Committed/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!