TypeError: Cannot read properties of undefined (reading 'SpeedIndex')
I was using the browser performing testing https://docs.gitlab.com/ee/ci/testing/browser_performance_testing.html#configuring-browser-performance-testing and I used a sitespeed option '--visualMetrics false' I got this error in the job log : ERROR: TypeError: Cannot read properties of undefined (reading 'SpeedIndex') Based on an investigation with sitespeed developer it's related to accessing visual metrics data as they always are existing, so when I turned it off it fails.The code needs to verify that message.data.statistics.visualMetrics exists first. https://gitlab.com/gitlab-org/quality/performance-sitespeed/-/blob/main/sitespeed/plugin/index.js?ref_type=heads#L44-55