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

🐛 webserver now replies with unknown service state #5230

Merged
merged 14 commits into from
Jan 18, 2024

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Jan 12, 2024

What do these changes do?

If the dynamic-scheduler raises an error, while the webserver is asking for the service state, the frontend will receive an unknown state.

Upon receiving an unknown state the fronted will try again to fetch the state. At the moment this seems like the safest action to take. In the future, when the service state will be totally driven by the frontend, no further action will be required.

Bonus:

  • fixed opsenapi specs for the webserver
  • 🎨 better log messages upon RPC error in both the caller and the responder

Related issue/s

How to test

Dev Checklist

DevOps Checklist

@GitHK GitHK self-assigned this Jan 12, 2024
@GitHK GitHK added a:frontend issue affecting the front-end (area group) a:static-webserver static-webserver service a:dynamic-scheduler labels Jan 12, 2024
@GitHK GitHK added this to the This is Sparta! milestone Jan 12, 2024
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7fe457d) 87.3% compared to head (1a314d7) 87.2%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #5230     +/-   ##
========================================
- Coverage    87.3%   87.2%   -0.2%     
========================================
  Files        1302    1186    -116     
  Lines       53208   50797   -2411     
  Branches     1168     954    -214     
========================================
- Hits        46474   44302   -2172     
+ Misses       6484    6282    -202     
+ Partials      250     213     -37     
Flag Coverage Δ
integrationtests 65.0% <40.0%> (-0.1%) ⬇️
unittests 84.9% <91.3%> (-0.3%) ⬇️

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

Files Coverage Δ
...service-library/src/servicelib/rabbitmq/_errors.py 100.0% <100.0%> (ø)
...ice-library/src/servicelib/rabbitmq/_rpc_router.py 86.0% <ø> (ø)
...c_scheduler/services/director_v2/_public_client.py 92.0% <100.0%> (ø)
...simcore_service_webserver/dynamic_scheduler/api.py 88.0% <100.0%> (+1.9%) ⬆️
...core_service_webserver/projects/_nodes_handlers.py 94.8% <100.0%> (ø)
...ls_library/api_schemas_webserver/projects_nodes.py 96.1% <81.8%> (-3.9%) ⬇️

... and 121 files with indirect coverage changes

@GitHK GitHK marked this pull request as ready for review January 12, 2024 12:20
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

looking good. please check my comments. Thanks!

Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

👍

@GitHK GitHK requested a review from pcrespov January 17, 2024 14:48
@GitHK GitHK enabled auto-merge (squash) January 17, 2024 15:18
Copy link

sonarcloud bot commented Jan 18, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mrnicegyu11 mrnicegyu11 disabled auto-merge January 18, 2024 08:15
@mrnicegyu11 mrnicegyu11 merged commit b4088ad into ITISFoundation:master Jan 18, 2024
55 checks passed
@GitHK GitHK deleted the pr-osparc-fix-500-get-status branch January 18, 2024 08:16
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Feb 14, 2024
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:dynamic-scheduler a:frontend issue affecting the front-end (area group) a:static-webserver static-webserver service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants