Skip to content

cuda.bindings: rename source root to cuda_bindings_13 - #3116

Draft
rwgk wants to merge 3 commits into
rwgk/lychee-check-checkout-linksfrom
rwgk/rename-cuda-bindings-13
Draft

rwgk wants to merge 3 commits into
rwgk/lychee-check-checkout-linksfrom
rwgk/rename-cuda-bindings-13

Conversation

@rwgk

@rwgk rwgk commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Rename the CUDA 13 bindings source root from cuda_bindings/ to cuda_bindings_13/ and update its build, test, CI, documentation, and tooling paths.

Stacked on #3118 so links to renamed source paths can be checked before merge.

First preparatory step for #1199, following #2737.

Validation: CUDA 13.4 TestVenv QA; 245 CI-tool tests plus 36 subtests; 17 pinned-Lychee regression probes; full pre-commit. CI.

@rwgk rwgk added this to the cuda.bindings next milestone Oct 15, 2026
@rwgk rwgk added enhancement Any code-related improvements CI/CD CI/CD infrastructure cuda.bindings Everything related to the cuda.bindings module labels Oct 15, 2026
@rwgk rwgk self-assigned this Oct 15, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 15, 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.core Everything related to the cuda.core module label Oct 15, 2026

rwgk commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 1908aa8

@github-actions

Copy link
Copy Markdown
Contributor

@rwgk rwgk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline explanation of the rename-related changes in the docs-helper test.

@@ -23,8 +23,26 @@ def test_checking_build_uses_final_local_output_as_docs_domain(tmp_path, monkeyp
helper.parent.mkdir(parents=True)
shutil.copyfile(BUILD_HELPER, helper)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex GPT-6.1-Sol ultra explanation for the changes in this file:

These changes make the existing docs-helper test exercise the source-directory mapping affected by this PR.

The helper checks that cuda.bindings, cuda.core, and cuda.pathfinder are imported from this checkout and that their versions agree with installed distribution metadata. Previously, it inferred each source directory from the distribution name by replacing hyphens with underscores. That inference stops working for bindings after this rename:

Distribution:     cuda-bindings
Python import:    cuda.bindings
Source directory: cuda_bindings_13

The helper now records the source directories explicitly. To cover that change, this test needs to execute the helper's import checks.

Previously, the test's fake python executable intercepted python - (execute a program from standard input), discarded the program with cat >/dev/null, and returned success. That bypassed the entire import-checking block. Leaving that stub in place would let the test pass even if the helper still expected the old cuda_bindings/ directory.

The added setup creates minimal Python packages under the expected source directories, supplies matching .dist-info/METADATA, and exposes those directories through PYTHONPATH. Removing the python - interception then lets the real interpreter execute the helper's checks against this temporary checkout.

Package installation remains stubbed out, and documentation generation remains simulated, so the test still runs without CUDA or Sphinx. Its existing assertions about the docs domain and copied output remain in place; it now also fails if the helper uses the wrong source directory.

@rwgk
rwgk changed the base branch from main to rwgk/lychee-check-checkout-links October 15, 2026 06:20
@rwgk
rwgk added this pull request to stack #3119 October 15, 2026 06:20

rwgk commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 8349c46

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

CI/CD CI/CD infrastructure cuda.bindings Everything related to the cuda.bindings module cuda.core Everything related to the cuda.core module enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant