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 header tables that the package never reads - #3611
supported_nvidia_headers.py defined 19 module-level names: 17 tables and two helper tuples. The package reads one, SUPPORTED_HEADERS_CTK. This removes the 12 names it does not depend on, 11 tables and one helper tuple (82 -> 39 lines). The kept statements are unchanged and SUPPORTED_HEADERS_CTK has the same value and order.
Tests used five of the removed tables as test data. They now derive the same data from HEADER_DESCRIPTORS, and run the same number of tests.
Risk: these are private names (cuda.pathfinder._headers). No project on public GitHub imports them, but code outside public GitHub could.
Testing
Full cuda_pathfinder test suite at this commit: 1399 passed, 6 skipped (Linux, Python 3.14).
pre-commit clean, including mypy-pathfinder.
Not run on Windows. Windows rules are exercised by tests that simulate Windows on Linux.
PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
Check
Status
Tool
Details
Secrets
SKIP
Pulse Secret Scanner
scanner image not available locally (registry login); the repo trufflehog pre-commit hook passed
SAST
WARN
Semgrep
1 finding, not from this stack: the existing subprocess.run call in the canary probe in load_nvidia_dynamic_lib.py
Dependencies
WARN
pip-audit / osv-scanner
no manifest or lockfile in scope, so the local scan could not run; this stack changes no dependencies
Reviewing files that changed from the base of the PR and between 8deb917 and b1fcdd5.
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
Tests
Header support checks now reflect the descriptors available on the current platform, including validation of system-install patterns and site-package support.
Chores
Streamlined the supported NVIDIA header listings while retaining platform-specific CTK header selection.
The supported-header module now retains CTK tables and removes legacy non-CTK and directory mappings. Tests now derive header and install-directory expectations from descriptors.
Changes: Header Projection
Layer / File(s)
Summary
CTK projection and descriptor-based tests cuda_pathfinder/cuda/pathfinder/_headers/supported_nvidia_headers.py, cuda_pathfinder/tests/test_find_nvidia_headers.py
The module retains platform-specific CTK tables and removes legacy non-CTK tables and directory mappings. Tests derive supported header and site-package expectations from descriptors and obtain system install patterns from descriptor data.
Suggested reviewers:cpcloud
Change: Refactor
Merge Risk: Minimal · previous review 8deb9
This is a cleanup that removes private, unused header tables and updates the tests to read the same data from the header descriptors. No user-facing behavior change is expected. The main residual risk is outside code that imported the removed private names, which is unlikely to matter.
Security architecture risk: Minimal · up to 8deb9
The supported header lookup API and its behavior are unchanged. Code that imports the removed private names directly may need to change, but the removal does not introduce a new security boundary or access path.
- [ ] 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; 5 remain after this review.
`supported_nvidia_headers.py` derived 15 tables from the header catalog.
The package reads one, `SUPPORTED_HEADERS_CTK`. This removes the 12
tables it does not depend on (82 -> 39 lines). The kept statements are
unchanged and `SUPPORTED_HEADERS_CTK` has the same value and order.
Tests used four of the removed tables as test data. They now derive the
same data from `HEADER_DESCRIPTORS`, and run the same number of tests.
Risk: these are private names (`cuda.pathfinder._headers`). No project
on public GitHub imports them, but code outside public GitHub could.
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 11 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.supported_nvidia_headers.pydefined 19 module-level names: 17 tables and two helper tuples. The package reads one,SUPPORTED_HEADERS_CTK. This removes the 12 names it does not depend on, 11 tables and one helper tuple (82 -> 39 lines). The kept statements are unchanged andSUPPORTED_HEADERS_CTKhas the same value and order.Tests used five of the removed tables as test data. They now derive the same data from
HEADER_DESCRIPTORS, and run the same number of tests.Risk: these are private names (
cuda.pathfinder._headers). No project on public GitHub imports them, but code outside public GitHub could.Testing
cuda_pathfindertest suite at this commit: 1399 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