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 D1AAB200B2A for ; Sat, 11 Jun 2016 02:49:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D061B160A5A; Sat, 11 Jun 2016 00:49:10 +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 21A3E160A38 for ; Sat, 11 Jun 2016 02:49:09 +0200 (CEST) Received: (qmail 51412 invoked by uid 500); 11 Jun 2016 00:49:09 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 51403 invoked by uid 99); 11 Jun 2016 00:49:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2016 00:49:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EB0EEC1217 for ; Sat, 11 Jun 2016 00:49:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s6g5DekIoc1B for ; Sat, 11 Jun 2016 00:49:07 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id B64435FB3F for ; Sat, 11 Jun 2016 00:49:06 +0000 (UTC) Received: (qmail 51393 invoked by uid 99); 11 Jun 2016 00:49:05 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2016 00:49:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A8F16DFC7E; Sat, 11 Jun 2016 00:49:05 +0000 (UTC) From: StephanEwen To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org Message-ID: Subject: [GitHub] flink pull request #2092: [FLINK-3395] [build] Make test utils properly avai... Content-Type: text/plain Date: Sat, 11 Jun 2016 00:49:05 +0000 (UTC) archived-at: Sat, 11 Jun 2016 00:49:11 -0000 GitHub user StephanEwen opened a pull request: https://github.com/apache/flink/pull/2092 [FLINK-3395] [build] Make test utils properly available and fix Maven dependencies This pull requests fixes maven project scopes: - No **main** scope must ever depend on a **test** scope - Common test utils (`ForkableMiniCluster`, `TestEnvironment`, ...) should not be in test-jars, but in reusable and user-exposed test utils projects in **main** scope. - The number of test-jar dependencies should be minimal ## New Structure - Created a **flink-test-utils-junit** module that contains all JUnit related utils like - `TestLogger` - `RetryRules` This reduces the `flink-core` `test-jar` dependency. - The **flink-test-utils** project contains all necessary utils for most tests - `ForkableMiniCluster` - `TestEnvironment` & `TestStreamEnvironment` - `MultipleProgramsTestBase` & `StreamingMultipleProgramsTestBase` - ... - The `flink-test-utils-junit` and `flink-test-utils` are in the parent project `flink-test-utils-parent`. Tons of tests have minor adjustments to use different ways of accessing a specific test utility function, to keep the dependencies smaller. ## Other Fixes - Removed unnecessary dependencies in the test scope - The Table API no longer pulls the example projects into the main scope - The Kafka consumer no longer pulls zkclient into the main scope The size of this pull request is very large, but most edits are straightforward minor changes due to moving certain util classes and consolidating duplicate util classes. You can merge this pull request into a Git repository by running: $ git pull https://github.com/StephanEwen/incubator-flink test_utils Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/2092.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2092 ---- commit 0c10ccb1aab18d0709861297f6aa2b8c58512d51 Author: Stephan Ewen Date: 2016-05-30T18:56:05Z [FLINK-3995] [build] Properly structure test scopes and dependencies Makes the JUnit test utils (TestLogger, retry rules, ...) properly available to other projects without the 'flink-core' test-jar, via the 'flink-test-utils-junit' project. Makes the ForkableMiniCluster, TestEnvironment, and other test utilities available in the 'main' scope of the 'flink-test-utils' project. Creates a 'flink-test-utils-parent' project that holds the 'flink-test-utils-junit' and 'flink-test-utils' project. Also moves some tests between projects and inlines some very simple utility functions in order to simplify some test jar dependencies. commit 151324df1d314ce46737bf9994ca7a960c29e6ed Author: Stephan Ewen Date: 2016-06-11T00:14:07Z [FLINK-3995] [build] flink-test-utils also contains the streaming test utilities. Test utilities include the StreamingMultipleProgramsTestBase and StreamingTestEnvironment. This moves the ITCases for streaming into 'flink-tests' to achieve that. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---