Skip to content

Fix unreachable target expectation handling - #2

Merged
Eric Greer (integrii) merged 1 commit into
mainfrom
codex/fix-unreachable-network-check
Jun 29, 2026
Merged

Eric Greer (integrii) merged 1 commit into
mainfrom
codex/fix-unreachable-network-check

Conversation

@kuberhealthy-coder

Copy link
Copy Markdown
Contributor

Summary

  • fail checks when CONNECTION_TARGET_UNREACHABLE=true but the target is reachable
  • classify dial failures separately from successful dial/close failures
  • use DialContext so expected-unreachable dial timeouts are handled by the dial result instead of racing an outer timer
  • add unit coverage for reachable, unreachable, close-error, pre-dial context, and address parsing behavior

Addresses kuberhealthy/kuberhealthy#1283.

Validation

  • PATH=/tmp/go1.24.3/bin:/usr/bin:/bin:$PATH go test ./...
  • git diff --check

Review

  • Adversarial subagent review completed; no significant findings after the context-error fix.

@kuberhealthy-code-reviewer kuberhealthy-code-reviewer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. The unreachable-target path now fails when the target connects successfully and passes only on dial failure, with focused regression coverage for both reachable and unreachable expectations.

Verified locally with CGO_ENABLED=0 go1.24.3 test ./...; GitHub build and DCO checks are also green.

Recommendation: ready for maintainer final review and merge.

@integrii
Eric Greer (integrii) merged commit ec721eb into main Jun 29, 2026
2 checks passed
@integrii

Copy link
Copy Markdown
Member

LGTM. Ship it.

@integrii
Eric Greer (integrii) deleted the codex/fix-unreachable-network-check branch June 29, 2026 02:41
@kuberhealthy-release-manager

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant