-
Notifications
You must be signed in to change notification settings - Fork 32
🐛Skip information when calling function with missing arguments #8173
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
🐛Skip information when calling function with missing arguments #8173
Conversation
|
@mergify queue |
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 fixes a bug where missing computational tasks in a pipeline would cause issues when computing pipeline details. The fix adds proper null checking and error handling to gracefully handle scenarios where not all nodes in the pipeline DAG have corresponding computational tasks.
- Adds null safety checks in pipeline computation functions to handle missing tasks
- Includes a new test case to verify the fix works for missing tasks
- Refactors some code for consistency and clarity
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/director-v2/src/simcore_service_director_v2/utils/dags.py | Main fix adding null checks for missing tasks in pipeline computation functions |
| services/director-v2/tests/unit/test_utils_dags.py | New test case validating behavior with missing tasks and commented out old assertions |
| services/director-v2/src/simcore_service_director_v2/api/routes/computations.py | Minor cleanup removing unnecessary type annotations |
Comments suppressed due to low confidence (1)
services/director-v2/tests/unit/test_utils_dags.py:394
- The commented out assertions were likely validating important test preconditions. Consider either removing these comments entirely or replacing them with appropriate assertions that account for the new behavior where missing tasks are allowed.
# assert len(set(dag_adjacency)) == len(node_keys) == len(list_comp_tasks)
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 28845dd |
pcrespov
left a comment
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.
thx!
|
@mergify requeue |
☑️ This pull request is already queued |
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #8173 +/- ##
===========================================
- Coverage 88.05% 69.67% -18.38%
===========================================
Files 1900 734 -1166
Lines 73086 33752 -39334
Branches 1280 176 -1104
===========================================
- Hits 64355 23518 -40837
- Misses 8351 10176 +1825
+ Partials 380 58 -322
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
matusdrobuliak66
left a comment
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.
👍
GitHK
left a comment
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.
👍



What do these changes do?
Related issue/s
How to test
Dev-ops