Skip to content

refactor: address review comments for GOVFOUN-408 pool timeout fix#913

Merged
Aryamanz29 merged 2 commits into
mainfrom
GOVFOUN-408-review-fixes
Apr 27, 2026
Merged

refactor: address review comments for GOVFOUN-408 pool timeout fix#913
Aryamanz29 merged 2 commits into
mainfrom
GOVFOUN-408-review-fixes

Conversation

@Aryamanz29
Copy link
Copy Markdown
Member

Summary

Follow-up to PR #911 (GOVFOUN-408) which was merged before review fixes could be applied.

Changes

  1. Extract _DEFAULT_POOL_LIMITS and _DEFAULT_POOL_TIMEOUT_SECONDS — same Limits repeated 4x, now defined once at module level
  2. Log old session close at DEBUG — bare except: passexcept as e: LOGGER.debug(...)
  3. LOGGER.warningLOGGER.info for reset_http_session() (expected recovery, not error)
  4. Resilient _get_httpcore_pool test helperpytest.skip() fallback if httpx internals change
  5. Test assertions use constants — auto-update if pool values are tuned

Tests

62/62 pass

🤖 Generated with Claude Code

- Extract _DEFAULT_POOL_LIMITS and _DEFAULT_POOL_TIMEOUT_SECONDS constants
  to eliminate duplication across init, reset, max_retries, and timeout
- Log old session close failure at DEBUG instead of bare except pass
- Change reset_http_session log from WARNING to INFO (expected recovery)
- Add resilient _get_httpcore_pool helper with pytest.skip fallback
- Update test assertions to reference constants instead of hardcoded values
@Aryamanz29 Aryamanz29 self-assigned this Apr 27, 2026
@Aryamanz29 Aryamanz29 added the bugfix Bug fix pull request label Apr 27, 2026
@Aryamanz29 Aryamanz29 merged commit ad1fdd9 into main Apr 27, 2026
91 of 141 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fix pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant