-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor audit data handling and saving #14
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
Conversation
|
Trying to run tests locally and running into audit test failures still. This is the output from the test_audit_save_procs: self = <pydot.core.Dot object at 0x313e83fe0>, prog = 'dot', format = 'png', encoding = None
opgee4-env/lib/python3.12/site-packages/pydot/core.py:1851: opgee4-env/lib/python3.12/site-packages/pydot/core.py:211: in call_graphviz self = <Popen: returncode: 255 args: ['dot', '-Tpng', '/var/folders/sn/ys4drmt52ngf...>, args = ['dot', '-Tpng', '/var/folders/sn/ys4drmt52ngftlv8vrg07dvr0000gp/T/tmprad1zixz/tmpe225nh0x']
E FileNotFoundError: [Errno 2] No such file or directory: 'dot' ../../../../../../../.local/share/uv/python/cpython-3.12.0-macos-aarch64-none/lib/python3.12/subprocess.py:1950: FileNotFoundError During handling of the above exception, another exception occurred: tmp_path = PosixPath('/private/var/folders/sn/ys4drmt52ngftlv8vrg07dvr0000gp/T/pytest-of-lloyd.mckenzie/pytest-7/test_audit_save_procs0'), opgee_main = <opgee.tool.Opgee object at 0x311a73770>
tests/test_audit.py:133: tests/test_audit.py:118: in audit_setup_and_run self = <pydot.core.Dot object at 0x313e83fe0>, prog = 'dot', format = 'png', encoding = None
E FileNotFoundError: [Errno 2] "dot" not found in path. opgee4-env/lib/python3.12/site-packages/pydot/core.py:1860: FileNotFoundError` |
|
Seeing similar issue with test_audit_save_none test |
|
When running locally, still running into errors when trying to use the "Processes" audit level. Logs: During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
Issue might be that need to install graphviz package locally. If so, we should add this as a necessary step in our README |
|
@lloyd-rmi I'm curious to know if you've tried installing Graphviz and whether that fixed your issue. |
chore(deps): update lock file and add requirements.in
|
@lloyd-rmi I added a |
|
Unblocking this for now. I'm still running into some local testing issues but that seems to be a localized issue and not an issue with this actual PR. |
Fixes #12
Instead of writing the pngs directly from within the field audit. The PR adds a helper function in
graph.pyto create the finalDotobject and uses that method to generate the process graph for the field which is then added to theFieldResult. Then, pngs are actually written insave_resultsinmanager.py.This also tidies the architecture a bit in that the auditing features are no longer responsible for saving/storing data.
Tests are updated to reflect the changes.