vitess-gh/.github/workflows/cluster_endtoend_12.yml

54 строки
1.8 KiB
YAML
Исходник Обычный вид История

# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"
name: Cluster (12)
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Run endtoend tests on Cluster (12)
runs-on: ubuntu-18.04
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Tune the OS
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range
flaky onlineddl tests: reduce -online_ddl_check_interval (#7847) * flaky onlineddl tests: reduce -online_ddl_check_interval Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * remove duplicate flag entry Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * temporary check for net.ipv4.ip_local_port_range Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * remove temporary check Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * tune up the OS Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * flaky onlineddl tests: reduce -online_ddl_check_interval Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * remove duplicate flag entry Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * temporary check for net.ipv4.ip_local_port_range Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * remove temporary check Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * generate_ci_workflows Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: update status just before running gh-ost Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * curl timeout; debug info Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more debug info Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * removed debug info; enforce error status Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * temporary experiment: skip curl Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: 127.0.0.1 Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: no hooks Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * more debug messages Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * restore hooks Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * remove extra messages Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: print gh-ost log Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: no hooks Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * gh-ost with more log messages Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * replacing all occurances of localhost with 127.0.0.1 Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * write hostname in /etc/hosts Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * cleanup Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * reverted gh-ost binary to original Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> * experiment: remove port range Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
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!
- name: Check out code
uses: actions/checkout@v2
- name: Get dependencies
run: |
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
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
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
- name: Run cluster endtoend test
timeout-minutes: 30
run: |
source build.env
eatmydata -- go run test.go -docker=false -print-log -follow -shard 12