Repository navigation
Cover IDE reconnect and resource resize regressions - #275
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe preparation flow now verifies process stability before recording sessions. Resource reservation now verifies pod identity and specification before resizing. New tests cover session reconnects, process replacement, resource calculations, resize polling, and unsafe resize cases. ChangesIDE session safety
Pod resource safety
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The attach and resize paths now reject changed process or pod identities before committing unsafe state. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
debugpy.listen() runs once per process, and its adapter exits when the IDE disconnects. A later Attach to the same process found no listener, re-injected, and failed after a 5 s wait with "debugpy did not open its listener" while debugpy printed a traceback on the application console. Seen in the #277 live acceptance run on P47 fastcs. Fail fast before GDB or holds when the recorded injection belongs to the same process start, and tell the user to restart the application. Co-Authored-By: Claude Opus 5 <[email protected]>
cppdbg cannot map GDB's "i386:x86-64" and refused to start the generated native Attach with "Specified argument was out of the range of valid values. (Parameter 'arch')", shown only in a native dialog while the Debug Console reported exit code 42. Seen in the #277 live acceptance run on P47 simdet-01. Read the ELF machine field of the target executable and set targetArchitecture to x64 or arm64 when it is known. Co-Authored-By: Claude Opus 5 <[email protected]>
Summary
Add 42 regression cases across the two agreed areas, reusing the ownership coverage from #274:
The tests exposed three races, fixed with nine net production lines:
Live acceptance on P47 (#277) found two more defects, fixed in the last two commits:
debugpy is already loaded in PID N from an earlier session; run podbench restart to attach again. debugpy can listen only once per process and its adapter exits on Disconnect, so this previously failed after a 5 s wait withdebugpy did not open its listener.targetArchitecture(x64/arm64) from the target executable's ELF header. Without it cppdbg refused to start with(Parameter 'arch'), visible only in a hidden native dialog.No broader refactor or feature removal.
Verification
4500a7c; native IDE Attach and reconnect (including the new fail-fast message) passed on6c9a40a; headroom reserved once and not increased on reconnect.Summary by CodeRabbit