-
-
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
Use `UpdateAllowUnknown' for non-model related parameter. #4961
Conversation
Small part of #4732 . We really owe a lots of debt ... |
9588204
to
3d260ea
Compare
Is there a problem that you see only in the test farm? |
@hcho3 It should be fixed now. Let's see if the tests pass. |
@hcho3 One thing I didn't think of, is clang-tidy doesn't understand static initialization of |
84d77f7
to
9b69392
Compare
@hcho3 Done. |
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.
LGTM. See my comment about clang-tidy.
tests/ci_build/tidy.py
Outdated
@@ -234,11 +239,13 @@ def test_tidy(): | |||
parser = argparse.ArgumentParser(description='Run clang-tidy.') | |||
parser.add_argument('--cpp', type=int, default=1) | |||
parser.add_argument('--cuda', type=int, default=1) | |||
parser.add_argument('--bundle', type=int, default=1, |
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.
Not sure how useful this argument is going to be, since currently, tidy.py
doesn't let the user specify the path of google test. Either we should add --gtest-path
option or remove --bundle
option. My personal preference is to always use the bundled gtest.
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 installed gtest on my system path so CMake always handles it for me...
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.
In this case, let's rename the option to --use-system-gtest
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.
Looks good. Does it make sense to override InitAllowUnknown
such that xgboost developers can't use it?
@RAMitchell Not sure about this. We can discuss it after having model parameter (these are runtime parameters). |
Model parameter can not pack an additional boolean value due to binary IO format. This commit deals only with non-model related parameter configuration. * Add tidy command line arg for use-dmlc-gtest.
9b69392
to
befc551
Compare
@hcho3 I added a |
Now I see the problem on Jenkins... |
@trivialfis The convention is to use bundled gtest for all CI tasks. |
@hcho3 Done. |
Model parameter can not pack an additional boolean value due to binary IO
format. This commit deals only with non-model related parameter configuration.