[Building Sakai] trunk broken for me
John Bush
jbush at anisakai.com
Fri Sep 13 13:03:13 PDT 2013
There are a bunch of bugs about this already, I'm hoping to look at it
today or over the weekend. The is issue is that mockito doesn't like
threads, and the ES has a bunch of multi-threaded stuff going on. So
I have to find some solution to work around it. It one of those
things where sometimes it works, sometimes it doesn't.
On Fri, Sep 13, 2013 at 11:08 AM, Neal Caidin <neal.caidin at apereo.org> wrote:
> Just did an svn upd and then … mvn install -Ppack-demo
>
> Heap big failure. uhmmm.. not a heap failure, I don't think. Error in the
> tests.
>
> Sample clip:
>
> [exec]
> [exec]
> testRefresh(org.sakaiproject.search.elasticsearch.ElasticSearchTest) Time
> elapsed: 5.451 sec
> [exec]
> testGetSearchSuggestions(org.sakaiproject.search.elasticsearch.ElasticSearchTest)
> Time elapsed: 5.432 sec
> [exec]
> testSearch(org.sakaiproject.search.elasticsearch.ElasticSearchTest) Time
> elapsed: 5.486 sec
> [exec]
> [exec] Results :
> [exec]
> [exec] Tests in error:
> [exec]
> testRebuild(org.sakaiproject.search.elasticsearch.ElasticSearchTest):
> [exec] Boolean cannot be returned by getSiteId()
> [exec] getSiteId() should return String
> [exec] ***
> [exec] If you're unsure why you're getting above error read on.
> [exec] Due to the nature of the syntax above problem might occur
> because:
> [exec] 1. This exception *might* occur in wrongly written
> multi-threaded tests.
> [exec] Please refer to Mockito FAQ on limitations of concurrency
> testing.
> [exec] 2. A spy is stubbed using when(spy.foo()).then() syntax. It is
> safer to stub spies -
> [exec] - with doReturn|Throw() family of methods. More in javadocs
> for Mockito.spy() method.
> [exec]
> [exec]
> [exec] Tests run: 9, Failures: 0, Errors: 1, Skipped: 0
> [exec]
> [exec] [INFO]
> ------------------------------------------------------------------------
> [exec] [ERROR] BUILD FAILURE
> [exec] [INFO]
> ------------------------------------------------------------------------
> [exec] [INFO] There are test failures.
> [exec]
> [exec] Please refer to
> /Users/nealcaidin/dev/trunk2/search/elasticsearch/impl/target/surefire-reports
> for the individual test results.
> [exec] [INFO]
> ------------------------------------------------------------------------
> [exec] [INFO] For more information, run Maven with the -e switch
> [exec] [INFO]
> ------------------------------------------------------------------------
> [exec] [INFO] Total time: 7 minutes 53 seconds
> [exec] [INFO] Finished at: Fri Sep 13 13:59:07 EDT 2013
> [exec] [INFO] Final Memory: 266M/554M
> [exec] [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> executing this line:
> /Users/nealcaidin/dev/trunk2/pack/pack-demo/build.xml:62: exec returned: 1
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8 minutes 5 seconds
> [INFO] Finished at: Fri Sep 13 13:59:10 EDT 2013
> [INFO] Final Memory: 32M/554M
> [INFO] ---------------------------------
>
>
>
> Neal Caidin
> Sakai CLE Community Coordinator
> neal.caidin at apereo.org
> Skype: nealkdin
> Twitter: ncaidin
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
--
John Bush
602-490-0470
** This message is neither private nor confidential in fact the US
government is storing it in a warehouse located in Utah for future
data mining use cases should they arise. **
More information about the sakai-dev
mailing list