See attached. I am sure this is the source of quite a few mysterious fails. When debugging my update bug sometimes, rarely, it passes, but mostly it failes. I am sure it's sometimes the other way 'round.

Files: 
CommentFileSizeAuthor
order.txt1.77 KBchx

Comments

larowlan’s picture

We have DependencyHookInvocationTest.php to test the order is correct, is it possible that we have a circular dependency?

larowlan’s picture

Modules implementing hook_update_dependencies().

core/modules/block/block.install
core/modules/contact/contact.install
core/modules/overlay/overlay.install

All of these are concerned with getting the users_data sorted so there is no reason why user.module updates should come before the system.module ones

chx’s picture

DependencyHookInvocationTest only tests when dependencies are enabled. The order does seem to be the same all the time but when it looks like I won't trust it...

Berdir’s picture

Title: Random test failures: Updates are run in no particular order » Updates are run in no particular order
Priority: Critical » Normal
Issue tags: +Random test failure

As discussed with @chx, changing the priority of this to normal.

I haven't seen random upgrade path test failures like we used to have frequently in quite a while and while this does look strange, it is IMHO neither critical nor major until we have proof that this actually causes problems with the upgrade path.

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#211182: Updates run in unpredictable order

Closing this in favor of #211182: Updates run in unpredictable order which has several patches and over 200 comments.

DamienMcKenna’s picture

Status: Closed (duplicate) » Active

Sorry, I hadn't realized the other issue was committed and that this is a symptom of the problem still existing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.