You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by John Kordich via Review Board <no...@reviews.apache.org> on 2017/03/27 22:15:05 UTC

Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

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

Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.


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


Repository: mesos


Description
-------

Added base stout Environment class to mesos-tests Environment class.


Diffs
-----

  src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
  src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 


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


Testing
-------

Ran make check on Linux and the tests on Windows.


Thanks,

John Kordich


Re: Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57972/#review171621
-----------------------------------------------------------




src/tests/environment.hpp
Lines 31-32 (patched)
<https://reviews.apache.org/r/57972/#comment244579>

    We definitely don't want to use any namespace alias-ing in header files; otherwise the alias will bleed through to other files and lead to all sorts of nastiness :(



src/tests/environment.cpp
Line 79 (original), 79-80 (patched)
<https://reviews.apache.org/r/57972/#comment244583>

    We usually prefer importing the exact class rather than the whole namespace.


- Joseph Wu


On April 10, 2017, 2:41 p.m., John Kordich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57972/
> -----------------------------------------------------------
> 
> (Updated April 10, 2017, 2:41 p.m.)
> 
> 
> Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.
> 
> 
> Bugs: MESOS-6731
>     https://issues.apache.org/jira/browse/MESOS-6731
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added base stout Environment class to mesos-tests Environment class.
> 
> 
> Diffs
> -----
> 
>   src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
>   src/tests/environment.cpp e3cff1847c44bb06bbe898211bfca35cf851217a 
>   src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 
> 
> 
> Diff: https://reviews.apache.org/r/57972/diff/3/
> 
> 
> Testing
> -------
> 
> Ran make check on Linux and the tests on Windows.
> 
> 
> Thanks,
> 
> John Kordich
> 
>


Re: Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

Posted by John Kordich via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57972/
-----------------------------------------------------------

(Updated April 10, 2017, 9:41 p.m.)


Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.


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


Repository: mesos


Description
-------

Added base stout Environment class to mesos-tests Environment class.


Diffs (updated)
-----

  src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
  src/tests/environment.cpp e3cff1847c44bb06bbe898211bfca35cf851217a 
  src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 


Diff: https://reviews.apache.org/r/57972/diff/3/

Changes: https://reviews.apache.org/r/57972/diff/2-3/


Testing
-------

Ran make check on Linux and the tests on Windows.


Thanks,

John Kordich


Re: Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57972/#review171377
-----------------------------------------------------------




src/tests/environment.cpp
Lines 721-722 (original), 86-90 (patched)
<https://reviews.apache.org/r/57972/#comment244269>

    Instead of moving all those test filters into the header file, why not do this?
    
    ```
    Environment::Environment(const Flags& _flags) 
      : stout::internal::tests::Environment(
            std::vector<std::shared_ptr<TestFilter>>{
                std::make_shared<AufsFilter>(),
                std::make_shared<BenchmarkFilter>(),
                std::make_shared<CfsFilter>(),
                std::make_shared<CgroupsFilter>(),
                std::make_shared<CurlFilter>(),
                std::make_shared<DockerFilter>(),
                std::make_shared<InternetFilter>(),
                std::make_shared<LogrotateFilter>(),
                std::make_shared<NetcatFilter>(),
                std::make_shared<NetClsCgroupsFilter>(),
                std::make_shared<NetworkIsolatorTestFilter>(),
                std::make_shared<NvidiaGpuFilter>(),
                std::make_shared<OverlayFSFilter>(),
                std::make_shared<PerfCPUCyclesFilter>(),
                std::make_shared<PerfFilter>(),
                std::make_shared<RootFilter>(),
                std::make_shared<UnzipFilter>(),
                std::make_shared<XfsFilter>()}), 
        flags(_flags)
    ```


- Joseph Wu


On April 5, 2017, 12:08 p.m., John Kordich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57972/
> -----------------------------------------------------------
> 
> (Updated April 5, 2017, 12:08 p.m.)
> 
> 
> Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.
> 
> 
> Bugs: MESOS-6731
>     https://issues.apache.org/jira/browse/MESOS-6731
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added base stout Environment class to mesos-tests Environment class.
> 
> 
> Diffs
> -----
> 
>   src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
>   src/tests/environment.cpp e3cff1847c44bb06bbe898211bfca35cf851217a 
>   src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 
> 
> 
> Diff: https://reviews.apache.org/r/57972/diff/2/
> 
> 
> Testing
> -------
> 
> Ran make check on Linux and the tests on Windows.
> 
> 
> Thanks,
> 
> John Kordich
> 
>


Re: Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

Posted by John Kordich via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57972/
-----------------------------------------------------------

(Updated April 5, 2017, 7:08 p.m.)


Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.


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


Repository: mesos


Description
-------

Added base stout Environment class to mesos-tests Environment class.


Diffs (updated)
-----

  src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
  src/tests/environment.cpp e3cff1847c44bb06bbe898211bfca35cf851217a 
  src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 


Diff: https://reviews.apache.org/r/57972/diff/2/

Changes: https://reviews.apache.org/r/57972/diff/1-2/


Testing
-------

Ran make check on Linux and the tests on Windows.


Thanks,

John Kordich


Re: Review Request 57972: Added base stout Environment class to mesos-tests Environment class.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57972/#review170354
-----------------------------------------------------------




src/tests/environment.hpp
Line 34 (original), 35 (patched)
<https://reviews.apache.org/r/57972/#comment243178>

    I'd expect there to be a substantial amount of deletions in `src/tests/environment.cpp`.


- Joseph Wu


On March 27, 2017, 3:15 p.m., John Kordich wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57972/
> -----------------------------------------------------------
> 
> (Updated March 27, 2017, 3:15 p.m.)
> 
> 
> Review request for mesos, Andrew Schwartzmeyer and Joseph Wu.
> 
> 
> Bugs: MESOS-6731
>     https://issues.apache.org/jira/browse/MESOS-6731
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added base stout Environment class to mesos-tests Environment class.
> 
> 
> Diffs
> -----
> 
>   src/tests/environment.hpp 06b6d54fc76b327e3e26914eb61c16619a36de42 
>   src/tests/main.cpp 5d062c3451bdfb5d5fc459ac7c071ab18e6d8043 
> 
> 
> Diff: https://reviews.apache.org/r/57972/diff/1/
> 
> 
> Testing
> -------
> 
> Ran make check on Linux and the tests on Windows.
> 
> 
> Thanks,
> 
> John Kordich
> 
>