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

🐛 make logstreaming callback safer #5633

Conversation

bisgaard-itis
Copy link
Contributor

@bisgaard-itis bisgaard-itis commented Apr 8, 2024

What do these changes do?

  • Improve exception handling in logstreaming callback
  • Log exceptions raised by safe_nack in rabbitmq client

Related issue/s

How to test

cd services/api-server/tests/unit && python -m pytest -k test_log_streamer_not_raise_with_distributor

Dev-ops checklist

@bisgaard-itis bisgaard-itis requested a review from pcrespov as a code owner April 8, 2024 11:50
@bisgaard-itis bisgaard-itis requested review from sanderegg and GitHK April 8, 2024 11:50
@bisgaard-itis bisgaard-itis self-assigned this Apr 8, 2024
@bisgaard-itis bisgaard-itis added the a:apiserver api-server service label Apr 8, 2024
@bisgaard-itis bisgaard-itis added this to the Enchanted Odyssey milestone Apr 8, 2024
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Attention: Patch coverage is 94.11765% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 87.3%. Comparing base (cafbf96) to head (ba01ea5).
Report is 87 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5633      +/-   ##
=========================================
+ Coverage    84.5%   87.3%    +2.7%     
=========================================
  Files          10    1071    +1061     
  Lines         214   46775   +46561     
  Branches       25     650     +625     
=========================================
+ Hits          181   40836   +40655     
- Misses         23    5789    +5766     
- Partials       10     150     +140     
Flag Coverage Δ
integrationtests 65.1% <ø> (?)
unittests 84.8% <94.1%> (+0.2%) ⬆️

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

Files Coverage Δ
...service-library/src/servicelib/rabbitmq/_client.py 100.0% <100.0%> (ø)
...mcore_service_api_server/services/log_streaming.py 94.3% <92.3%> (ø)

... and 1072 files with indirect coverage changes

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.

thanks!

@bisgaard-itis bisgaard-itis requested a review from pcrespov April 8, 2024 13:50
…sgaard-itis/osparc-simcore into 5629-make-logstreaming-callback-safer
@bisgaard-itis bisgaard-itis enabled auto-merge (squash) April 8, 2024 13:51
Copy link

sonarcloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@bisgaard-itis bisgaard-itis merged commit 5c95fe2 into ITISFoundation:master Apr 8, 2024
56 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Apr 26, 2024
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:apiserver api-server service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve logstreaming callback and error handling of logstreaming in api-server
3 participants