Repository navigation
fix: private client dir, backgrounded port-forward, non-connecting readiness, listener host in remote-debugging skill - #752
Conversation
…adiness, listener host in remote-debugging skill Closes #751 Mirror the verified fixes from RedHatQE/openshift-virtualization-tests#6583: - Attach client uses a per-session private directory (mkdir -m 700, fails closed on pre-existing paths) instead of predictable /tmp FIFO paths - Pod port-forward runs in the background with PID capture and kill - Readiness poll uses ss -ltn + kill -0 only (a connecting probe would consume RemotePdb's single client session) - Client resolves host/port from the run's "RemotePdb session open at" line instead of hardcoding 127.0.0.1 Assisted-by: PI (rits/zai-org/glm-5-3) <noreply@pi.dev> Signed-off-by: Meni Yakove <myakove@gmail.com>
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
✨ Finishing Touches
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 |
PR Summary by QodoFix remote debugger attach instructions and client isolation
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
…mote-debugging skill Qodo review follow-ups on PR #752: - Readiness poll now matches the listener to THIS forward (ss -ltnp pid= match) — a bare port match could be an unrelated process that already owned the port, sending the client to it - Listener-address lookup no longer shows the session line with a literal 127.0.0.1 and every fallback step now yields a host (REMOTE_PDB_HOST / ss bound address / 127.0.0.1 default), so the client always has $host Assisted-by: PI (litellm/claude-opus-4-6) <noreply@pi.dev> Signed-off-by: Meni Yakove <myakove@gmail.com>
|
Code review by qodo was updated up to the latest commit 8e4dd60 |
|
New container for ghcr.io/redhatqe/mtv-api-tests:latest published |
Closes #751
Mirrors the verified fixes from RedHatQE/openshift-virtualization-tests#6583, where the ported remote-debugging skill went through further review rounds. All four findings were confirmed against our copy before fixing.
Changes (
skills/remote-debugging/SKILL.md,README.md)/tmp/remote-pdb-${port}-in|outpaths withrm -f; on sticky/tmpanother local user could pre-create them and read debugger output or inject commands through the FIFO. Now:CLIENT_DIR="/tmp/remote-pdb-${port}-$$"with atomicmkdir -m 700(fails closed on pre-existing paths), FIFO and output inside it, cleanuprm -rf "$CLIENT_DIR".oc port-forwardin the foreground, soncnever ran when the block was executed as documented. Now backgrounded with PID capture and post-session kill.ss -ltn+kill -0liveness, bounded 30 × 1s, cleanup and exit on timeout.nc 127.0.0.1 $portwhileREMOTE_PDB_HOSTexists; with e.g.127.0.0.2the client waited forever. Now resolves host and port from the run'sRemotePdb session open at <host>:<port>line (README attach snippet updated the same way).Not applicable here: the Python 3.14
interaction(tb_or_exc=...)keyword rename from the upstream review — ourutilities/debug.pycallsinteraction()positionally, which is version-agnostic.Docs-only change:
.pi/skills/remote-debuggingis a symlink toskills/remote-debugging, so the single file covers both copies.Assisted-by: PI (rits/zai-org/glm-5-3)
Summary by CodeRabbit