Re: SecurityTestSuite as a separate test suite at TC

2019-08-12 Thread Павлухин Иван
Denis,

Perhaps with javassist we can make classes dynamically without use of
surefire-fork-count parameters. We already use javassist in
ConfigVariationsTestSuiteBuilder#makeTestClass, but for a different
purpose.

P.S. I did not check it yet.

пт, 9 авг. 2019 г. в 14:41, Denis Garus :
>
> Excuse me! I was wrong.
> I try to find that parameter on Step 4: Run test suite.
> One more time, thank you!
>
> пт, 9 авг. 2019 г. в 14:05, Petr Ivanov :
>
> > Why do you think I did not use it?
> >
> >
> > On 9 Aug 2019, at 13:25, Denis Garus  wrote:
> >
> > Great!
> > Could you please add surefire-fork-count-1 to additional Maven command
> > line parameters?
> > It's crucial.
> >
> > Thank you!
> >
> > пт, 9 авг. 2019 г. в 12:42, Petr Ivanov :
> >
> >> Done [1]
> >>
> >>
> >> [1] https://ci.ignite.apache.org/viewLog.html?buildId=4482200
> >>
> >> On 9 Aug 2019, at 12:02, Denis Garus  wrote:
> >>
> >> Sure! I created the task [1].
> >>
> >> Thank you!
> >>
> >> 1. https://issues.apache.org/jira/browse/IGNITE-12055
> >>
> >> пт, 9 авг. 2019 г. в 11:38, Petr Ivanov :
> >>
> >>> Hi, Denis!
> >>>
> >>>
> >>> Could file a ticket with description, please?
> >>>
> >>> On 9 Aug 2019, at 11:35, Denis Garus  wrote:
> >>>
> >>> Thanks all for the feedback!
> >>>
> >>> I think no one is against of proposal.
> >>>
> >>> Petr, could you please assist with wit separation of SecurityTestSuite?
> >>>
> >>> чт, 8 авг. 2019 г. в 14:43, Denis Garus :
> >>>
>  Hello, Ivan!
> 
>  >> Could you please provide more details why do we need to run these
>  tests in forked JVM?
> 
>  Surefite documentation [1] says:
>  If forkCount=0, it's impossible to use the system class loader or a
>  plain old Java classpath; we have to use an isolated class loader.
> 
>  When using isolated class loader will cause compiler error:
>  package org.apache.ignite.lang does not exist
> 
>  We cannot compile the TestIgniteCallable class.
> 
>  1.
>  https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
> 
>  чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :
> 
> > Denis,
> >
> > Could you please provide more details why do we need to run these
> > tests in forked JVM?
> >
> > Still, having separate security suite on TC sounds not bad.
> >
> > ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
> > >
> > > Hi Denis.
> > >
> > > I think it is fine to extract security tests in a separate build
> > plan on TC.
> > >
> > > BTW, if you are going to write a lot of Sandbox's tests pay attention
> > > to 'extdata' module and an approach of P2P tests
> > > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
> > > classloading issues.
> > >
> > > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus 
> > wrote:
> > > >
> > > > Hello Igniters!
> > > >
> > > > I made the test DoPrivelegedOnRemoteNodeTest[1]
> > (SecurityTestSuite) for the
> > > > task "Sandbox for user-defined code" [2]
> > > > that uses p2p deploy like the test
> > > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> > > > IgniteServiceGridTestSuite.
> > > > That test requires additional Maven command line parameter -P
> > > > surefire-fork-count-1.
> > > > The suite Basic 1 contains the SecurityTestSuite and many other
> > test suites
> > > > at TeamCity that do not need that additional Maven parameter.
> > > > I suggest extracting SecurityTestSuite as a separate test suite to
> > define
> > > > additional Maven command line parameter for it.
> > > >
> > > > WDYT?
> > > >
> > > >
> > > > 1. https://github.com/apache/ignite/pull/6707
> > > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
> > > > 3.
> > > >
> > https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
> > >
> > >
> > >
> > > --
> > > Best Regards, Vyacheslav D.
> >
> >
> >
> > --
> > Best regards,
> > Ivan Pavlukhin
> >
> 
> >>>
> >>
> >



-- 
Best regards,
Ivan Pavlukhin


Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Denis Garus
Excuse me! I was wrong.
I try to find that parameter on Step 4: Run test suite.
One more time, thank you!

пт, 9 авг. 2019 г. в 14:05, Petr Ivanov :

> Why do you think I did not use it?
>
>
> On 9 Aug 2019, at 13:25, Denis Garus  wrote:
>
> Great!
> Could you please add surefire-fork-count-1 to additional Maven command
> line parameters?
> It's crucial.
>
> Thank you!
>
> пт, 9 авг. 2019 г. в 12:42, Petr Ivanov :
>
>> Done [1]
>>
>>
>> [1] https://ci.ignite.apache.org/viewLog.html?buildId=4482200
>>
>> On 9 Aug 2019, at 12:02, Denis Garus  wrote:
>>
>> Sure! I created the task [1].
>>
>> Thank you!
>>
>> 1. https://issues.apache.org/jira/browse/IGNITE-12055
>>
>> пт, 9 авг. 2019 г. в 11:38, Petr Ivanov :
>>
>>> Hi, Denis!
>>>
>>>
>>> Could file a ticket with description, please?
>>>
>>> On 9 Aug 2019, at 11:35, Denis Garus  wrote:
>>>
>>> Thanks all for the feedback!
>>>
>>> I think no one is against of proposal.
>>>
>>> Petr, could you please assist with wit separation of SecurityTestSuite?
>>>
>>> чт, 8 авг. 2019 г. в 14:43, Denis Garus :
>>>
 Hello, Ivan!

 >> Could you please provide more details why do we need to run these
 tests in forked JVM?

 Surefite documentation [1] says:
 If forkCount=0, it's impossible to use the system class loader or a
 plain old Java classpath; we have to use an isolated class loader.

 When using isolated class loader will cause compiler error:
 package org.apache.ignite.lang does not exist

 We cannot compile the TestIgniteCallable class.

 1.
 https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html

 чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :

> Denis,
>
> Could you please provide more details why do we need to run these
> tests in forked JVM?
>
> Still, having separate security suite on TC sounds not bad.
>
> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
> >
> > Hi Denis.
> >
> > I think it is fine to extract security tests in a separate build
> plan on TC.
> >
> > BTW, if you are going to write a lot of Sandbox's tests pay attention
> > to 'extdata' module and an approach of P2P tests
> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
> > classloading issues.
> >
> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus 
> wrote:
> > >
> > > Hello Igniters!
> > >
> > > I made the test DoPrivelegedOnRemoteNodeTest[1]
> (SecurityTestSuite) for the
> > > task "Sandbox for user-defined code" [2]
> > > that uses p2p deploy like the test
> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> > > IgniteServiceGridTestSuite.
> > > That test requires additional Maven command line parameter -P
> > > surefire-fork-count-1.
> > > The suite Basic 1 contains the SecurityTestSuite and many other
> test suites
> > > at TeamCity that do not need that additional Maven parameter.
> > > I suggest extracting SecurityTestSuite as a separate test suite to
> define
> > > additional Maven command line parameter for it.
> > >
> > > WDYT?
> > >
> > >
> > > 1. https://github.com/apache/ignite/pull/6707
> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
> > > 3.
> > >
> https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
> >
> >
> >
> > --
> > Best Regards, Vyacheslav D.
>
>
>
> --
> Best regards,
> Ivan Pavlukhin
>

>>>
>>
>


Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Petr Ivanov
Why do you think I did not use it?


> On 9 Aug 2019, at 13:25, Denis Garus  wrote:
> 
> Great!
> Could you please add surefire-fork-count-1 to additional Maven command line 
> parameters?
> It's crucial.
> 
> Thank you!
> 
> пт, 9 авг. 2019 г. в 12:42, Petr Ivanov  >:
> Done [1]
> 
> 
> [1] https://ci.ignite.apache.org/viewLog.html?buildId=4482200 
> 
> 
>> On 9 Aug 2019, at 12:02, Denis Garus > > wrote:
>> 
>> Sure! I created the task [1].
>> 
>> Thank you!
>> 
>> 1. https://issues.apache.org/jira/browse/IGNITE-12055 
>> 
>> 
>> пт, 9 авг. 2019 г. в 11:38, Petr Ivanov > >:
>> Hi, Denis!
>> 
>> 
>> Could file a ticket with description, please?
>> 
>>> On 9 Aug 2019, at 11:35, Denis Garus >> > wrote:
>>> 
>>> Thanks all for the feedback!
>>> 
>>> I think no one is against of proposal.
>>> 
>>> Petr, could you please assist with wit separation of SecurityTestSuite?
>>> 
>>> чт, 8 авг. 2019 г. в 14:43, Denis Garus >> >:
>>> Hello, Ivan!
>>> 
>>> >> Could you please provide more details why do we need to run these tests 
>>> >> in forked JVM?
>>> 
>>> Surefite documentation [1] says:
>>> If forkCount=0, it's impossible to use the system class loader or a plain 
>>> old Java classpath; we have to use an isolated class loader.
>>> 
>>> When using isolated class loader will cause compiler error: 
>>> package org.apache.ignite.lang does not exist
>>> 
>>> We cannot compile the TestIgniteCallable class.
>>> 
>>> 1. 
>>> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>>>  
>>> 
>>> 
>>> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван >> >:
>>> Denis,
>>> 
>>> Could you please provide more details why do we need to run these
>>> tests in forked JVM?
>>> 
>>> Still, having separate security suite on TC sounds not bad.
>>> 
>>> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur >> >:
>>> >
>>> > Hi Denis.
>>> >
>>> > I think it is fine to extract security tests in a separate build plan on 
>>> > TC.
>>> >
>>> > BTW, if you are going to write a lot of Sandbox's tests pay attention
>>> > to 'extdata' module and an approach of P2P tests
>>> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
>>> > classloading issues.
>>> >
>>> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus >> > > wrote:
>>> > >
>>> > > Hello Igniters!
>>> > >
>>> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for 
>>> > > the
>>> > > task "Sandbox for user-defined code" [2]
>>> > > that uses p2p deploy like the test
>>> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
>>> > > IgniteServiceGridTestSuite.
>>> > > That test requires additional Maven command line parameter -P
>>> > > surefire-fork-count-1.
>>> > > The suite Basic 1 contains the SecurityTestSuite and many other test 
>>> > > suites
>>> > > at TeamCity that do not need that additional Maven parameter.
>>> > > I suggest extracting SecurityTestSuite as a separate test suite to 
>>> > > define
>>> > > additional Maven command line parameter for it.
>>> > >
>>> > > WDYT?
>>> > >
>>> > >
>>> > > 1. https://github.com/apache/ignite/pull/6707 
>>> > > 
>>> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410 
>>> > > 
>>> > > 3.
>>> > > https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
>>> > >  
>>> > > 
>>> >
>>> >
>>> >
>>> > --
>>> > Best Regards, Vyacheslav D.
>>> 
>>> 
>>> 
>>> -- 
>>> Best regards,
>>> Ivan Pavlukhin
>> 
> 



Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Denis Garus
Great!
Could you please add surefire-fork-count-1 to additional Maven command line
parameters?
It's crucial.

Thank you!

пт, 9 авг. 2019 г. в 12:42, Petr Ivanov :

> Done [1]
>
>
> [1] https://ci.ignite.apache.org/viewLog.html?buildId=4482200
>
> On 9 Aug 2019, at 12:02, Denis Garus  wrote:
>
> Sure! I created the task [1].
>
> Thank you!
>
> 1. https://issues.apache.org/jira/browse/IGNITE-12055
>
> пт, 9 авг. 2019 г. в 11:38, Petr Ivanov :
>
>> Hi, Denis!
>>
>>
>> Could file a ticket with description, please?
>>
>> On 9 Aug 2019, at 11:35, Denis Garus  wrote:
>>
>> Thanks all for the feedback!
>>
>> I think no one is against of proposal.
>>
>> Petr, could you please assist with wit separation of SecurityTestSuite?
>>
>> чт, 8 авг. 2019 г. в 14:43, Denis Garus :
>>
>>> Hello, Ivan!
>>>
>>> >> Could you please provide more details why do we need to run these
>>> tests in forked JVM?
>>>
>>> Surefite documentation [1] says:
>>> If forkCount=0, it's impossible to use the system class loader or a
>>> plain old Java classpath; we have to use an isolated class loader.
>>>
>>> When using isolated class loader will cause compiler error:
>>> package org.apache.ignite.lang does not exist
>>>
>>> We cannot compile the TestIgniteCallable class.
>>>
>>> 1.
>>> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>>>
>>> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :
>>>
 Denis,

 Could you please provide more details why do we need to run these
 tests in forked JVM?

 Still, having separate security suite on TC sounds not bad.

 ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
 >
 > Hi Denis.
 >
 > I think it is fine to extract security tests in a separate build plan
 on TC.
 >
 > BTW, if you are going to write a lot of Sandbox's tests pay attention
 > to 'extdata' module and an approach of P2P tests
 > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
 > classloading issues.
 >
 > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus 
 wrote:
 > >
 > > Hello Igniters!
 > >
 > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite)
 for the
 > > task "Sandbox for user-defined code" [2]
 > > that uses p2p deploy like the test
 > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
 > > IgniteServiceGridTestSuite.
 > > That test requires additional Maven command line parameter -P
 > > surefire-fork-count-1.
 > > The suite Basic 1 contains the SecurityTestSuite and many other
 test suites
 > > at TeamCity that do not need that additional Maven parameter.
 > > I suggest extracting SecurityTestSuite as a separate test suite to
 define
 > > additional Maven command line parameter for it.
 > >
 > > WDYT?
 > >
 > >
 > > 1. https://github.com/apache/ignite/pull/6707
 > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
 > > 3.
 > >
 https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
 >
 >
 >
 > --
 > Best Regards, Vyacheslav D.



 --
 Best regards,
 Ivan Pavlukhin

>>>
>>
>


Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Petr Ivanov
Done [1]


[1] https://ci.ignite.apache.org/viewLog.html?buildId=4482200

> On 9 Aug 2019, at 12:02, Denis Garus  wrote:
> 
> Sure! I created the task [1].
> 
> Thank you!
> 
> 1. https://issues.apache.org/jira/browse/IGNITE-12055 
> 
> 
> пт, 9 авг. 2019 г. в 11:38, Petr Ivanov  >:
> Hi, Denis!
> 
> 
> Could file a ticket with description, please?
> 
>> On 9 Aug 2019, at 11:35, Denis Garus > > wrote:
>> 
>> Thanks all for the feedback!
>> 
>> I think no one is against of proposal.
>> 
>> Petr, could you please assist with wit separation of SecurityTestSuite?
>> 
>> чт, 8 авг. 2019 г. в 14:43, Denis Garus > >:
>> Hello, Ivan!
>> 
>> >> Could you please provide more details why do we need to run these tests 
>> >> in forked JVM?
>> 
>> Surefite documentation [1] says:
>> If forkCount=0, it's impossible to use the system class loader or a plain 
>> old Java classpath; we have to use an isolated class loader.
>> 
>> When using isolated class loader will cause compiler error: 
>> package org.apache.ignite.lang does not exist
>> 
>> We cannot compile the TestIgniteCallable class.
>> 
>> 1. 
>> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>>  
>> 
>> 
>> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван > >:
>> Denis,
>> 
>> Could you please provide more details why do we need to run these
>> tests in forked JVM?
>> 
>> Still, having separate security suite on TC sounds not bad.
>> 
>> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur > >:
>> >
>> > Hi Denis.
>> >
>> > I think it is fine to extract security tests in a separate build plan on 
>> > TC.
>> >
>> > BTW, if you are going to write a lot of Sandbox's tests pay attention
>> > to 'extdata' module and an approach of P2P tests
>> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
>> > classloading issues.
>> >
>> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus > > > wrote:
>> > >
>> > > Hello Igniters!
>> > >
>> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for 
>> > > the
>> > > task "Sandbox for user-defined code" [2]
>> > > that uses p2p deploy like the test
>> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
>> > > IgniteServiceGridTestSuite.
>> > > That test requires additional Maven command line parameter -P
>> > > surefire-fork-count-1.
>> > > The suite Basic 1 contains the SecurityTestSuite and many other test 
>> > > suites
>> > > at TeamCity that do not need that additional Maven parameter.
>> > > I suggest extracting SecurityTestSuite as a separate test suite to define
>> > > additional Maven command line parameter for it.
>> > >
>> > > WDYT?
>> > >
>> > >
>> > > 1. https://github.com/apache/ignite/pull/6707 
>> > > 
>> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410 
>> > > 
>> > > 3.
>> > > https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
>> > >  
>> > > 
>> >
>> >
>> >
>> > --
>> > Best Regards, Vyacheslav D.
>> 
>> 
>> 
>> -- 
>> Best regards,
>> Ivan Pavlukhin
> 



Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Denis Garus
Sure! I created the task [1].


Thank you!


1. https://issues.apache.org/jira/browse/IGNITE-12055

пт, 9 авг. 2019 г. в 11:38, Petr Ivanov :

> Hi, Denis!
>
>
> Could file a ticket with description, please?
>
> On 9 Aug 2019, at 11:35, Denis Garus  wrote:
>
> Thanks all for the feedback!
>
> I think no one is against of proposal.
>
> Petr, could you please assist with wit separation of SecurityTestSuite?
>
> чт, 8 авг. 2019 г. в 14:43, Denis Garus :
>
>> Hello, Ivan!
>>
>> >> Could you please provide more details why do we need to run these
>> tests in forked JVM?
>>
>> Surefite documentation [1] says:
>> If forkCount=0, it's impossible to use the system class loader or a plain
>> old Java classpath; we have to use an isolated class loader.
>>
>> When using isolated class loader will cause compiler error:
>> package org.apache.ignite.lang does not exist
>>
>> We cannot compile the TestIgniteCallable class.
>>
>> 1.
>> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>>
>> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :
>>
>>> Denis,
>>>
>>> Could you please provide more details why do we need to run these
>>> tests in forked JVM?
>>>
>>> Still, having separate security suite on TC sounds not bad.
>>>
>>> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
>>> >
>>> > Hi Denis.
>>> >
>>> > I think it is fine to extract security tests in a separate build plan
>>> on TC.
>>> >
>>> > BTW, if you are going to write a lot of Sandbox's tests pay attention
>>> > to 'extdata' module and an approach of P2P tests
>>> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
>>> > classloading issues.
>>> >
>>> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus 
>>> wrote:
>>> > >
>>> > > Hello Igniters!
>>> > >
>>> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite)
>>> for the
>>> > > task "Sandbox for user-defined code" [2]
>>> > > that uses p2p deploy like the test
>>> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
>>> > > IgniteServiceGridTestSuite.
>>> > > That test requires additional Maven command line parameter -P
>>> > > surefire-fork-count-1.
>>> > > The suite Basic 1 contains the SecurityTestSuite and many other test
>>> suites
>>> > > at TeamCity that do not need that additional Maven parameter.
>>> > > I suggest extracting SecurityTestSuite as a separate test suite to
>>> define
>>> > > additional Maven command line parameter for it.
>>> > >
>>> > > WDYT?
>>> > >
>>> > >
>>> > > 1. https://github.com/apache/ignite/pull/6707
>>> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
>>> > > 3.
>>> > >
>>> https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
>>> >
>>> >
>>> >
>>> > --
>>> > Best Regards, Vyacheslav D.
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Ivan Pavlukhin
>>>
>>
>


[jira] [Created] (IGNITE-12055) SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Denis Garus (JIRA)
Denis Garus created IGNITE-12055:


 Summary: SecurityTestSuite as a separate test suite at TC
 Key: IGNITE-12055
 URL: https://issues.apache.org/jira/browse/IGNITE-12055
 Project: Ignite
  Issue Type: Task
  Components: security
Reporter: Denis Garus


Need exclude SecurityTestSuite from IgniteBasicTestSuite (Basic 1).

Create suite Security with SecurityTestSuite at TC. Config is the same as Basic 
1 except 
additional Maven command line parameters that should be: 
-P 
all-java,all-other,scala-2.10,tensorflow,scala,scala-test,surefire-fork-count-1 
-pl %MAVEN_MODULES% -am -Dmaven.test.failure.ignore=true -DfailIfNoTests=false 
-Dtest=%TEST_SUITE% -Dmaven.javadoc.skip=true %MAVEN_OPTS%


Include SecurityTestSuite to Run::All, Run::All (Nightly), Run::Basic Tests at 
TC.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Petr Ivanov
Hi, Denis!


Could file a ticket with description, please?

> On 9 Aug 2019, at 11:35, Denis Garus  wrote:
> 
> Thanks all for the feedback!
> 
> I think no one is against of proposal.
> 
> Petr, could you please assist with wit separation of SecurityTestSuite?
> 
> чт, 8 авг. 2019 г. в 14:43, Denis Garus  >:
> Hello, Ivan!
> 
> >> Could you please provide more details why do we need to run these tests in 
> >> forked JVM?
> 
> Surefite documentation [1] says:
> If forkCount=0, it's impossible to use the system class loader or a plain old 
> Java classpath; we have to use an isolated class loader.
> 
> When using isolated class loader will cause compiler error: 
> package org.apache.ignite.lang does not exist
> 
> We cannot compile the TestIgniteCallable class.
> 
> 1. 
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>  
> 
> 
> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван  >:
> Denis,
> 
> Could you please provide more details why do we need to run these
> tests in forked JVM?
> 
> Still, having separate security suite on TC sounds not bad.
> 
> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur  >:
> >
> > Hi Denis.
> >
> > I think it is fine to extract security tests in a separate build plan on TC.
> >
> > BTW, if you are going to write a lot of Sandbox's tests pay attention
> > to 'extdata' module and an approach of P2P tests
> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
> > classloading issues.
> >
> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus  > > wrote:
> > >
> > > Hello Igniters!
> > >
> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for 
> > > the
> > > task "Sandbox for user-defined code" [2]
> > > that uses p2p deploy like the test
> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> > > IgniteServiceGridTestSuite.
> > > That test requires additional Maven command line parameter -P
> > > surefire-fork-count-1.
> > > The suite Basic 1 contains the SecurityTestSuite and many other test 
> > > suites
> > > at TeamCity that do not need that additional Maven parameter.
> > > I suggest extracting SecurityTestSuite as a separate test suite to define
> > > additional Maven command line parameter for it.
> > >
> > > WDYT?
> > >
> > >
> > > 1. https://github.com/apache/ignite/pull/6707 
> > > 
> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410 
> > > 
> > > 3.
> > > https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
> > >  
> > > 
> >
> >
> >
> > --
> > Best Regards, Vyacheslav D.
> 
> 
> 
> -- 
> Best regards,
> Ivan Pavlukhin



Re: SecurityTestSuite as a separate test suite at TC

2019-08-09 Thread Denis Garus
Thanks all for the feedback!

I think no one is against of proposal.

Petr, could you please assist with wit separation of SecurityTestSuite?

чт, 8 авг. 2019 г. в 14:43, Denis Garus :

> Hello, Ivan!
>
> >> Could you please provide more details why do we need to run these tests
> in forked JVM?
>
> Surefite documentation [1] says:
> If forkCount=0, it's impossible to use the system class loader or a plain
> old Java classpath; we have to use an isolated class loader.
>
> When using isolated class loader will cause compiler error:
> package org.apache.ignite.lang does not exist
>
> We cannot compile the TestIgniteCallable class.
>
> 1.
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
>
> чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :
>
>> Denis,
>>
>> Could you please provide more details why do we need to run these
>> tests in forked JVM?
>>
>> Still, having separate security suite on TC sounds not bad.
>>
>> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
>> >
>> > Hi Denis.
>> >
>> > I think it is fine to extract security tests in a separate build plan
>> on TC.
>> >
>> > BTW, if you are going to write a lot of Sandbox's tests pay attention
>> > to 'extdata' module and an approach of P2P tests
>> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
>> > classloading issues.
>> >
>> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus  wrote:
>> > >
>> > > Hello Igniters!
>> > >
>> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite)
>> for the
>> > > task "Sandbox for user-defined code" [2]
>> > > that uses p2p deploy like the test
>> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
>> > > IgniteServiceGridTestSuite.
>> > > That test requires additional Maven command line parameter -P
>> > > surefire-fork-count-1.
>> > > The suite Basic 1 contains the SecurityTestSuite and many other test
>> suites
>> > > at TeamCity that do not need that additional Maven parameter.
>> > > I suggest extracting SecurityTestSuite as a separate test suite to
>> define
>> > > additional Maven command line parameter for it.
>> > >
>> > > WDYT?
>> > >
>> > >
>> > > 1. https://github.com/apache/ignite/pull/6707
>> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
>> > > 3.
>> > >
>> https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
>> >
>> >
>> >
>> > --
>> > Best Regards, Vyacheslav D.
>>
>>
>>
>> --
>> Best regards,
>> Ivan Pavlukhin
>>
>


Re: SecurityTestSuite as a separate test suite at TC

2019-08-08 Thread Denis Garus
Hello, Ivan!

>> Could you please provide more details why do we need to run these tests
in forked JVM?

Surefite documentation [1] says:
If forkCount=0, it's impossible to use the system class loader or a plain
old Java classpath; we have to use an isolated class loader.

When using isolated class loader will cause compiler error:
package org.apache.ignite.lang does not exist

We cannot compile the TestIgniteCallable class.

1.
https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html

чт, 8 авг. 2019 г. в 09:44, Павлухин Иван :

> Denis,
>
> Could you please provide more details why do we need to run these
> tests in forked JVM?
>
> Still, having separate security suite on TC sounds not bad.
>
> ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
> >
> > Hi Denis.
> >
> > I think it is fine to extract security tests in a separate build plan on
> TC.
> >
> > BTW, if you are going to write a lot of Sandbox's tests pay attention
> > to 'extdata' module and an approach of P2P tests
> > (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
> > classloading issues.
> >
> > On Tue, Aug 6, 2019 at 3:25 PM Denis Garus  wrote:
> > >
> > > Hello Igniters!
> > >
> > > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite)
> for the
> > > task "Sandbox for user-defined code" [2]
> > > that uses p2p deploy like the test
> > > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> > > IgniteServiceGridTestSuite.
> > > That test requires additional Maven command line parameter -P
> > > surefire-fork-count-1.
> > > The suite Basic 1 contains the SecurityTestSuite and many other test
> suites
> > > at TeamCity that do not need that additional Maven parameter.
> > > I suggest extracting SecurityTestSuite as a separate test suite to
> define
> > > additional Maven command line parameter for it.
> > >
> > > WDYT?
> > >
> > >
> > > 1. https://github.com/apache/ignite/pull/6707
> > > 2. https://issues.apache.org/jira/browse/IGNITE-11410
> > > 3.
> > >
> https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
> >
> >
> >
> > --
> > Best Regards, Vyacheslav D.
>
>
>
> --
> Best regards,
> Ivan Pavlukhin
>


Re: SecurityTestSuite as a separate test suite at TC

2019-08-08 Thread Павлухин Иван
Denis,

Could you please provide more details why do we need to run these
tests in forked JVM?

Still, having separate security suite on TC sounds not bad.

ср, 7 авг. 2019 г. в 09:35, Vyacheslav Daradur :
>
> Hi Denis.
>
> I think it is fine to extract security tests in a separate build plan on TC.
>
> BTW, if you are going to write a lot of Sandbox's tests pay attention
> to 'extdata' module and an approach of P2P tests
> (IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
> classloading issues.
>
> On Tue, Aug 6, 2019 at 3:25 PM Denis Garus  wrote:
> >
> > Hello Igniters!
> >
> > I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for the
> > task "Sandbox for user-defined code" [2]
> > that uses p2p deploy like the test
> > ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> > IgniteServiceGridTestSuite.
> > That test requires additional Maven command line parameter -P
> > surefire-fork-count-1.
> > The suite Basic 1 contains the SecurityTestSuite and many other test suites
> > at TeamCity that do not need that additional Maven parameter.
> > I suggest extracting SecurityTestSuite as a separate test suite to define
> > additional Maven command line parameter for it.
> >
> > WDYT?
> >
> >
> > 1. https://github.com/apache/ignite/pull/6707
> > 2. https://issues.apache.org/jira/browse/IGNITE-11410
> > 3.
> > https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java
>
>
>
> --
> Best Regards, Vyacheslav D.



-- 
Best regards,
Ivan Pavlukhin


Re: SecurityTestSuite as a separate test suite at TC

2019-08-07 Thread Vyacheslav Daradur
Hi Denis.

I think it is fine to extract security tests in a separate build plan on TC.

BTW, if you are going to write a lot of Sandbox's tests pay attention
to 'extdata' module and an approach of P2P tests
(IgniteP2PSelfTestSuite) - this may help you to avoid Maven's
classloading issues.

On Tue, Aug 6, 2019 at 3:25 PM Denis Garus  wrote:
>
> Hello Igniters!
>
> I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for the
> task "Sandbox for user-defined code" [2]
> that uses p2p deploy like the test
> ServiceHotRedeploymentViaDeploymentSpiTest [3] from
> IgniteServiceGridTestSuite.
> That test requires additional Maven command line parameter -P
> surefire-fork-count-1.
> The suite Basic 1 contains the SecurityTestSuite and many other test suites
> at TeamCity that do not need that additional Maven parameter.
> I suggest extracting SecurityTestSuite as a separate test suite to define
> additional Maven command line parameter for it.
>
> WDYT?
>
>
> 1. https://github.com/apache/ignite/pull/6707
> 2. https://issues.apache.org/jira/browse/IGNITE-11410
> 3.
> https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java



-- 
Best Regards, Vyacheslav D.


SecurityTestSuite as a separate test suite at TC

2019-08-06 Thread Denis Garus
Hello Igniters!

I made the test DoPrivelegedOnRemoteNodeTest[1] (SecurityTestSuite) for the
task "Sandbox for user-defined code" [2]
that uses p2p deploy like the test
ServiceHotRedeploymentViaDeploymentSpiTest [3] from
IgniteServiceGridTestSuite.
That test requires additional Maven command line parameter -P
surefire-fork-count-1.
The suite Basic 1 contains the SecurityTestSuite and many other test suites
at TeamCity that do not need that additional Maven parameter.
I suggest extracting SecurityTestSuite as a separate test suite to define
additional Maven command line parameter for it.

WDYT?


1. https://github.com/apache/ignite/pull/6707
2. https://issues.apache.org/jira/browse/IGNITE-11410
3.
https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/service/ServiceHotRedeploymentViaDeploymentSpiTest.java