-
Notifications
You must be signed in to change notification settings - Fork 97
feat: Adding error YAML file in GEOS #3828
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
feat: Adding error YAML file in GEOS #3828
Conversation
… link between GEOS_THROW_CTX_IF and LVARRAY_THROW_IF_TEST( EXP, MSG, TYPE )
… in try/catch statements Problem: Retrieves everything that was thrown, so not just the message.
…/catch in main)": remove useless try/catch
…y spaces. The previous condition checked whether an argument was present and whether the option was immediately followed by a value like -test"value", which excluded valid cases like -test "value" et -test "value".
…e CI does not like explicit 'common' dependency for 'physicsSolver' package)
|
This PR seems to be blocked because of lack of space for the Ubuntu debug CI target Can someone help? |
|
@rrsettgast the ubuntu-debug build in the CI for this PR is running out of space for the install into /opt in the container. |
…y/create-yaml-file-and-structure-2
This appears to be a GitHub runner?? |
I managed to totally miss that, yeah. You have any idea where/whether the limitations on the github-hosted runners are specified/set? |
14 GB |
|
It is also seemingly only failing on the install, where we copy the libs/headers on the system, so the build isn't breaking the quota, just the copy. If we were fine without the |
|
@MelReyCG |
…y/create-yaml-file-and-structure-2
|
@jhuang2601 can you review the solid portion of this PR (6 files)? @MelReyCG is stuck on this and would like to merge this PR soon. |
…y/create-yaml-file-and-structure-2
…y/create-yaml-file-and-structure-2
| GEOS_ERROR_IF( !hasWrapper( name ), | ||
| "Wrapper " << name << " doesn't exist in Group" << getDataContext() << '.' ); | ||
| "Wrapper " << name << " doesn't exist in Group" << getDataContext() << '.', | ||
| getDataContext() ); |
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.
@MelReyCG getDataContext() appears twice?
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.
Don't worry you already made this feedback and we will address it, we will remove all these redondancies in a future PR soon :)
This PR aims to provide a file that stores warnings and errors regarding input data that occur during the current execution.
To do this, I created a class called
ErrorLoggerthat retrieves, formats, and sends the desired information to a YAML file.I also have (in the Logger.hpp file) two macros for each of the following cases:
For each of these cases, one of these macro allows to attach contextual information about the error/warning.
Each of the macros is based on the
ErrorLoggerclass.This PR is a duplicate ( #3690 ) and has been created because it was not possible to run the CI on external branches for security reasons.
Code review has been started on the old PR.
Note that future PRs are planned for:
DataContextreferencing redundancy