Skip to content

test: E2E tests for proxy resilience (Phase 16)#54

Closed
risjai wants to merge 2 commits into
masterfrom
test/e2e-proxy-resilience
Closed

test: E2E tests for proxy resilience (Phase 16)#54
risjai wants to merge 2 commits into
masterfrom
test/e2e-proxy-resilience

Conversation

@risjai

@risjai risjai commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add tests/e2e/test_16_proxy_resilience.py with 3 end-to-end tests covering the proxy resilience features shipped in PRs #49, #51, #52:

  • 16a: Health endpoint — live proxy returns /_rewind/health with all expected fields
  • 16b: Init-time fallthrough — Python SDK falls back to direct mode when proxy is down, preserves session name
  • 16c: Circuit breaker — full CLOSED → OPEN → HALF_OPEN → CLOSED cycle with step recording and resource teardown

Test plan

  • python3 tests/e2e/test_16_proxy_resilience.py — all 3 pass locally

🤖 Generated with Claude Code

Three end-to-end tests covering the proxy resilience features:

- 16a: Health endpoint — verifies GET /_rewind/health returns 200 with
  status=ok, version, session, and steps fields from a live proxy
- 16b: Init-time fallthrough — verifies Python SDK falls back to direct
  mode with correct session name when proxy is unreachable
- 16c: Circuit breaker state machine — verifies full CLOSED → OPEN →
  HALF_OPEN → CLOSED cycle, including direct recorder step creation
  and resource teardown on recovery

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@risjai
risjai enabled auto-merge (squash) April 12, 2026 16:16
@risjai

risjai commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator Author

Closing — tests/ directory should be gitignored, not committed to the repo.

@risjai risjai closed this Apr 12, 2026
auto-merge was automatically disabled April 12, 2026 16:18

Pull request was closed

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