-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix DB unittest reliability (#4548)
* Remove busywait * Ruff 🐶 * Use closure loop * Use nest-asyncio for nested asgi fixture management * Wait for db insertions before reading in test * Ensure the entire experiment has run * Experiment with locks * xfail unstable tests * Use asyncio.sleep before querying database after client interactions * Ruff 🐶 * Reduce number of evaluators to make tests more reliable * Only bypass lock for unittests * Convert to an integration test * Set default loop scope for unit tests * Remove loop policy * xfail tests where evals do not reliably write to the database * Ensure databases are function scoped * Ensure inmemory sqlite testing * Ruff 🐶 * Wipe DBs between tests * Continue github actions on error * Use async sleep in spans test * Remove needless import * Refactor engine setup to potentially reduce deadlock risk * Wait for evaluations for more stable tests * Don't continue on failure * Ruff 🐶 * BulkInsterters insert immediately in tests * Remove xdist * Increase timeout to 30 * Xfail test * Use shared cache * Use tempfile based sqlite db * Use tempdirs for windows compatibility * Xfail test again * Wait a waiter to llm eval test * Skip flaky tests only on windows and mac
- Loading branch information
1 parent
8be4330
commit 29460c5
Showing
8 changed files
with
219 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.