Skip to content
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

ci: Test with ASan and rework CI matrix #535

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

nwellnhof
Copy link
Contributor

Add CI tests with -fsanitize=address,undefined. This is a bit complicated since our tests run through Python FFI and we have to

  • link with -shared-libasan
  • preload the ASan runtime
  • disable LeakSanitizer because of false positives from Python

Use a single matrix on POSIX with four human readable labels:

posix (os, compiler, build_type, sanitizers)

Disable gcc on macOS which is just an alias for clang.

Remove the valgrind leakcheck test. This should be covered now by testing with LeakSanitizer on static builds, including tests like spectest_executable. The full test suite is only available to shared library builds which have to run without leak checks for now.

Also rework the Windows matrix.

Add CI tests with -fsanitize=address,undefined. This is a bit
complicated since our tests run through Python FFI and we have to

- link with -shared-libasan
- preload the ASan runtime
- disable LeakSanitizer because of false positives from Python

Use a single matrix on POSIX with four human readable labels:

    posix (os, compiler, build_type, sanitizers)

Disable gcc on macOS which is just an alias for clang.

Remove the valgrind leakcheck test. This should be covered now
by testing with LeakSanitizer on static builds, including tests
like spectest_executable. The full test suite is only available
to shared library builds which have to run without leak checks
for now.

Also rework the Windows matrix.
@nwellnhof
Copy link
Contributor Author

@jgm jgm merged commit 22408f5 into commonmark:master Mar 18, 2024
15 checks passed
@jgm
Copy link
Member

jgm commented Mar 18, 2024

Great!

@nwellnhof nwellnhof deleted the asan2 branch March 25, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants