Repository navigation
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 27 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
The `found_via` strings ("site-packages", "conda", "CUDA_PATH", ...) are
public: they appear on every result object. They were typed by hand in
five modules, and `load_dl_linux.py` branches on two of them, so a typo
in one module would silently change loader behavior.
They are now constants in `_utils/found_via.py`, and every producer and
the one consumer use the constants. A new test pins the eight public
values.
No behavior change: the strings are identical. 1647 passed, 6 skipped,
and the step-by-step comparisons against `main` are still byte-identical.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
docs(pathfinder): tell agents where the found_via labels live
`AGENTS.md` now says to use the constants in `_utils/found_via.py` and
not to type the label strings anywhere else.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
docs(pathfinder): say the label rule is for package code
AGENTS.md told agents not to type `found_via` label strings anywhere
but `found_via.py`. Tests type them in many places on purpose: that is
how they pin the public values. A review bot already quoted the rule
against a test.
The rule now says what was meant: package code uses the constants,
tests may type the strings.
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>
a3f5cb5 to
e2c6e59
Compare
— codex on behalf of Ralf —
Description
Part 9 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.The
found_viastrings ("site-packages", "conda", "CUDA_PATH", ...) are public: they appear on every result object. They were typed by hand in six modules, andload_dl_linux.pybranches on two of them, so a typo in one module would silently change loader behavior.They are now constants in
_utils/found_via.py, and every producer and the one consumer use the constants. A new test pins the eight public values.No behavior change: the strings are identical. 1652 passed, 6 skipped, and the step-by-step comparisons against
mainare still byte-identical.Also in this PR: tell agents where the found_via labels live.
AGENTS.mdnow says package code uses the constants in_utils/found_via.pyand never types the label strings. Tests type them on purpose: that pins the public values.Testing
cuda_pathfindertest suite at this commit: 1652 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