Fix remaining issue where VRT test fails in CI when launching Chromium #9406
Labels
P0
High priority
QA: Eng
Requires specialized QA by an engineer
Team M
Issues for Squad 2
Type: Bug
Something isn't working
Type: Infrastructure
Engineering infrastructure & tooling
Bug Description
The fix applied via #9211 has improved the reliability of our VRT workflow, however it is still failing with some regularity with the following error:
It does however look like a potentially different permutation of the error - in the example occurrences it's surrounded by "Unmatched GET" log messages which were not evident in previous iterations.
Steps to reproduce
Screenshots
Additional Context
See the Additional Context section on #9211 for some relevant avenues that remain to be explored for the fix.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Note, additional issues should be raised if needed to follow up on separate avenues of investigation.
Implementation Brief
This IB is based on debug work in the PR #9412.
Update
docker/backstopjs/Dockerfile
to install chromium and it's requirements in a separate step and pass thePUPPETEER_EXECUTABLE_PATH
constant like so:site-kit-wp/docker/backstopjs/Dockerfile
Lines 7 to 25 in 60f81f1
Why? This was based on notes in puppeteers troubleshooting docs. Alpine is not officially supported by chromium, so installing the required packages along with the install is vital.
This new version of chromium will render many components slightly differently, so you need to run and update the VRT images once. After this is done future VRT runs will pass consistently (eg.).
Also this change highlights some new failing tests:
AudienceSegmentation_Dashboard_AudienceSelectionPanel_Audience_creation_notice
andViews/WPDashboardApp/WPDashboardWidgets/ReadyWithActivateAnalyticsCTA
for unknown reasons:Modules/Analytics4/Components/AudienceSegmentation/Dashboard/AudienceSelectionPanel/AudienceCreationNoticeOneAdded
story allows this test to pass reliably.Views/WPDashboardApp/WPDashboardWidgets/ReadyWithActivateAnalyticsCTA
story.AdSense_Module_Overview_Widget
which was another case of theDataBlockGroup
component causing issues (just like Fix flaky VRT tests #9101)stories/module-adsense-components.stories.js
to all be in the year 2021.Why?: The goal here is to update the faker seed so that we get smaller numbers which prevent the DataBlockGroup from iterating too much over the font size. By changing these years the data is smaller and the VRTs pass reliably. We will fix this more robustly in Update DataBlockGroup to avoid workarounds for VRTs to work #9419.
Test Coverage
QA Brief
Visual Regression Testing / Run VR Tests
check on this ticket and confirm it complete successfully.Changelog entry
The text was updated successfully, but these errors were encountered: