Skip to content

Commit

Permalink
Merge branch 'master' into feature/support-ssh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvisa authored Jun 9, 2021
2 parents 08b5106 + 4f5dacc commit c2e6821
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-tiup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ jobs:
fi
echo ::set-output name=REL_VER::$REL_VER
BUILD_FLAGS='-trimpath -buildmode=pie' make build ctl && echo "Build success."
BUILD_FLAGS='-trimpath -buildmode=pie' make build && \
BUILD_FLAGS='-trimpath -buildmode=pie' make ctl && \
echo "Build success."
checksum_file=checksum.${{ matrix.os }}-${{ matrix.arch }}.txt
checksum_header="TiUP $REL_VER (${actor}@${event}) ${{ github.run_id }}"
Expand All @@ -116,7 +118,6 @@ jobs:
wget -O $TMP_DIR/tiup-linux-amd64.tar.gz -q https://tiup-mirrors.pingcap.com/tiup-linux-amd64.tar.gz
tar -zxf $TMP_DIR/tiup-linux-amd64.tar.gz -C $TIUP_HOME/bin && chmod 755 $TIUP_HOME/bin/tiup
curl -s https://tiup-mirrors.pingcap.com/root.json -o $TIUP_HOME/bin/root.json
$TIUP_HOME/bin/tiup update --self
mkdir -p package
cp $TIUP_HOME/bin/root.json bin/root.json
Expand Down
2 changes: 1 addition & 1 deletion tests/tiup-cluster/script/cmd_subtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function cmd_subtest() {

client=""
if [ $native_ssh == true ]; then
client="--native-ssh"
client="--ssh=system"
fi

# identify SSH via ssh-agent
Expand Down
2 changes: 1 addition & 1 deletion tests/tiup-cluster/script/scale_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function scale_core() {

client=""
if [ $native_ssh == true ]; then
client="--native-ssh"
client="--ssh=system"
fi

name="test_scale_core_$RANDOM"
Expand Down
2 changes: 1 addition & 1 deletion tests/tiup-cluster/script/scale_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function scale_tools() {

client=""
if [ $native_ssh == true ]; then
client="--native-ssh"
client="--ssh=system"
fi

name="test_scale_tools_$RANDOM"
Expand Down
4 changes: 2 additions & 2 deletions tests/tiup-cluster/script/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function instance_num() {

client=""
if [ $native_ssh == true ]; then
client="--native-ssh"
client="--ssh=system"
fi

count=$(tiup-cluster $client display $name | grep "Total nodes" | awk -F ' ' '{print $3}')
Expand All @@ -31,7 +31,7 @@ function wait_instance_num_reach() {

client=""
if [ $native_ssh == true ]; then
client="--native-ssh"
client="--ssh=system"
fi

for ((i=0;i<120;i++))
Expand Down

0 comments on commit c2e6821

Please sign in to comment.