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:
|
|
Three finders read `CONDA_PREFIX` on their own and each treated an empty value as unset: dynamic libraries, headers, and the shared static and bitcode search. `get_conda_prefix()` in `_utils/env_vars.py` now holds that rule, and the three call it. It is not cached. Like the code it replaces, it reads the environment on every call. The binary finder is left alone on purpose. It treats an empty `CONDA_PREFIX` as set, so switching it over would change behavior. No behavior change. 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>
56ba83d to
5d5f816
Compare
— codex on behalf of Ralf —
Description
Part 21 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.Three finders read
CONDA_PREFIXon their own, and each treated an empty value as unset: dynamic libraries, headers, and the shared static and bitcode search.get_conda_prefix()in_utils/env_vars.pynow holds that rule, and the three call it.It is not cached. Like the code it replaces, it reads the environment on every call.
The binary finder is left alone on purpose. It treats an empty
CONDA_PREFIXas set, so switching it over would change behavior.This PR adds a few lines instead of removing them. The gain is one place for the rule.
No behavior change.
Testing
cuda_pathfindertest suite at this commit: 1299 passed, 6 skipped (Linux, Python 3.14).mypy-pathfinder. mypy also passes with--platform win32.mainare still byte-identical (Linux, simulated Windows x64 and arm64), and all 526 public-API scenarios give the same result as fix(pathfinder): check for an already-loaded library before searching the disk #3623.PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
subprocess.runcall in the canary probe, now incanary_probe.pyChecklist
🤖 Generated with Claude Code