Skip to content

feat: add httpx http client [test] - #1004

Draft
vdusek wants to merge 4 commits into
masterfrom
add-httpx-client
Draft

feat: add httpx http client [test]#1004
vdusek wants to merge 4 commits into
masterfrom
add-httpx-client

Conversation

@vdusek

@vdusek vdusek commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

just testing smt

@vdusek vdusek self-assigned this Aug 11, 2026
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Aug 11, 2026
@github-actions github-actions Bot added this to the 147th sprint - Tooling team milestone Aug 11, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Aug 11, 2026
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.14126% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.97%. Comparing base (4281530) to head (175382d).

Files with missing lines Patch % Lines
src/apify_client/_streamed_log.py 75.00% 2 Missing ⚠️
src/apify_client/http_clients/_base.py 98.60% 2 Missing ⚠️
src/apify_client/http_clients/__init__.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1004      +/-   ##
==========================================
+ Coverage   94.86%   94.97%   +0.10%     
==========================================
  Files          58       59       +1     
  Lines        5357     5472     +115     
==========================================
+ Hits         5082     5197     +115     
  Misses        275      275              
Flag Coverage Δ
integration 92.08% <78.81%> (-0.19%) ⬇️
unit 85.43% <97.76%> (+0.79%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

`ProxyError` was classified as permanently non-retryable, so a proxy answering CONNECT with a transient
status (502, 503, 429) failed on the first attempt instead of being retried, as it was before.

Other changes from the same review pass:

- Rename `_send_request` to `send_request` and `_is_retryable_transport_error` to
  `is_retryable_transport_error`, so the whole documented transport contract is public.
- Drop the no-op hook overrides from the custom-client docs examples and the test doubles, and drop the
  pass-through `LogClient._is_timeout_error`.
- Derive the expected `Accept-Encoding` from HTTPX instead of hard-coding whichever codecs are installed.
- Build `__all__` as one literal per branch, so RUF022 keeps checking it.
- Assert the HTTPX no-timeout mapping through the real `build_request` rather than through a mock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants