You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Valgrind and Asan CI jobs have more compiler warnings enabled, which results in the frustrating experience of a job succeeding locally, but failing in CI for compiler warnings.
Solution:
In this case, I would argue that the best approach is to just port the asan (and maybe the valgrind) job to cmake, which should make it significantly easier for developers to run them locally.
For this asan job we should enable the more pedantic warnings that the make files are currently using.
Requirements / Acceptance Criteria:
I should be able to easily verify on my local machine that my build won't fail for silly compiler warning reasons in CI.
Out of scope:
Any CI jobs that aren't valgrind and ASAN.
The text was updated successfully, but these errors were encountered:
I'll also give my 2 cents that this should live in a toolchain file cmake/toolchains/sanitary.toolchain rather than the main CMakeLists.txt file. This minimizes bloat in the CMake file and should hopefully make the codebuild spec easier to read.
And yet another pile-on that we likely do not need to be running with different versions of the same compiler for these kinds of checks. Currently we run valgrind with gcc 6 and gcc 9, and it is not entirely clear why. We do not expect valgrind runs to have different results with different versions of the same compiler, and if there are differences it would be a bug in the compiler, not our code.
So we should cleanup the CI option matrix as part of this work.
Problem:
Valgrind and Asan CI jobs have more compiler warnings enabled, which results in the frustrating experience of a job succeeding locally, but failing in CI for compiler warnings.
Solution:
In this case, I would argue that the best approach is to just port the asan (and maybe the valgrind) job to cmake, which should make it significantly easier for developers to run them locally.
For this asan job we should enable the more pedantic warnings that the make files are currently using.
Requirements / Acceptance Criteria:
I should be able to easily verify on my local machine that my build won't fail for silly compiler warning reasons in CI.
Out of scope:
Any CI jobs that aren't valgrind and ASAN.
The text was updated successfully, but these errors were encountered: