Skip to content

Commit

Permalink
VReplication: add vector support to workflows (#5472)
Browse files Browse the repository at this point in the history
* Add support for vectors in vreplication workflows. unit and e2e tests. Update cnf file to add loose_with_ps_vectors

Signed-off-by: Rohit Nayak <[email protected]>

* Self review fixes. Add e2e TestVector to CI

Signed-off-by: Rohit Nayak <[email protected]>

* Simplify unit test CI workflow to debug failure

Signed-off-by: Rohit Nayak <[email protected]>

* Skip test on errors on setting with_ps_vectors

Signed-off-by: Rohit Nayak <[email protected]>

* Revert debug mods to unit_race.yml

Signed-off-by: Rohit Nayak <[email protected]>

* Unit test race is again failing with no logs. So modify CI workflow temporarily to get full detail to debug random failures apparently unrelated to this PR

Signed-off-by: Rohit Nayak <[email protected]>

* Setup templating for vectors vreplication build

Signed-off-by: Dirkjan Bussink <[email protected]>

* Add vcopier unit test. Insert additional rows in e2e test after copy phase to test replication phase

Signed-off-by: Rohit Nayak <[email protected]>

* Switch shard for vector test to correct one

Signed-off-by: Rohit Nayak <[email protected]>

* Use vectors build for unit tests

Signed-off-by: Dirkjan Bussink <[email protected]>

* Refactor tests: move vector unit tests to separate files

Signed-off-by: Rohit Nayak <[email protected]>

* recognize ERVectorDimensionsMismatch      = ErrorCode(4501) as unrecoverable

Signed-off-by: Shlomi Noach <[email protected]>

* Unit race still failing without details:-(. Commenting out the summary code which seems to be redacting the details

Signed-off-by: Rohit Nayak <[email protected]>

* Make tests non-skippable

Signed-off-by: Rohit Nayak <[email protected]>

* Move unit race to vector image

Signed-off-by: Rohit Nayak <[email protected]>

* Add AWS creds to unit race because we need it for S3 access

Signed-off-by: Rohit Nayak <[email protected]>

* Mute tool outputs

Signed-off-by: Rohit Nayak <[email protected]>

* Recreate mysql80 unit test

Signed-off-by: Rohit Nayak <[email protected]>

---------

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Shlomi Noach <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent db18b04 commit 3e48cc6
Show file tree
Hide file tree
Showing 75 changed files with 553 additions and 200 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_backup_pitr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_mysql80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_mysql_server_vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_onlineddl_revert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_onlineddl_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_onlineddl_vrepl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_onlineddl_vrepl_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_schemadiff_vrepl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_tabletmanager_tablegc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_topo_connection_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cluster_endtoend_vreplication_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ jobs:
sudo apt-get -qq install -y make unzip g++ etcd curl git wget awscli eatmydata xz-utils libncurses5
sudo service etcd stop
# Get latest version of mysql from s3 bucket
LATEST_BUILD=$(aws s3api list-objects-v2 --bucket "planetscale-mysql-server-private-ci-artifacts" --prefix mysql/main/dist --query 'reverse(sort_by(Contents[?contains(Key, `jammy`)], &LastModified))[:1].Key' --output=text)
echo "latest build is $LATEST_BUILD"
# Pin this to 8.0.34
LAST_BUILD="mysql/main/8.0.34.20240216-ps-6ce6a79427b/dist/mysql-8.0.34.20240216-ps-6ce6a79427b-jammy-linux-x86_64.tar.gz"
echo "installing psdb mysql $LAST_BUILD"
aws s3 cp "s3://planetscale-mysql-server-private-ci-artifacts/${LAST_BUILD}" .
sudo tar xf $(basename $LAST_BUILD) -v -C /usr --strip-components=1
Expand Down
Loading

0 comments on commit 3e48cc6

Please sign in to comment.