You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(pathfinder): remove four helpers that only their own tests call - #3603
Reviewing files that changed from the base of the PR and between 6e37a83 and a8be135.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Refactor
Removed several library and directory lookup interfaces. Applications that relied on these interfaces may need to update their integration; the remaining platform-specific library name is still available.
Removed tests associated with the deleted lookup behavior.
The change removes SearchContext.libname, anchor-based directory helpers, and the find_sub_dirs_sys_path wrapper. It also removes the tests and imports associated with these APIs.
Removes find_sub_dirs_sys_path and its no-match test. Tests for the remaining directory-search helpers stay in place.
Suggested reviewers:cpcloud, dekhtiarjonathan
Change: Refactor
Merge Risk: Minimal · previous review 6e37a
This is a deletion-only cleanup of private search helpers and their tests. A repository search found no remaining callers, so no user-visible behavior change is expected and the risk of merging is minimal.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 0 remain after this review.
- `_iter_lib_dirs_using_anchor` and `_find_lib_dir_using_anchor` lost
their last caller in #2680.
- `SearchContext.libname` and `find_sub_dirs_sys_path` have no caller.
The six tests removed here exercised only these helpers. The remaining
tests still run every line of shipped code that they ran before.
No behavior change: deletion only. 1645 passed, 6 skipped.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
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
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.
— codex on behalf of Ralf —
Description
Part 3 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._iter_lib_dirs_using_anchorand_find_lib_dir_using_anchorlost their last caller in Add cuDNN discovery and NCCL header support #2680.SearchContext.libnameandfind_sub_dirs_sys_pathhave no caller.The six tests removed here exercised only these helpers. The remaining tests still run every line of shipped code that they ran before.
No behavior change: deletion only. 1645 passed, 6 skipped.
Testing
cuda_pathfindertest suite at this commit: 1645 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