checkly / public-roadmap

Checkly public roadmap. All planned features, updates and tweaks.
https://checklyhq.com
37 stars 7 forks source link

Add trace data when a browser check times out at 120 seconds #283

Open jonoc330 opened 1 year ago

jonoc330 commented 1 year ago

I did request this via support but wanted to flag this here as it's probably a feature.

Unfortunately when a browser check times out at 120 seconds, there is no trace data for me to detect why this occurred. This is extremely frustrating as I can't replicate the timeouts on my local machine, and they only happen sporadically, see my monitoring results below.

Additional context

Screenshot 2023-01-27 at 9 01 58 am Screenshot 2023-01-27 at 8 59 40 am
tnolet commented 1 year ago

@jonoc330 this is on our radar as we speak. We are looking at how to avoid this, or give you more actionable options to mitigate this.

tnolet commented 1 year ago

@jan-osch @Antoine-C do we have this on the radar?

Antoine-C commented 1 year ago

Hello @jonoc330,

Thanks for your feedback. Due to some internal limitations we can't output the trace nor videos on a check timeout. We noticed that the root cause for a lot of timing out checks comes from actions, so you can use the following to add a timeout to actions and your check should fail before the 120s limit. You'll have then traces and videos to help you understand what's going on.

const { test } = require('@playwright/test')

test.use({ actionTimeout: 10 * 1000 })

test('myTestCase', async ({ page }) => {
  // Test case
})