Skip to content

Complete Python WinRT projection readiness - #103

Merged
leileizhang (lei9444) merged 3 commits into
mainfrom
lei9444/python-winrt-readiness
Aug 20, 2026
Merged

Complete Python WinRT projection readiness#103
leileizhang (lei9444) merged 3 commits into
mainfrom
lei9444/python-winrt-readiness

Conversation

@lei9444

Copy link
Copy Markdown
Contributor

Summary

  • harden Python WinRT scalar, array, struct, HRESULT, async-progress, datetime, and nullable-object boundaries
  • make Python codegen more idiomatic and deterministic with native constructors, wrapper identity caching, value-style structs, UInt naming, and overload dispatch
  • expand Python/runtime/codegen regression coverage, cross-language E2E checks, snapshots, and enforce calibrated coverage gates

Validation

  • cargo test -p dynwinrt -p dynwinrt-codegen --quiet
  • Python binding build, pytest, and mypy.stubtest
  • Python E2E: 41/41
  • TypeScript E2E: 37/37
  • coverage threshold fixture tests
  • mixed-language coverage pipeline (-SkipCom): Rust 46.81%, Python 71.2%, JavaScript 22.21%

Remaining validation

  • the live CPython 3.11-3.14 ARM64 release matrix requires the external self-hosted ARM64 runner
  • full-workspace cargo fmt --all --check remains blocked by pre-existing formatting in benchmark files outside this diff and will be handled separately

leileizhang (lei9444) and others added 2 commits August 20, 2026 16:00
Harden Python runtime boundaries and make generated APIs more idiomatic and deterministic. Expand identity, overload, E2E, snapshot, and coverage validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Include the ignored Python and JavaScript summaries required by the threshold validation workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 81.48% 77.88% 81.39% regions
Generated Python projections 71.2% n/a 36.54% branches
JavaScript aggregate 18.77% 20.83% 52.26% branches
JavaScript runtime 19.91% 14.28% 7.14% branches
Generated WinRT projections 22.27% 20.02% 52.85% branches
Generated Classic COM projections 12.97% 23.45% 52.17% branches

View workflow run and download full HTML/LCOV/XML reports

Use the complete CI coverage aggregate, including generated Classic COM projections, as the threshold baseline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lei9444
leileizhang (lei9444) merged commit 3b5a946 into main Aug 20, 2026
25 checks passed
@lei9444
leileizhang (lei9444) deleted the lei9444/python-winrt-readiness branch August 20, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants