Error when building ES

51 views
Skip to first unread message

scorpiovn

unread,
Jun 27, 2011, 2:38:44 AM6/27/11
to Eureka Streams Development
I clone ES using git from Github.
I run command mvn install.
It generated errors like these:
Results :

Failed tests:

testGetStartOfDay(org.eurekastreams.server.persistence.strategies.DateDayExtractorTest)

testGetEndOfDay(org.eurekastreams.server.persistence.strategies.DateDayExtractorTest)

testExecuteWithDataForAllStreams(org.eurekastreams.server.persistence.mappers.db.metrics.GetDailyUsageSummaryByDateDbMapperTest)

testExecuteWithData(org.eurekastreams.server.persistence.mappers.db.metrics.GetPreviousDailyUsageSummaryByDateDbMapperTest)

testExecuteWithNoPriorData(org.eurekastreams.server.persistence.mappers.db.metrics.GetPreviousDailyUsageSummaryByDateDbMapperTest)

Tests in error:

testExecuteWithDataForSpecificStreams(org.eurekastreams.server.persistence.mappers.db.metrics.GetDailyUsageSummaryByDateDbMapperTest)

Tests run: 2423, Failures: 5, Errors: 1, Skipped: 5

Anyone can help me out this problem.

thanks,
+++
Tien NGUYEN

Rob Keane

unread,
Jun 27, 2011, 4:37:03 AM6/27/11
to eureka-st...@googlegroups.com
What OS? Those tests have known issues on some platforms.

Your best bet is to just add -DskipTests to your mvn command.

Blake Caldwell

unread,
Jun 27, 2011, 1:57:11 PM6/27/11
to eureka-st...@googlegroups.com
Can you find the surefire-report for that test and paste the contents?  It's probably in:

server/target/surefire-reports/org.eurekastreams.server.persistence.strategies.DateDayExtractorTest.txt

scorpiovn

unread,
Jun 27, 2011, 10:37:52 PM6/27/11
to Eureka Streams Development
Thanks Kean,
I used -DskipTests but it still had the errors.
I work with Ubuntu 10.04.

On Jun 27, 3:37 pm, Rob Keane <rob.ke...@gmail.com> wrote:
> What OS? Those tests have known issues on some platforms.
>
> Your best bet is to just add -DskipTests to your mvn command.
>

scorpiovn

unread,
Jun 27, 2011, 10:41:07 PM6/27/11
to Eureka Streams Development
Hi Caldwell,

These were in the report.

-------------------------------------------------------------------------------
Test set:
org.eurekastreams.server.persistence.strategies.DateDayExtractorTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.081
sec <<< FAILURE!
testGetStartOfDay(org.eurekastreams.server.persistence.strategies.DateDayExtractorTest)
Time elapsed: 0.078 sec <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<17>

......

testGetEndOfDay(org.eurekastreams.server.persistence.strategies.DateDayExtractorTest)
Time elapsed: 0.001 sec <<< FAILURE!
java.lang.AssertionError: expected:<4> but was:<5>

mana...@gmail.com

unread,
Apr 22, 2013, 4:30:34 AM4/22/13
to eureka-st...@googlegroups.com

Even I get the same error what Thomas has got.Can any one help us fix this issue...please.

-------------------------------------------------------------------------------

Failed tests:   testGetStartOfDay(org.eurekastreams.server.persistence.strategie
s.DateDayExtractorTest): expected:<4> but was:<5>
  testGetEndOfDay(org.eurekastreams.server.persistence.strategies.DateDayExtract
orTest): expected:<4> but was:<5>

Tests run: 2735, Failures: 2, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Users\manasa\Desktop\eurekastreams-master\server\target\suref
ire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 35 seconds
[INFO] Finished at: Mon Apr 22 13:55:08 IST 2013
[INFO] Final Memory: 94M/308M
[INFO] ------------------------------------------------------------------------
'

Steve Terlecki

unread,
Apr 25, 2013, 8:38:47 AM4/25/13
to eureka-st...@googlegroups.com, mana...@gmail.com
Are you pulling down the master branch for building?

You can also skip the tests to move forward with the application with this flag to Maven: -DskipTests

I don't see the same error on my builds, it could be an OS incompatibility, or another dependency that is at a different version.

Steve T.

Rob Keane

unread,
Apr 25, 2013, 8:56:15 AM4/25/13
to eureka-st...@googlegroups.com
Those tests haven't been run extensively in anything but EST or EDT,
so it's definitely possible that it's a timezone issue
> --
> You received this message because you are subscribed to the Google Groups
> "Eureka Streams Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to eureka-streams-...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Rob Keane

unread,
Apr 25, 2013, 9:06:06 AM4/25/13
to eureka-st...@googlegroups.com
Ok, I looked at the test, if you're running it in >= GMT +5 then it
will fail. The test uses a timestamp that is a little after 3PM EDT
and fails if that ends up being the next day.

You should be safe either just skipping tests, or disabling that one.
Reply all
Reply to author
Forward
0 new messages