chore(deps): update pyleak version and activate pyleak_marker in tests (#8905)

* chore: update pyleak dependency to version 0.1.14 in pyproject.toml and uv.lock

* fix(tests): enable pyleak marker in test files to address memory leak issues
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-07-07 12:23:25 -03:00 committed by GitHub
commit 7ec3cb063d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 10 deletions

View file

@ -175,7 +175,7 @@ dev = [
"faker>=37.0.0",
"pytest-timeout>=2.3.1",
"pyyaml>=6.0.2",
"pyleak>=0.1.12",
"pyleak>=0.1.14",
]
[tool.uv.sources]

View file

@ -3,11 +3,9 @@ from langflow.components.processing.parse_json_data import ParseJSONDataComponen
from langflow.schema import Data
from tests.integration.components.mock_components import TextToData
from tests.integration.utils import ComponentInputHandle, run_single_component
from tests.integration.utils import ComponentInputHandle, pyleak_marker, run_single_component
# TODO: Fix pyleak issue
# https://github.com/langflow-ai/langflow/actions/runs/16013103799/job/45208685212
# pytestmark = pyleak_marker()
pytestmark = pyleak_marker()
async def test_from_data():

View file

@ -3,12 +3,10 @@ from langflow.components.processing import PromptComponent
from langflow.graph import Graph
from langflow.schema.message import Message
from tests.integration.utils import run_flow
from tests.integration.utils import pyleak_marker, run_flow
# TODO: Fix pyleak issue
# https://github.com/langflow-ai/langflow/actions/runs/16013103799/job/45208685212
# @pyleak_marker()
@pyleak_marker()
async def test_simple_no_llm():
graph = Graph()
flow_input = graph.add_component(ChatInput())

2
uv.lock generated
View file

@ -5157,7 +5157,7 @@ dev = [
{ name = "pandas-stubs", specifier = ">=2.1.4.231227" },
{ name = "pre-commit", specifier = ">=3.7.0" },
{ name = "pydantic-ai", specifier = ">=0.0.19" },
{ name = "pyleak", specifier = ">=0.1.12" },
{ name = "pyleak", specifier = ">=0.1.14" },
{ name = "pytest", specifier = ">=8.2.0" },
{ name = "pytest-asyncio", specifier = ">=0.23.0" },
{ name = "pytest-cov", specifier = ">=5.0.0" },