Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0223F200D4B for ; Mon, 27 Nov 2017 08:38:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0078F160C13; Mon, 27 Nov 2017 07:38:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1F28D160C02 for ; Mon, 27 Nov 2017 08:38:11 +0100 (CET) Received: (qmail 12896 invoked by uid 500); 27 Nov 2017 07:38:10 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 12872 invoked by uid 99); 27 Nov 2017 07:38:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2017 07:38:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6A47A18030B for ; Mon, 27 Nov 2017 07:38:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VcDVFktdZ858 for ; Mon, 27 Nov 2017 07:38:06 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3252A5F23E for ; Mon, 27 Nov 2017 07:38:06 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id z143so6285656oia.10 for ; Sun, 26 Nov 2017 23:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7ryQAwdAFVpnAr1h6BiGGUMmSKo/4mNLNQ5LXpBptA4=; b=GSGOc5/7h4dZsw+OWNGNsj9DP1rtmrz22raNyl1CX2pMoxYm/KiFnv92h9XIcwt+yE us/b4wejTqOKF16KcdRgGjSYrvkXHPV2bq5I4n+LvOF9FYN9n39Ox8bcLTuQvWf9ST14 KxTqJNz+2fzPd4xoV1n+Y9spCjAh1N4D99mE5kwXb2I8yp7MClA1E+kYEwFKsbFusdDs Bsgn2WRZYgtMFqAaFzZrL3ljGvbDSSKDhNumT2bHK7l5pwNuKXGwK7ifToERvMiOGQ5R JSBbbzvyIYXXX3f3X9EySNZEUnYG/y6u/JhcHSAWfppfKeVmwhqK5WI6skGC7cqydNyy MGiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7ryQAwdAFVpnAr1h6BiGGUMmSKo/4mNLNQ5LXpBptA4=; b=Y+kwi7BWdnaynRhUNQ+Phx5iCDjBCrqZ4xw6BwTsgC/CvTuEWeWctFv8gmJwANy1Bt Zd+/9moVgwK3pHHfYSjGSnx1gk0TcVCzKtGmhEhVUQTxhkum9TX6xDm0ERy00Atn48GO /z6uX6S3Xrnxevab4YZmEJ2WHKeLbBkS/5LA+SamwJeSY7Prr8V469th8pYh7mWsJckR +vYPbuoj0aJzn3qIVh8KrW9RnK1J4yDrIBBZnXFQ1ffk9bs/kBo6I6PHfRS9K2+JdV7c cY1/Ctcj4Y9z74sw7wecHk6pN0JvCVjjbPBYF7c5S02ew0KfYoBnbBiSFh/9flQpOU6w Jomw== X-Gm-Message-State: AJaThX74sWrPKBa3fkL8N9U7ujymNaeJHSwaWJ7qhQLP4FmkvAzvAjBn qKeUvL2yZqGmxT4QknPgqyJuduFf+rchyN6s/ytET6g/ X-Google-Smtp-Source: AGs4zMbnFtahOLOXGMDwYdGGwybJv2Q4YM43W984Q7IeXmyL5T2t7vsVX8wTWjuTbV1DbCvfk3bAQhzmBDHu5lLLPlw= X-Received: by 10.202.52.69 with SMTP id b66mr15285618oia.123.1511768278456; Sun, 26 Nov 2017 23:37:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.50.3 with HTTP; Sun, 26 Nov 2017 23:37:57 -0800 (PST) In-Reply-To: References: <94c2e86d-222b-e0b1-c6c1-5a4b5da9d05d@nanthrax.net> <5c544a8b-229a-623d-25ec-be9b7a8bb5b2@nanthrax.net> <8d5dc1e0-9126-ec0b-4f2b-a81f29169482@nanthrax.net> From: Achim Nierbeck Date: Mon, 27 Nov 2017 08:37:57 +0100 Message-ID: Subject: Re: [UPDATE] MavenTest itest fails randomly but often To: dev Content-Type: multipart/alternative; boundary="001a113d5a78385ea9055ef1fbb3" archived-at: Mon, 27 Nov 2017 07:38:13 -0000 --001a113d5a78385ea9055ef1fbb3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Grzegorz, interesting that you have issues with that version. I just updated pax-web to use 2.20.1 and all tests are passing (finally) regards, Achim 2017-11-27 8:28 GMT+01:00 Grzegorz Grzybek : > Hello > > I found that maven-surefire-plugin 2.20+ has some problems with pax-exam. > I'd love to investigate the exact cause, but didn't have time yet... > The surefire/failsafe issue is > https://issues.apache.org/jira/browse/SUREFIRE-1374 > > And in my (jboss fuse) integration tests I stayed with 2.19.x. > > regards > Grzegorz Grzybek > > 2017-11-27 7:32 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : > > > Hmm, not sure it's related as we use the same KarafTestSupport in bunch > of > > other itest. > > > > I will exclude the MavenTest for now, and investigate. > > > > Thanks anyway ! > > > > Regards > > JB > > > > > > On 11/26/2017 09:50 AM, Giuseppe Gerla wrote: > > > >> Hi JB > >> although the tests worked on my PC, very often they went wrong on the > >> jenkins machine. > >> I did several experiments to find the problem, but it was very difficu= lt > >> to > >> understand it. > >> What I understood is that for some reason the container is too slow to > >> come > >> up and the timeout of pax expired before. Why? I don't know. > >> At the end, I clone the activemq project on the jenkins machine, I > start a > >> build and it works. So I did a diff between activemq itest configurati= on > >> and my itest configuration. The result was that I removed some > >> initialization from my itest: > >> > >> customOptions.add(junitBundles()); > >> customOptions.add(KarafDistributionOption > >> .editConfigurationFilePut("etc/org.apache.karaf.features. > cf > >> g", > >> "featuresBoot", > >> "(aries-blueprint, bundle, > config, > >> deployer, diagnostic, feature, instance, jaas, kar, log, management, > >> package, service, shell, shell-compat, ssh, system, wrap)")); > >> > >> then also: > >> > >> MavenUrlReference karafStandardRepo =3D > >> maven().groupId("org.apache.karaf.features") > >> > >> .artifactId("standard").classifier("features").type("xml"). > >> versionAsInProject(); > >> > >> customOptions.add(KarafDistributionOption.features(karafStandardRepo= , > >> "scr")); > >> > >> and I replaced "activemq-broker-noweb" feature with "activemq" one. > >> I rememeber that also surefire plugin version has a rule in this > problem. > >> So I changed my poms as following: > >> > >> PARENT-POM > >> > >> > >> 2.16 > >> > >> > >> > >> maven-surefire-plugin > >> ${surefire.plugin.version} > >> > >> > >> **/*AcceptanceTest.java > >> > >> > >> > >> > >> > >> > >> > >> > >> ITEST-PROJECT-POM > >> > >> > >> maven-surefire-plugin > >> > >> 1 > >> false > >> true > >> -Xmx512m > >> > >> > >> > >> ${activemq.version} > >> ${karaf.version} > >> > >> > >> > >> > >> > >> I hope this can help you. > >> > >> > >> Regards > >> Giuseppe > >> > >> > >> > >> > >> > >> > >> > >> > >> 2017-11-26 7:17 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : > >> > >> Hi Giuseppe, > >>> > >>> not sure I follow you. You mean you change the itest on your local > copy ? > >>> > >>> Regards > >>> JB > >>> > >>> > >>> On 11/25/2017 11:05 PM, Giuseppe Gerla wrote: > >>> > >>> Hi JB > >>>> If you remember i had the same problem. > >>>> After several week and several investigativo, i discovered some > >>>> difference > >>>> beteeen my itest and activemq itest. So i changed my itest sturtup. > Now > >>>> It > >>>> seems solved. > >>>> > >>>> > >>>> Regards > >>>> Giuseppe > >>>> > >>>> > >>>> Il 25 nov 2017 17:44, "Jean-Baptiste Onofr=C3=A9" = ha > >>>> scritto: > >>>> > >>>> Hi, > >>>> > >>>>> > >>>>> randomly (only for this itest), the container never came up (pax > exam). > >>>>> > >>>>> Regards > >>>>> JB > >>>>> > >>>>> On 11/25/2017 09:56 AM, Giuseppe Gerla wrote: > >>>>> > >>>>> Hi JB > >>>>> > >>>>>> what type of failure? > >>>>>> > >>>>>> Regards > >>>>>> Giuseppe > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> 2017-11-25 7:20 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : > >>>>>> > >>>>>> Hi guys, > >>>>>> > >>>>>> > >>>>>>> Our Jenkins jobs are not very stable (both master and PR) due to > the > >>>>>>> MavenTest which randomly fails (but often). > >>>>>>> > >>>>>>> I will remove this test from master and move it to a dedicated PR > to > >>>>>>> investigate (but at least it won't impact our nightly builds and > >>>>>>> PRs). > >>>>>>> > >>>>>>> Regards > >>>>>>> JB > >>>>>>> -- > >>>>>>> Jean-Baptiste Onofr=C3=A9 > >>>>>>> jbonofre@apache.org > >>>>>>> http://blog.nanthrax.net > >>>>>>> Talend - http://www.talend.com > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>> > >>>>> Jean-Baptiste Onofr=C3=A9 > >>>>> jbonofre@apache.org > >>>>> http://blog.nanthrax.net > >>>>> Talend - http://www.talend.com > >>>>> > >>>>> > >>>>> > >>>> -- > >>> Jean-Baptiste Onofr=C3=A9 > >>> jbonofre@apache.org > >>> http://blog.nanthrax.net > >>> Talend - http://www.talend.com > >>> > >>> > >> > > -- > > Jean-Baptiste Onofr=C3=A9 > > jbonofre@apache.org > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > > --=20 Apache Member Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead blog Co-Author of Apache Karaf Cookbook Software Architect / Project Manager / Scrum Master --001a113d5a78385ea9055ef1fbb3--