Skip to content
Merged
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
28 changes: 14 additions & 14 deletions .github/workflows/cluster_endtoend_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
with:
go-version: 1.15

- name: Check out v8.0.0
- name: Check out v9.0.0
uses: actions/checkout@v2
with:
ref: v8.0.0
ref: v9.0.0

- name: Get dependencies
run: |
# This prepares general purpose binary dependencies
# as well as v8.0.0 specific go modules
# as well as v9.0.0 specific go modules
sudo apt-get update
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
sudo service mysql stop
Expand All @@ -36,28 +36,28 @@ jobs:
sudo apt-get update
sudo apt-get install percona-xtrabackup-24

- name: Building v8.0.0 binaries
- name: Building v9.0.0 binaries
timeout-minutes: 10
run: |
# We build v8.0.0 binaries and save them in a temporary location
# We build v9.0.0 binaries and save them in a temporary location
source build.env
make build
mkdir -p /tmp/vitess-build-v8.0.0/
cp -R bin /tmp/vitess-build-v8.0.0/
mkdir -p /tmp/vitess-build-v9.0.0/
cp -R bin /tmp/vitess-build-v9.0.0/

- name: Check out HEAD
uses: actions/checkout@v2

- name: Run cluster endtoend test v8.0.0 (create cluster)
- name: Run cluster endtoend test v9.0.0 (create cluster)
timeout-minutes: 5
run: |
# By checking out we deleted bin/ directory. We now restore our pre-built v8.0.0 binaries
cp -R /tmp/vitess-build-v8.0.0/bin .
# By checking out we deleted bin/ directory. We now restore our pre-built v9.0.0 binaries
cp -R /tmp/vitess-build-v9.0.0/bin .
# create the directory where we store test data; ensure it is empty:
rm -rf /tmp/vtdataroot
mkdir -p /tmp/vtdataroot
source build.env
# We pass -skip-build so that we use the v8.0.0 binaries, not HEAD binaries
# We pass -skip-build so that we use the v9.0.0 binaries, not HEAD binaries
eatmydata -- go run test.go -skip-build -keep-data -docker=false -print-log -follow -shard 28

- name: Check out HEAD
Expand All @@ -74,7 +74,7 @@ jobs:
mkdir -p /tmp/vitess-build-head/
cp -R bin /tmp/vitess-build-head/

- name: Run cluster endtoend test HEAD based on v8.0.0 data (upgrade path)
- name: Run cluster endtoend test HEAD based on v9.0.0 data (upgrade path)
timeout-minutes: 5
run: |
# /tmp/vtdataroot exists from previous test
Expand All @@ -95,11 +95,11 @@ jobs:
eatmydata -- go run test.go -skip-build -keep-data -docker=false -print-log -follow -shard 28


- name: Run cluster endtoend test v8.0.0 based on HEAD data (downgrade path)
- name: Run cluster endtoend test v9.0.0 based on HEAD data (downgrade path)
timeout-minutes: 5
run: |
# /tmp/vtdataroot exists from previous test
cp -R /tmp/vitess-build-v8.0.0/bin .
cp -R /tmp/vitess-build-v9.0.0/bin .

source build.env
# We again built manually and there's no need for the test to build.
Expand Down