Skip unresolved None provider hops when tracing packaged forwarders #158
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/159"
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 R0Y00/Xbox2Windows. Originally posted by KomaGuy on 2026-11-21T17:47:03Z.
Change
Skip unresolved
provider=Nonesteps when collecting packaged forwarder hops intools/dependency_paths.py:ambiguous_package_basename),pe_inventory.resolve_desktopmarks the terminal step withpackage=Trueandprovider=None.dependency_paths.tracepreviously collectedNoneinhops, raisingTypeErrorwhen sortingforwarded[(edge, target)]alongside resolved forwarder chains on the same provider orKeyError: Nonewhen poppingNonefrom the traversal queue (and insertingNoneintoreachable).s["provider"]keeps resolved intermediate packaged forwarder hops reachable and records theambiguous_package_basenamefinding andpackage_chainwithout queuingNone.Verification
Tested on Linux x86_64:
python3 -B tests/intake/paths_check.py— passed (existing forwarder and FFX route checks plus aresolve_desktop+tracecase where a unique packaged provider forwards through an intermediate packaged relay to an ambiguous package basename alongside a valid forwarder on the same DLL).python3 -B tests/script_state_check.py,bcpack_check.py,resource_ranges_check.py,dxcontainer_part_offsets_check.py,layout_chunks_check.py— all passed.python3 -B tests/ffx_dispatch_aot_check.py llvm-mc-19 llvm-objcopy-19 libLLVM-19.so.1andpython3 -B tests/pixel_aot_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM-19.so.1— passed.Evidence and follow-up
tests/intake/paths_check.pybuilds itspackage_resolutionchain throughpe_inventory.resolve_desktopon synthetic in-memory module tables under the repository's MIT license.