CLI: deduplicate lib-exports entries per case-normalized DLL #3012
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3014"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T03:26:44Z.
Summary
victory lib-exportsimports by(&ImportSymbol, LibImportKind)within each ASCII-lowercased DLL bucket inapps/victory/src/inspect.rs::group_lib_exports, and compute the printed total export count from the deduplicated groups.Example.dllandexample.dllexporting the same symbol and kind) previously being counted twice in the summary and printed twice under--list.CodevsData), and DLLs.Verification
cargo test --locked -p victory: 16 unit tests + 4 integration tests passed.cargo clippy --locked -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 191 files ok.Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T04:38:24Z.
Review: APPROVED
LGTM — set keys on (export, kind) so same-name-different-kind imports stay distinct while true dups collapse; count sums set sizes so the headline matches the listing.
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-26T04:31:04Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
1ae85a4(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 868 passed, 0 failed, 10 ignored.lib_exports_deduplicates_dll_names_with_different_case,lib_exports_preserves_distinct_symbols_kinds_and_dlls.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T06:18:09Z.
Automated triage for the maintainers.
inspect::lib_exportsnow groups imports throughgroup_lib_exports, which puts each export into aBTreeSet<(&ImportSymbol, LibImportKind)>per lowercased DLL name and counts the set sizes. The code compiles by my reading: both types deriveOrd.What it needs:
Example.dllandexample.dllexport the same symbol. Please describe an import library this tool is actually used on where such duplicates appear. Describe it in general terms, without naming files from any SDK. Without one, this changes the output of a diagnostics command for a case that may not occur.ImportLibraryreportsother_members"so nothing is silently lost". Merging duplicates without telling the user goes against that. If the dedup stays, the summary line should also print how many duplicate entries were merged.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T06:26:30Z.
Agreed — without a concrete import library hitting duplicate symbols under
lib-exports, changing the diagnostics output and hiding duplicates without reporting them is unnecessary. Closing.Pull request closed