| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ae5ad8e-6b66-41b3-a862-4e2a3fae1cd0
Python Test Coverage Report •
Python Unit Test Overview
|
|||||||||||||||||||||||||||||||||||||||||||||
Sorry, something went wrong.
There was a problem hiding this comment.
This PR updates the Python coverage gate to enforce the documented 85% line-coverage threshold based on each distribution’s lifecycle (Development Status classifier), rather than a manually maintained allowlist. It also updates CI wiring/docs and expands tests across multiple Python packages to meet the newly enforced policy.
Changes:
Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file| File | Description |
|---|---|
| python/packages/tools/tests/test_shell_resolve.py | Adds more unit coverage for shell resolution (env override, platform defaults, helper functions). |
| python/packages/tools/tests/test_shell_killtree.py | New tests for process-tree termination helpers across psutil/stdlib paths. |
| python/packages/tools/tests/test_local_shell_tool.py | Expands LocalShellTool coverage (env handling, stateless runner behavior, Windows process group kwargs). |
| python/packages/tools/tests/test_docker_shell_tool.py | Adds broader DockerShellTool unit tests around mode behavior, policy denial, session/container lifecycle, and timeouts. |
| python/packages/redis/tests/test_context_provider_edges.py | Adds edge-case coverage for RedisContextProvider (schema, filtering, pagination, validation). |
| python/packages/monty/tests/monty/test_monty_codeact.py | Expands coverage for instruction builders, mount helpers, file capture, truncation behavior, and provider delegation. |
| python/packages/hyperlight/tests/hyperlight/test_hyperlight_codeact.py | Adds tests for normalizers/shape guards, instruction builders, and provider delegation. |
| python/packages/durabletask/tests/test_workflow_runner_context.py | New tests for CapturingRunnerContext behavior and reset semantics. |
| python/packages/durabletask/tests/test_workflow_orchestrator_helpers.py | New unit tests for orchestrator helper functions (task prep/routing, HITL serialization/dispatch, fan-in). |
| python/packages/durabletask/tests/test_workflow_dt_context.py | New tests for DurableTaskWorkflowContext adapter behavior. |
| python/packages/durabletask/tests/test_async_bridge.py | New tests for the durabletask async bridge loop/thread lifecycle and coroutine execution. |
| python/packages/chatkit/tests/test_converter.py | Expands ThreadItemConverter coverage across more ChatKit item variants (quoted text, tags, widgets, tool calls, dispatch). |
| python/packages/bedrock/tests/test_bedrock_client.py | Adds significant coverage for BedrockChatClient session creation, request prep, tool-result handling, and parsing helpers. |
| python/packages/azurefunctions/tests/test_workflow_af_context.py | New tests for Azure Functions workflow-context adapter and wrapper orchestration entrypoint. |
| python/packages/azurefunctions/tests/test_func_utils.py | Adds extra unit coverage for CapturingRunnerContext no-ops and request-info tracking. |
| python/DEV_SETUP.md | Documents the lifecycle-based 85% enforcement policy and exemptions. |
| python/.github/skills/python-testing/SKILL.md | Updates testing guidance to reflect lifecycle-based enforcement and recommends extending existing test files. |
| .github/workflows/python-test-coverage.yml | Wires coverage checking to the new script and updates the workflow’s path filters/step naming. |
| .github/workflows/python-check-coverage.py | Removes the old allowlist-based coverage gate script. |
| .github/workflows/github-automation-tests.yml | Adds a Python job step to run the new checker’s unit tests in CI. |
| .github/tests/test_python_check_coverage.py | Adds automation tests validating lifecycle policy loading, aggregation, and pass/fail behavior. |
| .github/scripts/python_check_coverage.py | Introduces the lifecycle-driven coverage enforcement implementation used by CI. |
Sorry, something went wrong.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ae5ad8e-6b66-41b3-a862-4e2a3fae1cd0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ae5ad8e-6b66-41b3-a862-4e2a3fae1cd0
There was a problem hiding this comment.
Approving but the workflow builder changes need Evan Mattson (@moonbox3) to greenlight
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation & Context
Python coverage enforcement used a manually maintained target allowlist, allowing many Beta packages to fall below the documented 85% threshold without failing CI. This makes package maturity and coverage policy drift apart as packages are added or promoted.
Description & Review Guide
Related Issue
Fixes #7260
Contribution Checklist