Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner created an issue. See original summary.

drunken monkey’s picture

Priority: Major » Normal
Status: Active » Needs review
FileSize
681 bytes

Fatal error: You have requested a non-existent service "entity_type.manager"

That's not the actual test fail/error. This merely seems to occur because a test fails, the query is serialized as part of the test data and then, upon unserialization, that error occurs. We already have defensive code in Query::__wakeup() to prevent this, but it's apparently still not good enough. The attached patch would improve it further. (Not sure, you can probably not test it via Travis like this?)

The test fail itself is probably just #2903633: Fix current test fails, which also failed on the d.o test bot. Let's see how the next Travis build looks.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Test is now green: https://travis-ci.org/mkalkbrenner/search_api_integration_tests/jobs/267... so no need to actually do this do fix the test.

I do like that this is now more defensive! Next time something like this breaks we can be sure that travis breaks in a more expected way, by just failing the test.

  • drunken monkey committed 1cd0c61 on 8.x-1.x
    Issue #2902810 by drunken monkey, borisson_: Made query serialization in...
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reviewing!
Yes, I also think it's a good idea to be on the safe side there.
Committed.

Status: Fixed » Closed (fixed)

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