-
Notifications
You must be signed in to change notification settings - Fork 46
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
add sanitizer in CI #256
add sanitizer in CI #256
Conversation
got a issue
|
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.
Thank for the addition. This is wonderful! Some items to be improved.
- Add the reference information.
- Make it default off in CI. It can only be turned on after the code is clean with the sanitization.
I think it needs a separate PR to turn on the sanitizer in CI. But the building code can be added right away.
CMakeLists.txt
Outdated
@@ -23,6 +23,8 @@ endif() | |||
option(USE_CLANG_TIDY "use clang-tidy" OFF) | |||
option(LINT_AS_ERRORS "clang-tidy warnings as errors" OFF) | |||
|
|||
option(USE_SANITIZER "use sanitizer" OFF) |
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.
Could you add more information in the message about what sanitizer it is? And in the code comments, write down the reference and/or URL for the sanitizer.
@yungyuc thanks for the review. The aforementioned two points are addressed, please take a look. |
@@ -328,6 +341,19 @@ jobs: | |||
run: | | |||
make run_viewer_pytest VERBOSE=1 | |||
|
|||
# FIXME: turn off until all issues resolved | |||
- name: make cmake USE_SANITIZER=ON & make pytest |
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.
test with sanitizer on macOS
@@ -196,6 +196,19 @@ jobs: | |||
export LD_LIBRARY_PATH=$(python3 -c "import sys, os, shiboken6; sys.stdout.write(os.path.dirname(shiboken6.__file__))") | |||
make run_viewer_pytest VERBOSE=0 | |||
|
|||
# FIXME: turn off until all issues resolved | |||
- name: make cmake USE_SANITIZER=ON & make pytest |
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.
test with sanitizer on ubuntu
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.
LGTM
ref #255 |
add sanitizer in CI