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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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 (41df926).
Report is 133 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    42147     +703     
==========================================
+ Hits        32120    32830     +710     
+ Misses       9324     9317       -7     

☔ 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

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 a068596 to 41df926 Compare November 8, 2024 06:41
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