Repository navigation
refactor(pathfinder): use one resolver for binaries in trusted directories - #3620
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 26 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
…ories `_resolve_in_trusted_dirs(name, dirs)` did exactly what `_resolve_names_in_trusted_dirs((name,), dirs)` does: same directory order, same de-duplication, same executable check, same resolved path. The three callers now use the general one and the special case is gone. Tests: the nine direct calls pass a one-name tuple. Their assertions are unchanged. No behavior change. 1293 passed, 6 skipped. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Rob Parolin <rparolin@nvidia.com>
Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
7bd77b9 to
dbc2abd
Compare
— codex on behalf of Ralf —
Description
Part 15 of 23 of a readability stack for
cuda.pathfinder(stack: #3623 → #3602 → #3603 → #3604 → #3605 → #3606 → #3607 → #3608 → #3609 → #3610 → #3611 → #3613 → #3618 → #3619 → #3620 → #3621 → #3622 → #3627 → #3628 → #3629 → #3630 → #3631 → #3632). No behavior change._resolve_in_trusted_dirs(name, dirs)did exactly what_resolve_names_in_trusted_dirs((name,), dirs)does: same directory order, same de-duplication, same executable check, same resolved path. The three callers now use the general one and the special case is gone.Tests: the nine direct calls pass a one-name tuple. Their assertions are unchanged.
No behavior change. 1294 passed, 6 skipped.
Testing
cuda_pathfindertest suite at this commit: 1294 passed, 6 skipped (Linux, Python 3.14).mypy-pathfinder.PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
subprocess.runcall in the canary probe inload_nvidia_dynamic_lib.pyChecklist
🤖 Generated with Claude Code