Hadoop Common
  1. Hadoop Common
  2. HADOOP-7026

Adding new target to build.xml to run tests without compiling

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: None
    • Component/s: build, test
    • Labels:
      None
    • Environment:

      SLE v. 11, Apache Harmony 6

    • Tags:
      testing

      Description

      While testing Apache Harmony Select (lightweight version of Harmony) with Hadoop Common we had to first build with Harmony and then test using Harmony Select using the test-core target. This was done in an effort to investigate any issues with Harmony Select in running common. However, the test-core target also compiles the classes which we are unable to do with Harmony Select. A new target is proposed that only runs the tests without compiling them.

      1. HADOOP-7026.patch
        1 kB
        Guillermo Cabrera

        Activity

        Guillermo Cabrera created issue -
        Hide
        Guillermo Cabrera added a comment -

        Adds a new target that only runs and does not compile tests. Makes assumption that common has already been built using a separate JDK

        Show
        Guillermo Cabrera added a comment - Adds a new target that only runs and does not compile tests. Makes assumption that common has already been built using a separate JDK
        Guillermo Cabrera made changes -
        Field Original Value New Value
        Attachment HADOOP-7026.patch [ 12459294 ]
        Hide
        Konstantin Boudnik added a comment -

        As this target seems to be serving purposes kinda unrelated to the component in question I'd suggest to, at least, remove its description to hide it from top-level targets' list.

        Show
        Konstantin Boudnik added a comment - As this target seems to be serving purposes kinda unrelated to the component in question I'd suggest to, at least, remove its description to hide it from top-level targets' list.
        Guillermo Cabrera made changes -
        Description While testing Apache Harmony Select (lightweight version of Harmony) with Hadoop Common we had to first build with Harmony and then test using Harmony Select using the test-core target. This was done in an effort to investigate any issues with Harmony Select in running common. However, the test-core target also compiles the classes which we are unable to do with Harmony Select. A new target is proposed that only runs the tests without compiling them.
        Guillermo Cabrera made changes -
        Description While testing Apache Harmony Select (lightweight version of Harmony) with Hadoop Common we had to first build with Harmony and then test using Harmony Select using the test-core target. This was done in an effort to investigate any issues with Harmony Select in running common. However, the test-core target also compiles the classes which we are unable to do with Harmony Select. A new target is proposed that only runs the tests without compiling them.
        Hide
        Guillermo Cabrera added a comment -

        Thanks for the feedback Konstantin, do you know if this policy (lack of description on target hiding it from top-level targets) is the same across all other Hadoop projects.

        Show
        Guillermo Cabrera added a comment - Thanks for the feedback Konstantin, do you know if this policy (lack of description on target hiding it from top-level targets) is the same across all other Hadoop projects.
        Hide
        Konstantin Boudnik added a comment -

        I'm not sure if there's any special policy of the sort. But it seems to be reasonable to 'hide' such targets away. I think I have left another feedback in other JIRA about having a target to run tests from a test jar. Would it be reasonable to have instead of the proposed change?

        Show
        Konstantin Boudnik added a comment - I'm not sure if there's any special policy of the sort. But it seems to be reasonable to 'hide' such targets away. I think I have left another feedback in other JIRA about having a target to run tests from a test jar. Would it be reasonable to have instead of the proposed change?
        Allen Wittenauer made changes -
        Fix Version/s 0.21.0 [ 12313563 ]
        Hide
        Allen Wittenauer added a comment -

        fixed in more recent trees

        Show
        Allen Wittenauer added a comment - fixed in more recent trees
        Allen Wittenauer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1580d 3h 25m 1 Allen Wittenauer 10/Mar/15 02:57

          People

          • Assignee:
            Unassigned
            Reporter:
            Guillermo Cabrera
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development