Skip to content

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Dec 3, 2025

In #546, we upgraded vitest from v3 to v4. I'm not sure why, but this broke the test that asserts the parsing speed of short vs long strings. Now the ratio is above the threshold about 80% of the time (on my machine), being consistently in the range of 300-400.

This PR increases the threshold slightly (to 300 instead of 250) and retries the one test up to three times if it fails. The tests reliably passed (50/50 runs) with this configuration.

Copy link
Member

@awaterma awaterma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may want to increase this a little bit more, like 350? But I'm good with this either way.

@wjhsf wjhsf merged commit c5f7706 into master Dec 12, 2025
11 checks passed
@wjhsf wjhsf deleted the wjh/flaky-timing branch December 12, 2025 19:28
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.

3 participants