Skip to content

Fix WinRT interface registration identity across generated packages - #162

Merged
leileizhang (lei9444) merged 1 commit into
mainfrom
lei9444-interface-identity-registry
Sep 18, 2026
Merged

leileizhang (lei9444) merged 1 commit into
mainfrom
lei9444-interface-identity-registry

Conversation

@lei9444

Copy link
Copy Markdown
Contributor

Summary

  • Key WinRT interface registration by IID rather than display name, keeping interfaces separate from the private struct/enum/runtime-class name index.
  • Preserve same-IID aliases, existing method handles, generated public names, and Classic COM separation. Callers must still supply the same ordered metadata contract for a given IID.
  • Add registration/concurrency regressions, a generated-package event harness, and documentation.

Validation

  • New registry regressions: 3 fail before the fix; all 4 pass afterward. Focused metadata suite: 32 passed; existing Python registration/Uri checks: 6 passed.
  • Independently generated Windows/WinUI INotifyPropertyChanged packages: baseline fails both co-load orders in JS and Python; rebuilt x64 runtimes pass all 8 isolated/co-load scenarios with deterministic cleanup and natural process exit.
  • Original native registration probe now returns both requested IIDs correctly.

Keep descriptive interface names out of named-type deduplication while preserving IID method tables and published handles. Add registry identity/concurrency regressions and isolated generated Windows/WinUI event tests for JavaScript and Python.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1a26445b-b436-43d9-b376-f5608bfa4840
@github-actions

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 85.85% 80.97% 85.38% regions
Python aggregate 71.06% n/a 37.9% branches
Python runtime 99.12% n/a 97.37% branches
Generated Python WinRT projections 70.05% n/a 27.07% branches
Generated Python WinRT implementations 72.29% n/a 47.04% branches
JavaScript aggregate 22.14% 25.21% 57.88% branches
JavaScript runtime 44.27% 45.76% 78.99% branches
Generated WinRT projections 22.97% 18.71% 54.94% branches
Generated WinRT implementations 48.66% 59.76% 61.14% branches
Generated Classic COM projections 11.92% 23.97% 54.2% branches

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

@lei9444
leileizhang (lei9444) merged commit 03a38b8 into main Sep 18, 2026
24 checks passed
@lei9444
leileizhang (lei9444) deleted the lei9444-interface-identity-registry branch September 18, 2026 09:09
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.

2 participants