chore(rt): address review nits from #1968 and #1974 - #1992
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
Included review availability: 3 reviews are currently available. Based on recent review activity, included reviews refill at 5 per hour. 📝 WalkthroughWalkthroughChangesProbe and NAT testing
Possibly related PRs
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The PR is merge-ready after normal checks and review; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Pull request overview
Follow-up cleanup to the hhfab runtime connectivity/NAT test harness to ensure probes are correctly scoped/serialized, test selection order avoids state leakage, and fixtures reflect the ping output formats the probes now parse.
Changes:
- Make proto-port probe semaphore usage explicit and safer (release via
deferwithin the proto-port probe scope). - Make NAT tests fail loudly when no probe servers are found (preventing unintended “probe everything” behavior).
- Reorder “Gateway Peering Overlap NAT” to run last in the Gateway NAT/ACL suite and fix ping fixture timestamps for
-D -Ooutput.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/hhfab/testing_test.go | Fixes ping -D -O fixture timestamps to be monotonic/unique to match real output expectations. |
| pkg/hhfab/rt_nat_tests.go | Adds an explicit error when probe sources are empty; clarifies probe-server selection behavior; removes overlap test from the general NAT list. |
| pkg/hhfab/rt_gw_nat_acl_suite.go | Appends “Gateway Peering Overlap NAT” last to reduce cross-test state contamination in the suite. |
| pkg/hhfab/matrix.go | Clarifies probe semaphore scope and releases the semaphore via defer to prevent stalls on early exits. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Follow-ups to comments that were marked addressed but were not: - record that the proto-port probe semaphore only covers its own phase, since the server-to-server phase keeps pinging concurrently - release that semaphore via defer, so a future early exit between the acquire and the release cannot stall the phase on its single slot - fail loudly when a NAT test finds no servers to probe: an empty source list reads as "no filter" downstream and probes the whole matrix - run Gateway Peering Overlap NAT last in the gateway NAT/ACL suite; it creates an IPv4Namespace and a VPC and re-attaches a server, and without a wipe between tests the rest of the suite inherits whatever its reverts miss - fix the -D -O ping fixture timestamps, which were non-monotonic and duplicated Signed-off-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Emanuele Di Pascale <emanuele@githedgehog.com>
5e8adcb to
6711e57
Compare
Follow-ups to comments that were marked addressed but were not: