[LangChain] TimeoutErrror in cache tests

XMLWordPrintableJSON

    • 🔵 Done
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[True-MongoDBAtlasSemanticCache-plain_cache] - TimeoutError: Didn't ever ...

      https://spruce.mongodb.com/task/ai_ml_pipeline_testing_test_langchain_python_rhel_test_langchain_python_remote_68af9881b1b5ab0007564a70_25_08_27_23_45_05/logs?execution=0

      This only occurs with the remote Atlas tests.

      [2025/08/27 19:41:36.225] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[True-MongoDBAtlasSemanticCache-plain_cache] - TimeoutError: Didn't ever [Generation(text='fizz')]
      [2025/08/27 19:41:36.225] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[True-MongoDBAtlasSemanticCache-cache_with_llm] - TimeoutError: Didn't ever [Generation(text='fizz')]
      [2025/08/27 19:41:36.225] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[True-MongoDBAtlasSemanticCache-cache_with_chat] - TimeoutError: Didn't ever [ChatGeneration(text='foo', message=AIMessage(content='foo', additional_kwargs={}, response_metadata={}))]
      [2025/08/27 19:41:36.226] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[False-MongoDBAtlasSemanticCache-plain_cache] - TimeoutError: Didn't ever [Generation(text='fizz')]
      [2025/08/27 19:41:36.226] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[False-MongoDBAtlasSemanticCache-cache_with_llm] - TimeoutError: Didn't ever [Generation(text='fizz')]
      [2025/08/27 19:41:36.604] FAILED tests/integration_tests/test_cache.py::test_mongodb_cache[False-MongoDBAtlasSemanticCache-cache_with_chat] - TimeoutError: Didn't ever [ChatGeneration(text='foo', message=AIMessage(content='foo', additional_kwargs={}, response_metadata={}))]
      [2025/08/27 19:41:36.604] FAILED tests/integration_tests/test_cache.py::test_mongodb_atlas_cache_matrix[single_prompt_two_generations] - TimeoutError: Didn't ever [Generation(text='9a55ab62-2f53-4b3b-9aa7-f4a8a0cccd0b', generation_info={'_type': 'fake', 'stop': None}), Generation(text='d5b1c8d6-23a1-4e1f-b2ed-591e2c12d348', generation_info={'_type': 'fake', 'stop': None})]
      [2025/08/27 19:41:36.604] FAILED tests/integration_tests/test_cache.py::test_mongodb_atlas_cache_matrix[single_prompt_three_generations] - TimeoutError: Didn't ever [Generation(text='776c207f-f2c1-4df7-a298-51e4e57bdd9f', generation_info={'_type': 'fake', 'stop': None}), Generation(text='83c6ede2-7686-4c65-a515-4a80e27a44e2', generation_info={'_type': 'fake', 'stop': None}), Generation(text='5c754d83-b6a5-49ef-91f4-d43c04c6fdc0', generation_info={'_type': 'fake', 'stop': None})]
      [2025/08/27 19:41:36.604] ====== 8 failed, 108 passed, 2 skipped, 62 warnings in 3052.11s (0:50:52) ======
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: