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. |
|
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
A trace of every module-level name in the package found data that no shipped behavior reads: - `SUPPORTED_BINARIES_ALL`, an alias of `SUPPORTED_BINARIES` that one test used. - The eight `SUPPORTED_LINUX_SONAMES*` and `SUPPORTED_WINDOWS_DLLS*` tables, with the two descriptor groups and the reversing helper that built them. Their only readers were tests and the test-mode loader in `dynamic_lib_subprocess.py`. The test-mode loader now asks the descriptor whether the library has file names on this platform. That is the question the table lookup answered. Tests: - The real-load test builds its list of library names from the catalog, in the same order as before. - The "one file name belongs to one library" test reads the catalog. - Tests that only compared a removed table with the catalog are removed. No behavior change. 1290 passed, 6 skipped. The test-mode loader gives the same result as `main` for all 50 libraries, in both of its outcomes, on Linux and on simulated Windows x64 and arm64. After this change the trace finds no data in the package that only tests read. Risk: these are private names, as in the earlier table removals. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Rob Parolin <rparolin@nvidia.com>
`SUPPORTED_BINARIES` is built from the keys of `SITE_PACKAGES_BINDIRS`, so asserting that those keys are a subset of it is always true. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Rob Parolin <rparolin@nvidia.com>
AGENTS.md told agents to keep derived exports in sync "through existing conversion logic and tests". After the last three changes there are no hand-kept derived tables left: `supported_nvidia_libs.py` computes its name sets from the catalog. The advice now says that. 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>
619b4d5 to
9c11ae5
Compare
…into pathfinder-readability/11-move-test-only-data
— codex on behalf of Ralf —
Description
Part 12 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.A trace of every module-level name in the package found data that no shipped behavior reads:
SUPPORTED_BINARIES_ALL, an alias ofSUPPORTED_BINARIESthat one test used.SUPPORTED_LINUX_SONAMES*andSUPPORTED_WINDOWS_DLLS*tables, with the two descriptor groups and the reversing helper that built them. Their only readers were tests and the test-mode loader indynamic_lib_subprocess.py.The test-mode loader now asks the descriptor whether the library has file names on this platform. That is the question the table lookup answered.
Tests:
No behavior change. 1294 passed, 6 skipped. The test-mode loader gives the same result as
mainfor all 50 libraries, in both of its outcomes, on Linux and on simulated Windows x64 and arm64. After this change the trace finds no data in the package that only tests read.Risk: these are private names, as in the earlier table removals. The 1.2.0 release notes mention
SUPPORTED_LINUX_SONAMESandSUPPORTED_WINDOWS_DLLSby name when describing search order; they make no promise to keep them.The data is removed, not copied: tests derive what they need from the catalog.
Also in this PR: remove a binaries test that could not fail.
SUPPORTED_BINARIESis built from the keys ofSITE_PACKAGES_BINDIRS, so asserting that those keys are a subset of it is always true.Also in this PR: drop stale advice from
AGENTS.md.It told agents to keep derived exports in sync "through existing conversion logic and tests". No hand-kept derived tables are left, so it now says the name sets are computed from the catalog.
Testing
cuda_pathfindertest suite at this commit: 1294 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