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

Fixes issues with Async persisters #495

Merged
merged 5 commits into from
Jan 11, 2025
Merged

Conversation

elijahbenizzy
Copy link
Contributor

@elijahbenizzy elijahbenizzy commented Jan 11, 2025

Some issues:

  • Spelling with AsyncSQLitePersister
  • Imported library (aiosqlite) -- moved to plugins
  • Added tests for @copy

Important

Fixes issues with AsyncSQLitePersister, moves aiosqlite to plugins, and adds tests for @copy method.

  • Behavior:
    • Moved AsyncSQLitePersister to burr/integrations/persisters/b_aiosqlite.py.
    • Removed aiosqlite import from persistence.py and added it to b_aiosqlite.py.
    • Updated pyproject.toml to reflect aiosqlite as a plugin dependency.
  • Tests:
    • Added tests for AsyncSQLitePersister in test_b_aiosqlite.py.
    • Added test_copy_persister to verify copy() method functionality.
  • Documentation:
    • Updated persister.rst to reference AsyncSQLitePersister in the new location.
  • Misc:
    • Fixed spelling of AsyncSQLitePersister in test_persistence.py and other files.
    • Updated README.md in examples/openai-compatible-agent with new run instructions.

This description was created by Ellipsis for 62dcba0. It will automatically update as commits are pushed.

Copy link

github-actions bot commented Jan 11, 2025

A preview of 62dcba0 is uploaded and can be seen here:

https://burr.dagworks.io/pull/495

Changes may take a few minutes to propagate. Since this is a preview of production, content with draft: true will not be rendered. The source is here: https://github.com/DAGWorks-Inc/burr/tree/gh-pages/pull/495/

Moves them + adds tests for .copy().

Note we have tests for the in-memory implementation as well -- these are
duplicated. We're OK with that -- sharing tests between pytest files is
a bit ugly.
@elijahbenizzy elijahbenizzy marked this pull request as ready for review January 11, 2025 19:05
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 62dcba0 in 42 seconds

More details
  • Looked at 1012 lines of code in 9 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. burr/core/persistence.py:609
  • Draft comment:
    The alias AsyncSQLLitePersister should be updated to AsyncSQLitePersister to maintain consistency and avoid confusion.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
2. tests/core/test_persistence.py:4
  • Draft comment:
    The alias SQLLitePersister should be updated to SQLitePersister to maintain consistency and avoid confusion. This issue is also present in other parts of the code, such as in the persistence and initializing_persistence fixtures.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_and9EDz4yq5N5Sv2


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@elijahbenizzy elijahbenizzy merged commit ee6156d into main Jan 11, 2025
11 checks passed
@elijahbenizzy elijahbenizzy deleted the async-persister-fixes branch January 11, 2025 22:44
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.

2 participants