<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activiti build requirements in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127511#M89683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really strange. Are you using the default in-memory H2 database or did you change something there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a QA environment where we run all tests on several db's and we don't experience this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 09:07:09 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-01-08T09:07:09Z</dc:date>
    <item>
      <title>Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127509#M89681</link>
      <description>Hello Activiti developers,I need to make some changes to the Activiti 5.11 sources. Unfortunately I have problems building it - some tests fail. What is strange, though, on each build different set of tests fail. That is why I tried to build the original, unmodified, sources.Here are (excerpts from)</description>
      <pubDate>Mon, 07 Jan 2013 11:53:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127509#M89681</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-01-07T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127510#M89682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello moderators,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please move this topic to the Developers forum. I posted it in the Users forum by mistake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 12:59:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127510#M89682</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-01-07T12:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127511#M89683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really strange. Are you using the default in-memory H2 database or did you change something there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a QA environment where we run all tests on several db's and we don't experience this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 09:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127511#M89683</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-08T09:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127512#M89684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As we have no any experience with Maven here we do not even try to change the build configuration. The builds are run in the configuration as it is published with the sources. I think it is in-memory H2 DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be honest I don't even know how to build the activiti-engine.jar without running the tests. In this particular case the changes are in the SQL scripts, which are not covered by the tests, so running them during the build is meaningless (again, in this particular case).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, I forgot to mention that I'm building on Windows XP, Java 1.6.0_35, and Maven 3.0.3 if this makes any sense to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I didn't managed to attach about 20 KiB ZIP file with the full log of the builds and the sure-fire logs for the last two failed tests - I continuously receive an error like "Could not upload attachment to ./files/3644_a31938457a41ea23cfbe0b47fd8b6ca8." If you need these logs please tell me how to deliver them to you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 10:26:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127512#M89684</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-01-08T10:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127513#M89685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always build, skipping the tests by adding -DskipTests=true or -Dmaven.test.skip=true&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127513#M89685</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-01-08T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127514#M89686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tjis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I accidentally found Ronald's comment on &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-234" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-234&lt;/A&gt;&lt;SPAN&gt;. Is it possible the problems observed by me to have the same source - slower/different way Windows works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are test failure excerpts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;——————————————————————————-&lt;BR /&gt;Test set: org.activiti.engine.test.api.runtime.ExecutionQueryTest&lt;BR /&gt;——————————————————————————-&lt;BR /&gt;Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.922 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;testQueryDateVariable(org.activiti.engine.test.api.runtime.ExecutionQueryTest)&amp;nbsp; Time elapsed: 0.328 sec&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;junit.framework.AssertionFailedError: expected:&amp;lt;2&amp;gt; but was:&amp;lt;3&amp;gt;&lt;BR /&gt; at junit.framework.Assert.fail(Assert.java:47)&lt;BR /&gt; at junit.framework.Assert.failNotEquals(Assert.java:283)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:64)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:195)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:201)&lt;BR /&gt; at org.activiti.engine.test.api.runtime.ExecutionQueryTest.testQueryDateVariable(ExecutionQueryTest.java:830)&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;——————————————————————————-&lt;BR /&gt;Test set: org.activiti.engine.test.api.runtime.ProcessInstanceQueryTest&lt;BR /&gt;——————————————————————————-&lt;BR /&gt;Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.61 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;testQueryDateVariable(org.activiti.engine.test.api.runtime.ProcessInstanceQueryTest)&amp;nbsp; Time elapsed: 0.25 sec&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;junit.framework.AssertionFailedError: expected:&amp;lt;2&amp;gt; but was:&amp;lt;3&amp;gt;&lt;BR /&gt; at junit.framework.Assert.fail(Assert.java:47)&lt;BR /&gt; at junit.framework.Assert.failNotEquals(Assert.java:283)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:64)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:195)&lt;BR /&gt; at junit.framework.Assert.assertEquals(Assert.java:201)&lt;BR /&gt; at org.activiti.engine.test.api.runtime.ProcessInstanceQueryTest.testQueryDateVariable(ProcessInstanceQueryTest.java:812)&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;——————————————————————————-&lt;BR /&gt;Test set: org.activiti.engine.test.concurrency.CompetingJobAcquisitionTest&lt;BR /&gt;——————————————————————————-&lt;BR /&gt;Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;testCompetingJobAcquisitions(org.activiti.engine.test.concurrency.CompetingJobAcquisitionTest)&amp;nbsp; Time elapsed: 0.062 sec&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; FAILURE!&lt;BR /&gt;junit.framework.AssertionFailedError: null&lt;BR /&gt; at junit.framework.Assert.fail(Assert.java:47)&lt;BR /&gt; at junit.framework.Assert.assertTrue(Assert.java:20)&lt;BR /&gt; at junit.framework.Assert.assertNotNull(Assert.java:214)&lt;BR /&gt; at junit.framework.Assert.assertNotNull(Assert.java:207)&lt;BR /&gt; at org.activiti.engine.test.concurrency.CompetingJobAcquisitionTest.testCompetingJobAcquisitions(CompetingJobAcquisitionTest.java:75)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the reason for the stochastic failures in &lt;/SPAN&gt;&lt;EM&gt;ExecutionQueryTest&lt;/EM&gt;&lt;SPAN&gt; is the following piece of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;739&amp;nbsp;&amp;nbsp;&amp;nbsp; Date date1 = Calendar.getInstance().getTime();&lt;BR /&gt;740&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.put("dateVar", date1);&lt;BR /&gt;741&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;742&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance1 = runtimeService.startProcessInstanceByKey("oneTaskProcess", vars);&lt;BR /&gt;743&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;744&amp;nbsp;&amp;nbsp;&amp;nbsp; Date date2 = Calendar.getInstance().getTime();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;because, depending on the OS time-resolution (and other "optimization" factors), &lt;/SPAN&gt;&lt;EM&gt;date1&lt;/EM&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;EM&gt;date2&lt;/EM&gt;&lt;SPAN&gt; could have the same value - the "distance" between them seems to be too small.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Except&lt;/SPAN&gt;&lt;SPAN&gt; if the small time difference is in the core of the test, I would propose to ("artificially", intentionally) add one hour to &lt;/SPAN&gt;&lt;EM&gt;date2&lt;/EM&gt;&lt;SPAN&gt;. I didn't tracked all the consequences of such a change but at first glance it seems to have no impact on the rest of the test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The failed test code in &lt;/SPAN&gt;&lt;EM&gt;ProcessInstanceQueryTest&lt;/EM&gt;&lt;SPAN&gt; seems very similar to the one in &lt;/SPAN&gt;&lt;EM&gt;ExecutionQueryTest&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not feel confident enough to comment on the failure reasons for &lt;/SPAN&gt;&lt;EM&gt;CompetingJobAcquisitionTest&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. I tried to attach the builds log and test failure logs in 7z format but again hit "Could not upload attachment to ./files/3644_b88e0466ea0298f3c62d2e8088cf6e9c." What kind of files are allowed as attachments in this forum?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:21:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127514#M89686</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-01-09T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127515#M89687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to report that adding&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color:silver;"&gt;744&amp;nbsp;&amp;nbsp;&amp;nbsp; Date date2 = Calendar.getInstance().getTime();&lt;/SPAN&gt;&lt;BR /&gt;745&amp;nbsp;&amp;nbsp;&amp;nbsp; date2.setTime( date2.getTime() + 1000 ); //Add one second to explicitly distinguish from 'date1'&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;EM&gt;ExecutionQueryTest&lt;/EM&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;EM&gt;ProcessInstanceQueryTest&lt;/EM&gt;&lt;SPAN&gt; (after row 726) solved the problems with these two tests - five consecutive builds passed them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the problem with &lt;/SPAN&gt;&lt;EM&gt;CompetingJobAcquisitionTest&lt;/EM&gt;&lt;SPAN&gt; still exists - failed two out of five builds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now Activiti developers team need to tell if the change proposed for &lt;/SPAN&gt;&lt;EM&gt;ExecutionQueryTest&lt;/EM&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;EM&gt;ProcessInstanceQueryTest&lt;/EM&gt;&lt;SPAN&gt; does not alter the mean of the tests.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 15:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127515#M89687</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2013-01-09T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti build requirements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127516#M89688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have it on our todo list to make these test more robust.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the pointers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 22:02:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-build-requirements/m-p/127516#M89688</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-09T22:02:28Z</dc:date>
    </item>
  </channel>
</rss>

