Merge "Fix bashate errors"
This commit is contained in:
commit
9f36179e16
@ -160,7 +160,8 @@ if [[ $FIRST_FULL = "yes" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up email tags for the project owner.
|
# Set up email tags for the project owner.
|
||||||
PROJECT_OWNER=${PROJECT_OWNER:-$(get-repo-owner --email-tag $REPOORGNAME/$SHORTNAME || echo "")}
|
PROJECT_OWNER=${PROJECT_OWNER:-$(get-repo-owner \
|
||||||
|
--email-tag $REPOORGNAME/$SHORTNAME || echo "")}
|
||||||
if [[ "$PROJECT_OWNER" != "" ]]; then
|
if [[ "$PROJECT_OWNER" != "" ]]; then
|
||||||
email_tags="--email-tags ${PROJECT_OWNER}"
|
email_tags="--email-tags ${PROJECT_OWNER}"
|
||||||
fi
|
fi
|
||||||
|
@ -33,5 +33,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for pipeline in $pipelines; do
|
for pipeline in $pipelines; do
|
||||||
echo "zuul enqueue-ref --tenant=openstack --trigger=gerrit --pipeline=$pipeline --project=$repo --ref=refs/tags/$tag --newrev=$hash"
|
echo "zuul enqueue-ref --tenant=openstack --trigger=gerrit \
|
||||||
|
--pipeline=$pipeline --project=$repo --ref=refs/tags/$tag \
|
||||||
|
--newrev=$hash"
|
||||||
done
|
done
|
||||||
|
@ -71,7 +71,8 @@ REF=""
|
|||||||
UPSTREAM="git://git.openstack.org"
|
UPSTREAM="git://git.openstack.org"
|
||||||
|
|
||||||
if [[ $(uname) != "Darwin" ]]; then
|
if [[ $(uname) != "Darwin" ]]; then
|
||||||
OPTS=`getopt -o hv --long branch:,cache-dir:,ref:,upstream:,workspace: -n $0 -- "$@"`
|
OPTS=`getopt -o hv --long branch:,cache-dir:,ref:,upstream:,workspace: \
|
||||||
|
-n $0 -- "$@"`
|
||||||
if [ $? != 0 ] ; then
|
if [ $? != 0 ] ; then
|
||||||
echo "Failed parsing options." >&2
|
echo "Failed parsing options." >&2
|
||||||
print_help
|
print_help
|
||||||
|
@ -17,14 +17,16 @@ fi
|
|||||||
setup_temp_space inactive-project-report
|
setup_temp_space inactive-project-report
|
||||||
|
|
||||||
# Figure out the current series from the releases directory.
|
# Figure out the current series from the releases directory.
|
||||||
current_series=$(python -c 'import openstack_releases.defaults; print(openstack_releases.defaults.RELEASE)')
|
current_series=$(python -c 'import openstack_releases.defaults; \
|
||||||
|
print(openstack_releases.defaults.RELEASE)')
|
||||||
if [ -z "$current_series" ]; then
|
if [ -z "$current_series" ]; then
|
||||||
echo "Could not determine the current release series."
|
echo "Could not determine the current release series."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Figure out the previous series from the releases directory.
|
# Figure out the previous series from the releases directory.
|
||||||
previous_series=$(ls $BASEDIR/deliverables | grep -B1 $current_series | head -n 1)
|
previous_series=$(ls $BASEDIR/deliverables | grep -B1 $current_series \
|
||||||
|
| head -n 1)
|
||||||
if [ -z "$previous_series" ]; then
|
if [ -z "$previous_series" ]; then
|
||||||
echo "Could not determine the previous release series."
|
echo "Could not determine the previous release series."
|
||||||
exit 1
|
exit 1
|
||||||
@ -40,7 +42,8 @@ for deliv in $deliverables; do
|
|||||||
echo
|
echo
|
||||||
list-deliverables --deliverable "$deliv" -v
|
list-deliverables --deliverable "$deliv" -v
|
||||||
|
|
||||||
repos=$(list-deliverables --deliverable "$deliv" --repos --series "$previous_series")
|
repos=$(list-deliverables --deliverable "$deliv" --repos \
|
||||||
|
--series "$previous_series")
|
||||||
|
|
||||||
for repo in $repos; do
|
for repo in $repos; do
|
||||||
title "$repo"
|
title "$repo"
|
||||||
|
@ -15,14 +15,16 @@ if [[ -z "$VIRTUAL_ENV" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Figure out the current series from the releases directory.
|
# Figure out the current series from the releases directory.
|
||||||
current_series=$(python -c 'import openstack_releases.defaults; print(openstack_releases.defaults.RELEASE)')
|
current_series=$(python -c 'import openstack_releases.defaults; \
|
||||||
|
print(openstack_releases.defaults.RELEASE)')
|
||||||
if [ -z "$current_series" ]; then
|
if [ -z "$current_series" ]; then
|
||||||
echo "Could not determine the current release series."
|
echo "Could not determine the current release series."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Figure out the previous series from the releases directory.
|
# Figure out the previous series from the releases directory.
|
||||||
previous_series=$(ls $BASEDIR/deliverables | grep -B1 $current_series | head -n 1)
|
previous_series=$(ls $BASEDIR/deliverables | grep -B1 $current_series \
|
||||||
|
| head -n 1)
|
||||||
if [ -z "$previous_series" ]; then
|
if [ -z "$previous_series" ]; then
|
||||||
echo "Could not determine the previous release series."
|
echo "Could not determine the previous release series."
|
||||||
exit 1
|
exit 1
|
||||||
@ -43,13 +45,15 @@ function show_deliv {
|
|||||||
|
|
||||||
# Show the changes for each repo for the deliverable, as defined
|
# Show the changes for each repo for the deliverable, as defined
|
||||||
# by the previous series releases.
|
# by the previous series releases.
|
||||||
repos=$(list-deliverables --deliverable "$deliv" --repos --series "$previous_series")
|
repos=$(list-deliverables --deliverable "$deliv" --repos \
|
||||||
|
--series "$previous_series")
|
||||||
$TOOLSDIR/list_unreleased_changes.sh master $repos
|
$TOOLSDIR/list_unreleased_changes.sh master $repos
|
||||||
}
|
}
|
||||||
|
|
||||||
for deliv in $deliverables; do
|
for deliv in $deliverables; do
|
||||||
|
|
||||||
owner=$(echo $(grep team $BASEDIR/deliverables/$current_series/${deliv}.yaml \
|
owner=$(echo \
|
||||||
|
$(grep team $BASEDIR/deliverables/$current_series/${deliv}.yaml \
|
||||||
| cut -f2 -d:) \
|
| cut -f2 -d:) \
|
||||||
| sed -e 's/ /-/g')
|
| sed -e 's/ /-/g')
|
||||||
if [[ -z "$owner" ]]; then
|
if [[ -z "$owner" ]]; then
|
||||||
|
@ -32,6 +32,7 @@ if [[ -z "$VIRTUAL_ENV" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Finding $SERIES library repositories..."
|
echo "Finding $SERIES library repositories..."
|
||||||
repos=$(list-deliverables --repos --type library --type client-library --series $SERIES)
|
repos=$(list-deliverables --repos --type library --type client-library \
|
||||||
|
--series $SERIES)
|
||||||
|
|
||||||
$TOOLSDIR/list_unreleased_changes.sh $BRANCH $repos
|
$TOOLSDIR/list_unreleased_changes.sh $BRANCH $repos
|
||||||
|
@ -27,6 +27,7 @@ if [[ -z "$VIRTUAL_ENV" ]]; then
|
|||||||
source $BASEDIR/.tox/venv/bin/activate
|
source $BASEDIR/.tox/venv/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
repos="$(list-deliverables --repos --tag stable:follows-policy --series $SERIES)"
|
repos="$(list-deliverables --repos --tag stable:follows-policy \
|
||||||
|
--series $SERIES)"
|
||||||
|
|
||||||
$TOOLSDIR/list_unreleased_changes.sh stable/$SERIES $repos
|
$TOOLSDIR/list_unreleased_changes.sh stable/$SERIES $repos
|
||||||
|
@ -45,10 +45,11 @@ function list_changes {
|
|||||||
echo "$repo has not yet been released"
|
echo "$repo has not yet been released"
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
local end_sha=$(git log -n 1 --pretty=tformat:%h)
|
end_sha=$(git log -n 1 --pretty=tformat:%h)
|
||||||
echo "Changes between $prev_tag and $end_sha"
|
echo "Changes between $prev_tag and $end_sha"
|
||||||
echo
|
echo
|
||||||
git log --no-color --no-merges --format='%h %ci %s' --graph ${prev_tag}..${end_sha}
|
git log --no-color --no-merges --format='%h %ci %s' \
|
||||||
|
--graph ${prev_tag}..${end_sha}
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ END="$1"
|
|||||||
shift
|
shift
|
||||||
REPOS="$@"
|
REPOS="$@"
|
||||||
|
|
||||||
function get_branch_end() {
|
function get_branch_end {
|
||||||
local branch="$1"
|
local branch="$1"
|
||||||
|
|
||||||
if git tag | grep -q ${branch}-eol; then
|
if git tag | grep -q ${branch}-eol; then
|
||||||
@ -43,9 +43,9 @@ function get_branch_end() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_branch_base() {
|
function get_branch_base {
|
||||||
local branch="$1"
|
local branch="$1"
|
||||||
local scan_start="$(get_branch_end $branch)"
|
scan_start="$(get_branch_end $branch)"
|
||||||
|
|
||||||
git log --decorate --oneline ..${scan_start} \
|
git log --decorate --oneline ..${scan_start} \
|
||||||
| grep tag: \
|
| grep tag: \
|
||||||
@ -54,15 +54,15 @@ function get_branch_base() {
|
|||||||
| cut -f1 -d')'
|
| cut -f1 -d')'
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_lines() {
|
function count_lines {
|
||||||
git ls-files | xargs wc -l | tail -n 1 | awk '{print $1}'
|
git ls-files | xargs wc -l | tail -n 1 | awk '{print $1}'
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_files() {
|
function count_files {
|
||||||
git ls-files | wc -l
|
git ls-files | wc -l
|
||||||
}
|
}
|
||||||
|
|
||||||
function git_ls_tree() {
|
function git_ls_tree {
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
local extension="$2"
|
local extension="$2"
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ function git_ls_tree() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function shas_at_tag() {
|
function shas_at_tag {
|
||||||
# Produce a list of shas used by objects representing files with
|
# Produce a list of shas used by objects representing files with
|
||||||
# real content at the tag point
|
# real content at the tag point
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
@ -92,7 +92,7 @@ function shas_at_tag() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_unchanged_files() {
|
function count_unchanged_files {
|
||||||
local start="$1"
|
local start="$1"
|
||||||
local end="$2"
|
local end="$2"
|
||||||
local extension="$3"
|
local extension="$3"
|
||||||
|
Loading…
Reference in New Issue
Block a user