Repository navigation
Fix resource index conversion and REPL warning - #8654
Conversation
Accept __index__ values when converting resource limits and only report PyREPL fallback reasons for terminal-backed interactive sessions. Assisted-by: Codex:gpt-5
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change accepts ChangesRuntime Input Handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Resource limits now accept index-compatible values, and PyREPL availability warnings no longer pollute piped input. The supplied evidence indicates the intended validation and terminal behavior are preserved, with no remaining merge-blocking risk. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Accept __index__ values when converting resource limits and only report PyREPL fallback reasons for terminal-backed interactive sessions. Assisted-by: Codex:gpt-5
Summary
__index__when convertingresource.setrlimit()limitsTesting
cargo fmt --all -- --checkcargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi(cd crates/capi && cargo test)cargo clippy --workspace --all-targets --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi(cd crates/capi && cargo clippy --all-targets)target/release/rustpython -m test test_resourcetarget/release/rustpython -m test -m "*test_dumb_terminal_exits_cleanly*" test_pyrepl.test_pyrepl__index__, negative limit, overflow, and piped-stdin checksSummary by CodeRabbit
__index__, rather than only by integer objects.