You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Chun-Hung Hsiao <ch...@mesosphere.io> on 2017/04/22 01:56:14 UTC

Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/
-----------------------------------------------------------

Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.


Bugs: MESOS-7280
    https://issues.apache.org/jira/browse/MESOS-7280


Repository: mesos


Description
-------

Created a non-empty file 'abc' under the agent's work directory, which
is linked by the symlink '/xyz' in the 2nd layer of the testing image.
This file should not be overwritten by the empty file '/xyz' in the 3rd
layer. Please see the following link for more details:
  https://hub.docker.com/r/chhsiao/overwrite/
The testing image is updated in a way that it is compatible to the
previous Overwrite test.


Diffs
-----

  src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 


Diff: https://reviews.apache.org/r/58640/diff/1/


Testing
-------

sudo make test
Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.


Thanks,

Chun-Hung Hsiao


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review172735
-----------------------------------------------------------



Patch looks great!

Reviews applied: [58640]

Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh

- Mesos Reviewbot


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Chun-Hung Hsiao <ch...@mesosphere.io>.

> On April 26, 2017, 7:16 p.m., Neil Conway wrote:
> > src/tests/containerizer/provisioner_docker_tests.cpp
> > Lines 811 (patched)
> > <https://reviews.apache.org/r/58640/diff/1/?file=1697732#file1697732line811>
> >
> >     Wouldn't `path::join` be preferrable here?
> 
> Chun-Hung Hsiao wrote:
>     Let me open a new PR to fix this.

Fixed in https://reviews.apache.org/r/58766/.


- Chun-Hung


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173079
-----------------------------------------------------------


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Chun-Hung Hsiao <ch...@mesosphere.io>.

> On April 26, 2017, 7:16 p.m., Neil Conway wrote:
> > src/tests/containerizer/provisioner_docker_tests.cpp
> > Lines 811 (patched)
> > <https://reviews.apache.org/r/58640/diff/1/?file=1697732#file1697732line811>
> >
> >     Wouldn't `path::join` be preferrable here?

Let me open a new PR to fix this.


- Chun-Hung


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173079
-----------------------------------------------------------


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Neil Conway <ne...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173079
-----------------------------------------------------------




src/tests/containerizer/provisioner_docker_tests.cpp
Lines 811 (patched)
<https://reviews.apache.org/r/58640/#comment246148>

    Wouldn't `path::join` be preferrable here?


- Neil Conway


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Neil Conway <ne...@gmail.com>.

> On April 26, 2017, 7:05 p.m., Jie Yu wrote:
> > src/tests/containerizer/provisioner_docker_tests.cpp
> > Lines 827 (patched)
> > <https://reviews.apache.org/r/58640/diff/1/?file=1697732#file1697732line827>
> >
> >     EXPECT_SOME
> 
> Chun-Hung Hsiao wrote:
>     Should the `ASSERT_SOME` in Line 813 be changed to `EXPECT_SOME` as well? If it should be then I'll open a new PR for address it and Niel's suggestion.

You'd want `EXPECT_SOME` if you want the test to continue even if the check fails. Offhand I'd think `ASSERT_SOME` is better here.


- Neil


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173078
-----------------------------------------------------------


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Chun-Hung Hsiao <ch...@mesosphere.io>.

> On April 26, 2017, 7:05 p.m., Jie Yu wrote:
> > src/tests/containerizer/provisioner_docker_tests.cpp
> > Lines 827 (patched)
> > <https://reviews.apache.org/r/58640/diff/1/?file=1697732#file1697732line827>
> >
> >     EXPECT_SOME

Should the `ASSERT_SOME` in Line 813 be changed to `EXPECT_SOME` as well? If it should be then I'll open a new PR for address it and Niel's suggestion.


- Chun-Hung


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173078
-----------------------------------------------------------


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>


Re: Review Request 58640: Updated the Overwrite docker provisioner test for MESOS-7280.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58640/#review173078
-----------------------------------------------------------


Fix it, then Ship it!





src/tests/containerizer/provisioner_docker_tests.cpp
Lines 827 (patched)
<https://reviews.apache.org/r/58640/#comment246147>

    EXPECT_SOME


- Jie Yu


On April 22, 2017, 1:56 a.m., Chun-Hung Hsiao wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/58640/
> -----------------------------------------------------------
> 
> (Updated April 22, 2017, 1:56 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Vinod Kone.
> 
> 
> Bugs: MESOS-7280
>     https://issues.apache.org/jira/browse/MESOS-7280
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Created a non-empty file 'abc' under the agent's work directory, which
> is linked by the symlink '/xyz' in the 2nd layer of the testing image.
> This file should not be overwritten by the empty file '/xyz' in the 3rd
> layer. Please see the following link for more details:
>   https://hub.docker.com/r/chhsiao/overwrite/
> The testing image is updated in a way that it is compatible to the
> previous Overwrite test.
> 
> 
> Diffs
> -----
> 
>   src/tests/containerizer/provisioner_docker_tests.cpp c26e1f9b093fda66f14e474006d8148c0b9f3245 
> 
> 
> Diff: https://reviews.apache.org/r/58640/diff/1/
> 
> 
> Testing
> -------
> 
> sudo make test
> Manually tested on commit bc12a58 to make sure that the 'abc' becomes empty in the unpatched copy backend.
> 
> 
> Thanks,
> 
> Chun-Hung Hsiao
> 
>