$ -m pytest <scripts>/t19_tests/test_ls_plugin.py -p no:cacheprovider -rA --color=no
rc=1 wall=2.42s
--- stdout
============================= test session starts ==============================
platform darwin -- Python 3.13.12, pytest-8.4.2, pluggy-1.7.0
rootdir: <scripts>/t19_tests
plugins: platformdirs-4.14.5, langsmith-0.14.17, anyio-4.16.0
collected 5 items

test_ls_plugin.py FFFFF                                                  [100%]

=================================== FAILURES ===================================
_______________________________ test_marked_pass _______________________________

request = <FixtureRequest for <Function test_marked_pass>>, test_args = ()
test_kwargs = {}, i = 0
repetition_extra = {'cache': None, 'cached_hosts': None, 'client': None, 'experiment_metadata': None, ...}

    @functools.wraps(func)
    def wrapper(*test_args: Any, request: Any = None, **test_kwargs: Any):
        if disable_tracking:
            return func(*test_args, **test_kwargs)
    
        # Run test multiple times for repetitions
        for i in range(repetitions):
            repetition_extra = langtest_extra.copy()
>           _run_test(
                func,
                *test_args,
                pytest_request=request,
                **test_kwargs,
                langtest_extra=repetition_extra,
            )

../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:986: in _run_test
    test_case = _create_test_case(
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:947: in _create_test_case
    test_suite = _LangSmithTestSuite.from_test(client, func, langtest_extra.get("test_suite_name"), experiment_metadata)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:603: in from_test
    test_suite = _get_test_suite(client, test_suite_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:452: in _get_test_suite
    if client.has_dataset(dataset_name=test_suite_name):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5634: in has_dataset
    self.read_dataset(dataset_name=dataset_name, dataset_id=dataset_id)
../../../lab/.venv/lib/python3.13/site-packages/langsmith/utils.py:164: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5679: in read_dataset
    return ls_schemas.Dataset(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Dataset(), _host_url = 'https://smith.langchain.com', _tenant_id = None
_public_path = None, kwargs = {}

    def __init__(
        self,
        _host_url: Optional[str] = None,
        _tenant_id: Optional[UUID] = None,
        _public_path: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """Initialize a Dataset object."""
        if "inputs_schema_definition" in kwargs:
            kwargs["inputs_schema"] = kwargs.pop("inputs_schema_definition")
    
        if "outputs_schema_definition" in kwargs:
            kwargs["outputs_schema"] = kwargs.pop("outputs_schema_definition")
    
>       super().__init__(**kwargs)
E       pydantic_core._pydantic_core.ValidationError: 3 validation errors for Dataset
E       name
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       id
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       created_at
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing

../../../lab/.venv/lib/python3.13/site-packages/langsmith/schemas.py:366: ValidationError
------------------------------ Captured log call -------------------------------
WARNING  langsmith.client:_background_thread.py:573 Run compression is not enabled. Please update to the latest version of LangSmith. Falling back to regular multipart ingestion.
_______________________________ test_marked_fail _______________________________

request = <FixtureRequest for <Function test_marked_fail>>, test_args = ()
test_kwargs = {}, i = 0
repetition_extra = {'cache': None, 'cached_hosts': None, 'client': None, 'experiment_metadata': None, ...}

    @functools.wraps(func)
    def wrapper(*test_args: Any, request: Any = None, **test_kwargs: Any):
        if disable_tracking:
            return func(*test_args, **test_kwargs)
    
        # Run test multiple times for repetitions
        for i in range(repetitions):
            repetition_extra = langtest_extra.copy()
>           _run_test(
                func,
                *test_args,
                pytest_request=request,
                **test_kwargs,
                langtest_extra=repetition_extra,
            )

../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:986: in _run_test
    test_case = _create_test_case(
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:947: in _create_test_case
    test_suite = _LangSmithTestSuite.from_test(client, func, langtest_extra.get("test_suite_name"), experiment_metadata)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:603: in from_test
    test_suite = _get_test_suite(client, test_suite_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:452: in _get_test_suite
    if client.has_dataset(dataset_name=test_suite_name):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5634: in has_dataset
    self.read_dataset(dataset_name=dataset_name, dataset_id=dataset_id)
../../../lab/.venv/lib/python3.13/site-packages/langsmith/utils.py:164: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5679: in read_dataset
    return ls_schemas.Dataset(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Dataset(), _host_url = 'https://smith.langchain.com', _tenant_id = None
_public_path = None, kwargs = {}

    def __init__(
        self,
        _host_url: Optional[str] = None,
        _tenant_id: Optional[UUID] = None,
        _public_path: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """Initialize a Dataset object."""
        if "inputs_schema_definition" in kwargs:
            kwargs["inputs_schema"] = kwargs.pop("inputs_schema_definition")
    
        if "outputs_schema_definition" in kwargs:
            kwargs["outputs_schema"] = kwargs.pop("outputs_schema_definition")
    
>       super().__init__(**kwargs)
E       pydantic_core._pydantic_core.ValidationError: 3 validation errors for Dataset
E       name
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       id
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       created_at
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing

../../../lab/.venv/lib/python3.13/site-packages/langsmith/schemas.py:366: ValidationError
_____________________________ test_decorator_form ______________________________

request = None, test_args = (), test_kwargs = {}, i = 0
repetition_extra = {'cache': None, 'cached_hosts': None, 'client': None, 'experiment_metadata': None, ...}

    @functools.wraps(func)
    def wrapper(*test_args: Any, request: Any = None, **test_kwargs: Any):
        if disable_tracking:
            return func(*test_args, **test_kwargs)
    
        # Run test multiple times for repetitions
        for i in range(repetitions):
            repetition_extra = langtest_extra.copy()
>           _run_test(
                func,
                *test_args,
                pytest_request=request,
                **test_kwargs,
                langtest_extra=repetition_extra,
            )

../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:986: in _run_test
    test_case = _create_test_case(
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:947: in _create_test_case
    test_suite = _LangSmithTestSuite.from_test(client, func, langtest_extra.get("test_suite_name"), experiment_metadata)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:603: in from_test
    test_suite = _get_test_suite(client, test_suite_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:452: in _get_test_suite
    if client.has_dataset(dataset_name=test_suite_name):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5634: in has_dataset
    self.read_dataset(dataset_name=dataset_name, dataset_id=dataset_id)
../../../lab/.venv/lib/python3.13/site-packages/langsmith/utils.py:164: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5679: in read_dataset
    return ls_schemas.Dataset(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Dataset(), _host_url = 'https://smith.langchain.com', _tenant_id = None
_public_path = None, kwargs = {}

    def __init__(
        self,
        _host_url: Optional[str] = None,
        _tenant_id: Optional[UUID] = None,
        _public_path: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """Initialize a Dataset object."""
        if "inputs_schema_definition" in kwargs:
            kwargs["inputs_schema"] = kwargs.pop("inputs_schema_definition")
    
        if "outputs_schema_definition" in kwargs:
            kwargs["outputs_schema"] = kwargs.pop("outputs_schema_definition")
    
>       super().__init__(**kwargs)
E       pydantic_core._pydantic_core.ValidationError: 3 validation errors for Dataset
E       name
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       id
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       created_at
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing

../../../lab/.venv/lib/python3.13/site-packages/langsmith/schemas.py:366: ValidationError
______________________________ test_marked_agent _______________________________

request = <FixtureRequest for <Function test_marked_agent>>, test_args = ()
test_kwargs = {}, i = 0
repetition_extra = {'cache': None, 'cached_hosts': None, 'client': None, 'experiment_metadata': None, ...}

    @functools.wraps(func)
    def wrapper(*test_args: Any, request: Any = None, **test_kwargs: Any):
        if disable_tracking:
            return func(*test_args, **test_kwargs)
    
        # Run test multiple times for repetitions
        for i in range(repetitions):
            repetition_extra = langtest_extra.copy()
>           _run_test(
                func,
                *test_args,
                pytest_request=request,
                **test_kwargs,
                langtest_extra=repetition_extra,
            )

../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:986: in _run_test
    test_case = _create_test_case(
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:947: in _create_test_case
    test_suite = _LangSmithTestSuite.from_test(client, func, langtest_extra.get("test_suite_name"), experiment_metadata)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:603: in from_test
    test_suite = _get_test_suite(client, test_suite_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:452: in _get_test_suite
    if client.has_dataset(dataset_name=test_suite_name):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5634: in has_dataset
    self.read_dataset(dataset_name=dataset_name, dataset_id=dataset_id)
../../../lab/.venv/lib/python3.13/site-packages/langsmith/utils.py:164: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
../../../lab/.venv/lib/python3.13/site-packages/langsmith/client.py:5679: in read_dataset
    return ls_schemas.Dataset(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Dataset(), _host_url = 'https://smith.langchain.com', _tenant_id = None
_public_path = None, kwargs = {}

    def __init__(
        self,
        _host_url: Optional[str] = None,
        _tenant_id: Optional[UUID] = None,
        _public_path: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """Initialize a Dataset object."""
        if "inputs_schema_definition" in kwargs:
            kwargs["inputs_schema"] = kwargs.pop("inputs_schema_definition")
    
        if "outputs_schema_definition" in kwargs:
            kwargs["outputs_schema"] = kwargs.pop("outputs_schema_definition")
    
>       super().__init__(**kwargs)
E       pydantic_core._pydantic_core.ValidationError: 3 validation errors for Dataset
E       name
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       id
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing
E       created_at
E         Field required [type=missing, input_value={}, input_type=dict]
E           For further information visit https://errors.pydantic.dev/2.14/v/missing

../../../lab/.venv/lib/python3.13/site-packages/langsmith/schemas.py:366: ValidationError
____________________________ test_unmarked_log_call ____________________________

    def test_unmarked_log_call():
>       t.log_outputs({"x": 1})

test_ls_plugin.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

outputs = {'x': 1}

    def log_outputs(outputs: dict, /) -> None:
        """Log run outputs from within a pytest test run.
    
        Should only be used in pytest tests decorated with @pytest.mark.langsmith.
    
        Args:
            outputs: Outputs to log.
    
        Example:
            ```python
            from langsmith import testing as t
    
    
            @pytest.mark.langsmith
            def test_foo() -> None:
                x = 0
                y = 1
                result = foo(x, y)
                t.log_outputs({"foo": result})
                assert result == 2
            ```
        """
        if ls_utils.test_tracking_is_disabled():
            logger.info("LANGSMITH_TEST_TRACKING is set to 'false'. Skipping log_outputs.")
            return
        run_tree = rh.get_current_run_tree()
        test_case = _TEST_CASE.get()
        if not run_tree or not test_case:
            msg = (
                "log_outputs should only be called within a pytest test decorated with "
                "@pytest.mark.langsmith, and with tracing enabled (by setting the "
                "LANGSMITH_TRACING environment variable to 'true')."
            )
>           raise ValueError(msg)
E           ValueError: log_outputs should only be called within a pytest test decorated with @pytest.mark.langsmith, and with tracing enabled (by setting the LANGSMITH_TRACING environment variable to 'true').

../../../lab/.venv/lib/python3.13/site-packages/langsmith/testing/_internal.py:1208: ValueError
=========================== short test summary info ============================
FAILED test_ls_plugin.py::test_marked_pass - pydantic_core._pydantic_core.Val...
FAILED test_ls_plugin.py::test_marked_fail - pydantic_core._pydantic_core.Val...
FAILED test_ls_plugin.py::test_decorator_form - pydantic_core._pydantic_core....
FAILED test_ls_plugin.py::test_marked_agent - pydantic_core._pydantic_core.Va...
FAILED test_ls_plugin.py::test_unmarked_log_call - ValueError: log_outputs sh...
============================== 5 failed in 1.11s ===============================

--- stderr
