Add -Werror to CXXFLAGS for dev CI job - #1501
Conversation
800fada to
2ca5d01
Compare
|
The only problem with this setup is that, when tests fail due to warnings turned into compilation errors, these issues are not shown in the runner logs, but in R's own install or check logs. So we could add an additional step after the checks that, when these fail, either
I personally like the second option. |
|
Had we discussed this before you altered an existing file 😆 I might have convinced you to start with a new one 😆. If we start from the plain Adding an artifact is good, and easy to add in a one-off file. But as always there are more than one way to skin a cat and you are in the driver's seat, so other ideas welcome too. |
|
I thought it would save some CPU cycles and therefore some water if we reused the ci-dev run already in place, but happy to add a new yaml if you think is cleaner. :) Same applies to cat vs artifact. I personally find the artifact useful, but I'm fine with dumping the logs if you prefer. |
|
I am open to either approach. What I want to avoid, mostly, is for this to inflict ❌ on routine PRs and updates. If we can avoid that, good. If we cannot, I would think an opt-in is cleaner. Let's see how it goes. |
|
Ok, let's go for the cleaner approach then. :) Give me a sec. |
As a first step towards #1497, this simply converts warnings into errors for the checks with R devel, which I thought it was the most appropriate one. All checks still pass because I didn't activate any extra warnings yet.
Checklist
R CMD checkstill passes all tests