Commit 356049d
pathfinder: polish guard-rails diagnostics, comments, and lock-in tests
Low-severity polish on the v1 compatibility guard rails surface plus two
new tests so the existing invariants are asserted instead of only
code-read.
- _owned_distribution_candidates: note that symlinks are intentionally
not chased on either side of the path comparison.
- _missing_ctk_metadata_message now appends the conflicting CTK set when
wheel metadata for the same on-disk file matches more than one
cuda-toolkit distribution, instead of silently collapsing to "could
not determine the CTK version".
- _compatible_pair_message picks distinct wording for the same-CTK vs
cross-CTK independent-pair cases so the message is no longer
misleading when both items share a CTK.
- _declare_dynamic_lib_pipeline gains a docstring explaining why it
stays single-underscored in v1 (taxonomy/policy still evolving).
- Block comment near _STATIC_LIBS_PACKAGED_WITH /
_BITCODE_LIBS_PACKAGED_WITH calls out the lockstep requirement with
SUPPORTED_*_LIBS and points at the parametrized resolver tests that
enforce coverage.
- load_nvidia_dynamic_lib augments any CompatibilityCheckError raised
during _register_and_check with a sentence explaining the underlying
dlopen / LoadLibraryW already happened and the OS handle remains
live. Mutates exc.args in place so subclass typing
(DriverCtkCompatibilityError) and __cause__ are preserved.
- _try_process_wide_guard_rails_then_fallback documents why the
forward-compat hint is appended only on Linux (cuda-compat-* is
NVIDIA's Linux-only contract).
- New test_register_and_check_is_idempotent_for_repeated_items asserts
duplicate ResolvedItem registrations collapse to one entry.
- New test_driver_ctk_compatibility_error_is_typed_catchable asserts a
driver-too-old failure raises DriverCtkCompatibilityError as itself
(not just by message), is still a CompatibilityCheckError, and
carries the new "OS handle remains live" augmentation.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent fc963ff commit 356049d
3 files changed
Lines changed: 110 additions & 10 deletions
File tree
- cuda_pathfinder
- cuda/pathfinder
- tests
Lines changed: 69 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
235 | 243 | | |
236 | 244 | | |
237 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
238 | 251 | | |
239 | 252 | | |
240 | 253 | | |
| |||
282 | 295 | | |
283 | 296 | | |
284 | 297 | | |
285 | | - | |
| 298 | + | |
286 | 299 | | |
287 | 300 | | |
288 | 301 | | |
| |||
300 | 313 | | |
301 | 314 | | |
302 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
303 | 321 | | |
304 | 322 | | |
305 | 323 | | |
| |||
470 | 488 | | |
471 | 489 | | |
472 | 490 | | |
473 | | - | |
| 491 | + | |
474 | 492 | | |
475 | 493 | | |
476 | 494 | | |
477 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
478 | 504 | | |
479 | 505 | | |
480 | 506 | | |
| |||
628 | 654 | | |
629 | 655 | | |
630 | 656 | | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
637 | 669 | | |
638 | 670 | | |
639 | 671 | | |
| |||
956 | 988 | | |
957 | 989 | | |
958 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
959 | 999 | | |
960 | 1000 | | |
961 | 1001 | | |
| |||
1002 | 1042 | | |
1003 | 1043 | | |
1004 | 1044 | | |
1005 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1006 | 1052 | | |
1007 | | - | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1008 | 1067 | | |
1009 | 1068 | | |
1010 | 1069 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
0 commit comments