Skip to content

Expand Classic COM stabilization coverage - #139

Merged
leileizhang (lei9444) merged 2 commits into
mainfrom
feature/com-stabilization
Sep 7, 2026
Merged

leileizhang (lei9444) merged 2 commits into
mainfrom
feature/com-stabilization

Conversation

@lei9444

Copy link
Copy Markdown
Contributor

Summary

  • execute all seven exact IWbemServices conditional-output methods through a slot-accurate fake vtable, covering dual-output, sync-without-output, multi-input ExecMethod, native-null context, failure cleanup, and reference balance
  • exercise generated IThumbnailProvider.getThumbnail() with a fake COM provider returning a real HBITMAP, validating DynComOwnedHandle transfer, explicit DeleteObject release, idempotence, and Drop cleanup
  • consume a mixed WinRT plus unsafe-only COM generated package through real Node require.resolve() calls for the root, COM barrel, WinRT deep path, and unsafe canonical deep path
  • add no new ABI semantics or safe interface promotions; this PR stabilizes the merged 5,681-interface support surface

Validation

  • cargo test -p dynwinrt-codegen -p dynwinrt -p jswinrt_rs
  • cargo check -p jswinrt_rs --target i686-pc-windows-msvc
  • npm test (WinUI timing case passed after an idle isolated rerun)
  • npm run test:generated-unsafe
  • Classic COM E2E: 17/17

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

Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 84.93% 80.09% 84.5% regions
Generated Python projections 70.48% n/a 21.71% branches
JavaScript aggregate 21.47% 20.64% 54.23% branches
JavaScript runtime 24.76% 14.28% 7.14% branches
Generated WinRT projections 25.8% 19.3% 54.74% branches
Generated Classic COM projections 14.83% 24.65% 54.38% branches

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

Use the official IWbemServices vtable through ExecMethodAsync and return ABI-correct IWbemClassObject and IWbemCallResult tear-offs with canonical identity and shared reference counting.

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

Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
@lei9444
leileizhang (lei9444) merged commit fff0224 into main Sep 7, 2026
24 checks passed
@lei9444
leileizhang (lei9444) deleted the feature/com-stabilization branch September 7, 2026 06:39
leileizhang (lei9444) added a commit that referenced this pull request Sep 7, 2026
Preserve the storage-medium fixes after the squash merge of #139 and incorporate the upstream benchmark dependency lockfile update.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
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