-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
testsuite adjustments - running with analyzers / code instrumentation #122
Comments
In v1.0.20dev the test suite has been adjusted as follows.
|
Nice, I did not know about ACT. ... but it seems the issue is still open as https://github.com/mridoni/gixsql/blob/main/.github/workflows/gixsql-linux-test.yml does not use any instrumentation so far.
The Windows action seems to not run any tests via actions so far - does / could it?
Hm, valgrind possibly takes too long in the CI (not sure, the flags/linking option above would be fine), how much overhead is DrMemory? Do you execute these locally? And related: Did you run with test coverage so far? |
The action is actually run with valgrind and is not that slow (this is why I did not add From a more functional point of view I run specific tests locally to fix possible problems, then I run the whole suite locally before building the packages and once more on GitHub just before freezing the release. Obviously, should the release cycle become faster (or the packaging process more stable), the test run will be integrated in the package building workflow.
The problem here is that DrMemory, though being a great tool, tends to emit a lot of false positives coming from system libraries and there is no easy way to trap them. I use it to track Windows-specific problems (that might actually lead to an actual cross-platform bug) but as a general usage tool I do not find it really helpful for GixSQL (with Gix-IDE it is a bit different, given the scope of the project). |
It would be good to:
CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" CFLAGS="-O -fstack-protector"
to the configure line and as another instrumentation (guess that works with GCC and clang) link against-lasan -lubsan
. MSVC should have some code instrumentation options, too.Originally posted by @GitMensch in #121 (comment)
The text was updated successfully, but these errors were encountered: