Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) fix flaky test (hopefully) #2064

Merged
merged 10 commits into from
Jun 22, 2023

Conversation

jasonlyu123
Copy link
Member

@jasonlyu123 jasonlyu123 commented Jun 22, 2023

#2007

Our typescript-related tests usually time out because the typescript's internal building takes too long. This makes the test frequently fail in less performant machines and in test.only during development. This PR moves the internal building to the before hook with a 5000ms timeout. After moving the building out, most of the tests should be able to finish within 1s. So I also dropped the snapshot test timeout back to default. If we want to test potential performance degradation, we could also drop the timeout to 1500ms or even 1000ms in CI.

The performance test also fails quite frequently. GitHub CI runner probably isn't isolated enough, so the hardware performance fluctuates significantly. I changed it to benchmark first and then used the result to run the perf test.

@jasonlyu123 jasonlyu123 changed the title (chore) warmup ts service before running test (chore) fix flaky test (hopefully) Jun 22, 2023
@dummdidumm dummdidumm merged commit 48ae8ce into sveltejs:master Jun 22, 2023
2 checks passed
@dummdidumm
Copy link
Member

Nice ideas, let's hope this solves this!

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.

None yet

2 participants