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

CLI: Handle None process states in build_call_graph #6590

Merged

Conversation

agoscinski
Copy link
Contributor

@agoscinski agoscinski commented Oct 24, 2024

The process definition allows a None state but the build_call_graph utils function intended for creating printable output of the call graph does crash in this case. A None state indicates some undefined behavior in the code, but the application should not fail because of the formatting of the output. This commit makes build_call_graph handle None states. Partial fix for #6585.

@agoscinski agoscinski force-pushed the fix/6585/handle-none-process-state branch from 6d44368 to a068596 Compare October 24, 2024 08:02
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.90%. Comparing base (ef60b66) to head (f7b80f9).
Report is 145 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6590      +/-   ##
==========================================
+ Coverage   77.51%   77.90%   +0.40%     
==========================================
  Files         560      567       +7     
  Lines       41444    42148     +704     
==========================================
+ Hits        32120    32832     +712     
+ Misses       9324     9316       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@agoscinski
Copy link
Contributor Author

Reminder for me: There is a typo in the commit message for a creating

@sphuber sphuber self-requested a review November 6, 2024 19:55
Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

lgtm

@agoscinski agoscinski force-pushed the fix/6585/handle-none-process-state branch from a068596 to 41df926 Compare November 8, 2024 06:41
The process definition allows a None state but the build_call_graph
utils function intended for a creating printable output of the call
graph does crash in this case.  A None state indicates some undefined
behavior in the code, but the application should not fail because of the
formatting of the output.  This commit makes build_call_graph handle
None states. Partial fix for aiidateam#6585.
@agoscinski agoscinski force-pushed the fix/6585/handle-none-process-state branch from 41df926 to f7b80f9 Compare November 26, 2024 14:22
@agoscinski agoscinski merged commit f74adb9 into aiidateam:main Nov 26, 2024
8 checks passed
@agoscinski agoscinski deleted the fix/6585/handle-none-process-state branch November 26, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants