[LangChain] Test regression in test_cache

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • langchain-mongodb-0.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Not Needed
    • 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

      We appear to have a regression causing failures in tests/unit_tests/test_cache.py.

      This was likely due to a downstream update that we failed to catch in a PR. As part of this ticket, we should audit the GitHub workflow filtering for when the tests are run.

      The failures are of the form:

      >       assert output == expected_output  # type: ignore
      E       AssertionError: assert LLMResult(gen...e='LLMResult') == LLMResult(gen...e='LLMResult')
      E         
      E         Full diff:
      E         - LLMResult(generations=[[ChatGeneration(text='foo', message=AIMessage(content='foo', additional_kwargs={}, response_metadata={}))]], llm_output={}, run=None, type='LLMResult')
      E         ?                                                                                                                                                        ^^^^^
      E         + LLMResult(generations=[[ChatGeneration(text='foo', message=AIMessage(content='foo', additional_kwargs={}, response_metadata={}, usage_metadata={'total_cost': 0}))]], llm_output={}, run=[RunInfo(run_id=UUID('8606de79-6065-47f8-8dfc-93a0b3cd5de9'))], type='LLMResult')
      E         ?                                                                                                                              ++++++++++++++++++++++++++++++++++                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      

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

                Created:
                Updated:
                Resolved: