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
Stacked on #9732 (f6d22b4e0a). The two PickleBuffer commits are the new batch; the preceding LZMA changes belong to that parent PR.
The final commit carries [skip ci] to avoid launching another heavy hosted run while the parent is pending. Adding the skip:ci label was denied by repository permissions, so that label is not applied. The commit directive suppresses the ordinary CI workflows; the lightweight Lib Dependencies check can still run. Hosted platform CI for this head is intentionally deferred, not claimed green. Rebase after #9732 lands and remove the skip directive when the stack is ready for its platform checks.
Summary
Enable the existing traversal for PyPickleBuffer so its owned exporter reference is visible to cyclic GC.
Reuse PyBuffer and PyRwLock traversal without cloning references or running exporter callbacks. Preserve acquisition and release ordering.
Remove the sole remaining expected-failure marker in test_picklebuffer.py using scripts/update_lib quick Lib/test/test_picklebuffer.py --no-build --no-commit.
Relative to #9732, exactly two files change: one Rust attribute and one removed decorator. No assertions, test logic, skips, duplicate snippets, or workflows change.
Validation
Fresh release interpreter with an explicit worktree RUSTPYTHONPATH; imported canonical test location verified.
The change exposes PickleBuffer reference cycles to garbage collection while preserving buffer acquisition and release behavior. No actionable merge-blocking risk remains after normal checks.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly describes the main change: enabling reference-cycle tracking for PickleBuffer.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between fb57e68 and e4fdaa9.
Files ignored due to path filters: 1
Lib/test/test_picklebuffer.py is excluded by !Lib/**
Files selected for processing: 1
crates/stdlib/src/pickle.rs
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Use the existing PyBuffer and PyRwLock traversal so exporter-to-PickleBuffer cycles are visible to the collector. Preserve buffer acquisition, release, and callback ordering.
Assisted-by: OpenAI Codex: model version not exposed
Use scripts/update_lib quick Lib/test/test_picklebuffer.py --no-build --no-commit after enabling exporter traversal. All nine canonical tests pass with the three existing _testbuffer availability skips; no assertions, test logic, or skips change.
Assisted-by: OpenAI Codex: model version not exposed
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
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.
Stack and CI
Stacked on #9732 (
f6d22b4e0a). The two PickleBuffer commits are the new batch; the preceding LZMA changes belong to that parent PR.The final commit carries
[skip ci]to avoid launching another heavy hosted run while the parent is pending. Adding theskip:cilabel was denied by repository permissions, so that label is not applied. The commit directive suppresses the ordinary CI workflows; the lightweight Lib Dependencies check can still run. Hosted platform CI for this head is intentionally deferred, not claimed green. Rebase after #9732 lands and remove the skip directive when the stack is ready for its platform checks.Summary
PyPickleBufferso its owned exporter reference is visible to cyclic GC.PyBufferandPyRwLocktraversal without cloning references or running exporter callbacks. Preserve acquisition and release ordering.test_picklebuffer.pyusingscripts/update_lib quick Lib/test/test_picklebuffer.py --no-build --no-commit.Relative to #9732, exactly two files change: one Rust attribute and one removed decorator. No assertions, test logic, skips, duplicate snippets, or workflows change.
Validation
RUSTPYTHONPATH; imported canonical test location verified.test_picklebuffer: 9 tests, 3 unchanged_testbufferavailability skips, zero expected failures.test_memoryview,test_gc, andtest_picklesuites passed, retaining their existing skips/expected failures.test_buffer.TestPythonBufferProtocolpassed: 19 tests, 4 existing skips.-D warnings.No native non-Linux or hosted validation is claimed. Open #8939 still lacks this traversal flag and does not duplicate the correction.
AI assistance: OpenAI Codex performed inspection, implementation, independent review, and validation. The exact model version was not exposed.
Summary by CodeRabbit