Failed with a fatal error.

Fatal error: Call to a member function getTranslation() on a non-object in /var/lib/drupaltestbot/sites/default/files/checkout/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php on line 289
FATAL Drupal\system\Tests\Entity\EntityTranslationTest: test runner returned a non-zero error code (255).

http://qa.drupal.org/pifr/test/348788

I have the test report saved locally in case the link above get's re-tested or otherwise lost...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lars Toomre’s picture

Patch in #1798376-1: Remove t() from test asserts in Translation module is also tripping over this issue.

jthorson’s picture

Patch in the linked issue from #1 passed on retest. Re-queuing this one too ... if it passes, tag this as 'Random test failure' and bounce to core.

Lars Toomre’s picture

Thanks jthorson. There also was another failue to this in #1797410-9: Remove t() from asserts for G-L includes system tests. That result was not overridden.

jthorson’s picture

Title: Test failures in Entity translation tests » Random Test failures in Entity translation tests
Project: Drupal.org Testbots » Drupal core
Version: » 8.x-dev
Component: unexplained test failure » entity system
Priority: Normal » Major
Issue tags: +Random test failure

Passed on retest ... that's two for two on this particular failure.

Reclassifying as intermittent test failure and bouncing to core.

Berdir’s picture

Gotcha! ;)

The problem is that entity translation tests sometimes generate a random uid with the value 0. Which is a valid value IMHO. Due to a !empty() instead of an isset(), this value is ignored and so it is never set and NULL is returned for $entity->user_id->value when it's saved to the database. NULL doesn't equal 0 in the database so the EFQ fails and can't load the entity. Kaboom.

Status: Needs review » Needs work

The last submitted patch, fixed-zero-can-not-be-set-1798382-5-test-only.patch, failed testing.

Berdir’s picture

Status: Needs work » Needs review
alexpott’s picture

Priority: Major » Critical
Status: Needs review » Reviewed & tested by the community

Looks great! Excellent find! Bumping priority as random test failures should always be critical.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Awesome find, thanks!

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.