NO-ISSUE: C2CC IPSec test: tcpdump robustness#6845
Conversation
|
@pmtk: This pull request explicitly references no jira issue. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughTwo Robot Framework keywords switch tcpdump execution to per-alias SSH connections: Start Tcpdump For ESP On Cluster drops the timeout and launches tcpdump via SSHLibrary.Start Command (sudo) returning the pcap path; Wait For Tcpdump And Verify ESP stops tcpdump with SIGINT and reads command output via SSHLibrary before pcap verification. ChangesTcpdump SSH Integration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pmtk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/resources/ipsec.resource`:
- Around line 84-86: Capture and surface tcpdump's stdout/stderr when running
over SSH so failures are visible: after obtaining ${conn_id} from
${C2CC_SSH_IDS}/${alias} and calling SSHLibrary.Switch Connection, read and
store the command output from SSHLibrary.Read Command Output into a variable
(both stdout and stderr if available), log that content (or write to a debug
file) and assert/raise an error if tcpdump reported problems (permission denied,
interface not found, etc.) before continuing to the "no ESP packets" checks;
update the block that uses ${conn_id}, SSHLibrary.Switch Connection, and
SSHLibrary.Read Command Output to capture, log, and fail fast on tcpdump errors.
- Line 75: Update the tcpdump invocation used by SSHLibrary.Start Command so it
includes the packet-buffered flag; specifically, modify the command string
passed to SSHLibrary.Start Command (the line containing "tcpdump -i ${iface} -w
${pcap_file} esp 2>/dev/null sudo=True") to add the "-U" (or
"--packet-buffered") option immediately after "tcpdump" so the pcap file is
flushed per-packet and avoids racy reads.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 4df3c100-5c79-40c7-bc6b-60cad2387690
📒 Files selected for processing (1)
test/resources/ipsec.resource
522529c to
505d29c
Compare
505d29c to
ca26921
Compare
|
@pmtk: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary by CodeRabbit