Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More 22.04 release process changes #217

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions _charms-git-diff
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#!/bin/bash -e
# Get the git status of the charms -- i.e. what has changed

charms="$(cat charms.txt)"
charms=$(cd charms && ls -d1 *)

for charm in $charms; do
if [ ! -d "charms/$charm" ]; then
echo "Use ./get-charms master to clone the charm dirs first ($charm not found)"
#exit 1
fi
done

for charm in $charms; do
echo "===== $charm git status ====="
Expand Down
9 changes: 1 addition & 8 deletions _charms-git-status
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
#!/bin/bash -e
# Get the git status of the charms -- i.e. what has changed

charms="$(cat charms.txt)"

for charm in $charms; do
if [ ! -d "charms/$charm" ]; then
echo "Use ./get-charms master to clone the charm dirs first ($charm not found)"
#exit 1
fi
done
charms=$(cd charms && ls -d1 *)

for charm in $charms; do
echo "===== $charm git status ====="
Expand Down
35 changes: 0 additions & 35 deletions _do-batch-add-build-lock-file

This file was deleted.

29 changes: 0 additions & 29 deletions _do-batch-cp-stable-candidate

This file was deleted.

32 changes: 0 additions & 32 deletions _do-batch-flip-master-libs-to-stable

This file was deleted.

34 changes: 0 additions & 34 deletions _do-clean-reactive

This file was deleted.

7 changes: 6 additions & 1 deletion _do-reset-hard-branch
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash -e
# Do a reset in all the charms; great for undoing damage and starting again.

charms="$(cat charms.txt)"
charms=$(cd charms && ls -d1 *)
branch=$1

if [ -z "$branch" ]; then
echo "Please provide the branch name as the param."
exit 1
fi

for charm in $charms; do
if [ ! -d "charms/$charm" ]; then
echo "Use ./get-charms master to clone the charm dirs first ($charm not found)"
Expand Down
8 changes: 7 additions & 1 deletion _do-single-charm-amend-review
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
topic=$1
script_dir="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"

if [ -z "$topic" ]; then
echo "Please provide the topic as the only param."
echo "Usage $0 <topic>"
exit 1
fi

_dir=$(pwd)
# verify that the branch isn't master
branch=$(git branch --show-current | tr -d '\n')
Expand All @@ -20,7 +26,7 @@ if [[ -n "$git_status" ]]; then
echo "Updating, no-edit-amend and git review with topic for ${_dir}"
git add .
git commit --amend --no-edit
git review -t charmhub-migration-yoga
git review -t $topic
else
echo "Nothing to do as git repo is not dirty."
fi
24 changes: 24 additions & 0 deletions _do-single-charm-review
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -e
# git add . then amend no-edit and then review. Topic in param
# Does a single charm; use with do-batch-with to do the entire batch.

topic=$1
script_dir="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"

if [ -z "$topic" ]; then
echo "Please provide the topic as the only param."
echo "Usage $0 <topic>"
exit 1
fi

_dir=$(pwd)
# verify that the branch isn't master
branch=$(git branch --show-current | tr -d '\n')
if [[ "$branch" == "master" ]];
then
echo "Branch is ${_dir}"
echo "Branch is master - not updating."
exit 0
fi

git review -t $topic
87 changes: 0 additions & 87 deletions _ensure_master_libraries_all_charms

This file was deleted.

51 changes: 0 additions & 51 deletions _ensure_reactive_charms_master_libraries

This file was deleted.

Loading