apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Munagala Ramanath <...@datatorrent.com>
Subject Re: Why @Ignore on Kafka tests ?
Date Mon, 16 May 2016 18:52:49 GMT
Thanks David, that works. I also needed to go to my profile page (e.g.
https://travis-ci.org/profile/<login>) and
enable the malhar repo for Travis builds.

Ram

On Mon, May 16, 2016 at 11:17 AM, David Yan <david@datatorrent.com> wrote:

> You can sign up for a travis-ci account using your github, then remove all
> @Ignore from the Kafka unit tests and push to a branch in your own forked
> Malhar repository. Travis will automatically run the test for you and you
> can restart the test using the Travis web UI.
>
> David
>
> On Mon, May 16, 2016 at 11:13 AM, Munagala Ramanath <ram@datatorrent.com>
> wrote:
>
> > How do I check that ?
> >
> > Ram
> >
> > On Mon, May 16, 2016 at 11:08 AM, Thomas Weise <thomas@datatorrent.com>
> > wrote:
> >
> > > Ram,
> > >
> > > Which test fails in Travis, have you checked?
> > >
> > > Thanks
> > >
> > > On Mon, May 16, 2016 at 11:03 AM, Munagala Ramanath <
> ram@datatorrent.com
> > >
> > > wrote:
> > >
> > > > That seems like a good solution.
> > > >
> > > > I didn't find any way to run an ignored test but, an alternative,
> > though
> > > > not as good
> > > > as David's, is to add an exclusion stanza to the configuration of the
> > > > surefire plugin, e.g.
> > > >  *     <plugin>*
> > > > *        <groupId>org.apache.maven.plugins</groupId>*
> > > > *        <artifactId>maven-surefire-plugin</artifactId>*
> > > > *        <configuration>*
> > > > *          <excludes>*
> > > > *            <exclude>**/ApplicationTest.java</exclude>*
> > > > *          </excludes>*
> > > > *        </configuration>*
> > > > *      </plugin>*
> > > >
> > > > This suppresses the test for normal runs but can be explicitly
> > triggered
> > > > with:
> > > >
> > > > *mvn -Dtest=com.example.myapexapp.ApplicationTest test*
> > > >
> > > > Ram
> > > >
> > > > On Mon, May 16, 2016 at 10:50 AM, David Yan <david@datatorrent.com>
> > > wrote:
> > > >
> > > > > If it only fails on Travis and *never* fails elsewhere, you can use
> > the
> > > > > function StramTestSupport.isInTravis() method.
> > > > > Here's an example snippet from StreamingContainerManagerTest.java:
> > > > >
> > > > >     if (StramTestSupport.isInTravis()) {
> > > > >       // disable this test in travis because of an intermittent
> > problem
> > > > > similar to this:
> > > > >       //
> > > > >
> > > > >
> > > >
> > >
> >
> http://stackoverflow.com/questions/32172925/travis-ci-sporadic-timeouts-to-localhost
> > > > >       // We should remove this when we find a solution to this.
> > > > >       LOG.info("Test testAppDataPush is disabled in Travis");
> > > > >       return;
> > > > >     }
> > > > >
> > > > > David
> > > > >
> > > > > On Mon, May 16, 2016 at 9:59 AM, Siyuan Hua <
> siyuan@datatorrent.com>
> > > > > wrote:
> > > > >
> > > > > > Ram, Thomas
> > > > > > The last time I tried, the tests only fail in travis. Is there
a
> > way
> > > > > ignore
> > > > > > the test in maven build by default and test it locally with
some
> > > maven
> > > > > > command line options?
> > > > > >
> > > > > > Regards,
> > > > > > Siyuan
> > > > > >
> > > > > > On Sat, May 14, 2016 at 10:37 AM, Thomas Weise <
> > > thomas@datatorrent.com
> > > > >
> > > > > > wrote:
> > > > > >
> > > > > > > Ram,
> > > > > > >
> > > > > > > There were problems with some of the tests but also with
> running
> > > them
> > > > > in
> > > > > > > Travis CI overall (the latter has been fixed meanwhile.)
> > > > > > >
> > > > > > > Can you please try to enable the tests and see if they
pass in
> > > > Travis,
> > > > > we
> > > > > > > should then only mark @Ignore those that actually still
need to
> > be
> > > > > fixed.
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > On Sat, May 14, 2016 at 10:19 AM, Munagala Ramanath <
> > > > > ram@datatorrent.com
> > > > > > >
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Why is KafkaInputOperatorTest annotated with @Ignore
? This
> > makes
> > > > the
> > > > > > > test
> > > > > > > > not runnable from the commandline with maven.
> > > > > > > >
> > > > > > > > Ram
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message