- Issue created by @catch
- Status changed to Needs review
about 1 year ago 7:47am 6 October 2023 - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass - 🇬🇧United Kingdom catch
Well that didn't work, what about just leaving it at $lcp_count === 2.
- last update
about 1 year ago 2 pass - 🇬🇧United Kingdom catch
That seems to work, but it will make the tests ridiculously slow on pages that only have a single largest contentful paint event, there's already a follow-up to optimize this though 📌 Optimize PerformanceTestBase largest contentful paint detection Active which should be pretty stable too (possibly more because it will stop polling only once paint and network events stop coming through in the logs).
- last update
about 1 year ago 30,377 pass - 🇬🇧United Kingdom catch
Without the 100x stuff, and marking with @group #slow.
- last update
about 1 year ago 2 pass - 🇳🇱Netherlands spokje
Looks like this comment needs an update?
diff --git a/core/tests/Drupal/Tests/PerformanceTestTrait.php b/core/tests/Drupal/Tests/PerformanceTestTrait.php @@ -143,7 +143,7 @@ protected function processChromeDriverPerformanceLogs(?string $service_name): Pe } // Only check once if $service_name is not set, since // largestContentfulPaint is not currently asserted on. - if ($lcp_count === 2 || !isset($service_name)) { + if ($lcp_count === 2) { break; } sleep(1);
Also, do we want to fix a test by making it slower whilst waiting on another issue to make it better?
Personally this feels like we should rollback the original issue, but that's probably just me. - last update
about 1 year ago CI aborted - 🇬🇧United Kingdom catch
Started looking at 📌 Optimize PerformanceTestBase largest contentful paint detection Active and maybe it is this simple?
- last update
about 1 year ago CI aborted - last update
about 1 year ago CI aborted - last update
about 1 year ago 2 pass - 🇬🇧United Kingdom catch
Apparently git add isn't simple enough for me... complete patch this time.
- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 30,377 pass - @catch opened merge request.
- 🇬🇧United Kingdom catch
OK that approach is looking good and should result in much faster telemetry tests once we have an otel endpoint connected. Converted to an MR.
- last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,377 pass - 🇬🇧United Kingdom catch
Got this on ManageFieldsFunctionalTest (which isn't functional javascript so not affected by any of these tests):
1)
Drupal\Tests\field_ui\Functional\ManageFieldsFunctionalTest::testDefaultValue
Drupal\Core\Installer\Exception\InstallerException: Resolve all issues
below to continue the installation. For help configuring your database
server, see the installation handbook, or contact your hosting
provider.Failed to connect to database. The database engine reports the
following message: SQLSTATE[HY000]: General error: 5 database is
locked.Does the database file exist?Does web server have permission to
write to the database file?Does the web server have permission to write to
the directory the database file should be created in?
Everything else is green so ready for review I think.
- last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 2 pass - 🇬🇧United Kingdom catch
Tested locally with the otel stack and giving up as soon as the performance log is empty is too aggressive, but if we wait for at least one lcp event and then check for an empty log, it seems fine.
I think this is a good incremental improvement to get rid of the random test failure, but also will see if we can do more in 📌 Optimize PerformanceTestBase largest contentful paint detection Active like possibly checking for an equal number of http requests and responses instead of, or as well as, the LCP event.
- Status changed to Needs work
about 1 year ago 10:13am 6 October 2023 - 🇳🇱Netherlands spokje
I've been shot down for random-test-failure-fixing patches for the below:
I think this needs a test with the change running 8500-10.000x failure free, whilst at the same time running a test running the current situation (in this case even 100x will fail a lot on sqllite).
Also currently the MR (if that's what should be committed?) is running one test only, so no matter the above, this isn't NR at the moment, me thinks.
- last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,377 pass - 🇬🇧United Kingdom catch
Let's see if we can get 200 runs out of drupalci.
Also fixed up the MR cruft.
- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - Status changed to Needs review
about 1 year ago 1:51pm 6 October 2023 57:57 56:41 Running52:19 50:07 Running- 🇬🇧United Kingdom catch
Additional check that the number of requests made and responses returned is the same. This is as robust as I can think of. Also expanded the code comments to explain the logic.
52:05 49:57 Running52:05 49:57 Running46:13 42:08 Running41:37 40:41 Running41:11 38:59 Running41:03 29:34 Running40:55 29:34 Running40:47 29:34 Running40:38 29:34 Running40:30 29:34 Running39:01 29:34 Running38:51 30:57 Running38:44 37:46 Running38:36 30:57 Running38:28 30:57 Running37:38 29:34 Running37:30 30:57 Running37:22 29:34 Running37:16 25:28 Running37:08 25:28 Running37:00 25:28 Running36:53 29:34 Running36:46 25:28 Running36:39 29:34 Running36:30 30:57 Running34:59 25:28 Running34:52 28:39 Running34:45 31:56 Running34:37 31:45 Running34:29 31:45 Running34:17 31:45 Running34:09 31:45 Running34:00 31:45 Running33:49 31:45 Running33:40 31:45 Running30:55 27:39 Running30:48 26:37 Running30:41 26:36 Running30:33 26:36 Running30:24 29:38 Running30:16 26:33 Running- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass 29:44 26:33 Running29:37 26:34 Running- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago CI aborted - last update
about 1 year ago CI aborted 21:36 16:37 Running21:22 16:37 Running21:16 16:37 Running21:06 16:37 Running20:59 15:42 Running20:52 14:40 Running20:45 14:40 Running- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - 🇬🇧United Kingdom catch
Seeing one or two test failures, but pretty sure these are generic random sqlite test failures the same as the one in #11, not related to this issue:
1) Drupal\Tests\demo_umami\FunctionalJavascript\PerformanceTest::testPagesAnonymous Drupal\Core\Installer\Exception\InstallerException: Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider.Failed to connect to database. The database engine reports the following message: SQLSTATE[HY000]: General error: 5 database is locked.Does the database file exist?Does web server have permission to write to the database file?Does the web server have permission to write to the directory the database file should be created in?
i.e. it's not complaining about trying to rm a non-empty directory.
- last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass, 2 fail - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - last update
about 1 year ago 2 pass - Status changed to RTBC
about 1 year ago 4:15pm 6 October 2023 - 🇳🇱Netherlands spokje
Thanks @catch, looks good to me.
_Very_ unsure if 🐛 Occasional locks on SQLite Active is about the same (known) problem, that, when running a test multiple times on SQLite, the DB locks.
But that problem hasn't got anything to do with the random that was fixed here.
If I understand 🐛 Occasional locks on SQLite Active correctly, the lock happened on a normal test-run where all test are ran only once?Anyway, this is RTBC for me.
- 🇬🇧United Kingdom catch
@Spokje oh interesting I forgot there's a locking issue specific to multiple runs of the same test, however I also saw the same error on
ManageFieldsFunctionalTest
on an MR run here, so maybe it's very occasional on real MR runs and very common when running the same test multiple times (although even this doesn't necessarily mean it's exactly the same problem as that issue, but the fix might be the same). - last update
about 1 year ago 30,377 pass - 🇳🇱Netherlands spokje
Thanks @catch, a final(?) question: After this is committed, will 📌 Optimize PerformanceTestBase largest contentful paint detection Active still be relevant?
- 🇬🇧United Kingdom catch
@Spokje with the latest MR, I don't have any further ideas, so I think 📌 Optimize PerformanceTestBase largest contentful paint detection Active will end up being a duplicate. At least until something else comes up which is not an impossibility with the chrome performance log..
-
longwave →
committed 93d24db9 on 11.x
Issue #3392125 by catch, Spokje: Random test failure in Drupal\Tests\...
-
longwave →
committed 93d24db9 on 11.x
- Status changed to Fixed
about 1 year ago 2:50pm 7 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.