Skip to content

Conversation

@GitHK
Copy link
Contributor

@GitHK GitHK commented May 23, 2025

What do these changes do?

To help with system debugging, when dynamic-sidecar starts it will print the available disk space, before it does any operation which requires disk space.

Related issue/s

How to test

Dev-ops

@GitHK GitHK self-assigned this May 23, 2025
@GitHK GitHK requested a review from Copilot May 23, 2025 06:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a startup log of current disk usage and refactors the disk usage monitor registration.

  • Introduces _display_current_disk_usage to log disk stats on application startup.
  • Refactors _disk_usage.py to separate monitor creation (create_disk_usage_monitor), retrieval (get_disk_usage_monitor), and setup.
  • Adjusts application initialization order by moving setup_system_monitor after mounting volumes.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
modules/system_monitor/_setup.py Added display helper, conditional setup, and startup handler for disk usage logging
modules/system_monitor/_disk_usage.py Split monitor creation/get, renamed and reordered methods, consolidated setup handlers
core/application.py Moved setup_system_monitor call below setup_mounted_fs

@codecov
Copy link

codecov bot commented May 23, 2025

Codecov Report

Attention: Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 66.54%. Comparing base (94d07d3) to head (7fbefbb).

❗ There is a different number of reports uploaded between BASE (94d07d3) and HEAD (7fbefbb). Click for more details.

HEAD has 31 uploads less than BASE
Flag BASE (94d07d3) HEAD (7fbefbb)
unittests 32 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7740       +/-   ##
===========================================
- Coverage   87.32%   66.54%   -20.79%     
===========================================
  Files        1838      700     -1138     
  Lines       71431    33297    -38134     
  Branches     1214      174     -1040     
===========================================
- Hits        62379    22156    -40223     
- Misses       8710    11083     +2373     
+ Partials      342       58      -284     
Flag Coverage Δ
integrationtests 64.37% <62.50%> (+0.01%) ⬆️
unittests 89.26% <95.00%> (+2.71%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 76.83% <ø> (-8.24%) ⬇️
agent ∅ <ø> (∅)
api_server ∅ <ø> (∅)
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 77.59% <ø> (-13.43%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 90.19% <95.00%> (+<0.01%) ⬆️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 58.42% <ø> (-27.29%) ⬇️

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 94d07d3...7fbefbb. 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.

@GitHK GitHK marked this pull request as ready for review May 23, 2025 06:56
@GitHK GitHK added this to the Bazinga! milestone May 23, 2025
@GitHK GitHK added the a:dynamic-sidecar dynamic-sidecar service label May 23, 2025
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

@GitHK
Copy link
Contributor Author

GitHK commented May 23, 2025

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 23, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at cb35a6e

@GitHK GitHK added the 🤖-automerge marks PR as ready to be merged for Mergify label May 23, 2025
@sonarqubecloud
Copy link

@mergify mergify bot merged commit cb35a6e into ITISFoundation:master May 23, 2025
93 of 96 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@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:dynamic-sidecar dynamic-sidecar service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants