Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Sep 15, 2025

Description

Problem

It has been flaky with rolldown. I'm suspecting this is because it puts more pressure on CI resource and running tests in parallel (currently workers: 2) makes browser slower.

Solution

This PR tweaks flaky assertion's timeout and also tweaked recording options https://playwright.dev/docs/test-use-options#recording-options to improve debugging.


After thought

Actually the issue seems different. The error is actually not during waitForHydration polling, but it just errors out on first page.locator(locator).evaluate(...) call.

helper.ts:13
Error: locator.evaluate: Execution context was destroyed, most likely because of a navigation

Also "Console" and "Network" trace suggest there's indeed a full reload somehow:

screenshots image image

Well, actually this is not the case for the trace from different failures https://github.com/vitejs/vite-plugin-react/actions/runs/17721044144/job/50353326025, so the cause is still unclear. Anyways, let's merge this one for now.

@hi-ogawa hi-ogawa marked this pull request as ready for review September 15, 2025 03:57
@hi-ogawa hi-ogawa merged commit 456449d into main Sep 15, 2025
24 of 25 checks passed
@hi-ogawa hi-ogawa deleted the 09-15-test_rsc_tweak_timeout branch September 15, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant