Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost: load query configs in vtgate #15582

Closed
wants to merge 127 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
d4bf38c
fixed function call in default value of a column and added tests
GuptaManan100 Jul 14, 2021
2c416fa
specify collate earlier in command because parser for now expects it so
GuptaManan100 Jul 15, 2021
94d3d54
Merge pull request #8476 from planetscale/function-call-default-11.0
harshit-gangal Jul 15, 2021
0d56514
Fixing multiple issues related to onlineddl/lifecycle: - stale migrat…
shlomi-noach Jul 20, 2021
b0a094d
Merge pull request #8517 from planetscale/onlineddl-stale-migration-c…
deepthi Jul 23, 2021
35e0dd4
Change local example to use v2 vreplication flows
rohit-nayak-ps Jun 27, 2021
02f2a7a
Merge pull request #8527 from planetscale/rn-local-example-v2-11.0
shlomi-noach Jul 25, 2021
3e2206d
default should not add paranthesis for boolean values
GuptaManan100 Jul 20, 2021
0abe768
Merge pull request #8531 from planetscale/default-bool-11
systay Jul 26, 2021
b8f1195
OnlineDDL: SHOW VITESS_MIGRATION ... LOGS
shlomi-noach Jul 26, 2021
8351c4e
Removed ShowMigrationLogs primitive. Now using plain Send
shlomi-noach Jul 26, 2021
810c792
Merge pull request #8532 from planetscale/onlineddl-show-vitess-migra…
shlomi-noach Jul 26, 2021
5497bad
Add metric to measure how often a picker doesn't find tablets to stre…
rohit-nayak-ps Jun 30, 2021
bad4a9b
Ignore SBR statements from pt-table-checksum
rohit-nayak-ps Jun 29, 2021
5687384
check for topo.Error before clearing the cache value
harshit-gangal May 26, 2021
1e6cf0f
added an end to end test for testing the change and fixed consul startup
GuptaManan100 May 26, 2021
b528506
reload test has both the tests
harshit-gangal May 27, 2021
d226399
check for topo.Error and not *topo.Error, fix unit test to send the c…
harshit-gangal May 27, 2021
2444bd7
changed default server port in consul setup to allow running multiple…
GuptaManan100 May 27, 2021
b8d4ab0
added bind address to consul args
harshit-gangal May 27, 2021
78486ee
increase timeout
harshit-gangal May 27, 2021
cb71762
Fix vreplication error metric
rohit-nayak-ps Jul 16, 2021
3723a87
Return from throttler goroutine if context is cancelled to prevent go…
rohit-nayak-ps Jul 17, 2021
b9478f0
even more check for ctx.Done()
shlomi-noach Jul 17, 2021
807c67b
Add BIT datatype to list of byte comparable types
rohit-nayak-ps Jun 29, 2021
75df633
Delete consistent lookup test for BIT datatypes since it is now compa…
rohit-nayak-ps Jun 30, 2021
0c4e5e5
Log error output from CreateKeyspace, which seems to randomly fail in CI
rohit-nayak-ps Jul 2, 2021
8bd4e35
Truncate logs and db log messages to prevent huge failing queries spa…
rohit-nayak-ps Jul 22, 2021
a63bceb
Merge pull request #8533 from planetscale/topo-qs-fix-11
harshit-gangal Jul 26, 2021
cc2de83
Merge pull request #8536 from planetscale/rn-8403-release-11
rohit-nayak-ps Jul 26, 2021
2a7b4be
disable allowing set statements on system settings by default
harshit-gangal Jul 26, 2021
82ae37c
Merge pull request #8540 from planetscale/sys-set-disable
systay Jul 27, 2021
aa798b8
Release commit for 11.0.0
askdba Jul 27, 2021
80598cc
Back to dev mode
askdba Jul 27, 2021
65ad196
Merge pull request #8549 from planetscale/at-release-11.0.0
askdba Jul 27, 2021
a43d572
Copy parameter data from byte buffer in COM_STMT_SEND_LONG_DATA
harshit-gangal Jun 9, 2021
3c7d14f
Handle subquery merging with references correctly
systay Aug 23, 2021
b7cc1d1
Merge pull request #8661 from planetscale/fix-8638-in-11
systay Aug 23, 2021
af29ac6
onlineddl Executor: build schema with DBA user
shlomi-noach Aug 12, 2021
b102017
Refresh SrvVSchema after an ExternalizeVindex: was missing
rohit-nayak-ps Jun 23, 2021
4d994df
Merge pull request #8667 from planetscale/ds-backport-8624
deepthi Aug 23, 2021
e59d3ce
Merge pull request #8669 from planetscale/ds-port-8373-to-11
deepthi Aug 23, 2021
ed2c407
Make it clearer which GTIDSet we are using.
aquarapid Jun 12, 2021
e79d0b2
The difference between two identical GTIDSet values should be empty, not
aquarapid Jun 12, 2021
b354ba6
We use a sentinel file to avoid replication being restarted
aquarapid Jun 12, 2021
0103fa1
Add additional logging for most of the tablet replication RPC endpoints,
aquarapid Jun 12, 2021
bde5f7f
Add test for a series of trivial ERS failovers to catch problems like
aquarapid Jun 15, 2021
027d616
Addition of an end-to-end test to reproduce the panic of #8694
frouioui Aug 30, 2021
6e97c45
Avoiding panic in RenameFields.renameFields method
frouioui Aug 30, 2021
10630c5
Merge pull request #8744 from planetscale/jg_ers_11
deepthi Aug 31, 2021
93a5e93
Improved 8694 E2E test and for loop in renameFields
frouioui Aug 31, 2021
5e5e8c0
Fixing renameFields for loop logic
frouioui Sep 1, 2021
59207f4
Fixed loop logic erro
frouioui Sep 1, 2021
bcd3534
added a fields len check in rename_fields engine to avoid renamefield…
harshit-gangal Sep 2, 2021
6e046d7
default to primary tablet if not set
harshit-gangal Sep 1, 2021
e272029
Merge pull request #8766 from planetscale/fix-8676-in-11
harshit-gangal Sep 6, 2021
e972eea
Merge pull request #8746 from planetscale/fix-8694-in-11
harshit-gangal Sep 6, 2021
08b8cb1
Updated Makefile do_release script to include godoc steps
frouioui Jul 27, 2021
88217f1
Merge pull request #8787 from planetscale/go-tags-release-to-11
askdba Sep 9, 2021
92ac1ff
Release commit for 11.0.1
askdba Sep 9, 2021
0b13575
Back to dev mode
askdba Sep 9, 2021
9816e66
Merge pull request #8788 from planetscale/at-release-11.0.1
askdba Sep 9, 2021
9341a95
fix how we identify a generated column
tokikanno Sep 3, 2021
e8be8b8
Merge pull request #8796 from vitessio/BackportPR8763To11.0
deepthi Sep 13, 2021
d0168ff
Fixed regression for grouping by integer functions
systay Sep 22, 2021
584f92d
Merge pull request #8866 from planetscale/backport-of-8856-to-11
GuptaManan100 Sep 23, 2021
4559f1d
Merge pull request #8730 from vitessio/TestVReplCharColWBinaryCollation
sougou Oct 7, 2021
dff689c
Merge pull request #8957 from planetscale/Backport8730-11.0
deepthi Oct 8, 2021
b45b7bb
build(deps): bump log4j-api from 2.13.3 to 2.15.0 in /java
dependabot[bot] Dec 10, 2021
d9783a4
CI: ubuntu-latest already has MySQL 8.0, don't try to install it
deepthi Dec 13, 2021
e839084
CI: Install latest MySQL 8.0
deepthi Dec 13, 2021
8732ef0
CI: some tests don't need MySQL installed, for others, let's install …
deepthi Dec 13, 2021
73d394b
Merge pull request #9374 from planetscale/fp-backport-ci-build-11
frouioui Dec 14, 2021
afce07d
Merge remote-tracking branch 'upstream/release-11.0' into fp-backport…
frouioui Dec 14, 2021
4199080
Merge pull request #9364 from planetscale/fp-backport-log4j-11
frouioui Dec 14, 2021
4f80587
Release commit for 11.0.2
frouioui Dec 14, 2021
73338de
Back to dev mode
frouioui Dec 14, 2021
9329e6e
Merge pull request #9378 from planetscale/fp-release-11.0.2
deepthi Dec 16, 2021
eab6784
build(deps): bump log4j-core from 2.15.0 to 2.16.0 in /java
dependabot[bot] Dec 14, 2021
2c0007f
Merge pull request #9395 from planetscale/fp-backport-log4j-1.16-11
deepthi Dec 16, 2021
5e8f674
fix: change tagged docker images in the operator example to use v11.0.3
frouioui Dec 16, 2021
5013cb6
Merge pull request #9403 from planetscale/fp-change-vtop-example-11
askdba Dec 17, 2021
2412024
Release commit for 11.0.3
frouioui Dec 17, 2021
44b9136
Back to dev mode
frouioui Dec 17, 2021
8251a77
Merge pull request #9412 from planetscale/fp-release-11.0.3
frouioui Dec 17, 2021
e97501a
updated the 11_0 release documents with latest known issues
frouioui Dec 17, 2021
b590b83
empty commit
frouioui Dec 20, 2021
511cb8c
build(deps): bump log4j-api from 2.16.0 to 2.17.0 in /java
dependabot[bot] Dec 18, 2021
51b706d
Bump to latest version again
dbussink Jan 4, 2022
3560a65
Merge pull request #9464 from planetscale/fp-backport-log4j-2.17-to-11.0
frouioui Jan 5, 2022
5f41ad4
updated 11.0 release notes with latest log4j information and more exp…
frouioui Jan 5, 2022
47cbc22
Merge pull request #9421 from planetscale/fp-update-11.0-docs
askdba Jan 10, 2022
cb142ee
Release commit for 11.0.4
frouioui Jan 10, 2022
432b9c8
Merge pull request #8701 from planetscale/fixing-lookup-vindex-during…
harshit-gangal Sep 6, 2021
0c343a5
Merge pull request #9481 from planetscale/switch_writes_lock_table
harshit-gangal Jan 14, 2022
9bb28af
Fix previous merges by adding public Tables function to trafficSwitcher.
aliulis Mar 1, 2022
46b407a
Fix TargetTabletType in dml_cases tests.
aliulis Mar 7, 2022
7342376
VStreamer: recompute table plan if a new table is encountered for the…
rohit-nayak-ps Mar 26, 2022
c259600
backport Make vtgate streamlog buffer configurable https://github.com…
DeathBorn Jun 30, 2022
f7cb704
backport Add SessionUUID and transaction mark to vtgate query logs ht…
DeathBorn Jun 30, 2022
6ca3e0d
backport Fix vtgate query log table name extraction for DML statement…
DeathBorn Jun 30, 2022
3f6945d
backport https://github.com/vitessio/vitess/commit/0889592b49e97761cc…
DeathBorn Jul 4, 2022
8f70b10
Add `VStreamerCount` stat to `vttablet` (#11978)
timvaillancourt Dec 20, 2022
be49026
VStream API: Use tablet picker to select tablet to stream from. Subs…
rohit-nayak-ps Jul 10, 2021
5e705b5
Add flag to VStream API to stop streaming on reshard and return the j…
rohit-nayak-ps Aug 14, 2021
9c88d88
Fix TestNoInitialKeyspace
rohit-nayak-ps Aug 15, 2021
2087d11
Fix backport https://github.com/vitessio/vitess/pull/8628
DeathBorn Jan 25, 2023
07effb3
backport partial: Update for new errcheck violations after rebase; ht…
DeathBorn Jan 26, 2023
dcd0e5a
Added a mutex for vstreamer manager errors
frouioui Aug 27, 2021
0c19762
Fix issue where sending events received from source into the target c…
rohit-nayak-ps Jun 24, 2022
49d066b
Backport fix: Accomodate missing changes for https://github.com/vites…
rohit-nayak-ps Sep 30, 2022
11ba806
Backport fix: Merge pull request #9145 from planetscale/NormalizeHexV…
systay Nov 4, 2021
573b2fd
Backport to v11
mattlord Dec 7, 2021
70c1bb7
Backport to v11
mattlord Dec 8, 2021
49d5ba3
Backport fix: https://github.com/vitessio/vitess/pull/10260
harshit-gangal May 11, 2022
3cf20dd
Quick fix for schema tracker not recognizing RENAME for schema reloading
aquarapid Oct 8, 2021
de77e50
Backport to v11 https://github.com/vitessio/vitess/pull/9324
mvh-stripe Nov 30, 2021
fc9c4b9
Backport to v11 https://github.com/vitessio/vitess/pull/9324
rohit-nayak-ps Dec 4, 2021
8a1032b
Backport to v11 https://github.com/vitessio/vitess/pull/9324
rohit-nayak-ps Dec 8, 2021
862e317
Backport to v11 https://github.com/vitessio/vitess/pull/8634 reset ta…
deepthi Aug 16, 2021
4d028a5
adding continueAfterCopyWithOwner flag
zhePin Jul 30, 2021
b4e50ec
Externalize VIndexes properly when not stopping after copy
mattlord Feb 24, 2022
5d8fa9a
Update tests now that we check BinlogSource when externalizing lookup…
mattlord Feb 24, 2022
ff8aa34
redis api and cache key gen
paukste3000 Mar 27, 2024
83dcd06
boost: draft for vtgate boost query checks (#8)
benetis Mar 27, 2024
bb85bb2
Merge pull request #9 from vinted/hackaton_liu_redis_api
paukste3000 Mar 27, 2024
67a1690
boost: load query filters configs and check for boost
benetis Mar 27, 2024
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
11 changes: 1 addition & 10 deletions .github/workflows/check_make_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,14 @@ jobs:
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range

# 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
sudo service mysql stop
sudo apt-get install -y make unzip g++ etcd curl git wget
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

- name: Run make minimaltools
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/check_make_sizegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,14 @@ jobs:
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range

# 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
sudo service mysql stop
sudo apt-get install -y make unzip g++ etcd curl git wget
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

- name: Run make minimaltools
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/check_make_visitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,14 @@ jobs:
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range

# 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
sudo service mysql stop
sudo apt-get install -y make unzip g++ etcd curl git wget
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

- name: Run make minimaltools
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/cluster_endtoend_mysql80.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (mysql80)
on: [push, pull_request]
jobs:

build:
name: Run endtoend tests on Cluster (mysql80)
runs-on: ubuntu-20.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

# 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 DEBIAN_FRONTEND="noninteractive" apt-get update

# Uninstall any previously installed MySQL first
sudo systemctl stop apparmor
sudo DEBIAN_FRONTEND="noninteractive" apt-get remove -y --purge mysql-server mysql-client mysql-common
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql

# Install mysql80
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | sudo debconf-set-selections
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i mysql-apt-config*
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server mysql-client

# Install everything else we need, and configure
sudo apt-get install -y make unzip g++ etcd curl git wget eatmydata
sudo service mysql stop
sudo service etcd stop
sudo bash -c "echo '/usr/sbin/mysqld { }' > /etc/apparmor.d/usr.sbin.mysqld" # https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1806263
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld || echo "could not remove mysqld profile"

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 mysql80
24 changes: 22 additions & 2 deletions .github/workflows/cluster_endtoend_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,32 @@ jobs:
run: |
# This prepares general purpose binary dependencies
# as well as v9.0.0 specific go modules

sudo DEBIAN_FRONTEND="noninteractive" apt-get update

# Uninstall any previously installed MySQL first
sudo systemctl stop apparmor
sudo DEBIAN_FRONTEND="noninteractive" apt-get remove -y --purge mysql-server mysql-client mysql-common
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql

# Install mysql80
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | sudo debconf-set-selections
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i mysql-apt-config*
sudo apt-get update
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server mysql-client

# Install everything else we need, and configure
sudo apt-get install -y make unzip g++ etcd curl git wget eatmydata
sudo service mysql stop
sudo service etcd stop
sudo bash -c "echo '/usr/sbin/mysqld { }' > /etc/apparmor.d/usr.sbin.mysqld" # https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1806263
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld || echo "could not remove mysqld profile"
go mod download

wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/cluster_endtoend_vstream_failover.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (vstream_failover)
on: [push, pull_request]
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (vstream_failover)')
cancel-in-progress: true

jobs:
build:
name: Run endtoend tests on Cluster (vstream_failover)
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

# 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 vstream_failover
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (vstream_stoponreshard_false)
on: [push, pull_request]
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (vstream_stoponreshard_false)')
cancel-in-progress: true

jobs:
build:
name: Run endtoend tests on Cluster (vstream_stoponreshard_false)
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

# 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 vstream_stoponreshard_false
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (vstream_stoponreshard_true)
on: [push, pull_request]
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (vstream_stoponreshard_true)')
cancel-in-progress: true

jobs:
build:
name: Run endtoend tests on Cluster (vstream_stoponreshard_true)
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

# 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 vstream_stoponreshard_true
31 changes: 23 additions & 8 deletions .github/workflows/e2e_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,38 @@ jobs:
run: |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range

# 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 DEBIAN_FRONTEND="noninteractive" apt-get update

# Uninstall any previously installed MySQL first
sudo systemctl stop apparmor
sudo DEBIAN_FRONTEND="noninteractive" apt-get remove -y --purge mysql-server mysql-client mysql-common
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql

# Install mysql80
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb
echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | sudo debconf-set-selections
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i mysql-apt-config*
sudo apt-get update
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server mysql-client

# Install everything else we need, and configure
sudo apt-get install -y make unzip g++ etcd curl git wget eatmydata
sudo service mysql stop
sudo service etcd stop
sudo bash -c "echo '/usr/sbin/mysqld { }' > /etc/apparmor.d/usr.sbin.mysqld" # https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1806263
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld || echo "could not remove mysqld profile"

go mod download

- name: Run make minimaltools
Expand Down
Loading
Loading