From dev-return-18531-archive-asf-public=cust-asf.ponee.io@ranger.apache.org Thu Jul 5 20:58:04 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 4F6F7180657 for ; Thu, 5 Jul 2018 20:58:04 +0200 (CEST) Received: (qmail 16403 invoked by uid 500); 5 Jul 2018 18:58:03 -0000 Mailing-List: contact dev-help@ranger.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.apache.org Delivered-To: mailing list dev@ranger.apache.org Received: (qmail 16392 invoked by uid 99); 5 Jul 2018 18:58:03 -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; Thu, 05 Jul 2018 18:58:03 +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 F002A186985 for ; Thu, 5 Jul 2018 18:58:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 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, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled 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 zgHQ0V_ckrOD for ; Thu, 5 Jul 2018 18:58:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A40DA5FDE4 for ; Thu, 5 Jul 2018 18:58: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 2EC52E1276 for ; Thu, 5 Jul 2018 18:58:01 +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 51B5427510 for ; Thu, 5 Jul 2018 18:58:00 +0000 (UTC) Date: Thu, 5 Jul 2018 18:58:00 +0000 (UTC) From: "Velmurugan Periasamy (JIRA)" To: dev@ranger.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (RANGER-1951) build problems with the saveVersion.py script 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/RANGER-1951?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 34019#comment-16534019 ]=20 Velmurugan Periasamy commented on RANGER-1951: ---------------------------------------------- This patch creates issue=C2=A0during preparation of=C2=A0source release for= 1.1.0. So I am reopening this issue and reverting this commit in ranger-1.= 1 and ranger-1 branches. Leaving the commit in master branch and setting fi= x version as 2.0.0.=C2=A0 [~zsombor] - Can you please take a look? +Steps to reproduce: (as seen here=C2=A0http://ranger.apache.org/quick_star= t_guide.html)+ 1] Git clone and build the project 2] Create the source artifacts for release 3] Now as part of verification, try building from the source tar.gz file. I= t fails with the below error. {{[INFO] ------------------------------------------------------------------= ------}} {{[INFO] Building Ranger Util 1.1.0}} {{[INFO] ------------------------------------------------------------------= ------}} {{[INFO]}} {{[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ ranger-util -= --}} {{[INFO] Deleting /Users/user123/apache-release/1.1.0/verification/ver2/apa= che-ranger-1.1.0/ranger-util/target}} {{[INFO]}} {{[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ = ranger-util ---}} {{[INFO]}} {{[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ range= r-util ---}} {{[INFO]}} {{[INFO] --- maven-antrun-plugin:1.7:run (generate-version-annotation) @ ra= nger-util ---}} {{[INFO] Executing tasks}}{{main:}} {{ [exec] fatal: Not a git repository (or any of the parent directories): .= git}} {{ [exec] Traceback (most recent call last):}} {{ [exec] File "/Users/user123/apache-release/1.1.0/verification/ver2/apach= e-ranger-1.1.0/ranger-util/src/scripts/saveVersion.py", line 150, in }} {{ [exec] main()}} {{ [exec] File "/Users/user123/apache-release/1.1.0/verification/ver2/apach= e-ranger-1.1.0/ranger-util/src/scripts/saveVersion.py", line 68, in main}} {{ [exec] output =3D check_output(query)}} {{ [exec] File "/Users/user123/apache-release/1.1.0/verification/ver2/apach= e-ranger-1.1.0/ranger-util/src/scripts/saveVersion.py", line 40, in check_o= utput}} {{ [exec] output =3D subprocess.check_output(query)}} {{ [exec] File "/System/Library/Frameworks/Python.framework/Versions/2.7/li= b/python2.7/subprocess.py", line 573, in check_output}} {{ [exec] raise CalledProcessError(retcode, cmd, output=3Doutput)}} {{ [exec] subprocess.CalledProcessError: Command '['git', 'rev-parse', 'HEA= D']' returned non-zero exit status 128}} {{[INFO]}} {{[INFO] ------------------------------------------------------------------= ------}} {{[INFO] Skipping ranger}} {{[INFO] This project has been banned from the build due to previous failur= es.}} {{[INFO] ------------------------------------------------------------------= ------}}{{}} =C2=A0 > build problems with the saveVersion.py script > --------------------------------------------- > > Key: RANGER-1951 > URL: https://issues.apache.org/jira/browse/RANGER-1951 > Project: Ranger > Issue Type: Bug > Components: build-infra > Affects Versions: 0.7.1 > Reporter: Zsombor Gegesy > Assignee: Zsombor Gegesy > Priority: Major > Fix For: 1.1.0 > > Attachments: RANGER-1951-1.patch > > > Currently the saveVersion.py has the following problems: > * it doesn't work with python3 due to 'inconsistent whitespace usage' and= because in python3 the byte array is different from a string > * The checksum is generated from all the java source files from ranger-ut= il/target, which contains at most one java file - a previously generated ra= nger-util/target/gen/org/apache/ranger/common/package-info.java=20 > *=20 -- This message was sent by Atlassian JIRA (v7.6.3#76005)