Skip unresolved None provider hops when tracing packaged forwarders #159
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!159
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/159/head"
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?
@KomaGuy on GitHub · 2026-11-21 17:47 UTC · original
KomaGuy:fix/forwarded-ambiguous-hop→main· +32 −1 · 2 files · 1 commits · merged 2026-11-21 17:48 UTCChange
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.