Repository navigation
refactor(pathfinder): remove header tables that the package never reads - #3611
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. |
|
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
`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>
Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
747d85c to
b1fcdd5
Compare
… pathfinder-readability/10-remove-unread-header-tables
— 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