Closed (fixed)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2025 at 01:33 UTC
Updated:
18 Feb 2026 at 08:52 UTC
Jump to comment: Most recent
I think this is only on mariadb, there's two random failures:
Drupal\Tests\canvas\Kernel\Entity\JavascriptComponentAccessTest::testAccess
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
Array &0 [
'canvas_page' => Array &1 [
- 1 => '1',
2 => '1',
3 => '1',
+ 1 => '1',
],
]
/builds/project/canvas/tests/src/Kernel/Entity/JavascriptComponentAccessTest.php:146
Drupal\Tests\canvas\Functional\ApiUiContentTemplateControllersTest::testSuggestPreviewContentEntities
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
Array &0 [
- 3 => Array &1 [
+ 6 => Array &1 [
+ 'id' => '6',
+ 'label' => 'Entity LAST',
+ ],
+ 3 => Array &2 [
'id' => '3',
'label' => 'Updated article',
- ],
- 6 => Array &2 [
- 'id' => '6',
- 'label' => 'Entity LAST',
],
1 => Array &3 [
'id' => '1',
/builds/project/canvas/tests/src/Functional/ApiUiContentTemplateControllersTest.php:817
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:
Comments
Comment #3
penyaskitoThis actually has little to do with db engines as far as I see.
They pass reliable on all of them when the timestamps are explicit.
Comment #4
penyaskitoThis is passing consistently for me on mariadb, and also on CI.
Locally I tried with something like:
seq 5 | xargs -Iz ddev xb-phpunit tests/src/Functional/ApiUiContentTemplateControllersTest.php --filter testSuggestPreviewContentEntitiesComment #6
penyaskitoMerged!
Comment #9
wim leersThanks @penyaskito for pointing me here from #3571997!
In doing so, I noticed that this MR could not have fixed the first random failure reported here, see #3571997-37: CI: auto-retry known random Cypress E2E failures + PHPUnit's dreaded "RecursiveDirectoryIterator failed to open directory" (since Drupal 11.2) + ComponentAudit DB-dependent result order + Playwright flakiness for why.