You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Grant Henke (Code Review)" <ge...@cloudera.org> on 2020/03/23 14:24:03 UTC

[kudu-CR] [docker] Make the build image more useful for development

Grant Henke has uploaded this change for review. ( http://gerrit.cloudera.org:8080/15530


Change subject: [docker] Make the build image more useful for development
......................................................................

[docker] Make the build image more useful for development

This patch makes the docker build image more useful for
development. It includes a few small changes including:
- Fixed sentry in thirdparty
- Added lsof package to fix HMS tests
- Replaced ntp with chrony
- Added build packages (cmake, ninja-build)
- Added vim for basic file edditing
- Added ccache. A follow on change will allow the docker cache to
share the ccache between builds too.

With this patch most of the tests pass in the Docker container.
The following tests are still failing:
- hybrid_clock-test
- client-stress-test
- memory_gc-itest
- raft_consensus-itest.2

Fixes for these will be added in follow on patches.

I used the following steps to build the image and run the tests:

   export TARGETS="build"
   ./docker/docker-build.sh
   docker run -it --rm apache/kudu:build-latest /bin/bash
   cd /kudu
   mkdir build/debug
   cd build/debug
   ../../thirdparty/installed/common/bin/cmake \
     -DCMAKE_BUILD_TYPE=debug ../..
   make -j6
   ctest -j6

Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
---
M docker/Dockerfile
M docker/bootstrap-dev-env.sh
2 files changed, 23 insertions(+), 3 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................


Patch Set 1:

(6 comments)

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

http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@10
PS1, Line 10: includes
> nit: replace with 'contains' since there is also 'including'
Done


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@11
PS1, Line 11: sentry
> nit: Sentry ?
Done


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@13
PS1, Line 13: Replaced ntp with chrony
> Thank you for doing this!
Done


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@15
PS1, Line 15: edditing
> editing
Done


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@21
PS1, Line 21: hybrid_clock-test
> I'm working on this as well.  Have you started working on this already?
No, I haven't spent much time investigating.


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@28
PS1, Line 28: build the image
> Do you mind mentioning the OS/platform used for the build?
I have only used the default (xenial) so far, but this should work for all supported base OSs. I plan to test them all before the next release.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 24 Mar 2020 04:17:24 +0000
Gerrit-HasComments: Yes

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................


Patch Set 1:

(6 comments)

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

http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@10
PS1, Line 10: includes
nit: replace with 'contains' since there is also 'including'


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@11
PS1, Line 11: sentry
nit: Sentry ?


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@13
PS1, Line 13: Replaced ntp with chrony
Thank you for doing this!


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@15
PS1, Line 15: edditing
editing


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@21
PS1, Line 21: hybrid_clock-test
I'm working on this as well.  Have you started working on this already?


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@28
PS1, Line 28: build the image
Do you mind mentioning the OS/platform used for the build?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 23 Mar 2020 23:03:01 +0000
Gerrit-HasComments: Yes

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/15530/2/docker/Dockerfile
File docker/Dockerfile:

http://gerrit.cloudera.org:8080/#/c/15530/2/docker/Dockerfile@181
PS2, Line 181:   # The release build is massive with tests built.
             :   -DNO_TESTS=1 \
             :   ../.. \
             :   && make -j${PARALLEL}
> -GNinja && ninja instead?
I chose to stick with make given that is what we document and ninja is not faster for a full build. But since ninja is in the docker image now it can be used for subsequent builds without needing an install.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 24 Mar 2020 14:38:01 +0000
Gerrit-HasComments: Yes

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................

[docker] Make the build image more useful for development

This patch makes the docker build image more useful for
development. It contains a few small changes including:
- Fixed Sentry in thirdparty
- Added lsof package to fix HMS tests
- Replaced ntp with chrony
- Added build packages (cmake, ninja-build)
- Added vim for basic file editing
- Added ccache. A follow on change will allow the docker cache to
share the ccache between builds too.

With this patch most of the tests pass in the Docker container.
The following tests are still failing:
- hybrid_clock-test
- client-stress-test
- memory_gc-itest
- raft_consensus-itest.2

Fixes for these will be added in follow on patches.

I used the following steps to build a xenial image and run the tests:

   export TARGETS="build"
   ./docker/docker-build.sh
   docker run -it --rm apache/kudu:build-latest /bin/bash
   cd /kudu
   mkdir build/debug
   cd build/debug
   ../../thirdparty/installed/common/bin/cmake \
     -DCMAKE_BUILD_TYPE=debug ../..
   make -j6
   ctest -j6

Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Reviewed-on: http://gerrit.cloudera.org:8080/15530
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <as...@cloudera.com>
---
M docker/Dockerfile
M docker/bootstrap-dev-env.sh
2 files changed, 23 insertions(+), 3 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Alexey Serbin: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 3
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/15530/2/docker/Dockerfile
File docker/Dockerfile:

http://gerrit.cloudera.org:8080/#/c/15530/2/docker/Dockerfile@181
PS2, Line 181:   # The release build is massive with tests built.
             :   -DNO_TESTS=1 \
             :   ../.. \
             :   && make -j${PARALLEL}
-GNinja && ninja instead?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 24 Mar 2020 07:03:15 +0000
Gerrit-HasComments: Yes

[kudu-CR] [docker] Make the build image more useful for development

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

Change subject: [docker] Make the build image more useful for development
......................................................................


Patch Set 2: Code-Review+2

(2 comments)

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

http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@21
PS1, Line 21: hybrid_clock-test
> No, I haven't spent much time investigating.
OK, I have a WIP patch for that.  The idea is to avoid running some tests that require the local clock synchronized with NTP if it's not available on the host.


http://gerrit.cloudera.org:8080/#/c/15530/1//COMMIT_MSG@28
PS1, Line 28: build a xenial 
> I have only used the default (xenial) so far, but this should work for all 
Thanks!



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 24 Mar 2020 04:59:14 +0000
Gerrit-HasComments: Yes

[kudu-CR] [docker] Make the build image more useful for development

Posted by "Grant Henke (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins, Andrew Wong, 

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

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

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

Change subject: [docker] Make the build image more useful for development
......................................................................

[docker] Make the build image more useful for development

This patch makes the docker build image more useful for
development. It contains a few small changes including:
- Fixed Sentry in thirdparty
- Added lsof package to fix HMS tests
- Replaced ntp with chrony
- Added build packages (cmake, ninja-build)
- Added vim for basic file editing
- Added ccache. A follow on change will allow the docker cache to
share the ccache between builds too.

With this patch most of the tests pass in the Docker container.
The following tests are still failing:
- hybrid_clock-test
- client-stress-test
- memory_gc-itest
- raft_consensus-itest.2

Fixes for these will be added in follow on patches.

I used the following steps to build a xenial image and run the tests:

   export TARGETS="build"
   ./docker/docker-build.sh
   docker run -it --rm apache/kudu:build-latest /bin/bash
   cd /kudu
   mkdir build/debug
   cd build/debug
   ../../thirdparty/installed/common/bin/cmake \
     -DCMAKE_BUILD_TYPE=debug ../..
   make -j6
   ctest -j6

Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
---
M docker/Dockerfile
M docker/bootstrap-dev-env.sh
2 files changed, 23 insertions(+), 3 deletions(-)


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1e4b463a440a3f76fb07425aebcbda2050b9917e
Gerrit-Change-Number: 15530
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)