Skip to content

chore(tests): fix many mainline test issues#190

Merged
averikitsch merged 3 commits into
googleapis:mainfrom
mtyin:fix-many-issues
Jul 21, 2025
Merged

chore(tests): fix many mainline test issues#190
averikitsch merged 3 commits into
googleapis:mainfrom
mtyin:fix-many-issues

Conversation

@mtyin
Copy link
Copy Markdown
Contributor

@mtyin mtyin commented Jul 16, 2025

  1. test_spanner_vector_store's dependency on HNLoader fails

    • use a different loader
  2. test_spanner_vector_store's add_document failed with PK size exceeded
    (this is due to 1, the loader now returns slightly longer content)

    • use a different url
  3. test_spanner_loader doesn't properly clean up the test so that now
    testing database has too many tables

    • add cleanup for these tests
  4. change the default test databases:

    • the old ones are extremely slow due to too many schema objects, I tried to clean it up but it takes too long time.
    • in my local run, all tests now clean up their mess upon completion

mtyin added 2 commits July 16, 2025 15:16
1) test_spanner_vector_store's dependency on HNLoader fails
   - use a different loader
2) test_spanner_vector_store's add_document failed with PK size exceeded
   (this is due to 1, the loader now returns slightly longer content)
   - use a different url
3) test_spanner_loader doesn't properly clean up the test so that now
   testing database has too many tables
   - add cleanup for these tests
@mtyin mtyin requested review from a team July 16, 2025 22:29
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/langchain-google-spanner-python API. label Jul 16, 2025
@mtyin
Copy link
Copy Markdown
Contributor Author

mtyin commented Jul 17, 2025

/gbrun

@mtyin
Copy link
Copy Markdown
Contributor Author

mtyin commented Jul 17, 2025

/gcbrun

The old databases are extremely slow due to too many schema objects
Also verified pytest test/integrations/ properly cleaned up upon test
completion
@mtyin mtyin requested a review from averikitsch July 18, 2025 16:28
@mtyin
Copy link
Copy Markdown
Contributor Author

mtyin commented Jul 18, 2025

@jordimas, feel free to retry your PR submission after this fix.
@amullick-git could you work with jordi on the release after the fix?

@mtyin mtyin requested a review from amullick-git July 18, 2025 16:52
@averikitsch averikitsch removed the request for review from amullick-git July 21, 2025 16:30
@averikitsch averikitsch changed the title fix(main): fix many mainline test issues chore(tests): fix many mainline test issues Jul 21, 2025
@averikitsch averikitsch merged commit 67b3950 into googleapis:main Jul 21, 2025
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/langchain-google-spanner-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants