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

♻️ aiohttp deprecation: Using web.json_response to return 2XX responses instead of raising HttpException #6829

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Nov 26, 2024

What do these changes do?

aiohttp deprecated returning HttpException. Moreover, raising non-error creates false negatives as in the example below where 201 (Created) was shown as an error in our tracing

Jaeger captures these exceptions as errors in storage:
image

Related issue/s

How to test

Dev-ops

None

@pcrespov pcrespov added the t:maintenance Some planned maintenance work label Nov 26, 2024
@pcrespov pcrespov self-assigned this Nov 26, 2024
@pcrespov pcrespov requested a review from sanderegg as a code owner November 26, 2024 08:56
@pcrespov pcrespov changed the title Fix/return web json ♻️ aiohttp deprecation: Using web.json_response to return 2XX responses instead of raising HttpException Nov 26, 2024
@pcrespov pcrespov added this to the Event Horizon milestone Nov 26, 2024
@pcrespov pcrespov enabled auto-merge (squash) November 26, 2024 09:03
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.14%. Comparing base (bca766c) to head (966110a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6829      +/-   ##
==========================================
- Coverage   88.14%   88.14%   -0.01%     
==========================================
  Files        1513     1513              
  Lines       59634    59632       -2     
  Branches     2166     2166              
==========================================
- Hits        52562    52560       -2     
  Misses       6741     6741              
  Partials      331      331              
Flag Coverage Δ *Carryforward flag
integrationtests 64.79% <ø> (+<0.01%) ⬆️
unittests 85.99% <ø> (-0.01%) ⬇️ Carriedforward from bca766c

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
api 78.42% <ø> (ø)
pkg_aws_library 93.28% <ø> (ø)
pkg_dask_task_models_library 96.57% <ø> (ø)
pkg_models_library 91.16% <ø> (ø)
pkg_notifications_library 84.57% <ø> (ø)
pkg_postgres_database 87.52% <ø> (ø)
pkg_service_integration 70.00% <ø> (ø)
pkg_service_library 76.05% <ø> (ø)
pkg_settings_library 90.62% <ø> (ø)
pkg_simcore_sdk 85.36% <ø> (ø)
agent 97.00% <ø> (ø)
api_server 89.72% <ø> (ø)
autoscaling ∅ <ø> (∅)
catalog 90.57% <ø> (ø)
clusters_keeper 98.73% <ø> (ø)
dask_sidecar 91.26% <ø> (ø)
datcore_adapter 93.17% <ø> (ø)
director 76.40% <ø> (ø)
director_v2 91.13% <ø> (ø)
dynamic_scheduler 96.59% <ø> (ø)
dynamic_sidecar 89.75% <ø> (ø)
efs_guardian 90.12% <ø> (ø)
invitations 93.44% <ø> (ø)
osparc_gateway_server 85.49% <ø> (ø)
payments 92.76% <ø> (ø)
resource_usage_tracker 90.64% <ø> (ø)
storage 89.65% <ø> (-0.02%) ⬇️
webclient ∅ <ø> (∅)
webserver 88.66% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bca766c...966110a. Read the comment docs.

@pcrespov pcrespov force-pushed the fix/return-web-json branch from d56a6cd to 9ae6010 Compare November 26, 2024 14:56
@pcrespov pcrespov force-pushed the fix/return-web-json branch from 71a24d8 to 966110a Compare November 26, 2024 17:56
@pcrespov pcrespov merged commit 5fcb5cf into ITISFoundation:master Nov 26, 2024
90 checks passed
@pcrespov pcrespov deleted the fix/return-web-json branch November 27, 2024 12:23
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jan 15, 2025
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants