Skip to content

Commit b72ebfb

Browse files
author
Shlomi Noach
committed
replication tests CI: switch to .tar.xz binaries, upgrade dbdeployer
1 parent a6d0d5c commit b72ebfb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

script/cibuild-gh-ost-replica-tests

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ whoami
66

77
# Clone gh-ost-ci-env
88
# Only clone if not already running locally at latest commit
9-
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git real-tar-gz | cut -f1)
9+
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git tar-xz-binaries | cut -f1)
1010
local_commit="unknown"
1111
[ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
1212

@@ -18,8 +18,8 @@ if [ "$remote_commit" != "$local_commit" ] ; then
1818
git clone https://github.com/github/gh-ost-ci-env.git
1919
(
2020
cd gh-ost-ci-env
21-
git fetch origin real-tar-gz
22-
git checkout real-tar-gz
21+
git fetch origin tar-xz-binaries
22+
git checkout tar-xz-binaries
2323
)
2424
fi
2525

@@ -35,7 +35,7 @@ test_mysql_version() {
3535

3636
mkdir -p sandbox/binary
3737
rm -rf sandbox/binary/*
38-
gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/"$mysql_version".tar.gz --unpack-version="$mysql_version" --sandbox-binary ${PWD}/sandbox/binary
38+
gh-ost-ci-env/bin/linux/dbdeployer unpack gh-ost-ci-env/mysql-tarballs/"$mysql_version".tar.xz --unpack-version="$mysql_version" --sandbox-binary ${PWD}/sandbox/binary
3939

4040
mkdir -p sandboxes
4141
rm -rf sandboxes/*
@@ -67,9 +67,9 @@ test_mysql_version() {
6767
echo "Building..."
6868
. script/build
6969
# Test all versions:
70-
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
70+
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.xz" | while read f ; do basename $f ".tar.xz" ; done | sort -r | while read mysql_version ; do
7171
echo "found MySQL version: $mysql_version"
7272
done
73-
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
73+
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.xz" | while read f ; do basename $f ".tar.xz" ; done | sort -r | while read mysql_version ; do
7474
test_mysql_version "$mysql_version"
7575
done

0 commit comments

Comments
 (0)