[jira] [Commented] (METRON-1372) Validate JIRA for Releases

2017-12-19 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/METRON-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16297143#comment-16297143
 ] 

ASF GitHub Bot commented on METRON-1372:


Github user asfgit closed the pull request at:

https://github.com/apache/metron/pull/874


> Validate JIRA for Releases
> --
>
> Key: METRON-1372
> URL: https://issues.apache.org/jira/browse/METRON-1372
> Project: Metron
>  Issue Type: Improvement
>Reporter: Nick Allen
>Assignee: Nick Allen
>Priority: Minor
>
> Create a script that allows the Release Manager to easily validate JIRA for 
> the next release.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (METRON-1372) Validate JIRA for Releases

2017-12-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/METRON-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16296108#comment-16296108
 ] 

ASF GitHub Bot commented on METRON-1372:


Github user ottobackwards commented on the issue:

https://github.com/apache/metron/pull/874
  
+1 worked great


> Validate JIRA for Releases
> --
>
> Key: METRON-1372
> URL: https://issues.apache.org/jira/browse/METRON-1372
> Project: Metron
>  Issue Type: Improvement
>Reporter: Nick Allen
>Assignee: Nick Allen
>Priority: Minor
>
> Create a script that allows the Release Manager to easily validate JIRA for 
> the next release.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (METRON-1372) Validate JIRA for Releases

2017-12-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/METRON-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16295888#comment-16295888
 ] 

ASF GitHub Bot commented on METRON-1372:


Github user nickwallen commented on a diff in the pull request:

https://github.com/apache/metron/pull/874#discussion_r157632089
  
--- Diff: build_utils/release-utils/validate-jira-for-release ---
@@ -0,0 +1,197 @@
+#!/bin/bash
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+# Finds all commits since the last release tag, then ensures that each
+# is marked 'Done' and that the fix version is set to the next release.
+#
+# For example, to validate JIRA for the 0.4.2 release, you would run the
+# following command.
+#
+# validate-jira-for-release --version=0.4.2 
--start=tags/apache-metron-0.4.1-release
+#
+# This will output a table containing each JIRA that was inspected along 
with
+# the fix version, status, and assignee.  If the fix version or status is 
incorrect
+# a link will be printed so that the JIRA can be manually fixed.  The JIRA
+# only needs to be fixed if a URL is shown.
+#
+#JIRASTATUS FIX VERSION ASSIGNEE  FIX
+# METRON-1345  Done   0.4.2 Michael Miklavcic
+# METRON-1349  DoneNext + 1 Nick Allen
https://issues.apache.org/jira/browse/METRON-1349
+# METRON-1343  Done Mohan 
https://issues.apache.org/jira/browse/METRON-1343
+#...
+#
+
+function help {
+  echo " "
+  echo "usage: ${0}"
+  echo "-v/--version=   The version of the next release. 
[Required]"
+  echo "-s/--start=   Defines the first commit to inspect. 
[Required]"
+  echo "-e/--end=   Defines the last commit to inspect. "
+  echo "-r/--repo= The Git repo to work from."
+  echo "-b/--branch= The branch to work from."
+  echo "-h/--helpUsage information."
+  echo " "
+  echo "example: "
+  echo "validate-jira-for-release --version=0.4.2 
--start=tags/apache-metron-0.4.1-release"
+  echo " "
+}
+
+# define default values
+END="HEAD"
+REPO="https://git-wip-us.apache.org/repos/asf/metron.git;
+BRANCH="master"
+
+# print help, if the user just runs this without any args
+if [ "$#" -eq 0 ]; then
+help
+exit 1
+fi
+
+# handle command line options
+for i in "$@"; do
+  case $i in
+#
+# VERSION: The release version to validate; the 'next' release.
+#
+#
+-v=*|--version=*)
+VERSION="${i#*=}"
+shift # past argument=value
+;;
+
+#
+# START: Defines the first commit to inspect
+#
+#   -s=tags/apache-metron-0.4.1-release
+#   --start=tags/apache-metron-0.4.1-release
+#
+-s=*|--start=*)
+START="${i#*=}"
+shift # past argument=value
+;;
+
+#
+# END: Defines the last commit to inspect
+#
+#   -e=HEAD
+#   --end=HEAD
+#
+-e=*|--end=*)
+END="${i#*=}"
+shift # past argument=value
+;;
+
+#
+# REPO: Define the Git repo to work from
+#
+#  -r=https://git-wip-us.apache.org/repos/asf/metron.git
+#  --repo=
+#
+-r=*|--repo=*)
+REPO="${i#*=}"
+shift # past argument=value
+;;
+
+#
+# BRANCH: The branch to work from.
+#
+#  -b=master
+#  --branch=master
+#
+-b=*|--branch=*)
+BRANCH="${i#*=}"
+shift # past argument with no value
+;;
+
+#
+# -h/--help
+#
+-h|--help)
+help
+exit 0
+shift # past argument with no value
+;;
+
+#
+# Unknown option
+#
+*)
+UNKNOWN_OPTION="${i#*=}"
+

[jira] [Commented] (METRON-1372) Validate JIRA for Releases

2017-12-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/METRON-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16295284#comment-16295284
 ] 

ASF GitHub Bot commented on METRON-1372:


GitHub user nickwallen opened a pull request:

https://github.com/apache/metron/pull/874

METRON-1372 Validate JIRA for Releases

Adds a script that helps the Release Manager validate JIRA for a pending 
release.

Help is printed along with an example.
```
$ ./release-utils/validate-jira-for-release --help

usage: ./release-utils/validate-jira-for-release
-v/--version=   The version of the next release. [Required]
-s/--start=   Defines the first commit to inspect. [Required]
-e/--end=   Defines the last commit to inspect.
-r/--repo= The Git repo to work from.
-b/--branch= The branch to work from.
-h/--helpUsage information.

example:
validate-jira-for-release --version=0.4.2 
--start=tags/apache-metron-0.4.1-release
```

Validating the next release.
```
$ ./release-utils/validate-jira-for-release --version=0.4.2 
--start=tags/apache-metron-0.4.1-release
Cloning into 'metron-0.4.2'...
remote: Counting objects: 35046, done.
remote: Compressing objects: 100% (13698/13698), done.
remote: Total 35046 (delta 15702), reused 31650 (delta 12822)
Receiving objects: 100% (35046/35046), 53.06 MiB | 6.77 MiB/s, done.
Resolving deltas: 100% (15702/15702), done.
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Fetching origin
   JIRA  STATUS FIX VERSION   
ASSIGNEEFIX
METRON-1345Done  Michael 
Miklavcic  https://issues.apache.org/jira/browse/METRON-1345
METRON-1349DoneNext + 1 Nick 
Allen  https://issues.apache.org/jira/browse/METRON-1349
METRON-1343Done  
Mohan  https://issues.apache.org/jira/browse/METRON-1343
METRON-1306   To Do 
Unassigned  https://issues.apache.org/jira/browse/METRON-1306
METRON-1341DoneSimon Elliston 
Ball  https://issues.apache.org/jira/browse/METRON-1341
METRON-1313Done Jon 
Zeolla  https://issues.apache.org/jira/browse/METRON-1313
METRON-1346DoneOtto 
Fowler  https://issues.apache.org/jira/browse/METRON-1346
METRON-1336Done   0.4.2 Nick 
Allen
METRON-1335Done  Anand 
Subramanian  https://issues.apache.org/jira/browse/METRON-1335
METRON-1308Done Jon 
Zeolla  https://issues.apache.org/jira/browse/METRON-1308
METRON-1338Done   0.4.2 Nick 
Allen
METRON-1286   To Do   0.4.2 
Unassigned  https://issues.apache.org/jira/browse/METRON-1286
METRON-1334Done   0.4.2 Nick 
Allen
METRON-1277DoneOtto 
Fowler  https://issues.apache.org/jira/browse/METRON-1277
METRON-1239   To Do 
Unassigned  https://issues.apache.org/jira/browse/METRON-1239
METRON-1328Done  Anand 
Subramanian  https://issues.apache.org/jira/browse/METRON-1328
METRON-1333DoneOtto 
Fowler  https://issues.apache.org/jira/browse/METRON-1333
METRON-1252Done 
RaghuMitra  https://issues.apache.org/jira/browse/METRON-1252
METRON-1316   To DoNext + 1 
Unassigned  https://issues.apache.org/jira/browse/METRON-1316
METRON-1088Done Jon 
Zeolla  https://issues.apache.org/jira/browse/METRON-1088
METRON-1319   To Do  Ryan 
Merriman  https://issues.apache.org/jira/browse/METRON-1319
METRON-1321   To Do 
Unassigned  https://issues.apache.org/jira/browse/METRON-1321
METRON-1301Done   0.4.2 Nick 
Allen
METRON-1294   To Do  Ryan 
Merriman  https://issues.apache.org/jira/browse/METRON-1294
METRON-1291   To Do  Ryan 
Merriman