Skip to content

Conversation

@wvangeit
Copy link
Contributor

@wvangeit wvangeit commented Jun 4, 2025

What do these changes do?

The function api now returns cleaner error message when exceptions are thrown in the webserver etc. E.g in case access is denied, inputs don't follow the schema, etc.
Based on MB's suggestion on how to this, i.e. by adding a function error handler.

How to test

E.g. run a function with inputs that don't match the json schema, you should now get a clean error code and message

Dev-ops

No changes

@wvangeit wvangeit added this to the Bazinga! milestone Jun 4, 2025
@wvangeit wvangeit self-assigned this Jun 4, 2025
@wvangeit wvangeit requested a review from pcrespov as a code owner June 4, 2025 12:29
@wvangeit wvangeit added the a:apiserver api-server service label Jun 4, 2025
@wvangeit wvangeit added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 4, 2025
@codecov
Copy link

codecov bot commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.21%. Comparing base (2f0a89d) to head (240c0a2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7810      +/-   ##
==========================================
+ Coverage   86.74%   88.21%   +1.46%     
==========================================
  Files        1850     1465     -385     
  Lines       71936    60982   -10954     
  Branches     1218      476     -742     
==========================================
- Hits        62403    53796    -8607     
+ Misses       9191     7065    -2126     
+ Partials      342      121     -221     
Flag Coverage Δ
integrationtests 64.21% <ø> (+0.05%) ⬆️
unittests 87.95% <100.00%> (+1.45%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 93.17% <100.00%> (+0.01%) ⬆️
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration 69.92% <ø> (ø)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.10% <ø> (+0.05%) ⬆️
agent 96.29% <ø> (ø)
api_server 91.75% <100.00%> (+0.02%) ⬆️
autoscaling 96.03% <ø> (ø)
catalog 92.29% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 91.79% <ø> (ø)
datcore_adapter 97.94% <ø> (ø)
director 76.73% <ø> (ø)
director_v2 91.00% <ø> (+0.01%) ⬆️
dynamic_scheduler 96.69% <ø> (ø)
dynamic_sidecar 90.08% <ø> (ø)
efs_guardian 89.65% <ø> (ø)
invitations 93.00% <ø> (ø)
payments 92.57% <ø> (ø)
resource_usage_tracker 88.87% <ø> (-0.17%) ⬇️
storage 87.46% <ø> (-0.32%) ⬇️
webclient ∅ <ø> (∅)
webserver 83.75% <ø> (-0.02%) ⬇️

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 2f0a89d...240c0a2. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wvangeit
Copy link
Contributor Author

wvangeit commented Jun 5, 2025

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 5, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 3c20e92

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 5, 2025

@mergify mergify bot merged commit 3c20e92 into ITISFoundation:master Jun 5, 2025
96 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@wvangeit wvangeit deleted the handle_function_errors_api branch August 5, 2025 09:39
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:apiserver api-server service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants