Repository navigation
Fix WinRT collection bulk element strides - #158
Merged
Merged
Conversation
Use native element sizes for vector, view, and iterator bulk outputs and ReplaceAll inputs. Add typed collection and ownership regression coverage for value, string, and nullable interface elements. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
Mixed-language test coverageWorkflow status: ✅ Passed
|
Exclude irrelevant network collection from loaded-DLL reports when supported and retain bounded phase timings on failures. Preserve the existing fresh-process checks, DLL isolation assertions, all-artifact PE inspection, and 10-second timeout. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1e44905d-3d1b-4504-872b-e51823f26261
shisan (qiutongMS)
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IVector, live and snapshotIVectorView, andIIteratorGetMany, and forReplaceAllinputs.Collection validation
The following validation was already performed on the exact collection source change in the parent regression session; no builds or collection tests were repeated solely for publication:
cargo test -p dynwinrt --lib vector:: --no-fail-fast: 18 x64 tests passed.cargo test -p dynwinrt --lib map:: --no-fail-fast: 4 tests passed.cargo test -p dynwinrt --lib vector::bulk_tests --target i686-pc-windows-msvc -- --test-threads=1: 4 tests passed.GetMany=[1,9], matchingGetAt.Initial publication checks confirmed a clean cherry-pick of
4201129b54224e1525fd42a11674293eebc2491c, preserved commit trailers, identical source files, and exactly the three intended collection files, with no Python changes. The subsequent CI correction changes onlybindings/js/__test__/native-imports.spec.tsand its related README documentation.Native-import CI correction
Build run
35220988235passed both production architecture builds and the PE import check, but the root fresh-process probe exceeded its 10-second limit. The COM probe passed. The old failure message masked captured stderr when a spawn error existed and did not identify the stalled phase. The hosted timeout was not reproduced locally, so neither DNS nor cold-addon loading is asserted as its proven cause.The follow-up enables
process.report.excludeNetworkwhen supported, avoiding irrelevant network-interface enumeration and DNS while preservingsharedObjectscollection. Node documents support from 20.13/22; feature detection preserves the full check on older versions. Synchronous, bounded phase messages identify the before-report, require, and after-report stages, and failures retain status, signal, spawn error, stdout, and stderr. Fresh root/COM processes, the 10-second timeout, all isolation/export/addon assertions, and PE checks for every built architecture remain intact. No retries or skips were added.Focused local validation used Node 24.18.0, not CI's 24.20.0, and a previously built production x64 addon whose runtime/binding source exactly matches this PR; no native rebuild or manual CI rerun was initiated:
npm run test:imports: 4 passed, including a new timeout-diagnostics regression.git diff --checkpassed. README whole-file Prettier differences predate this change; unrelated code-fence formatting was left untouched.The pushed follow-up requires fresh CI results; the local checks are not a claim that CI has completed successfully.
Known limitation
The broader i686 vector suite has a pre-existing large-struct test crash, reproduced on untouched
preview.21. This PR does not claim that the entire i686 suite is green; that issue is outside its scope and is unrelated to the native-import timeout.This PR is independent of the Python annotation PR, is based directly on
main, and can merge in either order.