You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/01/24 20:05:16 UTC

[GitHub] [hbase] busbey commented on a change in pull request #1088: HBASE-22853 Git/Jira Release Audit Tool

busbey commented on a change in pull request #1088: HBASE-22853 Git/Jira Release Audit Tool
URL: https://github.com/apache/hbase/pull/1088#discussion_r370819385
 
 

 ##########
 File path: dev-support/git-jira-release-audit/README.md
 ##########
 @@ -0,0 +1,186 @@
+<!---
+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.
+-->
+
+# Git / JIRA Release Audit
+
+This is an application for performing an audit between the histories on our git
+branches and the `fixVersion` field set on issues in JIRA. It does this by
+building a Sqlite database from the commits found on each git branch,
+identifying Jira IDs and release tags, and then requesting information about
+those issues from Jira. Once both sources have been collected, queries can be
+performed against the database to look for discrepancies between the sources of
+truth (and, possibly, bugs in this script).
+
+## Setup
+
+The system prerequisites are Python3 with VirtualEnv available and Sqlite. Also,
+you'll need the content of this directory and a local checkout of git repository.
+
+Build a VirtualEnv with the script's dependencies with
+
+```shell script
+$ python3 --version
+Python 3.7.6
+$ python3 -m venv ./venv
+$ ./venv/bin/pip install -r ./requirements.txt
+...
+Successfully installed...
+```
+
+## Usage
+
+The tool provides basic help docs.
+
+```shell script
+$ ./venv/bin/python ./git_jira_release_audit.py --help
+usage: git_jira_release_audit.py [-h] [--db-path DB_PATH]
+                                 [--git-repo-path GIT_REPO_PATH]
+                                 [--remote-name REMOTE_NAME]
+                                 [--development-branch DEVELOPMENT_BRANCH]
+                                 [--development-branch-fix-version DEVELOPMENT_BRANCH_FIX_VERSION]
+                                 [--release-line-regexp RELEASE_LINE_REGEXP]
+                                 [--fallback-actions-path FALLBACK_ACTIONS_PATH]
+                                 [--jira-url JIRA_URL] --branch-1-fix-version
+                                 BRANCH_1_FIX_VERSION --branch-2-fix-version
+                                 BRANCH_2_FIX_VERSION
+
+optional arguments:
+  -h, --help            show this help message and exit
+  --db-path DB_PATH     Path to the database file, or leave unspecified for a
+                        transient db.
+  --git-repo-path GIT_REPO_PATH
+                        Path to the git repo, or leave unspecified to infer
+                        from the current file's path.
+  --remote-name REMOTE_NAME
+                        The name of the git remote to use when identifying
+                        branches.
+  --development-branch DEVELOPMENT_BRANCH
+                        The name of the branch from which all release lines
+                        originate.
+  --development-branch-fix-version DEVELOPMENT_BRANCH_FIX_VERSION
+                        The Jira fixVersion used to indicate an issue is
+                        committed to the development branch.
+  --release-line-regexp RELEASE_LINE_REGEXP
+                        A regexp used to identify release lines.
+  --fallback-actions-path FALLBACK_ACTIONS_PATH
 
 Review comment:
   Adding a brief section at the end of this README that explains the `fallback-actions-path` is used to identify how the parser should handle commits with known ambiguous messages would help with maintainability 6 months from now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services