Repository navigation
Fix array search equality and reentrant callbacks - #8870
Conversation
Assisted-by: Codex:GPT-6
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: RustPython/RustPython/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughArray search methods now support typed exact searches and Python equality, with comparison errors propagated. The changes also update index bounds and array mutation paths, and add tests for search callbacks, conversion callbacks, and iterator mutations. ChangesArray search and mutation updates
Priority: ⚪ Not assessed Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to No identified array behavior issue prevents merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Array searches can now invoke Python comparison callbacks, but the reviewed mutation paths still check exported buffers before resizing. No privilege escalation or wider-system exposure was established. Some coverage remains incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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 |
|
@youknowone FYI this and some neighbor PRs failed CI on i686-linux* with assert introduced in #8857 ( |
|
@1ndahous3 Thanks! |
Summary
count,index,remove, and membership; single-precision arrays no longer round the search value into a false match.append/insertvalue conversion and genericextendcallbacks outside array locks. Recheck exported buffers after conversion and preserve completed extension progress if iteration fails.Related to #6549; follows up on the closed #6576.
Performance
Release build, Windows x64; medians of seven samples against the same main revision.
AI assistance
Written with Codex (GPT-6), reviewed by a human before submission.
Summary by CodeRabbit
indexsupports optional start and stop bounds, including negative indices.