Skip to content

docs(pathfinder): fix stale references and wrong comments - #3618

Open
rparolin wants to merge 3 commits into
pathfinder-readability/11-move-test-only-datafrom
pathfinder-readability/12-fix-stale-notes
Open

rparolin wants to merge 3 commits into
pathfinder-readability/11-move-test-only-datafrom
pathfinder-readability/12-fix-stale-notes

Conversation

@rparolin

@rparolin rparolin commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

— codex on behalf of Ralf —

Description

Part 13 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.

Also in this PR: four comments and a docstring that say the wrong thing.

  • platform_loader.py said the platform module is wrapped in a namespace. Nothing is wrapped; LOADER is the module.
  • supported_nvidia_binaries.py called the directory table "utilities available on both Linux and Windows". It is the same table everywhere, and some utilities ship for one platform only.
  • __init__.py called SUPPORTED_BINARY_UTILITIES platform-aware. The tuple is the same on every platform.
  • __init__.py said _find_nvidia_header_directory will be removed in release 1.2.4. It was not. The comment now says so; the alias stays.
  • The find_nvidia_binary_utility docstring said Windows executables are found by .exe, .bat and .cmd. The search looks for .exe, with .bat first for compute-sanitizer and ncu. It never looks for .cmd.

Comments and docs only.

Testing

  • Full cuda_pathfinder test suite at this commit: 1294 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
License N/A - no dependencies changed
Container N/A - no container changed

Checklist

  • I have read the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the cuda.pathfinder Everything related to the cuda.pathfinder module label Nov 25, 2026
@rparolin
rparolin added this pull request to stack #3616 November 25, 2026 23:20
@rparolin rparolin added the enhancement Any code-related improvements label Nov 25, 2026
@rparolin rparolin added this to the cuda.pathfinder next milestone Nov 25, 2026
@rparolin rparolin self-assigned this Nov 25, 2026
@rparolin
rparolin requested review from juenglin and rwgk November 25, 2026 23:21
@rparolin
rparolin marked this pull request as ready for review November 26, 2026 16:07
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 12 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f4490d0 and fb8772a.

Files selected for processing: 6

  • cuda_pathfinder/AGENTS.md
  • cuda_pathfinder/cuda/pathfinder/__init__.py
  • cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py
  • cuda_pathfinder/cuda/pathfinder/_binaries/supported_nvidia_binaries.py
  • cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py
  • cuda_pathfinder/cuda/pathfinder/_dynamic_libs/platform_loader.py

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Clarified which helper runs isolated dynamic-library probes in a fresh process and corrected a structure name in the loading documentation.
    • Clarified that the supported utility list is consistent across platforms, though individual utilities may be platform-specific.
    • Updated utility lookup details, including Windows filename extensions and Unix-like executable permissions.
    • Clarified platform loader documentation and updated a backward-compatibility note.

The changes update architecture documentation, loader comments, and binary utility documentation. They clarify fresh-process helper usage, loader naming, utility table details, and platform-specific executable search descriptions.

Changes: Documentation updates

Layer / File(s) Summary
Update helper and loader references
cuda_pathfinder/AGENTS.md, cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py, cuda_pathfinder/cuda/pathfinder/_dynamic_libs/platform_loader.py
The architecture documentation identifies the fresh-process helper and its use for dynamic-loader isolation. Loader comments use the current structure and module names.
Clarify binary utility documentation
cuda_pathfinder/cuda/pathfinder/__init__.py, cuda_pathfinder/cuda/pathfinder/_binaries/supported_nvidia_binaries.py, cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py
Comments describe the utility tuple and search-directory order. The lookup docstring describes Windows executable search rules and the Unix-like execute-permission requirement. The compatibility comment says removal of _find_nvidia_header_directory was planned for release 1.2.4 but has not happened.

Possibly related issues

  • NVIDIA/cuda-python#2654: The PR updates documentation but does not change supported names or binary lookup behavior.

Suggested labels: documentation

Suggested reviewers: cpcloud

Change: Other

Merge Risk: Minimal · previous review f4490

This change only corrects stale references and comments in documentation and does not alter runtime behavior. It carries no meaningful merge risk.

Architecture risk: Low · up to 996a8

The change affects 1 system.

Changed systems: cuda_pathfinder

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — cuda_pathfinder (service) was modified; 6 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in cuda_pathfinder/AGENTS.md: The architecture documentation replaces _utils/spawned_process_runner.py with _dynamic_libs/dynamic_lib_subprocess.py and documents its fresh-process use for CTK-root canary probes and tests needing isolation from process-global dynamic-loader state.
  • observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py: The allocation warning now names _LinkMapLNameView instead of LinkMapPrefix.
  • observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/init.py: The SUPPORTED_BINARY_UTILITIES documentation changes from describing the tuple as platform-aware to saying it is the same on every platform, while retaining that some utilities are platform-specific.
  • observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/init.py: The backward-compatibility comment no longer says _find_nvidia_header_directory will be removed in release 1.2.4; it says removal was planned for that release and has not happened.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 996a891 and f4490d0.

Files selected for processing: 3

  • cuda_pathfinder/cuda/pathfinder/__init__.py
  • cuda_pathfinder/cuda/pathfinder/_binaries/supported_nvidia_binaries.py
  • cuda_pathfinder/cuda/pathfinder/_dynamic_libs/platform_loader.py
Files skipped from review as they are similar to previous changes: 3

  • cuda_pathfinder/cuda/pathfinder/init.py
  • cuda_pathfinder/cuda/pathfinder/_binaries/supported_nvidia_binaries.py
  • cuda_pathfinder/cuda/pathfinder/_dynamic_libs/platform_loader.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 1 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

@rparolin rparolin changed the title docs(pathfinder): fix two stale references docs(pathfinder): fix stale references and wrong comments Nov 26, 2026
rparolin and others added 3 commits November 26, 2026 11:17
- `AGENTS.md` named `_utils/spawned_process_runner.py`, which was
  replaced by `_dynamic_libs/dynamic_lib_subprocess.py` in #1777.
- A docstring in `load_dl_linux.py` named `LinkMapPrefix`; the class is
  `_LinkMapLNameView`.

Comments and docs only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
…g thing

- `platform_loader.py`: said the platform module is wrapped in a
  namespace. Nothing is wrapped; `LOADER` is the module.
- `supported_nvidia_binaries.py`: called the directory table "utilities
  available on both Linux and Windows". It is the same table everywhere,
  and some utilities ship for one platform only.
- `__init__.py`: called `SUPPORTED_BINARY_UTILITIES` platform-aware. The
  tuple is the same on every platform.
- `__init__.py`: said `_find_nvidia_header_directory` will be removed in
  release 1.2.4. It was not. The comment now says so and keeps the alias.
- `find_nvidia_binary_utility` docstring: said Windows executables are
  found by `.exe`, `.bat` and `.cmd`. The search looks for `.exe`, with
  `.bat` first for `compute-sanitizer` and `ncu`. It never looks for
  `.cmd`.

Comments and docstrings only. No code changes.

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>
@rwgk
rwgk removed this pull request from stack #3616 November 26, 2026 19:19
@rwgk
rwgk force-pushed the pathfinder-readability/12-fix-stale-notes branch from f4490d0 to fb8772a Compare November 26, 2026 19:19
@copy-pr-bot

copy-pr-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@rwgk
rwgk added this pull request to stack #3633 November 26, 2026 19:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.pathfinder Everything related to the cuda.pathfinder module enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants