-
Notifications
You must be signed in to change notification settings - Fork 1
Sanitzer output #10
Comments
We can put it in the same template I believe, and then turn it on/off via env vars, or just the image or platform name or something similar. Do you have an outline of what we need to do? How about just redirect the sanitizer output to a file, and then show the file? We'll also have build artifacts at some point (built binary package, |
Is there a way to capture The current CRAN version of the |
I would think not.
|
Right I was just giving you something to see what sanitizer warnings look like. |
Did you fix the protolite asan issues? I don't get anything from the cran version... |
@jeroenooms forget it, I got it now.... |
What did you end up using? |
Oh, not done yet. But I see the SAN output at least when I run I think I'll just call the tests the same way as |
Btw. do you think it is OK not to run |
It seems that RD CMD INSTALL <pkg-tar-gz>
tar xzf <pkg-tar-gz>
cd <pkg>/tests
RD -e 'tools:::.runPackageTestsR()'
cat *.Rout* will do the job. Or sg better than the last |
Actually cran also tests examples and vignettes, and then |
@jeroenooms Thanks, good to know. I can easily do that, too. And I also have symbolize.... |
Slowly getting there. I'll start with running this: ## Install the package, also decompress to run the tests
RD CMD INSTALL "$1"
tar xzf "$1"
pkg=$(echo $1 | sed 's/_.*$//')
## Tests
(
echo "Running tests"
cd ${pkg}/tests
RD -e 'tools:::.runPackageTestsR()'
cat *.Rout*
)
## Examples
echo "Running examples"
RD -q -e "tools:::.createExdotR('$pkg', system.file(package = '$pkg'))"
RD --slave -f ${pkg}-Ex.R
## Vignettes
echo "Running vignette code"
if [[ -e "${pkg}/vignettes" ]]; then
RD -q -e "tools::buildVignettes(dir = '.', tangle = TRUE)"
find ${pkg}/vignettes -name "*.R" -maxdepth 1 -print -exec RD -q -f \{\} \;
fi |
Another question how to trigger these checks. I suppose I can
|
Yeah I think that makes sense. |
OK, I think this is done. E.g. https://builder.r-hub.io/status/protolite_1.5.tar.gz-36a10729c4af447894c8d7f9f67ed4f7 It also looks good from the terminal... |
We have a gcc sanitizer image now, but unfortunately
CMD check
does not capture ASAN/UBSAN messages as it does for compiler warnings. I think Brian Ripley manually runs package tests and vignettes and greps stderr` for SAN certain messages.So I think we might need a separate jenkins template to test for sanitizer messages.
The text was updated successfully, but these errors were encountered: