-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Adds RPC interface for containers routes
#8227
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
✨ Adds RPC interface for containers routes
#8227
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8227 +/- ##
==========================================
- Coverage 87.94% 87.73% -0.22%
==========================================
Files 1930 1508 -422
Lines 74827 62363 -12464
Branches 1309 656 -653
==========================================
- Hits 65808 54714 -11094
+ Misses 8627 7418 -1209
+ Partials 392 231 -161
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for 90569a3. 🟢 All jobs passed!But CI Insights is watching 👀 |
containers/ports routescontainers/ports and containers/{id}/networks routes
containers/ports and containers/{id}/networks routescontainers routes
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/services/containers.py
Fixed
Show fixed
Hide fixed
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/services/containers.py
Fixed
Show fixed
Hide fixed
There was a problem hiding this 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 PR adds RPC interfaces for the containers routes in the dynamic-sidecar service, completing the migration from HTTP to RPC communication. The changes align the docstrings between RPC and HTTP interfaces and extend the dynamic-sidecar's RPC interface to support various container operations.
Key changes:
- Implements RPC interfaces for container operations
- Refactors REST endpoints to use service layer functions
- Standardizes documentation format across interfaces
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
services/dynamic-sidecar/tests/unit/api/rpc/test__container_extensions.py |
New comprehensive test suite for RPC container extension interfaces |
services/dynamic-sidecar/tests/unit/api/rest/test_containers.py |
Updates imports and error message formats to align with new service layer |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/services/containers.py |
New service layer implementing core container operations logic |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/services/container_extensions.py |
New service layer for container extension operations |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers_extension.py |
New RPC interface for container extensions |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers.py |
Enhanced RPC interface with additional container operations |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/containers_extension.py |
Refactored to use service layer functions |
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/containers.py |
Simplified by delegating to service layer |
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/dynamic_sidecar/containers.py |
Client-side RPC interface for container operations |
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/dynamic_sidecar/container_extensions.py |
Client-side RPC interface for container extensions |
Comments suppressed due to low confidence (1)
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/disk.py:1
- There is a spelling error in the docstring: 'forntend' should be 'frontend'.
from fastapi import APIRouter, status
services/dynamic-sidecar/tests/unit/api/rpc/test__container_extensions.py
Outdated
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers_extension.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers_extension.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/containers_extension.py
Outdated
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/containers.py
Outdated
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers.py
Outdated
Show resolved
Hide resolved
…car-ports-migrate
…/osparc-simcore-forked into pr-osparc-dy-sidecar-ports-migrate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, i still do not see the hierarchical design we discussed a resource-oriented design has https://google.aip.dev/121
but i do not want to hold this PR anymore.
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rpc/_containers.py
Show resolved
Hide resolved
…car-ports-migrate
|
@Mergifyio queue |
🟠 Waiting for conditions to match
|
|



What do these changes do?
Extras:
Extends the dynamic-sidecar's RPC interface to support the following:
This completes the migration to RPC of the entire http interface on the dynamic-sidecar
Related issue/s
dynamic-sidecarclient using RabbitMQ (enables easier k8s migration) #7224dynamic-sidecar#8255How to test
Dev-ops