From commits-return-45082-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Tue Dec 11 11:54:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8C4A8180671 for ; Tue, 11 Dec 2018 11:54:10 +0100 (CET) Received: (qmail 5703 invoked by uid 500); 11 Dec 2018 10:54:09 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 5686 invoked by uid 500); 11 Dec 2018 10:54:09 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 5683 invoked by uid 99); 11 Dec 2018 10:54:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2018 10:54:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 66B50CFDDA for ; Tue, 11 Dec 2018 10:54:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LHTLHmYPEHSV for ; Tue, 11 Dec 2018 10:54:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 63BED60CFD for ; Tue, 11 Dec 2018 10:46:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9E4C9E02F1 for ; Tue, 11 Dec 2018 10:46:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5FA5D252F8 for ; Tue, 11 Dec 2018 10:46:00 +0000 (UTC) Date: Tue, 11 Dec 2018 10:46:00 +0000 (UTC) From: "Bruno Baptista (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work started] (TOMEE-2176) Arquillian test cannot be run in parallel MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TOMEE-2176?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on TOMEE-2176 started by Bruno Baptista. --------------------------------------------- > 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 > > 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 tes= t class in its own forked VM tests were failing randomly, mostly due to mis= sing files in the temporary container directory. The reason is that all tem= porary containers will use the same directory, which is > {{dir =3D System.getProperty("java.io.tmpdir") + "/arquillian-apache-tome= e"}} and/or > {{appWorkingDir =3D System.getProperty("java.io.tmpdir") + "/arquillian-t= omee-app-working-dir}} > (see {{org.apache.openejb.arquillian.common.TomEEConfiguration}}). > This means different processes running TomEE via Arquillian will interfer= e with each other, even completely independent process and even from differ= ent users. > As a solution the above-mention directories must be created such that the= y are unique for the process, e.g. by using {{java.nio.Files.createTempDire= ctory}}. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)