-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[ci] [R-package] add unit tests on monotone constraints #4352
Conversation
/gha run r-valgrind Workflow R valgrind tests has been triggered! 🚀 Status: success ✔️. |
/gha run r-valgrind Workflow R valgrind tests has been triggered! 🚀 Status: failure ❌. |
@StrikerRUS I wanted to test the results of the Could you please tell me what secrets I need to set up on my fork to be able to run the I tried setting a secret
Thank you! |
Ok I've reverted the temporary change from 2714777, and this is now ready for review again. |
/gha run r-valgrind Workflow R valgrind tests has been triggered! 🚀 Status: success ✔️. |
You need to set one secret named After that don't forget to replace all LightGBM/.github/workflows/r_solaris.yml Line 29 in 24ac920
LightGBM/.ci/trigger_dispatch_run.sh Line 51 in 24ac920
|
aha!!
This was the part I was missing. I'll try that, thank you very much. |
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.
Generally LGTM, but I leaved some comments that highlight the difference with the original test. I think that it's OK to have not two identical tests for R and Python.
Also, I have one comment about how to speed up the test.
Tests started failing after a15596a, which exposed a few more places where these tests differed from the Python equivalents. More changes in 4950ed3 to make these tests consistent with the Python ones.
This is ready for another review. |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Contributes to #4345, see #4346 (comment).
This PR proposes adding unit tests on monotone constraints to the R package, since there currently are not any.
This test is basically a translation of the corresponding Python test into R, but simplified by leaving out details about interaction constraints. The goal of this PR is to have at least basic coverage of monotone constraints from the R package.
LightGBM/tests/python_package_test/test_engine.py
Line 1256 in bab58d0