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

release pipeline related fixes #1435

Merged
merged 18 commits into from
Sep 3, 2024
Merged

Conversation

sfc-gh-pmardziel
Copy link
Contributor

@sfc-gh-pmardziel sfc-gh-pmardziel commented Aug 30, 2024

Description

  • Fixes a few things that got broken in the execution of old notebooks.

  • Fixes a few tests that were run as part of the release pipeline.

    • Removed database_file arg as it was a deprecation warning for a long time.

    • Added more optional deps to the tests-optional group in pyproject.toml as they are required for the release tests.

    • Fix to App.select_context to be more informative in case optional modules are not installed.

    • Updated versions of various llama_index dependencies in pyproject.toml as I was finding bugs in older versions.

    • Small fix to TruChain.main_input for an edge/new case.

    • Typo fix in n_cortext_guardrails_tokens.

    • Added Record.__str__ to print fewer, and more useful things than default __str__ from pydantic: the calls and their paths.

    • Refactored JSONTestCase as I might need to extend other things than unittest.TestCase for async tests.

    • Temporarily disabled deprecation.class_moved mechanism due to interference with serialization. Also disabled the related unit test.

  • TODO (will make a new PR for this) fix async handling. Started work on this but it is incomplete.

Other details good to know for developers

Please include any other details of this change useful for TruLens developers.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • New Tests
  • This change includes re-generated golden test results
  • This change requires a documentation update

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. dependencies Pull requests that update a dependency file labels Aug 30, 2024
@sfc-gh-pmardziel sfc-gh-pmardziel changed the title upgrade llama_index reqs and testing of old notebooks release pipeline related fixes Aug 30, 2024
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Aug 30, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

tests/test.py Outdated Show resolved Hide resolved
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 3, 2024
@sfc-gh-pmardziel sfc-gh-pmardziel merged commit 51f5d34 into main Sep 3, 2024
7 checks passed
@sfc-gh-pmardziel sfc-gh-pmardziel deleted the piotrm/test_old_notebooks_again branch September 3, 2024 20:47
sfc-gh-chu pushed a commit that referenced this pull request Sep 25, 2024
* upgrade llama_index reqs and testing of old notebooks

* disable part of deprecation tests

* nit

* fixing golden serial and dummy

* fixing more tests

* fix app_id -> app_name

* fix more test_tru_session tests

* fixing more

* put placeholder data back for async results

* working on async issues

* PR comment fixes

* nits

* docs update

* another note

* nit to docs

* disable prints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants