-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[R] Fix a crash that occurs with noLD R #6378
Conversation
I'm getting errors compiling in the NoLD docker container. Is it possible to test this using something like the below?
|
No,
Can you post the error? |
Can you try to change |
Codecov Report
@@ Coverage Diff @@
## master #6378 +/- ##
==========================================
+ Coverage 81.27% 81.36% +0.08%
==========================================
Files 12 12
Lines 3450 3450
==========================================
+ Hits 2804 2807 +3
+ Misses 646 643 -3
Continue to review full report at Codecov.
|
There is no difference. The example fails without this patch, and with this patch the example works. |
I mean change the patch to |
@trivialfis Without the absolute tolerance condition, the example script will fail with
The difference between |
@hcho3 I was able to build the That said, I would still recommend adding a test for CRAN in case a similar issue pops up in the future. That way it will be easier to track down where this issue started :) Thanks! |
@vnijs Thanks for reviewing.
I'm afraid we won't act on this recommendation. Testing with noLD environment requires building R from the source, and that's not something we want to spend our testing budget. |
Sorry I'm late to the party! I had never tested in a noLD environment before, so I learned a lot from this. Thanks for including me! I've never use That's what we do for valgrind in LightGBM: https://github.com/microsoft/LightGBM/blob/master/.github/workflows/r_valgrind.yml#L10 |
@jameslamb I did try rhubs images and tools for NoLD but could never get them to work for some reason. So I eventually "rolled-my-own", more or less. @hcho3 I don't think the test needs to be part of xgboost development really as I can see that might be a hassle. Just that there is a (testthat) test that will be checked by CRAN in a NoLD environment when a new release is available. This could be as simple as the reproducible example I provided. |
@jameslamb Thanks for the workflow template. I didn't realize that you can trigger a job with a pull request comment. Interesting! This is going to be super useful. |
@StrikerRUS taught me that 😀 |
Closes #5935. Unfortunately, no unit test was added, because it's quite difficult to setup an environment with noLD R (it involves building R from the source with a custom flag).
@vnijs @jameslamb Can you review?