Skip to content

Conversation

sanderegg
Copy link
Member

This pull request introduces several improvements and bug fixes across multiple packages, focusing on enhanced error logging, improved logging messages, and minor code cleanups. The most significant changes are grouped below by theme.

Enhanced Error Logging and Troubleshooting

  • Added usage of the new create_troubleshootting_log_kwargs helper for more informative error logs in logging_utils.py
  • Changed several logging messages in the file upload completion workflow to provide clearer information, such as specifying when upload completion is required and clarifying error messages when upload is not ready. Also, increased the log level from debug to info for successful multipart upload completion.
  • Fixed minor formatting and consistency issues, such as trailing commas in function signatures and placement of pylint comments in logging_utils.py and the dynamic scheduler's director client.
  • Improved error reporting in the dynamic scheduler by including the unexpected status error in ServiceWaitingForManualInterventionError for better diagnostics.
  • Removed unused imports in the socket.io handlers for cleaner code.

What do these changes do?

Related issue/s

How to test

Dev-ops

@sanderegg sanderegg added this to the Cheops milestone Sep 15, 2025
@sanderegg sanderegg requested a review from Copilot September 15, 2025 13:47
@sanderegg sanderegg self-assigned this Sep 15, 2025
@sanderegg sanderegg added the a:services-library issues on packages/service-libs label Sep 15, 2025
Copy link
Contributor

@Copilot 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

This pull request introduces maintenance improvements focusing on enhanced error logging, cleaner code structure, and better troubleshooting capabilities across multiple services. The changes enhance error reporting with structured logging helpers, improve log message clarity, and clean up unused imports.

  • Enhanced error logging with create_troubleshootting_log_kwargs helper for better diagnostics
  • Improved socketio disconnect handler structure and simplified contextual error handling
  • Updated log messages for file upload completion workflow to be more informative

Reviewed Changes

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

File Description
services/web/server/src/simcore_service_webserver/socketio/_handlers.py Removed unused import and restructured disconnect handler with better error logging
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/director_v2/_public_client.py Added trailing commas and enhanced error reporting with status details
packages/simcore-sdk/src/simcore_sdk/node_ports_common/_filemanager_utils.py Improved log messages for upload completion workflow and increased log levels
packages/service-library/src/servicelib/logging_utils.py Added import for troubleshooting helper and enhanced exception logging

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx

Copy link
Contributor

mergify bot commented Sep 15, 2025

🧪 CI Insights

Here's what we observed from your CI run for ee0c25a.

❌ Job Failures

Pipeline Job Health on master Retries 🔍 CI Insights 📄 Logs
CI integration-tests Healthy 0 View View
unit-tests Healthy 0 View View
PR CI check OAS' are up to date Unknown 0 View View

✅ Passed Jobs With Interesting Signals

Pipeline Job Signal Health on master Retries 🔍 CI Insights 📄 Logs
CI system-tests Base branch is broken, but the job passed. Looks like this might be a real fix 💪 Broken 0 View View

Copy link

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 86.36364% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.52%. Comparing base (62565ba) to head (ee0c25a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8370      +/-   ##
==========================================
+ Coverage   87.86%   89.52%   +1.65%     
==========================================
  Files        1945     1320     -625     
  Lines       75630    55820   -19810     
  Branches     1321      175    -1146     
==========================================
- Hits        66456    49974   -16482     
+ Misses       8776     5788    -2988     
+ Partials      398       58     -340     
Flag Coverage Δ
integrationtests 73.41% <100.00%> (+9.47%) ⬆️
unittests 88.01% <79.54%> (+1.48%) ⬆️
Components Coverage Δ
pkg_aws_library ∅ <ø> (∅)
pkg_celery_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 84.99% <100.00%> (ø)
agent 93.53% <ø> (ø)
api_server 91.94% <ø> (ø)
autoscaling 95.77% <ø> (ø)
catalog 92.36% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 92.37% <ø> (+0.56%) ⬆️
datcore_adapter 97.94% <ø> (ø)
director 75.81% <ø> (-0.09%) ⬇️
director_v2 91.01% <ø> (ø)
dynamic_scheduler 96.27% <ø> (ø)
dynamic_sidecar 90.46% <ø> (ø)
efs_guardian 89.62% <ø> (ø)
invitations 91.44% <ø> (ø)
payments 92.62% <100.00%> (+<0.01%) ⬆️
resource_usage_tracker 92.08% <ø> (-0.22%) ⬇️
storage 86.83% <ø> (+0.16%) ⬆️
webclient ∅ <ø> (∅)
webserver 87.23% <83.78%> (-0.71%) ⬇️

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 62565ba...ee0c25a. 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.

@sanderegg sanderegg force-pushed the maintenance/fix-multiple-issues branch from 097ec75 to ee0c25a Compare September 16, 2025 08:34
Copy link

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.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:services-library issues on packages/service-libs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants