Random test failure in Drupal\Tests\demo_umami\FunctionalJavascript\PerformanceTest

Created on 6 October 2023, about 1 year ago
Updated 7 October 2023, about 1 year ago

Problem/Motivation

Chromedriver can return an HTML page before aggregates are written to disk. This is by design for both the aggregation system and performance tests, but it looks like the writing to disk can happen during tearDown which is less good. Only affects sqlite.

Steps to reproduce

See test failures in @Spokje's 100x here:
https://www.drupal.org/project/drupal/issues/3352459#comment-15260203 Add OpenTelemetry Application Performance Monitoring to core performance tests Fixed

Proposed resolution

When collecting performance logs from chromedriver, keep polling until page events are no longer coming through, largest contentful paint has been recorded, and network requests have responded - this should ensure all network requests have completed before running tearDown.

Should also improve test performance when we're sending open telemetry data to an endpoint, since it will return earlier than the current largest contentful paint detection when there is only one of those events on a page (which happens in some scenarios).

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 3 hours ago

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024