[ 
https://issues.apache.org/jira/browse/IGNITE-8275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448161#comment-16448161
 ] 

Vyacheslav Daradur commented on IGNITE-8275:
--------------------------------------------

The reason is wrong classpath build process in case of using 
{{maven-surefire-plugin}}.
During start of old version node we build new classpath and exclude 
dependencies of the actual version which match to 
{{Dependency#localPathTemplate}} and we add dependencies of specified version. 
But in case of using {{maven-surefire-plugin}} the dependencies path doesn't 
match to {{Dependency#localPathTemplate}} because we should previously compile 
and install actual versions then artifact have classpath which we don't expect, 
something like this:
{{~/.m2/repository/org/apache/ignite/ignite-core/2.5.0-SNAPSHOT/ignite-core-2.5.0-SNAPSHOT.jar}}

[~dpavlov], [~vveider], as far as I understand you have compiled and have 
installed artifact in Maven local repo and after that execute 
{{surefire:test}}, am I right?

If we want to use {{maven-surefire-plugin}} for compatibility tests we should 
modify compatibility Compatibility Framework for the correct work with the 
plugin. In this case, we will strongly depend on preparing steps (compiling and 
installing).

Do we really need it?

> PDS (Compatibility): FoldersReuseCompatibilityTest
> --------------------------------------------------
>
>                 Key: IGNITE-8275
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8275
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Peter Ivanov
>            Assignee: Vyacheslav Daradur
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain
>             Fix For: 2.6
>
>
> Some weird behaviour of *IgniteCompatibilityBasicTestSuite* test suite:
> * {{mvn test}} run reports 8 successful tests (see 
> https://ci.ignite.apache.org/viewLog.html?buildId=1211334&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_PdsCompatibility)
> * {{mvn surefire:test}} run reports 2 failures (see 
> https://ci.ignite.apache.org/viewLog.html?buildId=1211336&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_PdsCompatibility)
> {code}
> [2018-04-16 09:41:29,823][ERROR][main][root] Test failed.
> junit.framework.AssertionFailedError: Directory [binary_meta, 
> d0d49035_c611_4836_8956_8fdf220d7f46] is expected to exist 
> [/data/teamcity/work/c182b70f2dfa6507/work/binary_meta/d0d49035_c611_4836_8956_8fdf220d7f46]
>       at junit.framework.Assert.fail(Assert.java:57)
>       at junit.framework.Assert.assertTrue(Assert.java:22)
>       at junit.framework.TestCase.assertTrue(TestCase.java:192)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.assertDirectoryExist(FoldersReuseCompatibilityTest.java:258)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.assertPdsDirsDefaultExist(FoldersReuseCompatibilityTest.java:231)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.runFoldersReuse(FoldersReuseCompatibilityTest.java:128)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.testFoldersReuseCompatibility_2_2(FoldersReuseCompatibilityTest.java:97)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at junit.framework.TestCase.runTest(TestCase.java:176)
>       at 
> org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2080)
>       at 
> org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:140)
>       at 
> org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:1995)
>       at java.lang.Thread.run(Thread.java:745)
> [org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.testFoldersReuseCompatibility_2_2]
>  junit.framework.AssertionFailedError: Directory [binary_meta, 
> d0d49035_c611_4836_8956_8fdf220d7f46] is expected to exist 
> [/data/teamcity/work/c182b70f2dfa6507/work/binary_meta/d0d49035_c611_4836_8956_8fdf220d7f46]
> [org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.testFoldersReuseCompatibility_2_2]
>  junit.framework.AssertionFailedError: Directory [binary_meta, 
> d0d49035_c611_4836_8956_8fdf220d7f46] is expected to exist 
> [/data/teamcity/work/c182b70f2dfa6507/work/binary_meta/d0d49035_c611_4836_8956_8fdf220d7f46]
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.assertDirectoryExist(FoldersReuseCompatibilityTest.java:258)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.assertPdsDirsDefaultExist(FoldersReuseCompatibilityTest.java:231)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.runFoldersReuse(FoldersReuseCompatibilityTest.java:128)
>       at 
> org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest.testFoldersReuseCompatibility_2_2(FoldersReuseCompatibilityTest.java:97)
> {code} 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to