Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E862A1767E for ; Tue, 24 Mar 2015 18:55:17 +0000 (UTC) Received: (qmail 50966 invoked by uid 500); 24 Mar 2015 18:55:12 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50934 invoked by uid 500); 24 Mar 2015 18:55:12 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 50923 invoked by uid 99); 24 Mar 2015 18:55:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 18:55:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jhurley@hortonworks.com designates 64.78.56.46 as permitted sender) Received: from [64.78.56.46] (HELO relayvx11a.securemail.intermedia.net) (64.78.56.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 18:55:06 +0000 Received: from securemail.intermedia.net (localhost [127.0.0.1]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id A25C353E2D for ; Tue, 24 Mar 2015 11:54:25 -0700 (PDT) Subject: Re: Server unit tests take too long (30+ minutes) MIME-Version: 1.0 x-echoworx-emg-received: Tue, 24 Mar 2015 11:54:25.645 -0700 x-echoworx-msg-id: 8f3e1ab8-4dbe-4c59-ad06-8a07c6a8ad2a x-echoworx-action: delivered Received: from emg-ca-1-1.securemail.intermedia.net ([10.254.155.11]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 945 for ; Tue, 24 Mar 2015 11:54:25 -0700 (PDT) Received: from MBX080-W4-CO-1.exch080.serverpod.net (unknown [10.224.117.101]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id 6E2BE53E2D for ; Tue, 24 Mar 2015 11:54:25 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Tue, 24 Mar 2015 11:54:24 -0700 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1044.021; Tue, 24 Mar 2015 11:54:24 -0700 From: Jonathan Hurley To: "dev@ambari.apache.org" CC: Jayush Luniya Thread-Topic: Server unit tests take too long (30+ minutes) Thread-Index: AQHQY1fFHLHNZAPVQkCdmA0IxyVhcp0sdouA Date: Tue, 24 Mar 2015 18:54:23 +0000 Message-ID: References: <1427221989273.42619@hortonworks.com> In-Reply-To: <1427221989273.42619@hortonworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [173.71.90.39] x-source-routing-agent: Processed Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Many of these, such as the deadlock tests and alert tests are just going to= take a long time due to the nature of what they=92re doing. In general, if= b.a.o is timing out, we need to either increase the timeout for the job or= change our pom.xml to allow for forked execution of the tests. In my local environment, 3 concurrent forks can run through the test suite = in about 20 minutes. The problem is that both LDAP tests below always fail = in a forked environment. I=92d say if we want to get the build times down, = we should look into making the 2 LDAP tests work with forked test runners i= n the pom.xml > On Mar 24, 2015, at 2:33 PM, Sumit Mohanty wro= te: >=20 > ?Hi, >=20 >=20 > these are some of the unit tests that take too long (more than 30 seconds= on my machine). There are several that are above 10 seconds but below 30 = seconds range that can also use some optimization. >=20 >=20 > Jayush tells me that the Apache builds may be getting aborted as the buil= d + UT run takes more than an hour. >=20 >=20 > I will look into some of it when I get a chance. If there are any that pi= ques your curiosity then take a look. >=20 >=20 > Running org.apache.ambari.server.agent.TestHeartbeatHandler > Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 67.43 se= c >=20 > Running org.apache.ambari.server.state.cluster.ClusterTest > Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.576 s= ec >=20 > Running org.apache.ambari.server.state.cluster.ClusterDeadlockTest > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.252 se= c >=20 > Running org.apache.ambari.server.upgrade.UpgradeTest > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50.433 se= c >=20 > Running org.apache.ambari.server.orm.dao.AlertDispatchDAOTest > Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 46.681 s= ec >=20 > Running org.apache.ambari.server.orm.dao.AlertsDAOTest > Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.474 s= ec >=20 > Running org.apache.ambari.server.security.authorization.TestUsers > Tests run: 26, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 36.421 s= ec >=20 > Running org.apache.ambari.server.security.authorization.AmbariLdapAuthent= icationProviderTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.46 sec >=20 > Running org.apache.ambari.server.security.authorization.AmbariLdapAuthent= icationProviderForDNWithSpaceTest > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.706 se= c >=20 > Running org.apache.ambari.server.state.ConfigHelperTest > Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.863 s= ec >=20 > Running org.apache.ambari.server.controller.internal.StackDefinedProperty= ProviderTest > Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.247 s= ec >=20 > ... >=20 > thanks > ?-Sumit >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20