Repository navigation
Clear remaining LZMA expected failures - #9732
Conversation
Report unsupported or invalid XZ check IDs as LZMAError rather than ValueError, preserving the liblzma diagnostics for reserved and out-of-range identifiers. Assisted-by: OpenAI Codex: model version not exposed
Match CPython ValueError diagnostics after compressor flush and report invalid delta property distances as LZMAError. These cover the deeper failures in the remaining canonical LZMA tests. Assisted-by: OpenAI Codex: model version not exposed
Run scripts/update_lib quick Lib/test/test_lzma.py --no-build --no-commit against the corrected interpreter. All 121 canonical tests pass with one existing skip and no remaining expected failures. No assertions or test logic change. Assisted-by: OpenAI Codex: model version not exposed
|
Caution Review failedThe pull request is closed.
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. |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] lib: cpython/Lib/lzma.py dependencies:
dependent tests: (118 tests)
Legend:
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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. Keep this validated stack from launching redundant hosted CI while RustPython#9732 is pending. Assisted-by: OpenAI Codex: model version not exposed
Summary
LZMAError, matching CPython 3.15: reserved check IDs reportUnsupported integrity check; out-of-range IDs reportInternal error.ValueErrorwith CPython messages when compressing or flushing an already-flushed compressor; report invalid delta property distances asLZMAError("Internal error").test_lzma.pyas one whole-file batch.scripts/update_lib quick Lib/test/test_lzma.py --no-build --no-commit. No assertions, test data, test logic, snippets, skips, or workflow files are changed.Validation
stdlib,stdio,importlib,host_env,doc,threading,sqliteand no default features.test_lzma: 121 tests, one unchanged CPython-only reference-leak skip, zero expected failures. The existingextra_tests/snippets/stdlib_lzma.pyalso passed.-D warnings.Hosted CI and native non-Linux/platform-specific execution remain pending; this PR stays draft.
Integration
Based on main
f1f38c1594. This fixes a remaining error conversion also present in #8639's alternative LZMA backend; that port should preserve the correction when rebased. This does not broaden the pre-existing preset/filter-versus-check validation order or the state transition after a failed flush.AI assistance: OpenAI Codex performed source inspection, the narrow correction, independent review, and validation. The exact model version was not exposed.