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

🐛 ♻️ Is3125/gc review #3130

Merged
merged 13 commits into from
Jun 22, 2022
Merged

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Jun 22, 2022

What do these changes do?

First review of incident #3125 lead to minor fixes and some refactoring to improve logging in the garbage collector (GC)

  • 🐛 Fixes exception while handling exception due to wrong msg argument for DynamicSidecarError
  • 🐛 Fixes default in servicelib.logging_utils.set_logging_handler
  • ♻️ improves logs in GC ( e.g. context logs and info level)
  • ♻️ holds a copy of task in app's store as app[GC_TASK] (currently only kept in local scope of run_background_task)
  • ♻️ improves annotations in redis registry

Further analysis&fixes will follow in separate PRs.

Related issue/s

How to test

  • CI covered

@pcrespov pcrespov self-assigned this Jun 22, 2022
@pcrespov pcrespov added the a:webserver issue related to the webserver service label Jun 22, 2022
@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #3130 (f795396) into master (76171d1) will increase coverage by 0.0%.
The diff coverage is 89.3%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3130   +/-   ##
======================================
  Coverage    80.9%   80.9%           
======================================
  Files         706     706           
  Lines       30468   30490   +22     
  Branches     3948    3949    +1     
======================================
+ Hits        24666   24695   +29     
+ Misses       4956    4944   -12     
- Partials      846     851    +5     
Flag Coverage Δ
integrationtests 65.9% <80.9%> (+<0.1%) ⬆️
unittests 77.2% <89.3%> (+<0.1%) ⬆️

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

Impacted Files Coverage Δ
...es/service-library/src/servicelib/logging_utils.py 0.0% <0.0%> (ø)
..._director_v2/modules/dynamic_sidecar/docker_api.py 89.0% <ø> (-0.5%) ⬇️
...imcore_service_webserver/garbage_collector_core.py 66.8% <84.2%> (-2.1%) ⬇️
...imcore_service_webserver/garbage_collector_task.py 97.6% <91.6%> (-2.4%) ⬇️
...mcore_service_webserver/garbage_collector_utils.py 82.0% <100.0%> (+2.6%) ⬆️
...ore_service_webserver/resource_manager/registry.py 94.8% <100.0%> (+0.6%) ⬆️
...ce_webserver/resource_manager/websocket_manager.py 93.5% <0.0%> (-1.3%) ⬇️
...src/simcore_service_webserver/socketio/handlers.py 81.5% <0.0%> (-1.0%) ⬇️
.../director/src/simcore_service_director/producer.py 61.6% <0.0%> (-0.9%) ⬇️
... and 9 more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.4% 0.4% Duplication

@pcrespov pcrespov changed the title WIP: 🐛 ♻️ Is3125/gc review 🐛 ♻️ Is3125/gc review Jun 22, 2022
@pcrespov pcrespov marked this pull request as ready for review June 22, 2022 13:39
@pcrespov pcrespov requested review from sanderegg and GitHK as code owners June 22, 2022 13:39
@pcrespov pcrespov requested a review from mrnicegyu11 June 22, 2022 13:39
Copy link
Member

@mrnicegyu11 mrnicegyu11 left a comment

Choose a reason for hiding this comment

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

lgtm, thx for this

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!

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

👍

@pcrespov pcrespov merged commit 827e2a0 into ITISFoundation:master Jun 22, 2022
@pcrespov pcrespov deleted the is3125/gc-review branch June 22, 2022 16:01
@sanderegg sanderegg added this to the Diolkos milestone Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:webserver issue related to the webserver service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants