You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hemanth Yamijala (JIRA)" <ji...@apache.org> on 2008/02/04 04:51:08 UTC

[jira] Created: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

[HOD] Put in place unit test framework for HOD
----------------------------------------------

                 Key: HADOOP-2775
                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
             Project: Hadoop Core
          Issue Type: Test
          Components: contrib/hod
    Affects Versions: 0.16.0
            Reporter: Hemanth Yamijala
            Assignee: Vinod Kumar Vavilapalli
             Fix For: 0.17.0


HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting.1

Reattaching. Including license headers in each file.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting.3

Changing ant build.xml to detect python through a -Dpython.home option instead of checking system's $PATH through `which python`. As for version, currently checking only for Python 2.5.1.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Status: Open  (was: Patch Available)

Cancelling to fix the release audit warnings

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Status: Patch Available  (was: Open)

Submitting the patch.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578400#action_12578400 ] 

Hadoop QA commented on HADOOP-2775:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12377674/HADOOP-2775.1
against trunk revision 619744.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 29 new or modified tests.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new javac compiler warnings.

    release audit +1.  The applied patch does not generate any new release audit warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1954/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1954/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1954/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1954/console

This message is automatically generated.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577715#action_12577715 ] 

Hadoop QA commented on HADOOP-2775:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12375997/patch_unittesting.5
against trunk revision 619744.

    @author +1.  The patch does not contain any @author tags.

    tests included +1.  The patch appears to include 29 new or modified tests.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new javac compiler warnings.

    release audit -1.  The applied patch generated 194 release audit warnings (more than the trunk's current 192 warnings).

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests -1.  The patch failed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1943/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1943/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1943/artifact/trunk/build/test/checkstyle-errors.html
Release audit warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1943/artifact/trunk/current/releaseAuditDiffWarnings.txt
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1943/console

This message is automatically generated.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting.2

    * moved the tests to hod/Testing. Changed build.xml to reflect this too.
    * 'excludes' now handles only modules starting with 'test'. Files not starting with 'test' like main.py, __init__.py are automatically excluded.
    * Refactored code from each module's ModuleTestSuite class to a base class BaseTestSuite in Testing/lib.py. Changed how we pick up names of testclasses also.
    * All the test classes now begin with test_ (and not _test_). Changed SuiteCallers method from testModule() to RunModuleTests() so that it doesn't clash with name convention of test classes.
    * Output from the tests is fixed now to be in correct order.
    * Earlier failure of some test module due to say syntax errors kills the whole test process. It's handled now to continue despite errors in some test modules.
    * Made test target depend on compile target, so that ant test can be directly run after making changes 


> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hemanth Yamijala (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568906#action_12568906 ] 

Hemanth Yamijala commented on HADOOP-2775:
------------------------------------------

Some comments:

- Let's move the tests under hod directly instead of under hod/hodlib.
- The 'main' module is not being properly excluded as expected. By the same argument, any file which does not begin with test will not be excluded. I think we should worry about excluding only *test* modules, where test modules, by our convention, start with 'test'
- The code in the test module's runTests is repeated. We should explore pulling it out into a common place, like a base class.
- I am not sure we should have tests beginning with _test_. Can't we just have them begin with test_ ?
- The output from the tests, when run through 'ant test', is in the wrong order.  We can either remove our outputs, or put them in the right order.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578814#action_12578814 ] 

Hudson commented on HADOOP-2775:
--------------------------------

Integrated in Hadoop-trunk #428 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/428/])

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hemanth Yamijala (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570766#action_12570766 ] 

Hemanth Yamijala commented on HADOOP-2775:
------------------------------------------

+1. Looks good.



> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568166#action_12568166 ] 

Vinod Kumar Vavilapalli commented on HADOOP-2775:
-------------------------------------------------

oh.. forgot the license. Will submit again tomorrow. Need revision of everything else barring that.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting.5

   * Renaming testing directory to test broke things, python had a built-in test module. Changed name to "testing"
   * Changed ant target names so that they reflect things better. Slightly made changes in the order of calling of targets also.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Devaraj Das updated HADOOP-2775:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Vinod!

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting

Adding unitest framework using Pyunit. Added an example hodlig/Testing/testModule.py which can be used as a template. --ant test-- would now run hod tests too.

Need Python 2.5.1 to be installed on Hudson.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hemanth Yamijala (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hemanth Yamijala updated HADOOP-2775:
-------------------------------------

    Release Note: A unit testing framework based on pyunit is added to HOD. Developers contributing patches to HOD should now contribute unit tests along with the patches where possible.
    Hadoop Flags: [Reviewed]

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577732#action_12577732 ] 

Vinod Kumar Vavilapalli commented on HADOOP-2775:
-------------------------------------------------

The core tests failed are related to DFS and not this patch.

The patch is committable.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Status: Patch Available  (was: Open)

Submitting. File HADOOP-2775.1 is the latest patch.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: patch_unittesting.4

   *  Failing test cases now make the build fail. Total number of failures + errors is reported back as return code of run tests.
   * python.home or python version mismatch(currently supporting only 2.5.1) would now make ant test to report silently, but not fail, so that other contrib tests may continue. This execution path is not traced on hudson once python stuff is setup there.
   * At a suite level setUp is done through ModuleTestSuite.__init__. No changes here.
   * Moved testcases to src/contrib/hod/test/
   * Fixed some of the testcase reporting to make it look better.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Vinod Kumar Vavilapalli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod Kumar Vavilapalli updated HADOOP-2775:
--------------------------------------------

    Attachment: HADOOP-2775.1

Reattaching the patch.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-2775.1, patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3, patch_unittesting.4, patch_unittesting.5
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2775) [HOD] Put in place unit test framework for HOD

Posted by "Hemanth Yamijala (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569839#action_12569839 ] 

Hemanth Yamijala commented on HADOOP-2775:
------------------------------------------

Looks good now.. Few more comments:

- Failing test cases should fail the ant test task
- Currently, contrib test target would fail if a required python version is not specified or available. This would be inconvenient for users not interested in running HOD unit tests, but would like to fire a test build at the contrib level. We could simply ignore running the tests if the required python is not found. However, that has a side-effect of hiding misconfigured python  on Hudson. Given that the latter would be rare, and is a one time setup, I would still go with that approach. Comments ?
- At a suite level only tearDown is defined, but not setUp.
- Can we make the directory 'test' rather than 'Testing' - just a more conventional name.

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2, patch_unittesting.3
>
>
> HOD does not have any unit tests in place currently. This issue is to decide on a framework that would be effective for our python code base. Something on the lines of pyUnit would be good. The fix should put in place any dependencies needed for running the tests, and should also define some tests that demonstrate how to write further tests. We would not be defining a complete unit test suite for the entire code base right now, but would incrementatlly add tests as changes are made.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.