You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reject nonblank Sphinx inventory lines that the rebaser cannot parse. The build raises an error before writing the copied inventory. Inventory review comment
Set pythonpath = . in the root pytest.ini so the inventory test can use its normal import when launched with bare pytest. Import review comment
Validation
All 429 CI-tool tests passed with bare pytest from both the checkout root and /tmp. The malformed-entry regression failed against the previous copier and passed with the fix. Seven published inventories, including CUDA 12 and CUDA 13 bindings, produced byte-identical rebased output. Repository-wide pre-commit passed.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Bug Fixes
Sphinx inventory rebasing now detects malformed entries and reports how many entries could not be processed. When any entries are invalid, the operation stops without creating a destination inventory, preventing incomplete output.
Added coverage for malformed inventory input and verification that no destination file is created when rebasing fails.
The inventory rebase function now checks that every nonempty entry matches the expected format. Tests cover valid rebased output and malformed entries. Pytest now includes the repository root in its import path.
Changes: Inventory rebase validation
Layer / File(s)
Summary
Validate and test inventory rebasing cuda_python/docs/copy_rebased_sphinx_inventory_one_level_up.py, ci/tools/tests/test_rebase_sphinx_inventory.py, pytest.ini
The function raises ValueError when an entry does not match the expected format. Tests check the rebased output, unchanged source, and absence of a destination file for malformed input. Pytest adds the repository root to its import path.
Change: Bug fix
Merge Risk: Minimal · up to 97f19
This change makes the Sphinx inventory rebase step fail with an error instead of silently writing a partial inventory when an entry is malformed. It also lets the inventory test import its helper with bare pytest. No merge-blocking risk is evident.
Security architecture risk: Minimal · up to 97f19
Malformed inventory entries now stop the documentation build before it writes the rebased inventory. The pytest change affects test imports only. Neither change introduces a design-level concern.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CI/CDCI/CD infrastructuredocumentationImprovements or additions to documentation
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
— codex on behalf of Ralf —
Description
Follow up on Rob’s review of #3624.
pythonpath = .in the rootpytest.iniso the inventory test can use its normal import when launched with barepytest. Import review commentValidation
All 429 CI-tool tests passed with bare
pytestfrom both the checkout root and/tmp. The malformed-entry regression failed against the previous copier and passed with the fix. Seven published inventories, including CUDA 12 and CUDA 13 bindings, produced byte-identical rebased output. Repository-wide pre-commit passed.Checklist