-
Notifications
You must be signed in to change notification settings - Fork 100
feat: Error reporting at the end of the simulatiuon #3929
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
Open
arng40
wants to merge
307
commits into
develop
Choose a base branch
from
feat/dudes/warning-report
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+912
−390
Open
Changes from all commits
Commits
Show all changes
307 commits
Select commit
Hold shift + click to select a range
c4a002e
Just silently kill GEOS when a NotAnError is raised
amandinehry cbc5102
Removed the pointer to an Error Logger object (this is no longer usef…
amandinehry 3318d85
Minor syntax modification
amandinehry 343b830
Renaming ContextInfo in ErrorContext + minor correction on the format…
amandinehry e22e538
Minor modifications on the GEOS_THROW_IF_GT_MSG message
amandinehry 8de9060
Using GEOS_LOG_RANK instead of GEOS_LOG
amandinehry 6c762e7
Add an enumeration to secure the keys that can be entered for the map…
amandinehry d288490
Improved code comments
amandinehry 99d9b5b
reverse the change from GEOS_LOG to GEOS_LOG_RANK +empty the object a…
amandinehry f929f97
minor changes syntax + remove isValidStackTrace() method and replace …
amandinehry 709d8a4
Minor changes: string to string_view when it was possible + add an ad…
amandinehry 051e85b
Remove try/catch in the createFile() and the flushCurrentErrorMsg() m…
amandinehry 517782b
Renaming: flushCurrentErrorMsg() into flushErrorMsg()
amandinehry 2e0e396
Change GEOS_LOG() to GEOS_LOG_RANK()
amandinehry a83a3a1
initialize the error message line by default
amandinehry 9fe289a
Doxygen comments
amandinehry da7dc82
Comments added
amandinehry 260133e
Sort contextual information by decreasing priority
amandinehry e0c876f
Simplification of the for loop which write context information
amandinehry e1a2128
Changes following comments received on my PR
amandinehry 4811b6c
Unit test implemented
amandinehry 4a8ea5b
evaluate MSG only one time in macros
amandinehry 2b38577
Merge commit '7e85e747ec65cd498ba0e9e4730f79d2692ed0bd' into feature/…
MelReyCG 127f38e
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry e9508f5
Merge remote-tracking branch 'upstream/develop' into feature/amandine…
amandinehry 7fc0ced
🔊 warn the deveveloppers that a yamlFile should not be written if not…
MelReyCG 35f7686
🐛 ⏪ set the --errorsOutput mandatory because of bug + revert optionpa…
MelReyCG 31842a5
✏️ typo
MelReyCG a1105e4
🎨 uncrustify
MelReyCG c118dd4
🎨 docs alignement
MelReyCG 4215fad
🎨 format
MelReyCG 507ac66
builder pattern for addContextInfo
MelReyCG 7b4ec52
♻️ refactor of the test: keeping only necessary testing, separated te…
MelReyCG a01d8ac
🐛 bugfix for test, wrong global instance impacting
MelReyCG d4c465b
🎨 format
MelReyCG 1e32d65
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 6d10e3a
⏪ restored "Rank N:" if error messages
MelReyCG e9cd64c
test
amandinehry c7031bf
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry e07d0b7
uncomment the rmoveFile() function
amandinehry 785636b
stack trace management
amandinehry dd3b844
Merge remote-tracking branch 'amandinehryFork/develop' into feature/a…
MelReyCG e0bad67
♻️ ✅ New GEOS_ERROR macros with context included + new unit macro uni…
MelReyCG ab40edc
✅ ♻️ Simplifying + testing macros (GEOS_ERROR_* and GEOS_ASSERT_*) + …
MelReyCG faa84fa
📝 adding macro docs
MelReyCG dd97f0e
✨ ✅ adding error cause in unit test
MelReyCG d708cac
♻️ reordered error & throw macro to group them
MelReyCG 66ab5cb
♻️ ✅ uniformized warning macros
MelReyCG e6135b1
✅ 🐛 ⚡️ bugfix when callstack is empty + disable callstack for perfs
MelReyCG 589fcfe
♻️ ✅ uniformized throw macros
MelReyCG 6fc4b30
✅ removing _CTX macros from unit test
MelReyCG 77f9fcb
🐛 use streamed cause string to support mpi pointers formatting (not s…
MelReyCG 5747e7f
🐛 last mistake?
MelReyCG 10eb969
♻️ removing all GEOS_*_CTX macros (as GEOS_ERROR, GEOS_WARNING, GEOS_…
MelReyCG 2c5c5f5
🎨 UNCRUSTIFY
MelReyCG d1642e6
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG b3cbb99
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 5781a78
✨ allowing to re-throw with GEOS_THROW* macros
MelReyCG db75e45
📦 shema
MelReyCG e07ab72
♻️ removing unintended BASE::
MelReyCG 754ed03
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 83d0c0f
xsd
arng40 d5d8615
Merge remote-tracking branch 'origin/feature/amandinehry/create-yaml-…
arng40 1913059
🎨 uncrustify
MelReyCG 6692dd2
🐛 fix stream reset
MelReyCG 29f6fbe
⚰️ unused variable
MelReyCG d17972f
✨ removing last LVARRAY_* error logging macros
MelReyCG 759e9bb
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 1b755b5
✨ removing last LVARRAY_* error logging macros
MelReyCG 3786db4
✅ adapting test with error cause addition
MelReyCG efa89d8
🐛 GPU Macros Support
MelReyCG 7915205
🎨 uncrustify
MelReyCG 14eefee
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG 500bbfd
🐛 GPU forgotten instruction
MelReyCG fa8fa54
🐛 added pragmas to manual shadow global logger instance
MelReyCG a29510b
Merge branch 'feature/amandinehry/create-yaml-file-and-structure-2' o…
MelReyCG c501a0f
🐛 wrong conversion on GPU
MelReyCG a07810f
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG cbb5322
centralize error output
arng40 c743e15
remvove deplucated log
arng40 dc13b33
Merge remote-tracking branch 'origin/feature/amandinehry/create-yaml-…
arng40 355e765
remove rank from arg
arng40 276606c
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 3253a0b
fix after merge
arng40 cf0afc5
doc & fix
arng40 efcc52d
fix test
arng40 79b9791
test error
arng40 d951a16
initialize m_time
arng40 29dec26
add main for testUnits
arng40 6be688c
missing std::cout
arng40 62fa7ec
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 5f9c74c
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 95f631e
uncrust
arng40 df926d5
remove unecessary var
arng40 07b649a
doxygen
arng40 2fee6bf
clean
arng40 93594af
output only once
arng40 e430ae8
add "__" prefix
arng40 d5408c9
doxygen
arng40 17a394a
remove var duplication
arng40 061f502
fix format
arng40 450c3b0
add line number
arng40 d0ff49d
add stream to errorlogger + rename macro in logger
arng40 628e49c
reove debug log
arng40 f09d45f
fix test & cleanup
arng40 ec1feab
remove unecassery dep
arng40 419ba18
Merge branch 'develop' into refactor/dudes/error-context
arng40 9d5db85
fix test
arng40 2c9d6ce
Merge branch 'refactor/dudes/error-context' of https://github.com/GEO…
arng40 8708f2d
add geos::exception + refacto flushErrorMsg
arng40 3842caa
update exception inGEOS_THROW to geos::Exception
arng40 ae0b73c
update what() method
arng40 96bab37
remove unecessary cond
arng40 f47e62e
renaming and remove try catch from main
arng40 9289b82
add GeosExceptions
arng40 694e64e
clean up
arng40 b083853
remove unecessary include + some doc
arng40 b13149d
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 e1b45f4
missong doc for GeosException
arng40 976aab5
include error
arng40 42c53b9
doxygen
arng40 16c9e77
update doxy
arng40 30baf23
remove include, + some clean
arng40 0aeddcf
fix cuda compil
arng40 ae60c25
move writeToAscii to cpp
arng40 5a52a75
doxygen
arng40 c48c52d
add log test
arng40 bbb72ff
fix log wrong formatting
arng40 855cf80
update log formatting & output
arng40 daec006
fix test
arng40 ab9895b
Uncrustify
arng40 60a1f3a
Merge branch 'develop' into refactor/dudes/error-context
arng40 4e74b00
Merge branch 'develop' into refactor/dudes/error-context
arng40 08973a3
reorder function + add constructor to ErrorContext
arng40 cee0059
uncrustify & doxygen
arng40 2a639a7
Merge branch 'develop' into refactor/dudes/error-context
arng40 a2b31d1
Merge branch 'develop' into refactor/dudes/error-context
arng40 d4db78b
improve writeToAscii
arng40 7df78ff
add context to std::exception
arng40 ac46643
add loggerReport + separate EnumString
arng40 745c883
first output still draft
arng40 ce6a7dd
simplify toString
arng40 abc6d2a
fix encapsulation in ErrorLogger by adding BuilderPattern + improve c…
arng40 ec7ddc1
uncrustify
arng40 dd60826
clean and remove write access to private variable
arng40 d511e16
Squashed commit of the following:
arng40 417f3b3
fix after merge
arng40 4a5b4fe
remove redundant lmsg in case of multiple rank
arng40 35d8707
missing const
arng40 aa22991
Squashed commit of the following:
arng40 dfb0c81
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 38023c2
delete ErrorMsg method & remove unecessary method in Builder
arng40 62fcf31
extract inerclass & refacto ErrorBuilder
arng40 1495a68
rename ErrorMsg & adapt errorLogger function called in catch
arng40 a4e69cd
modify yaml & renaming & fix
arng40 16057c1
remove debug log
arng40 3ed52be
update prepareWhat
arng40 e40167f
update builder
arng40 b529d7a
rename get method & sort errorContext
arng40 ec4703c
remove debug
arng40 fbed3ed
update format
arng40 e8682c7
add signal test
arng40 cf1c00f
update initCurrentExcep + add GeosExcp msg + update test
arng40 aa9d539
add signal test + last remarks
arng40 6adbae1
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 b351784
doxygen
arng40 588084d
uncristify
arng40 535e87f
small refacto
arng40 ff2f3fa
alignment
arng40 359f256
fix review
arng40 a942101
relocation
arng40 b528427
fix signal test
arng40 5eb71ce
format
arng40 0a5af00
add mutex
arng40 048b141
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 a8e9633
Squashed commit of the following:
arng40 05e8a6a
revert enum string
arng40 8e112aa
add log part enum string
arng40 9a1f1b1
switch row/column
arng40 ea56eb8
doxygen
arng40 da560e1
🎨 formating consistency
MelReyCG 456e767
add yaml mutex
arng40 44a54d8
doxygen
arng40 6f444d6
thread_local put back + renaming
arng40 7015589
renaming
arng40 2a377ea
add logHistory
arng40 fc43a98
clean up header
arng40 e15f3d9
fix test for now
arng40 55e2f96
Merge remote-tracking branch 'origin/refactor/dudes/error-context' in…
arng40 686a73f
Fix test
arng40 9f63f96
logHistory doxygen
arng40 0b0ef4d
doxygen
arng40 9296d6d
update table reporting test
arng40 c886b9e
Merge branch 'develop' into refactor/dudes/error-context
MelReyCG 99849aa
🐛simple compil fix
MelReyCG dd11209
💄adding forgotten space line at end of message
MelReyCG f3c4bc7
💄small layout proposal
MelReyCG 1cda08b
Merge branch 'develop' into refactor/dudes/error-context
arng40 d8ef456
uncrustify
arng40 d6f00ac
Merge branch 'refactor/dudes/error-context' of https://github.com/GEO…
arng40 3a1983b
Merge branch 'develop' into refactor/dudes/error-context
arng40 59ad659
attempt clang bug
arng40 c9d8e44
update rv
arng40 57fb5bd
structure for getting total errormsg
arng40 18bf539
add MPI (draft)
arng40 e6843d8
remove function
arng40 4298b30
uncr
arng40 fec93ac
temporary log
arng40 5932b5c
Merge remote-tracking branch 'origin/refactor/dudes/error-context' in…
arng40 feaf4c0
1st part packing
arng40 aa925c7
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 012c5a8
setup MPI (draft)
arng40 5abd889
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 ea9cd5f
displaying correctly
arng40 09ceacc
update to unique_ptr
arng40 e002df7
update smart_ptr buffer to vector< buffer_unit_type >
arng40 5faba4c
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 f0efb2a
fix bug
arng40 8747eb4
gather by tuple
arng40 e157689
MPI batched by tuple
arng40 84fab9b
remove unecessary code / include
arng40 3133435
remove enumString from logPart
arng40 28eedf4
clean up & doxygen
arng40 054bef0
add log part and remove import
arng40 c72cd76
errorContext => diagnosticContext
arng40 3bd0dfc
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 ff38be6
uncrustify + doxygen
arng40 e55a445
remove uneccesary ";"
arng40 c32d8eb
uniformize default allocator
arng40 a923dfd
fix logHistory hash + revert stdContainer default bound checking
arng40 10df7ad
uniformize test
arng40 45753f0
setbounds checking to off for realease
arng40 1ee6c7b
revert ci and let realease to false
arng40 0cfb65e
test debbuging
arng40 7c4a220
Merge remote-tracking branch 'origin/develop' into feat/dudes/warning…
arng40 00865f4
include manually
arng40 c0343fa
same for fixedsizequeue
arng40 fa00c7d
comment geos
arng40 aed8db1
remove files
arng40 3020d1b
addRow template
arng40 d563192
revert on stdVectorWrapper
arng40 edd7100
reset default allocator
arng40 73ccf6a
comment suspect line
arng40 c7332ee
function def
arng40 f851adc
remove using fromm cpp
arng40 1b724b1
test
arng40 564b8dc
add assert
arng40 d112ef6
remove default value from useboundchecking
arng40 872c04e
remove static_assart
arng40 21ddd3b
revert modif
arng40 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| * SPDX-License-Identifier: LGPL-2.1-only | ||
| * | ||
| * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | ||
| * Copyright (c) 2018-2024 TotalEnergies | ||
| * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | ||
| * Copyright (c) 2023-2024 Chevron | ||
| * Copyright (c) 2019- GEOS/GEOSX Contributors | ||
| * All rights reserved | ||
| * | ||
| * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details. | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| /** | ||
| * @file EnumStrings.cpp | ||
| */ | ||
|
|
||
| #include "common/format/EnumStrings.hpp" | ||
| #include "common/logger/Logger.hpp" | ||
|
|
||
| namespace geos | ||
| { | ||
|
|
||
| void internal::EnumErrorMessageToString( size_t index, | ||
| string const & typeName, | ||
| std::size_t size ) | ||
| { | ||
| GEOS_THROW( "Invalid value " << index << " of type " << typeName<< ". Valid range is 0.." << size - 1, | ||
| InputError ); | ||
| } | ||
|
|
||
| void internal::EnumErrorMessageFromString( string const & s, | ||
| string const & typeName, | ||
| string const & concat ) | ||
| { | ||
| GEOS_THROW( "Invalid value '" << s << "' of type " << typeName << ". Valid options are: " << concat, | ||
| InputError ); | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,7 @@ | |
| #ifndef GEOS_COMMON_FORMAT_LOGPART_HPP | ||
| #define GEOS_COMMON_FORMAT_LOGPART_HPP | ||
|
|
||
| #include "common/DataTypes.hpp" | ||
| #include "common/format/Format.hpp" | ||
| #include "common/format/StringUtilities.hpp" | ||
| #include "common/format/EnumStrings.hpp" | ||
|
|
||
| namespace geos | ||
| { | ||
|
|
@@ -39,7 +37,7 @@ class LogPart | |
| * @param logPartTitle The title who will be used for top and bottom LogPart | ||
| * @param enableOutput Boolean to activate or not csv output | ||
| */ | ||
| LogPart( string_view logPartTitle, bool enableOutput ); | ||
| LogPart( string const & logPartTitle, bool enableOutput ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep |
||
|
|
||
| /** | ||
| * @brief Add a description to the top LogPart | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -696,14 +696,16 @@ class TableLayout | |
| /** | ||
| * @brief Create and add a column to the columns vector given a string | ||
| * @param columnName The column name | ||
| * @return The current tableLayout | ||
| */ | ||
| void addColumn( string_view columnName ); | ||
| TableLayout::Column & addColumn( string_view columnName ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please affect the two other ones |
||
|
|
||
| /** | ||
| * @brief Create and add a column to the columns vector given a Column | ||
| * @param column Vector containing addition information on the column | ||
| * @return The current tableLayout | ||
| */ | ||
| void addColumn( TableLayout::Column const & column ); | ||
| TableLayout::Column & addColumn( TableLayout::Column const & column ); | ||
|
|
||
| protected: | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
😎