-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: tiktoken test timing assertions are unreliable in CI #3103
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
Comments
Timing assertions in CI environments can be challenging due to variability in system performance. Here are some strategies to handle these issues:
These approaches can help mitigate the impact of timing variability in CI environments and reduce false positives in your tests. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
We can remove it for now - Roo added that test and I didn't look closely. |
Test has been removed |
The tiktoken test is failing in CI due to timing assertions that cannot be reliably tested in a CI environment.
Timing-based tests are inherently flaky in CI environments due to varying system load, resources, and other factors outside our control.
The specific test failing is in
src/utils/__tests__/tiktoken.test.ts
line 140:@cte This test was recently added and is causing false positives in unrelated pull requests. What could be done to handle timing assertions in CI environments?
The text was updated successfully, but these errors were encountered: