-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[Core] Cover cpplint for /src/ray/core_worker (excluding transport) #51557
Conversation
a2c84c2
to
299d947
Compare
@@ -1003,7 +1009,7 @@ CoreWorker::CoreWorker(CoreWorkerOptions options, const WorkerID &worker_id) | |||
} else { | |||
ConnectToRayletInternal(); | |||
} | |||
} | |||
} // NOLINT(readability/fn_size) |
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.
interesting, first time see this error
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.
Thank you! My only comment is to add it to precommit hook file.
299d947
to
23966da
Compare
I realize I missed fixing some lint errors and will correct them. |
8a7d888
to
e0b5ae2
Compare
You need to run linter |
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
…mmit-config for excluding autogenerated header files. Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
2399060
to
c6e164c
Compare
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
5ac2577
to
cf8228f
Compare
@dentiny |
#include "ray/common/id.h" | ||
#include "ray/core_worker/common.h" | ||
#include "ray/core_worker/core_worker.h" | ||
#include "jni_utils.h" // NOLINT(build/include_subdir) |
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.
Curious did cpplint make this change?
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.
Since generally header inclusions happen in alphabetical order
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.
My mistake. I reordered the includes during the trial-and-error process.
I have now restored the original include position and ran scripts/format.sh
.
@@ -27,10 +31,6 @@ | |||
#include "mock/ray/core_worker/reference_count.h" | |||
// clang-format on | |||
|
|||
// clang-format off | |||
#include "mock/ray/core_worker/task_manager.h" |
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.
Nice!
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com>
@nishi-t Thanks for your help! Feel free to ping me when CI passes |
@dentiny Thank you for your review! The CI has passed. |
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.
LGMT, thanks!
…ay-project#51557) Signed-off-by: Tatsuya Nishiyama <nishiyama.tatsuya0@gmail.com> Signed-off-by: Dhakshin Suriakannu <d_suriakannu@apple.com>
Why are these changes needed?
As part of the initiative to introduce cpplint into the pre-commit hook, we are gradually cleaning up C++ folders to ensure compliance with code style requirements. This issue focuses on cleaning up /src/ray/core_worker (excluding transport).
Related issue number
Closes #51510
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.