-
Notifications
You must be signed in to change notification settings - Fork 69
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 Clang 15 C++17 build with error tolerance #1764
base: master
Are you sure you want to change the base?
Conversation
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.
This can be the first step towards such a CI check.
I think for this to be very useful, we need also a postprocessor that reads the error output of the compilation, and lists the failing and non-failing .cpp fiiles that can and can't be compiled.
This can then be combined with an explicit whitelist (Files that we have already fixed) to really check, that we don't regress, and that we correctly track our progress.
But I assume, that this is your initial step, and as you get the output of the CI pipeline you can used that to develop the further tools.
Let me know if I can be of assistance.
CMakeLists.txt
Outdated
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0.0") | ||
MESSAGE(FATAL_ERROR "Clang++ versions older than 15.0 are not supported by QLever") |
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.
As long as this compilation doesn't work in fact, I would prefer having an additional
variable to be used here, such that this reads if (COMPILER_VERSION LESS 16 && !COMPILER_VERSION_CHECK_DEACTIVATED
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.
Sure, way better solution, gonna push it soon
.github/workflows/native-build.yml
Outdated
- compiler: clang | ||
compiler-version: 15 | ||
additional-cmake-options: "-DUSE_CPP_17_BACKPORTS=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS='-ferror-limit=0'" | ||
build-type: Debug | ||
expensive-tests: false | ||
continue-on-error: true | ||
use-keep-going: true |
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.
I have just started the pipeline, this would be an initial step to track the progress.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1764 +/- ##
==========================================
+ Coverage 89.98% 90.59% +0.60%
==========================================
Files 395 414 +19
Lines 37693 40100 +2407
Branches 4241 4536 +295
==========================================
+ Hits 33919 36329 +2410
+ Misses 2478 2419 -59
- Partials 1296 1352 +56 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I think we could think about it in the future. Would you be open to a Python-based solution for this (we could include in a Github Workflow)? |
Hello @joka921, any chance to have a look? |
|
1bb3965
to
a4e643a
Compare
Hello @joka921, could you please take a look and tell me if something else is needed? |
Hi @lucaam
Best regards |
57a9600
to
f112862
Compare
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.
Hi @lucaam ,
I previously had three comments/issues:
- Use GCC instead of clang, as it is our target platform
- Don't fail the CI if the tests fail. (The ctest of everything must be "do not fail on error" and the checks after that (E2E and Printing benchmark examples) must be disabled.
- Add a (hard) check for a whitelisted set of tests.
In your latest commit I see point 3 addressed, but 1 and 2 are still missing.
Best regards
Hi, I will continue working on that to add all the requested changes and let you know once is done! Thanks! |
5bb6b25
to
49a8d5b
Compare
7d5ff08
to
3dbed9f
Compare
3dbed9f
to
4cd6614
Compare
Hello @joka921, could you please have a look? |
Hi @lucaam |
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.
As we already have very many compilers, maybe GCC-8 sufficies, and you can drop the clang-15 check for now.
Otherwise this looks fine if it works as expected (checks are still running, as the CI is very busy at the moment).
- compiler: clang | ||
compiler-version: 15 | ||
additional-cmake-options: "-DUSE_CPP_17_BACKPORTS=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS='-ferror-limit=0' -DCOMPILER_VERSION_CHECK_DEACTIVATED=ON" | ||
build-type: Debug | ||
expensive-tests: false | ||
continue-on-error: true | ||
use-keep-going: true | ||
use-ignore-errors: true |
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.
Do we still need Clang15?
The CI runs long enough as is, so if it works we can maybe only add the Gcc8 check for now?
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.
Hi @lucaam
Thanks for integrating the Gcc-8 compiler.
However currently this doesn't do anything useful because we explicitly pass the -fcoroutines
flag, which gcc-8 doesn't have.
So for now let's keep the clang-15 build and don't activate the gcc-8 build. Please leave the code to run it in, and just deactivate the given configuration, s.t. it doesn't waste our CI time.
Sorry for the confusion, but all the work you did was required and now it's working.
TLDR:
keep but deactivate the GCC-8 build for now, then we can merge this.
Best regards
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.
Hi @joka921, thanks for the feedback, I just pushed a commit to avoid -fcoroutines
flag for gcc8 but I don't understand what do you mean with "keep but deactivate the GCC-8". Do you mean remove it from include
in the matrix but keep the commits already pushed?
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.
Hi @lucaam
Yes, that's what I meant. But if the removed flag also works and we can compile the whitelisted test with GCC-8 (let's wait for the check), then we can do it the other way round and remove Clang-15 and keep GCC-8.
While analyzing the last build output I found out that the build passes if the whitelisted tests are not run, because they couldn't be compiled, but I am not sure if we can do something about that (let me know if you have any idea).
I'll be away for the weekend soon, but hopefully we can finally merge this with exactly one additional CI check at the beginning of next week.
Conformance check passed ✅No test result changes. |
|
Hi @lucaam Best regards |
Hi @joka921, I would keep both if you think this is possible, the main idea was having clang15 enabled. Let me know. |
This PR adds Clang 15 to the build matrix C++17 support and set it as non-voting (
continue-on-error: true
) and use the-k
option to cmake continue going even if error occurs.