2021-02-07 02:46:39 +03:00
|
|
|
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"
|
2021-02-05 23:05:29 +03:00
|
|
|
|
2021-01-06 17:25:50 +03:00
|
|
|
name: Cluster (12)
|
2019-11-07 22:20:39 +03:00
|
|
|
on: [push, pull_request]
|
2021-07-08 13:58:12 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2019-11-07 22:20:39 +03:00
|
|
|
|
2021-07-08 13:58:12 +03:00
|
|
|
jobs:
|
2019-11-07 22:20:39 +03:00
|
|
|
build:
|
2021-01-12 22:17:34 +03:00
|
|
|
name: Run endtoend tests on Cluster (12)
|
2021-03-05 05:18:58 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2019-11-07 22:20:39 +03:00
|
|
|
|
2019-12-31 23:15:39 +03:00
|
|
|
steps:
|
2019-11-07 22:20:39 +03:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-06-07 13:15:32 +03:00
|
|
|
go-version: 1.16
|
2019-11-07 22:20:39 +03:00
|
|
|
|
2021-04-20 12:17:42 +03:00
|
|
|
- name: Tune the OS
|
|
|
|
run: |
|
|
|
|
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range
|
|
|
|
|
2021-04-20 09:09:33 +03:00
|
|
|
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185
|
|
|
|
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file
|
|
|
|
run: |
|
|
|
|
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
|
|
|
|
# DON'T FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADRESSED!
|
|
|
|
|
2019-11-07 22:20:39 +03:00
|
|
|
- name: Check out code
|
2019-12-17 19:26:12 +03:00
|
|
|
uses: actions/checkout@v2
|
2019-11-07 22:20:39 +03:00
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
2019-12-13 17:55:19 +03:00
|
|
|
sudo apt-get update
|
2020-02-07 13:58:55 +03:00
|
|
|
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
|
2019-11-07 22:20:39 +03:00
|
|
|
sudo service mysql stop
|
|
|
|
sudo service etcd stop
|
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
|
|
|
go mod download
|
2021-01-06 17:25:50 +03:00
|
|
|
|
2020-01-29 21:19:46 +03:00
|
|
|
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
|
|
|
|
sudo apt-get install -y gnupg2
|
|
|
|
sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install percona-xtrabackup-24
|
2020-02-10 07:07:01 +03:00
|
|
|
|
2021-01-06 17:25:50 +03:00
|
|
|
- name: Run cluster endtoend test
|
2020-03-26 00:12:03 +03:00
|
|
|
timeout-minutes: 30
|
2019-11-07 22:20:39 +03:00
|
|
|
run: |
|
2019-12-26 09:19:10 +03:00
|
|
|
source build.env
|
2021-01-06 17:25:50 +03:00
|
|
|
eatmydata -- go run test.go -docker=false -print-log -follow -shard 12
|