You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Yingchun Lai (Code Review)" <ge...@cloudera.org> on 2023/08/08 07:33:45 UTC

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DNO TESTS=1

Yingchun Lai has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20326


Change subject: [tools] Enable 'kudu test' CLI tool when -DNO_TESTS=1
......................................................................

[tools] Enable 'kudu test' CLI tool when -DNO_TESTS=1

'kudu test' CLI tool is useful to start a mini Kudu cluster
for application developing and testing, for example the
examples/java/java-example will start a mini cluster for
testing.

This patch enable to build 'kudu test' CLI tool even if
-DNO_TESTS=1.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
---
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tools/tool_action.h
M src/kudu/tools/tool_action_test.cc
M src/kudu/tools/tool_main.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
14 files changed, 79 insertions(+), 124 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/20326/1
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yifan Zhang, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20326

to look at the new patch set (#2).

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................

[tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0

'kudu test' CLI tool is useful to start a mini Kudu cluster
for application developing and testing, for example the
examples/java/java-example will start a mini cluster for
testing.

This patch enable to build 'kudu test' CLI tool when
-DKUDU_CLI_TOOL_NO_TESTS=0 even if -DNO_TESTS=1.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
---
M CMakeLists.txt
M build-support/mini-cluster/build_mini_cluster_binaries.sh
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
13 files changed, 107 insertions(+), 97 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/20326/2
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................


Patch Set 5: Code-Review+2

Thanks a lot for this improvement, Yingchun!


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Tue, 22 Aug 2023 18:39:40 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt
File CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt@241
PS3, Line 241: The test-related CLI tool will be omitted if not specified or disabled explicitly.
IIUC, the default value of KUDU_CLI_TOOL_NO_TESTS is true when NO_TESTS is set to true. Do you think it is more intuitive that we change it to 'KUDU_CLI_TOOL_WITH_TESTS', it is disabled by default and we should explicitly enable it if needed.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Mon, 21 Aug 2023 05:05:49 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool when
            : -DKUDU_CLI_TO
> So, if people are working on Kudu development, they are to build and run te
Yifan found this issue [1] when she verified the 1.17.0-RC1 java example, the java example will try to use Kudu CLI tool to start a mini-cluster by using 'kudu test', it will report an error because the published tool is built with '-DNO_TESTS=1' flag [2] and didn't support 'kudu test'.
An alternative way to resolve this is to remove the '-DNO_TESTS=1' flag in the script, but too many unnecessary test binaries will be built when build the mini cluster binaries, and the 'KUDU_CLI_TOOL_NO_TESTS' flag is not well used.

1. https://lists.apache.org/thread/5s27j7k51xfg06l8nkxq62ooqq5s0m47
2. https://github.com/apache/kudu/blob/master/build-support/mini-cluster/build_mini_cluster_binaries.sh#L126C20-L126C20



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 10 Aug 2023 02:29:58 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt
File CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt@241
PS3, Line 241: The test-related CLI tool will be omitted if not specified or disabled explicitly.
> Hi Yifan, thanks for your replay!
I agree with you: too many NO_xxx makes it harder to comprehend, but keeping keeping legacy behavior is a nice thing to have.

What if by default the kudu CLI binary will include the 'test' sub-command even with NO_TESTS=1?  Then there isn't a need to update the commands in the Docker build, and people who want to avoid building anything related to tests and mini-cluster libraries will need to add -DCLI_TEST_TOOL_ENABLED=0 or something in addition to -DNO_TESTS=1 (and that's totally fine, because that's quite rare and most likely that would be some scripts and/or Jenkins job configs).  By default, the cmake's variable CLI_TEST_TOOL_ENABLED will be set to 1, and corresponding macro (say, KUDU_CLI_TEST_TOOL_ENABLED) will be defined as well.

Basically, I'm suggesting to get back to having the 'kudu test' by default when building with -DNO_TESTS=1.

What do you think?



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Mon, 21 Aug 2023 19:12:52 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt
File CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/3/CMakeLists.txt@241
PS3, Line 241: The test-related CLI tool will be omitted if not specified or disabled explicitly.
> IIUC, the default value of KUDU_CLI_TOOL_NO_TESTS is true when NO_TESTS is 
Hi Yifan, thanks for your replay!
Indeed, the the two flags are a bit of counter-intuitive because they are named as 'NO_xxx'.
1. Naming.
The NO_TESTS is an legacy, and the naming of KUDU_CLI_TOOL_NO_TESTS is aim to keep consistency to NO_TESTS.
2. Usage cases and habits.
For the most used two cases,
a. Build for developing purpose, the cmake looks like:

 cmake ../.. # all binaries including tests binaries, 'kudu test' tool will be built.

b. Build for publish Kudu server binaries purpose:

 cmake -DNO_TESTS=1 ../.. # only Kudu server binaries will be built.

All the commands are kept as before, and the newly added intuitive flag 'KUDU_CLI_TOOL_NO_TESTS' will ony be used in rare cases such as when the release manager build and push mini-cluster binaries.

If change it to KUDU_CLI_TOOL_WITH_TESTS, for the purpose of (a), we have to change the cmake command to

 cmake -DKUDU_CLI_TOOL_WITH_TESTS=1 ../..

explicitly to ensure the 'kudu test' tool can be built, which break the old habit.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Mon, 21 Aug 2023 06:52:31 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DNO TESTS=1

Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DNO_TESTS=1
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool even if
            : -DNO_TESTS=1.
I'm wondering if in some cases this 'test' feature is not so necessary. E.g. for production environment deployment. Then there is nothing wrong with the existing behavior of '-DNO_TESTS'. Maybe we can add another option for enabling the 'kudu test'?



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 08 Aug 2023 12:45:20 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DNO TESTS=1

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DNO_TESTS=1
......................................................................


Patch Set 1: Verified+1

The failed test AutoAddMasterTest.TestRestartMastersWhileSomeDown is not related.


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 08 Aug 2023 09:58:31 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 3:

Could you please take a look at this patch again, thanks!


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 17 Aug 2023 23:28:14 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool when
            : -DKUDU_CLI_TO
> All right, thanks for the clarification.
You can do that by:

 cmake -DNO_TESTS=1 -DKUDU_CLI_TOOL_NO_TESTS=1 ../..

But I missed to set the KUDU_CLI_TOOL_NO_TESTS variable in PS2 indeed.

In PS3, you can do that by the command above or:

 cmake -DNO_TESTS=1 ../..

Thanks to your carefully review!


http://gerrit.cloudera.org:8080/#/c/20326/2/src/kudu/security/CMakeLists.txt
File src/kudu/security/CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/2/src/kudu/security/CMakeLists.txt@102
PS2, Line 102: is used only for tests.
> I don't think this is true: IIUC, the mini_kdc is also used in negotiation-
Done, and with minor updates.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 15 Aug 2023 03:11:32 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/2/CMakeLists.txt
File CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/2/CMakeLists.txt@241
PS2, Line 241: ${KUDU_CLI_TOOL_NO_TESTS}" STREQUAL ""
Why do we need to check this? Does L245 also need the same check?



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Mon, 14 Aug 2023 11:42:12 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

> Patch Set 1:
> 
> (1 comment)

Sure, we can use KUDU_CLI_TOOL_NO_TEST.


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 08 Aug 2023 16:47:10 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool even if
            : -DNO_TESTS=1.
> I'm wondering if in some cases this 'test' feature is not so necessary. E.g
The idea of removing everything test-related when building with -DNO_TESTS was exactly that: if building release bits, there isn't any need for tests, and there isn't any need to run tests with the `kudu` CLI binary to be used in the production.

In that sense, I'm not sure why we need to enable the 'kudu test' CLI tool there, when it's always possible to configure and build Kudu not specifying the -DNO_TESTS option.

So far I thought we can either build tests and the kudu CLI tool that is capable of running those tests, or we don't build any C++ tests and the kudu CLI binary doesn't have the 'kudu test' tool correspondingly.

Yingchun, could you please clarify on the use case when it's necessary to build the kudu CLI binary with 'kudu test' tool, but not build any C++ tests?



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Wed, 09 Aug 2023 01:24:27 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/2/CMakeLists.txt
File CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/2/CMakeLists.txt@241
PS2, Line 241: ${KUDU_CLI_TOOL_NO_TESTS}" STREQUAL ""
> Why do we need to check this? Does L245 also need the same check?
If not, the 'kudu test' tool will be built because KUDU_CLI_TOOL_NO_TESTS=0, which is not what we expect in NO_TESTS mode.

In L245, it's only allowed to set KUDU_CLI_TOOL_NO_TESTS as 0, it's what we expect if it's not set as well, so didn't check it.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Mon, 14 Aug 2023 13:26:21 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................


Patch Set 5:

> Patch Set 3:
> 
> (1 comment)

Thanks, Alexey!
It's a better implementation than the PS3, not introduce more NO_xxx flags and the lagecy commands and behaviors are kept as well.
Done.


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Tue, 22 Aug 2023 00:36:46 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................


Patch Set 5: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Tue, 22 Aug 2023 12:09:37 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................

[tools] Enable building 'kudu test' CLI tool by default

This patch enable building 'kudu test' CLI tool by default
even if -DNO_TESTS=1.

However, it's possible to disable building the test-related
CLI tool by setting -DKUDU_CLI_TEST_TOOL_ENABLED=0.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Reviewed-on: http://gerrit.cloudera.org:8080/20326
Reviewed-by: Yifan Zhang <ch...@163.com>
Tested-by: Alexey Serbin <al...@apache.org>
Reviewed-by: Alexey Serbin <al...@apache.org>
---
M CMakeLists.txt
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tools/tool_action.h
M src/kudu/tools/tool_action_test.cc
M src/kudu/tools/tool_main.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
15 files changed, 114 insertions(+), 104 deletions(-)

Approvals:
  Yifan Zhang: Looks good to me, but someone else must approve
  Alexey Serbin: Looks good to me, approved; Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 6
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................


Patch Set 5: Verified+1

unrelated failures of a Java test (TSAN)


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>
Gerrit-Comment-Date: Tue, 22 Aug 2023 18:39:06 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yifan Zhang, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20326

to look at the new patch set (#3).

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................

[tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0

'kudu test' CLI tool is useful to start a mini Kudu cluster
for application developing and testing, for example the
examples/java/java-example will start a mini cluster for
testing.

This patch enable to build 'kudu test' CLI tool when
-DKUDU_CLI_TOOL_NO_TESTS=0 even if -DNO_TESTS=1.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
---
M CMakeLists.txt
M build-support/mini-cluster/build_mini_cluster_binaries.sh
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
13 files changed, 109 insertions(+), 97 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/20326/3
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yifan Zhang (Code Review)" <ge...@cloudera.org>.
Yifan Zhang has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 10 Aug 2023 03:07:08 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DNO TESTS=1

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has removed a vote on this change.

Change subject: [tools] Enable 'kudu test' CLI tool when -DNO_TESTS=1
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool when
            : -DKUDU_CLI_TO
> The idea of removing everything test-related when building with -DNO_TESTS 
The 'kudu test' CLI tool has two use cases I can imagine, one is for testing, another is for developing Kudu based applications, we can use the single tool to start a simple Kudu cluster fastly without deploying multiple binaries and processes manullay.

In PS2 I use the existing KUDU_CLI_TOOL_NO_TESTS option to control whether to build 'kudu test' CLI tool, the tool will not be built in default.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Wed, 09 Aug 2023 02:43:46 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yuqi Du, Yifan Zhang, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20326

to look at the new patch set (#4).

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................

[tools] Enable building 'kudu test' CLI tool by default

This patch enable building 'kudu test' CLI tool by default
even if -DNO_TESTS=1.

However, it's possible to disable building the test-related
CLI tool by setting -DKUDU_CLI_TEST_TOOL_ENABLED=0.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
---
M CMakeLists.txt
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
12 files changed, 110 insertions(+), 100 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/20326/4
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 4
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool when
            : -DKUDU_CLI_TO
> Yifan found this issue [1] when she verified the 1.17.0-RC1 java example, t
All right, thanks for the clarification.

Indeed: if we want to make sure the binary JAR contains a kudu CLI binary with  the'kudu test' tool, we need to have a way to build that, but not build any tests.

However, please make sure there is a mode when neither tests, nor mini-cluster and related stuff is built.  With the code in PS2, I didn't see how to do so.


http://gerrit.cloudera.org:8080/#/c/20326/2/src/kudu/security/CMakeLists.txt
File src/kudu/security/CMakeLists.txt:

http://gerrit.cloudera.org:8080/#/c/20326/2/src/kudu/security/CMakeLists.txt@102
PS2, Line 102: is used only for 'kudu test' CLI tool
I don't think this is true: IIUC, the mini_kdc is also used in negotiation-test.cc where the 'kudu test' CLI tool isn't used.

I'd recommend to keep this (and other related comments) as-is.



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Mon, 14 Aug 2023 22:21:44 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] Enable building 'kudu test' CLI tool by default

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yuqi Du, Yifan Zhang, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20326

to look at the new patch set (#5).

Change subject: [tools] Enable building 'kudu test' CLI tool by default
......................................................................

[tools] Enable building 'kudu test' CLI tool by default

This patch enable building 'kudu test' CLI tool by default
even if -DNO_TESTS=1.

However, it's possible to disable building the test-related
CLI tool by setting -DKUDU_CLI_TEST_TOOL_ENABLED=0.

Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
---
M CMakeLists.txt
M src/kudu/clock/CMakeLists.txt
M src/kudu/hms/CMakeLists.txt
M src/kudu/master/CMakeLists.txt
M src/kudu/mini-cluster/CMakeLists.txt
M src/kudu/postgres/CMakeLists.txt
M src/kudu/ranger-kms/CMakeLists.txt
M src/kudu/ranger/CMakeLists.txt
M src/kudu/security/CMakeLists.txt
M src/kudu/tools/CMakeLists.txt
M src/kudu/tools/tool_action.h
M src/kudu/tools/tool_action_test.cc
M src/kudu/tools/tool_main.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/util/CMakeLists.txt
15 files changed, 114 insertions(+), 104 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/20326/5
-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 5
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Yuqi Du <sh...@gmail.com>

[kudu-CR] [tools] Enable 'kudu test' CLI tool when -DKUDU CLI TOOL NO TESTS=0

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20326 )

Change subject: [tools] Enable 'kudu test' CLI tool when -DKUDU_CLI_TOOL_NO_TESTS=0
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20326/1//COMMIT_MSG@14
PS1, Line 14: This patch enable to build 'kudu test' CLI tool even if
            : -DNO_TESTS=1.
> The 'kudu test' CLI tool has two use cases I can imagine, one is for testin
So, if people are working on Kudu development, they are to build and run tests, and the set of existing C++ tests is a part of that.  Then they automatically build not specifying the NO_TESTS option, and they get the `kudu test` CLI tool along with multiple test binaries to run various C++ tests.

Otherwise, why to build the kudu binary to include the `kudu test` CLI tool, but to not build the tests?  In what environment are you going to use that kudu binary then?  Where are you going to get the tests to run if you haven't built the rest without NO_TESTS option?  I'm not sure I understand, but maybe I'm missing something?



-- 
To view, visit http://gerrit.cloudera.org:8080/20326
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I381348b0123f8566d547cdd4449e308ea5f6aa13
Gerrit-Change-Number: 20326
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Wed, 09 Aug 2023 23:35:04 +0000
Gerrit-HasComments: Yes