Return-Path: X-Original-To: apmail-spark-dev-archive@minotaur.apache.org Delivered-To: apmail-spark-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A452010A49 for ; Tue, 2 Dec 2014 23:46:47 +0000 (UTC) Received: (qmail 58477 invoked by uid 500); 2 Dec 2014 23:46:46 -0000 Delivered-To: apmail-spark-dev-archive@spark.apache.org Received: (qmail 58397 invoked by uid 500); 2 Dec 2014 23:46:46 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 58386 invoked by uid 99); 2 Dec 2014 23:46:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2014 23:46:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vanzin@cloudera.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qc0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2014 23:46:20 +0000 Received: by mail-qc0-f172.google.com with SMTP id m20so10374556qcx.31 for ; Tue, 02 Dec 2014 15:46:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=zmkSJVjMtfuuONI/nG68ESjHtlt6Zr80OzQe2eNFwss=; b=GM1ArHSVk9TRzoLCpnhj3wxKyrcU5Hk4EHrx3ZB3+fXaPuztSLGRof6OAoGHR+i7R6 sODZSwF6GyEYn0SG71yQ6u366y5ceTByN4gphw5zjdbqKSAK6qwvcmvqhHAPP7ZHsFco LFItw17J0JYv0dL40pgH2RM6QPVnbPYHOZl7g8CnnSBo1MD0E60ykckVn704RQnMpCAD P8RuQ/sewFrCYbnGhqf6d0uq291h4qp53es+t0fdv9Ya9gcB691RBtnGY1YJZ4hSJMks SCThww80qldXD+qJrcTnzF07dG3yRWqzvSryx9ukGjkBCcLVrMjHK85H0Itm8buAPXeE cFuw== X-Gm-Message-State: ALoCoQnR/Apd5QKsjBpeNK/EBb1g+V0zdMtKzhJqamTyd7gk0eHduYJeSdB5mOpPB8hCVEzaEVr/ MIME-Version: 1.0 X-Received: by 10.140.25.179 with SMTP id 48mr3042982qgt.24.1417563979218; Tue, 02 Dec 2014 15:46:19 -0800 (PST) Received: by 10.229.15.202 with HTTP; Tue, 2 Dec 2014 15:46:19 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Dec 2014 15:46:19 -0800 Message-ID: Subject: Re: Spurious test failures, testing best practices From: Marcelo Vanzin To: Ryan Williams Cc: "dev@spark.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 2, 2014 at 3:39 PM, Ryan Williams wrote: > Marcelo: by my count, there are 19 maven modules in the codebase. I am > typically only concerned with "core" (and therefore its two dependencies as > well, `network/{shuffle,common}`). But you only need to compile the others once. Once you've established the baseline, you can just compile / test "core" to your heart's desire. Core tests won't even run until you build the assembly anyway, since some of them require the assembly to be present. Also, even if you work in core - I'd say especially if you work in core - you should still, at some point, compile and test everything else that depends on it. So, do this ONCE: mvn install -DskipTests Then do this as many times as you want: mvn -pl spark-core_2.10 something That doesn't seem too bad to me. (Be aware of the "assembly" comment above, since testing spark-core means you may have to rebuild the assembly from time to time, if your changes affect those tests.) > re: Marcelo's comment about "missing the 'spark-parent' project", I saw that > error message too and tried to ascertain what it could mean. Why would > `network/shuffle` need something from the parent project? The "spark-parent" project is the main pom that defines dependencies and their version, along with lots of build plugins and configurations. It's needed by all modules to compile correctly. -- Marcelo --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org For additional commands, e-mail: dev-help@spark.apache.org