This is an automated email from the ASF dual-hosted git repository.
kaxil pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new c91117a89b1 Prevent durable storage tests from leaking hook lineage
(#67252)
c91117a89b1 is described below
commit c91117a89b1503a831d8acaaa1ea5cbd47e61d4b
Author: Henry Chen <[email protected]>
AuthorDate: Fri May 22 01:43:32 2026 +0800
Prevent durable storage tests from leaking hook lineage (#67252)
---
providers/common/ai/tests/unit/common/ai/conftest.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/providers/common/ai/tests/unit/common/ai/conftest.py
b/providers/common/ai/tests/unit/common/ai/conftest.py
index 0e6a49f36cb..5a0f141a761 100644
--- a/providers/common/ai/tests/unit/common/ai/conftest.py
+++ b/providers/common/ai/tests/unit/common/ai/conftest.py
@@ -18,6 +18,18 @@ from __future__ import annotations
from unittest.mock import MagicMock
+import pytest
+
+
[email protected](autouse=True)
+def isolate_hook_lineage_collector(hook_lineage_collector):
+ """
+ Use a fresh hook lineage collector for each common.ai unit test.
+
+ ObjectStoragePath IO records assets on the process-wide collector in
compat environments.
+ """
+ return None
+
def make_mock_run_result(output):
"""Create a mock AgentRunResult compatible with log_run_summary.