You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/05/11 15:11:00 UTC

[jira] [Work logged] (TOMEE-2176) Arquillian test cannot be run in parallel

     [ https://issues.apache.org/jira/browse/TOMEE-2176?focusedWorklogId=594559&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-594559 ]

ASF GitHub Bot logged work on TOMEE-2176:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/May/21 15:10
            Start Date: 11/May/21 15:10
    Worklog Time Spent: 10m 
      Work Description: dblevins closed pull request #268:
URL: https://github.com/apache/tomee/pull/268


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 594559)
    Remaining Estimate: 0h
            Time Spent: 10m

> Arquillian test cannot be run in parallel
> -----------------------------------------
>
>                 Key: TOMEE-2176
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2176
>             Project: TomEE
>          Issue Type: Improvement
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 7.0.3
>            Reporter: Thorsten Meinl
>            Assignee: Bruno Baptista
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In order to speed up tests, I wanted to run them in parallel using Maven Surefire's parallel execution capabilities. But even when running every test class in its own forked VM tests were failing randomly, mostly due to missing files in the temporary container directory. The reason is that all temporary containers will use the same directory, which is
> {{dir = System.getProperty("java.io.tmpdir") + "/arquillian-apache-tomee"}} and/or
> {{appWorkingDir = System.getProperty("java.io.tmpdir") + "/arquillian-tomee-app-working-dir}}
> (see {{org.apache.openejb.arquillian.common.TomEEConfiguration}}).
> This means different processes running TomEE via Arquillian will interfere with each other, even completely independent process and even from different users.
> As a solution the above-mention directories must be created such that they are unique for the process, e.g. by using {{java.nio.Files.createTempDirectory}}.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)