From 154c2e2c4c75daa11db36a7ed214e01072dd7836 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Tue, 10 Feb 2026 15:09:15 -0800 Subject: [PATCH 1/5] Add more packages to unit test coverage gate --- .github/workflows/python-check-coverage.py | 5 +++-- python/pyproject.toml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-check-coverage.py b/.github/workflows/python-check-coverage.py index c8f96cd0ab..4b1bfb02ff 100644 --- a/.github/workflows/python-check-coverage.py +++ b/.github/workflows/python-check-coverage.py @@ -30,9 +30,10 @@ # ============================================================================= ENFORCED_MODULES: set[str] = { "packages.azure-ai.agent_framework_azure_ai", + "packages.azure-ai-search.agent_framework_azure_ai_search", + "packages.core.agent_framework", + "packages.core.agent_framework._workflows", # Add more modules here as coverage improves: - # "packages.core.agent_framework", - # "packages.core.agent_framework._workflows", # "packages.anthropic.agent_framework_anthropic", } diff --git a/python/pyproject.toml b/python/pyproject.toml index af88ff92db..25f346d5ff 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -241,6 +241,7 @@ pytest --import-mode=importlib --cov=agent_framework_ag_ui --cov=agent_framework_anthropic --cov=agent_framework_azure_ai +--cov=agent_framework_azure_ai_search --cov=agent_framework_azurefunctions --cov=agent_framework_chatkit --cov=agent_framework_copilotstudio From 92bb82964558ca8455e00c509b440b07dd3bd425 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Tue, 10 Feb 2026 15:24:37 -0800 Subject: [PATCH 2/5] Trigger workflow --- python/packages/core/agent_framework/_workflows/_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/core/agent_framework/_workflows/_agent.py b/python/packages/core/agent_framework/_workflows/_agent.py index 46161e61e4..018b2c8149 100644 --- a/python/packages/core/agent_framework/_workflows/_agent.py +++ b/python/packages/core/agent_framework/_workflows/_agent.py @@ -718,7 +718,7 @@ def _extract_function_responses(self, input_messages: list[ChatMessage]) -> dict def _extract_contents(self, data: Any) -> list[Content]: """Recursively extract Content from workflow output data.""" if isinstance(data, list): - return [c for item in data for c in self._extract_contents(item)] + return [c for item in data for c in self._extract_contents(item)] # type: ignore if isinstance(data, Content): return [data] # type: ignore[redundant-cast] if isinstance(data, str): From fec1e5179de5663a58ef9986917ea6d594cc5b80 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Tue, 10 Feb 2026 15:36:31 -0800 Subject: [PATCH 3/5] Remove azure ai search --- .github/workflows/python-check-coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-check-coverage.py b/.github/workflows/python-check-coverage.py index 4b1bfb02ff..6c9dbac67d 100644 --- a/.github/workflows/python-check-coverage.py +++ b/.github/workflows/python-check-coverage.py @@ -30,10 +30,10 @@ # ============================================================================= ENFORCED_MODULES: set[str] = { "packages.azure-ai.agent_framework_azure_ai", - "packages.azure-ai-search.agent_framework_azure_ai_search", "packages.core.agent_framework", "packages.core.agent_framework._workflows", # Add more modules here as coverage improves: + # "packages.azure-ai-search.agent_framework_azure_ai_search", # "packages.anthropic.agent_framework_anthropic", } From ba7972c4119ad820914a4d692d67e3f3a1ec8507 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Wed, 11 Feb 2026 10:15:43 -0800 Subject: [PATCH 4/5] Add purview --- .github/workflows/python-check-coverage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-check-coverage.py b/.github/workflows/python-check-coverage.py index 6c9dbac67d..9f48cbdcbf 100644 --- a/.github/workflows/python-check-coverage.py +++ b/.github/workflows/python-check-coverage.py @@ -32,6 +32,7 @@ "packages.azure-ai.agent_framework_azure_ai", "packages.core.agent_framework", "packages.core.agent_framework._workflows", + "packages.purview.agent_framework_purview", # Add more modules here as coverage improves: # "packages.azure-ai-search.agent_framework_azure_ai_search", # "packages.anthropic.agent_framework_anthropic", From 54fa83341b37e49cb69eec30564be00044c8d3e8 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Wed, 11 Feb 2026 10:28:16 -0800 Subject: [PATCH 5/5] Add declarative to coverage report --- python/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pyproject.toml b/python/pyproject.toml index 25f346d5ff..82526849a0 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -249,6 +249,7 @@ pytest --import-mode=importlib --cov=agent_framework_purview --cov=agent_framework_redis --cov=agent_framework_orchestrations +--cov=agent_framework_declarative --cov-config=pyproject.toml --cov-report=term-missing:skip-covered --ignore-glob=packages/lab/**