uasort(): Array was modified by the user comparison functionuasort(Array, Object)
Drupal\views\Entity\View->mergeDefaultDisplaysOptions()
Drupal\views\Entity\View::postLoad(Object, Array)
Drupal\Core\Entity\EntityStorageControllerBase->postLoad(Array)
Drupal\Core\Config\Entity\ConfigStorageController->loadMultiple(Array)
Drupal\views\ViewStorageController->loadMultiple(Array)
Drupal\views\Views::getApplicableViews('uses_route')
Drupal\views\EventSubscriber\RouteSubscriber->getApplicableViews()
Drupal\views\EventSubscriber\RouteSubscriber->getViewsDisplayIDsWithRoute()
Drupal\views\EventSubscriber\RouteSubscriber->alterRoutes(Object, 'config_test')
Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes(Object, 'routing.route_alter', Object)
call_user_func(Array, Object, 'routing.route_alter', Object)
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'routing.route_alter', Object)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch('routing.route_alter', Object)
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('routing.route_alter', Object)
Drupal\Core\Routing\RouteBuilder->rebuild()
Drupal\Core\Routing\RouteBuilder->rebuildIfNeeded()
Drupal\config_translation\Tests\ConfigTranslationUiTest->testThemeDiscovery()
Drupal\simpletest\TestBase->run()
simpletest_script_run_one_test('148', 'Drupal\config_translation\Tests\ConfigTranslationUiTest')
Comments
Comment #1
longwaveHuh, maybe not. But it definitely happened in https://qa.drupal.org/pifr/test/742843 along with #2216701: Random test failure in ToolbarAdminMenuTest
Comment #2
sunDefinitely a problem, just re-occurred in https://qa.drupal.org/pifr/test/737658
However, this only happens rarely.
I wonder whether we should simply fix the faulty
position: {}values (to beposition: 0) in the views test config files and... "hope" ?Comment #3
longwaveconfig_translation-random-fail.patch queued for re-testing.
Comment #4
suni.e., I'd propose to just simply go ahead and commit attached patch.
Comment #5
sunComment #6
longwaveThe views YAML files are definitely malformed, so let's just get this in
Comment #7
alexpottCommitted ba3a839 and pushed to 8.x. Thanks!
Nice find!
Comment #8
longwaveHappened again in https://qa.drupal.org/pifr/test/745518
uasort(): Array was modified by the user comparison functionuasort(Array, Object) Drupal\views\Entity\View->mergeDefaultDisplaysOptions() Drupal\views\Entity\View::postLoad(Object, Array) Drupal\Core\Entity\EntityStorageControllerBase->postLoad(Array) Drupal\Core\Config\Entity\ConfigStorageController->loadMultiple(Array) Drupal\views\ViewStorageController->loadMultiple(Array) Drupal\views\Views::getApplicableViews('uses_route') Drupal\views\EventSubscriber\RouteSubscriber->getApplicableViews() Drupal\views\EventSubscriber\RouteSubscriber->getViewsDisplayIDsWithRoute() Drupal\views\EventSubscriber\RouteSubscriber->alterRoutes(Object, 'config_test') Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes(Object, 'routing.route_alter', Object) call_user_func(Array, Object, 'routing.route_alter', Object) Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'routing.route_alter', Object) Symfony\Component\EventDispatcher\EventDispatcher->dispatch('routing.route_alter', Object) Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('routing.route_alter', Object) Drupal\Core\Routing\RouteBuilder->rebuild() Drupal\Core\Routing\RouteBuilder->rebuildIfNeeded() Drupal\config_translation\Tests\ConfigTranslationUiTest->testThemeDiscovery() Drupal\simpletest\TestBase->run() simpletest_script_run_one_test('148', 'Drupal\config_translation\Tests\ConfigTranslationUiTest')
Comment #9
andypostThere's a lot test views in core that have 'null' as position
Comment #10
berdirNULL is fine, we verified that extensively.
None of those modules are enabled in that test, so I don't see how they should have fixed this :)
Time for some debugging I guess, will try a similar approach as in #2216701: Random test failure in ToolbarAdminMenuTest. Wouldn't be surprised if it's the same issue that caused it.
Comment #11
berdirThe other one was fixed, let's see if this one still happens...
Comment #12
berdir11: run-only-config-translation-ui-test-2216909.patch queued for re-testing.
Comment #13
longwave@Berdir: I couldn't reproduce it with that same patch in #0, I don't know a guaranteed way of triggering it.
Comment #14
berdirI did run that test twice and id didn't happen anymore. Cool, I'm going to set it back to fixed/duplicate of the other. We can still re-open if it happens again.