Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V8] change requests to httpx #2090

Open
wants to merge 16 commits into
base: v8-release
Choose a base branch
from
Open

[V8] change requests to httpx #2090

wants to merge 16 commits into from

Conversation

haakonvt
Copy link
Contributor

@haakonvt haakonvt commented Jan 13, 2025

DM-1888
So draft it hurts 😁
Update: Less draft, less hurt

Update: Should be ready for early review / feedback now 👌

TODO:

@haakonvt haakonvt force-pushed the change-to-httpx branch 2 times, most recently from d487c2a to c9d2a04 Compare January 20, 2025 22:55
@haakonvt haakonvt force-pushed the change-to-httpx branch 4 times, most recently from 51dd867 to 00a0156 Compare January 27, 2025 10:25
@haakonvt haakonvt changed the title Draft: Change requests to httpx change requests to httpx Feb 4, 2025
@haakonvt haakonvt changed the base branch from master to v8-release February 4, 2025 10:13
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 91.84061% with 43 lines in your changes missing coverage. Please review.

Project coverage is 90.37%. Comparing base (4a3c0d1) to head (6f810f2).
Report is 1 commits behind head on v8-release.

Files with missing lines Patch % Lines
cognite/client/_http_client.py 87.61% 14 Missing ⚠️
cognite/client/_basic_api_client.py 93.56% 13 Missing ⚠️
cognite/client/config.py 63.63% 4 Missing ⚠️
cognite/client/_api/workflows.py 50.00% 2 Missing ⚠️
cognite/client/_cognite_client.py 71.42% 2 Missing ⚠️
cognite/client/exceptions.py 92.59% 2 Missing ⚠️
cognite/client/utils/_version_checker.py 0.00% 2 Missing ⚠️
cognite/client/_api/raw.py 90.90% 1 Missing ⚠️
cognite/client/utils/_concurrency.py 93.75% 1 Missing ⚠️
cognite/client/utils/_pyodide_helpers.py 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@             Coverage Diff             @@
##           v8-release    #2090   +/-   ##
===========================================
  Coverage       90.37%   90.37%           
===========================================
  Files             152      154    +2     
  Lines           23117    23145   +28     
===========================================
+ Hits            20891    20918   +27     
- Misses           2226     2227    +1     
Files with missing lines Coverage Δ
cognite/client/_api/assets.py 97.72% <100.00%> (+<0.01%) ⬆️
cognite/client/_api/data_modeling/graphql.py 100.00% <100.00%> (ø)
cognite/client/_api/datapoints.py 98.51% <100.00%> (+0.15%) ⬆️
cognite/client/_api/diagrams.py 85.26% <ø> (-0.16%) ⬇️
cognite/client/_api/documents.py 76.52% <100.00%> (-0.79%) ⬇️
cognite/client/_api/extractionpipelines.py 97.70% <100.00%> (+0.02%) ⬆️
cognite/client/_api/files.py 89.85% <100.00%> (-0.04%) ⬇️
cognite/client/_api/functions.py 94.39% <ø> (ø)
cognite/client/_api/geospatial.py 92.70% <100.00%> (+0.97%) ⬆️
cognite/client/_api/postgres_gateway/tables.py 90.00% <100.00%> (ø)
... and 25 more

... and 3 files with indirect coverage changes

@haakonvt haakonvt force-pushed the change-to-httpx branch 5 times, most recently from 1a422c8 to 87b982b Compare February 5, 2025 23:01
@haakonvt haakonvt marked this pull request as ready for review February 5, 2025 23:01
@haakonvt haakonvt requested review from a team as code owners February 5, 2025 23:01
@haakonvt haakonvt changed the base branch from v8-release to master February 5, 2025 23:01
@haakonvt haakonvt force-pushed the change-to-httpx branch 9 times, most recently from 622ca10 to b76307c Compare February 10, 2025 17:57
@haakonvt haakonvt changed the base branch from master to v8-release February 19, 2025 00:03
@haakonvt haakonvt changed the title change requests to httpx [V8] change requests to httpx Feb 19, 2025
@haakonvt haakonvt mentioned this pull request Feb 21, 2025
haakonvt added 8 commits March 1, 2025 02:00
- fix tests/tests_unit/test_api/test_assets.py
- fix tests/tests_unit/test_api/test_data_modeling/test_containers.py
- fix tests/tests_unit/test_api/test_data_sets.py
- fix tests/tests_unit/test_api/test_datapoints.py
- fix tests/tests_unit/test_api/test_documents.py
- fix tests/tests_unit/test_api/test_entity_matching.py
- fix tests/tests_unit/test_api/test_events.py
- fix tests/tests_unit/test_api/test_extractionpipelines.py
- fix tests/tests_unit/test_api/test_files.py (puh!)
- fix tests/tests_unit/test_api/test_functions.py (mega puuh)
- fix tests/tests_unit/test_api/test_iam.py
- fix tests/tests_unit/test_api/test_labels.py
- fix tests/tests_unit/test_api/test_raw.py
- fix tests/tests_unit/test_api/test_relationships.py
- fix tests/tests_unit/test_api/test_sequences.py (puh again)
- fix tests/tests_unit/test_api/test_synthetic_time_series.py
- fix tests/tests_unit/test_api/test_time_series.py
- fix tests/tests_unit/test_api/test_vision_extract.py
- fix tests/tests_unit/test_api_client.py ( 👀 )
- fix tests/tests_unit/test_cognite_client.py
- fix tests/tests_unit/test_data_classes/test_capabilities.py
- fix tests/tests_unit/test_http_client.py
- fix tests/tests_unit/test_meta.py
@haakonvt haakonvt force-pushed the change-to-httpx branch 2 times, most recently from 4219377 to 1dad953 Compare March 1, 2025 01:55
Comment on lines +492 to +494
body_data: bytes = b""
async for x in request.stream:
body_data += x
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Quadratic loop 🤔

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