You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Eugene Chekanskiy <ec...@hortonworks.com> on 2014/01/21 15:51:37 UTC
Review Request 17146: Modify Unittest.py for running test Component Scripts
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/
-----------------------------------------------------------
Review request for Ambari and Andrew Onischuk.
Bugs: AMBARI-4370
https://issues.apache.org/jira/browse/AMBARI-4370
Repository: ambari
Description
-------
Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
Diffs
-----
ambari-server/pom.xml 02fd326
ambari-server/src/test/python/unitTests.py 9448bb6
Diff: https://reviews.apache.org/r/17146/diff/
Testing
-------
Tested ambari-server python tests with already commited components tests. Example of non successful test run:
----------------------------------------------------------------------
Component tests with errors:
stack:2.1.1 service:ZOOKEEPER
stack:2.1.1 service:HBASE
----------------------------------------------------------------------
Total run:217
Total errors:0
Total failures:3
Total skipped:0
ERROR
Thanks,
Eugene Chekanskiy
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
> On Jan. 21, 2014, 3:40 p.m., Dmitro Lisnichenko wrote:
> > Overall changes look good, few notes:
> > - having different test file masks for different locations looks odd. Let's convert filenames to lowercase and compare with test* at all locations
> > - get_parent_path(base, directory_name) function may be simplified with use of os.path.split(path)
> > - let's avoid hardcoding HDP stack at stack_test_executor()
> > - let's use os.path.split(path) at stack_test_executor() instead of if root[-7:] == "scripts"
> > - let's add support of test files starting with underscore (as done at ambari-agent). So if any test file name starts with underscore, then only this test file is executed and other files are skipped.
> >
> >
as a result of discussion, hardcoding HDP stack at stack_test_executor is probably OK
- Dmitro
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/#review32370
-----------------------------------------------------------
On Jan. 21, 2014, 2:52 p.m., Eugene Chekanskiy wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17146/
> -----------------------------------------------------------
>
> (Updated Jan. 21, 2014, 2:52 p.m.)
>
>
> Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
>
>
> Bugs: AMBARI-4370
> https://issues.apache.org/jira/browse/AMBARI-4370
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
>
>
> Diffs
> -----
>
> ambari-server/pom.xml 02fd326
> ambari-server/src/test/python/unitTests.py 9448bb6
>
> Diff: https://reviews.apache.org/r/17146/diff/
>
>
> Testing
> -------
>
> Tested ambari-server python tests with already commited components tests. Example of non successful test run:
> ----------------------------------------------------------------------
> Component tests with errors:
> stack:2.1.1 service:ZOOKEEPER
> stack:2.1.1 service:HBASE
> ----------------------------------------------------------------------
> Total run:217
> Total errors:0
> Total failures:3
> Total skipped:0
> ERROR
>
>
> Thanks,
>
> Eugene Chekanskiy
>
>
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/#review32370
-----------------------------------------------------------
Overall changes look good, few notes:
- having different test file masks for different locations looks odd. Let's convert filenames to lowercase and compare with test* at all locations
- get_parent_path(base, directory_name) function may be simplified with use of os.path.split(path)
- let's avoid hardcoding HDP stack at stack_test_executor()
- let's use os.path.split(path) at stack_test_executor() instead of if root[-7:] == "scripts"
- let's add support of test files starting with underscore (as done at ambari-agent). So if any test file name starts with underscore, then only this test file is executed and other files are skipped.
- Dmitro Lisnichenko
On Jan. 21, 2014, 2:52 p.m., Eugene Chekanskiy wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17146/
> -----------------------------------------------------------
>
> (Updated Jan. 21, 2014, 2:52 p.m.)
>
>
> Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
>
>
> Bugs: AMBARI-4370
> https://issues.apache.org/jira/browse/AMBARI-4370
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
>
>
> Diffs
> -----
>
> ambari-server/pom.xml 02fd326
> ambari-server/src/test/python/unitTests.py 9448bb6
>
> Diff: https://reviews.apache.org/r/17146/diff/
>
>
> Testing
> -------
>
> Tested ambari-server python tests with already commited components tests. Example of non successful test run:
> ----------------------------------------------------------------------
> Component tests with errors:
> stack:2.1.1 service:ZOOKEEPER
> stack:2.1.1 service:HBASE
> ----------------------------------------------------------------------
> Total run:217
> Total errors:0
> Total failures:3
> Total skipped:0
> ERROR
>
>
> Thanks,
>
> Eugene Chekanskiy
>
>
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/#review32392
-----------------------------------------------------------
Ship it!
Ship It!
- Andrew Onischuk
On Jan. 21, 2014, 6:10 p.m., Eugene Chekanskiy wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17146/
> -----------------------------------------------------------
>
> (Updated Jan. 21, 2014, 6:10 p.m.)
>
>
> Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
>
>
> Bugs: AMBARI-4370
> https://issues.apache.org/jira/browse/AMBARI-4370
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
>
>
> Diffs
> -----
>
> ambari-server/pom.xml 02fd326
> ambari-server/src/test/python/unitTests.py 9448bb6
>
> Diff: https://reviews.apache.org/r/17146/diff/
>
>
> Testing
> -------
>
> Tested ambari-server python tests with already commited components tests. Example of non successful test run:
> ----------------------------------------------------------------------
> Component tests with errors:
> stack:2.1.1 service:ZOOKEEPER
> stack:2.1.1 service:HBASE
> ----------------------------------------------------------------------
> Total run:217
> Total errors:0
> Total failures:3
> Total skipped:0
> ERROR
>
>
> Thanks,
>
> Eugene Chekanskiy
>
>
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/#review32385
-----------------------------------------------------------
Ship it!
Ship It!
- Dmitro Lisnichenko
On Jan. 21, 2014, 6:10 p.m., Eugene Chekanskiy wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17146/
> -----------------------------------------------------------
>
> (Updated Jan. 21, 2014, 6:10 p.m.)
>
>
> Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
>
>
> Bugs: AMBARI-4370
> https://issues.apache.org/jira/browse/AMBARI-4370
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
>
>
> Diffs
> -----
>
> ambari-server/pom.xml 02fd326
> ambari-server/src/test/python/unitTests.py 9448bb6
>
> Diff: https://reviews.apache.org/r/17146/diff/
>
>
> Testing
> -------
>
> Tested ambari-server python tests with already commited components tests. Example of non successful test run:
> ----------------------------------------------------------------------
> Component tests with errors:
> stack:2.1.1 service:ZOOKEEPER
> stack:2.1.1 service:HBASE
> ----------------------------------------------------------------------
> Total run:217
> Total errors:0
> Total failures:3
> Total skipped:0
> ERROR
>
>
> Thanks,
>
> Eugene Chekanskiy
>
>
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Eugene Chekanskiy <ec...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/
-----------------------------------------------------------
(Updated Jan. 21, 2014, 6:10 p.m.)
Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
Changes
-------
Improved error printing. Now, in the end of log, all failed tests printed with appropriate stack traces.
Bugs: AMBARI-4370
https://issues.apache.org/jira/browse/AMBARI-4370
Repository: ambari
Description
-------
Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
Diffs (updated)
-----
ambari-server/pom.xml 02fd326
ambari-server/src/test/python/unitTests.py 9448bb6
Diff: https://reviews.apache.org/r/17146/diff/
Testing
-------
Tested ambari-server python tests with already commited components tests. Example of non successful test run:
----------------------------------------------------------------------
Component tests with errors:
stack:2.1.1 service:ZOOKEEPER
stack:2.1.1 service:HBASE
----------------------------------------------------------------------
Total run:217
Total errors:0
Total failures:3
Total skipped:0
ERROR
Thanks,
Eugene Chekanskiy
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Eugene Chekanskiy <ec...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/
-----------------------------------------------------------
(Updated Jan. 21, 2014, 6:08 p.m.)
Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
Changes
-------
All changes were made according to Dmitro's review. For running custom tests we must pass -Dcustom.tests=true to maven.
Bugs: AMBARI-4370
https://issues.apache.org/jira/browse/AMBARI-4370
Repository: ambari
Description
-------
Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
Diffs (updated)
-----
ambari-server/pom.xml 02fd326
ambari-server/src/test/python/unitTests.py 9448bb6
Diff: https://reviews.apache.org/r/17146/diff/
Testing
-------
Tested ambari-server python tests with already commited components tests. Example of non successful test run:
----------------------------------------------------------------------
Component tests with errors:
stack:2.1.1 service:ZOOKEEPER
stack:2.1.1 service:HBASE
----------------------------------------------------------------------
Total run:217
Total errors:0
Total failures:3
Total skipped:0
ERROR
Thanks,
Eugene Chekanskiy
Re: Review Request 17146: Modify Unittest.py for running test Component
Scripts
Posted by Eugene Chekanskiy <ec...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17146/
-----------------------------------------------------------
(Updated Jan. 21, 2014, 2:52 p.m.)
Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.
Bugs: AMBARI-4370
https://issues.apache.org/jira/browse/AMBARI-4370
Repository: ambari
Description
-------
Modified unittest.py to run stack tests. All tests must be located in /stacks/stack_version/component directories. Test files must be with following names: test_*.py. If test contain some none test directories, we need to include them in STACK_EXCLUDE and/or SERVICE_EXCLUDE. All tests for stack-component pair are running in sub-process, to prevent conflicts with module names. All python tests of ambari-server are passed. Also, as tests for different components run in separate test run, statistics for every run accumulated and shown in the end.
Diffs
-----
ambari-server/pom.xml 02fd326
ambari-server/src/test/python/unitTests.py 9448bb6
Diff: https://reviews.apache.org/r/17146/diff/
Testing
-------
Tested ambari-server python tests with already commited components tests. Example of non successful test run:
----------------------------------------------------------------------
Component tests with errors:
stack:2.1.1 service:ZOOKEEPER
stack:2.1.1 service:HBASE
----------------------------------------------------------------------
Total run:217
Total errors:0
Total failures:3
Total skipped:0
ERROR
Thanks,
Eugene Chekanskiy