GitHub user vanzin opened a pull request:

    https://github.com/apache/spark/pull/7629

    [SPARK-9284] [tests] Allow all tests to run without an assembly.

    This change aims at speeding up the dev cycle a little bit, by making
    sure that all tests behave the same w.r.t. where the code to be tested
    is loaded from. Namely, that means that tests don't rely on the assembly
    anymore, rather loading all needed classes from the build directories.
    
    The main change is to make sure all build directories (classes and 
test-classes)
    are added to the classpath of child processes when running tests.
    
    YarnClusterSuite required some custom code since the executors are run
    differently (i.e. not through the launcher library, like standalone and
    Mesos do).
    
    I also found a couple of tests that could leak a SparkContext on failure,
    and added code to handle those.
    
    With this patch, it's possible to run the following command from a clean
    source directory and have all tests pass:
    
      mvn -Pyarn -Phadoop-2.4 -Phive-thriftserver install


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vanzin/spark SPARK-9284

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/7629.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #7629
    
----
commit 78865c3bdeeb618b944c72cb47e35f08df056d9c
Author: Marcelo Vanzin <[email protected]>
Date:   2015-07-22T21:23:30Z

    [SPARK-9261] [streaming] Avoid calling APIs that expose shaded classes.
    
    Doing this may cause weird errors when tests are run on maven, depending
    on the flags used. Instead, expose the needed functionality through methods
    that do not expose shaded classes.

commit 8d2b0eab9949c301d33231cd9a2d2203d6ba2024
Author: Marcelo Vanzin <[email protected]>
Date:   2015-07-22T22:14:51Z

    [SPARK-9284] [tests] Allow all tests to run without an assembly.
    
    This change aims at speeding up the dev cycle a little bit, by making
    sure that all tests behave the same w.r.t. where the code to be tested
    is loaded from. Namely, that means that tests don't rely on the assembly
    anymore, rather loading all needed classes from the build directories.
    
    The main change is to make sure all build directories (classes and 
test-classes)
    are added to the classpath of child processes when running tests.
    
    YarnClusterSuite required some custom code since the executors are run
    differently (i.e. not through the launcher library, like standalone and
    Mesos do).
    
    I also found a couple of tests that could leak a SparkContext on failure,
    and added code to handle those.
    
    With this patch, it's possible to run the following command from a clean
    source directory and have all tests pass:
    
      mvn -Pyarn -Phadoop-2.4 -Phive-thriftserver install

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to