Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1098 commits
Select commit Hold shift + click to select a range
2f05ccc
Support Expression evalution for BindVariables and literals
saifalharthi Apr 9, 2020
8a546b8
Refactoring of expressions
systay Apr 9, 2020
b4f8ddc
Cleanup of test
systay Apr 9, 2020
8e858ed
Fix up some tests for last_insert_ID, databaste(), and variables
saifalharthi Apr 10, 2020
3f1fe3b
Fixed expression evaluation for Union and virtual tables
saifalharthi Apr 10, 2020
1b692d2
Fix plan tests and modify descriptions
saifalharthi Apr 10, 2020
230e34e
Supported evalution of column types
saifalharthi Apr 11, 2020
2601780
Handle type logic for binary operators
systay Apr 11, 2020
5f3c4b7
Merge pull request #6064 from planetscale/at-remove-marshaljson
harshit-gangal Apr 14, 2020
46c228e
Update test assertions
systay Apr 11, 2020
cfcb904
Code clean up
systay Apr 12, 2020
95f7309
Add expression evaluation fallback mechanism
rohit-nayak-ps Apr 14, 2020
085f7ff
Removed unused test
rohit-nayak-ps Apr 14, 2020
09e5e4e
Extract vtgate execution from primitive builder
rohit-nayak-ps Apr 14, 2020
ffddcc5
Support for literal float
rohit-nayak-ps Apr 14, 2020
5efc63a
Compute literal int during plan evaluation
rohit-nayak-ps Apr 14, 2020
f0711f1
Fix SingleRow's select cases test
saifalharthi Apr 14, 2020
4378c83
PlannedReparent: call SetReadOnly in PromoteReplica only after master…
deepthi Apr 8, 2020
3a1494e
vtctld: tablet proxy review comments
sougou Apr 14, 2020
0fa8c20
PlannedReparent: Rename PromoteSlave -> PromoteReplica. Deprecate
deepthi Apr 9, 2020
bfe7931
PlannedReparent: set ReadOnly on master if needed
deepthi Apr 11, 2020
eddbb58
PlannedReparent: tests for Promote failure, re-run failed PRS, PRS wi…
deepthi Apr 11, 2020
0e74446
Merge pull request #6062 from planetscale/ss-fix-vtctld-proxy
sougou Apr 14, 2020
bcebd61
use assertions in tests instead of if/else
deepthi Apr 15, 2020
54480bd
Use require to stop execution of tests on fatal errors
deepthi Apr 15, 2020
f427e6c
set plan for user defined variables
harshit-gangal Apr 8, 2020
2cba596
set plan engine to execute the primitive
harshit-gangal Apr 9, 2020
1fc7b80
fix test: changed varchar to varbinary in bindvars
harshit-gangal Apr 9, 2020
b2d874f
add float test for plan value
harshit-gangal Apr 9, 2020
363fc53
added license header
harshit-gangal Apr 14, 2020
0ac0ae4
helm: move current examples to legacy
sougou Apr 10, 2020
d8808db
helm: change examples to use new commands
sougou Apr 10, 2020
f9094ed
helm: improved commands
sougou Apr 11, 2020
6dee503
examples: helm and local matched commands
sougou Apr 15, 2020
446419e
Merge pull request #6035 from planetscale/set-plan
harshit-gangal Apr 15, 2020
c802dcc
Resolve merge conflict
saifalharthi Apr 15, 2020
1878444
set at global scope not allowed
harshit-gangal Apr 13, 2020
042bc4a
set system variable ignore operation
harshit-gangal Apr 13, 2020
368ef46
set system variable check and ignore operation
harshit-gangal Apr 13, 2020
32bafe0
added planbuilder test for sysvar check and ignore op
harshit-gangal Apr 14, 2020
fb3d3fc
added end to end test for set sysvar
harshit-gangal Apr 14, 2020
faae89a
Add StreamExecute for projection and add unreachable comment to arith…
saifalharthi Apr 15, 2020
2795069
added set op type for plan description
harshit-gangal Apr 15, 2020
556a494
Modified SysVarCheckAndIgnore to send query to vttablet for equality …
harshit-gangal Apr 15, 2020
d0618ed
Minor refactoring of VCursor
systay Apr 15, 2020
b56705b
added set primitive tests
harshit-gangal Apr 15, 2020
470a63c
modified sysvarIgnore op to store expr string than plan value
harshit-gangal Apr 15, 2020
90de2db
Merge pull request #6063 from planetscale/ss-pool-timeout
sougou Apr 15, 2020
545c432
Merge pull request #6050 from planetscale/ds-prs-fixes
deepthi Apr 15, 2020
d671c55
examples: vclient->vtctlclient
sougou Apr 15, 2020
d767b32
Merge pull request #6052 from planetscale/ss-vrepl-helm2
morgo Apr 16, 2020
6f5c62f
Harmonize local examples with helm improvements
morgo Apr 16, 2020
a7bef05
Add fix for slow start vtgate
morgo Apr 16, 2020
97f4aff
Merge pull request #6072 from planetscale/morgo-improve-local-guide
morgo Apr 16, 2020
48020c8
Merge pull request #6069 from planetscale/set-plan-sysvar
harshit-gangal Apr 16, 2020
e8497f7
Refactor EnsureVSchema to take in a cell
zmagg Apr 11, 2020
2a50906
Add cell to GetOrCreateShard to the test files too.
zmagg Apr 13, 2020
1724a71
Remove the nil check on CreateKeyspace to see if it lets you keep going
zmagg Apr 14, 2020
5c29a6b
Respond to code review. Add back in the nil check for CreateKeyspace.
zmagg Apr 15, 2020
ca85789
conditionally createkeyspace if it doesn't exist already.
zmagg Apr 16, 2020
72e75c1
ok try with the flaky test
zmagg Apr 16, 2020
b894ac1
add unit test for go/jsonutil/json.go
zouy414 Apr 16, 2020
9374f34
Move CRD to v1beta1
carsonoid Apr 16, 2020
0dc337b
Merge pull request #6074 from carsonoid/carsonoid-helm-crd
derekperkins Apr 16, 2020
6f00b12
Refactor CRD to support K8s 1.15 specific requirements
carsonoid Apr 16, 2020
acd335d
Reduce race in legacy_local_example
morgo Apr 16, 2020
843bde4
Merge pull request #6075 from carsonoid/carsonoid-helm-crd
morgo Apr 16, 2020
f49ce93
Merge remote-tracking branch 'upstream/master' into morgo-fix-legacy-…
morgo Apr 16, 2020
e2d1832
Merge pull request #6076 from planetscale/morgo-fix-legacy-local
morgo Apr 16, 2020
f8edec4
If the keyspace already exists, don't try to create it again, it'll
zmagg Apr 16, 2020
d391f0a
Move evaluation expression to its own package
saifalharthi Apr 17, 2020
06c21e1
Fix formatter check
saifalharthi Apr 17, 2020
2e9d293
Fix SHOW FULL COLUMNS for unqualified tables
saifalharthi Apr 17, 2020
23da224
Fix import
systay Apr 17, 2020
e07a694
Remove unused code
systay Apr 17, 2020
d8830ad
Add tests for Wordpress installation
systay Mar 2, 2020
c503963
Marked test as flaky
systay Apr 17, 2020
10960ae
Merge pull request #5898 from systay/test-wordpress-install
systay Apr 17, 2020
3b68965
Merge pull request #6078 from planetscale/sa-fix-show-columns
systay Apr 17, 2020
cc4f257
Merge pull request #6042 from planetscale/sa-expression-evalution
systay Apr 17, 2020
2fdb4d7
Add sql_mode to cnf so wordpress can create tables
systay Apr 17, 2020
f2ce1ea
Use apps/v1 for all statefulsets
carsonoid Apr 17, 2020
ff97c94
vttablet: fix panic in NewDBConnNoPool
sougou Apr 17, 2020
f25d4fe
Merge pull request #6083 from carsonoid/carsona-ppm-orch-up
derekperkins Apr 17, 2020
d70af23
vtgate send primitive: implement StreamExecute
dweitzman Apr 16, 2020
5f65ee6
Remove synchronizing VTGateConnection on itself
Apr 17, 2020
ac211ce
Merge pull request #6086 from planetscale/ss-exporter-panic
harshit-gangal Apr 18, 2020
5a34157
Merge pull request #6077 from dweitzman/send_streamexecute
dweitzman Apr 18, 2020
16a7886
Minor refactoring of vtgate plans
systay Apr 18, 2020
e346ba8
Merge pull request #6081 from planetscale/test-wordpress-install
systay Apr 18, 2020
4343c7d
Merge pull request #6079 from planetscale/remove-proxy
systay Apr 18, 2020
a2abb6c
Merge pull request #6090 from planetscale/fallback-expression-evaluation
harshit-gangal Apr 18, 2020
649d289
messager: fix bug in build row
sougou Apr 19, 2020
0a913c7
Merge pull request #6091 from planetscale/fix-messager-build-row
sougou Apr 19, 2020
5c9eaf1
yaml: default.yaml for doc
sougou Apr 9, 2020
9e29feb
yaml: start transitioning: PoolSize
sougou Apr 12, 2020
a5f1fda
yaml: conn pools WIP
sougou Apr 13, 2020
8aedcf3
yaml: simplify conn pool parameters
sougou Apr 14, 2020
bb5a457
yaml: oltp params
sougou Apr 14, 2020
0ab552b
yaml: waiter caps
sougou Apr 14, 2020
ca63dc5
yaml: change TabletConfig to be pointer-based
sougou Apr 14, 2020
4765ee1
yaml: hot row protection
sougou Apr 14, 2020
1da39de
yaml: consolidator
sougou Apr 14, 2020
7adcba5
yaml: heartbet
sougou Apr 15, 2020
ea22e4e
yaml: all other fields
sougou Apr 15, 2020
8f93fc4
yaml: add -tablet_config to read yaml
sougou Apr 15, 2020
25af6e7
yaml: deflake pool_test
sougou Apr 18, 2020
293845b
tabletserver: deflake a tx_pool_test
sougou Apr 19, 2020
3ebacbd
yaml: address review comments
sougou Apr 19, 2020
ed71474
Parser & AST changes
systay Apr 15, 2020
0ace233
Rewrite SET statements to normalized form before planning
systay Apr 16, 2020
1b47f25
changed handleSet and plan set to use new ast
harshit-gangal Apr 17, 2020
0c7d4c6
removed ExtractSetValues from analyzer
harshit-gangal Apr 17, 2020
ff80083
Remove unused code
systay Apr 18, 2020
754a4be
yaml: connpool.New -> connpool.NewPool
sougou Apr 19, 2020
19d215e
Merge pull request #6070 from planetscale/ss-tablet-yaml
sougou Apr 19, 2020
4d62a3e
Test cleanup
systay Apr 20, 2020
7589230
Merge pull request #6080 from planetscale/set-parser-update
systay Apr 20, 2020
5b64315
Allow SELECT options in any order
systay Apr 17, 2020
f56f86b
Add parser support for sql_calc_found_rows
systay Apr 17, 2020
c071043
Add preliminary support for sql_calc_found_rows
systay Apr 17, 2020
70eaf63
use topo method for parsing target string
harshit-gangal Apr 20, 2020
f7c6d8a
Merge pull request #6082 from planetscale/at-select-options
systay Apr 20, 2020
1397484
Merge pull request #6096 from planetscale/hg-fix-settarget-method
harshit-gangal Apr 20, 2020
ab13a0f
messager: add 33% jitter to postpone backoff (#6092)
derekperkins Apr 20, 2020
7b6402c
Merge pull request #6095 from planetscale/at-test-cleanup
harshit-gangal Apr 20, 2020
924824b
Merge pull request #5930 from tinyspeck/zmagg_rebuild_srv_schema_no_m…
Apr 20, 2020
3721a26
Initial commit
rohit-nayak-ps Apr 4, 2020
61d1fba
Added reusable log recorder
rohit-nayak-ps Apr 5, 2020
a072d82
Dry Run added to SwitchReads
rohit-nayak-ps Apr 5, 2020
d53732b
vtctl command refactor and e2e tests
rohit-nayak-ps Apr 6, 2020
f944667
Introduced abstraction for doing dry run logging
systay Apr 7, 2020
71bf474
Refactored dry run using abstraction. Modified grammatical tense of logs
rohit-nayak-ps Apr 7, 2020
271aad8
Added more dry-run logs
rohit-nayak-ps Apr 10, 2020
0c51c2a
Improved logging. Added e2e test for workflow with materialize streams
rohit-nayak-ps Apr 10, 2020
2811e34
DropSources: initial implementation
rohit-nayak-ps Apr 11, 2020
22b70a9
More tests for DropSources. Refactored switcher code
rohit-nayak-ps Apr 16, 2020
e78e6d1
Fixed tests
rohit-nayak-ps Apr 16, 2020
b57f24b
Added blacklist, drop shard/tables checks. Bug fixes
rohit-nayak-ps Apr 17, 2020
fe39a36
Refactored switcher interface code
rohit-nayak-ps Apr 17, 2020
5958349
Check for stopped streams should ignore frozen streams
rohit-nayak-ps Apr 17, 2020
90a5557
Merge pull request #6018 from planetscale/rn-migrate-dryrun
sougou Apr 21, 2020
71521fd
yaml: avoid panic on test failure
sougou Apr 18, 2020
b57fe7b
yaml: DBConfigs WIP
sougou Apr 16, 2020
89b5be5
yaml: DBConfigs more WIP
sougou Apr 16, 2020
3fa3939
yaml: fix broken tests
sougou Apr 17, 2020
893f184
yaml: delete obsolete DBConfigs.SidecarDBName
sougou Apr 17, 2020
2f0fa99
yaml: make DBName non-atomic
sougou Apr 17, 2020
f5f2bce
yaml: DBConfigs go through yaml for vttablet
sougou Apr 18, 2020
07b06d3
yaml: DBConfigs: support UseTCP
sougou Apr 19, 2020
0a7860c
yaml: DBConfigs: fix regression in ReloadSchema
sougou Apr 19, 2020
b3eb8c6
Set CheckAndIgnore to Log Warn than Error on failing the expression c…
harshit-gangal Apr 21, 2020
b3d981e
Merge pull request #6099 from planetscale/hg-set-check-log-warn-on-fail
harshit-gangal Apr 21, 2020
64ad4e2
Create vitess/lite images based on Red Hat UBI 7
aquarapid Apr 21, 2020
449fe9e
Merge branch 'master' into jacques_ubi
aquarapid Apr 21, 2020
468aa0a
yaml: DBConfigs: address comments
sougou Apr 21, 2020
8542b2d
Regularize the UID/GID to 1001, i.e. >= 1000, as per RH recommendations.
aquarapid Apr 21, 2020
e9f07a4
Merge pull request #6094 from planetscale/ss-dbconfigs-yaml
sougou Apr 21, 2020
9bf3105
test: deflake acl test
sougou Apr 22, 2020
bf05e95
Merge pull request #6101 from planetscale/ss-tabletserver-flaky
harshit-gangal Apr 22, 2020
5c7a0ca
Merge pull request #5904 from bumbing/upstream3
sougou Apr 23, 2020
61d4cf7
Merge pull request #6073 from Hellcatlk/UnitTest
sougou Apr 23, 2020
228e6fe
Merge pull request #6088 from HubSpot/upstream-unsync-conn
harshit-gangal Apr 23, 2020
ea1ad68
Merge branch 'master' into jacques_ubi
aquarapid Apr 24, 2020
19da4bd
Remove Variant when empty
systay Apr 24, 2020
cf34126
Drop commerce tables explicitly after they are moved to the customer …
rohit-nayak-ps Apr 24, 2020
6499e82
Dont use a reference for an interface
systay Apr 24, 2020
5bbe862
Wait longer for vtgate to come up to check if it fixes flakiness in CI
rohit-nayak-ps Apr 24, 2020
30694e8
Merge pull request #6105 from systay/no-variant
harshit-gangal Apr 24, 2020
20f4272
Trigger rebuild
rohit-nayak-ps Apr 24, 2020
30ed357
Trigger rebuild
rohit-nayak-ps Apr 24, 2020
c7de5a1
Implement plan description for vindex_func
systay Apr 24, 2020
4eb0c84
Fixed error message on database ddl query execution
harshit-gangal Apr 24, 2020
bf33708
Merge pull request #6109 from planetscale/hg-dbddl-fix
systay Apr 24, 2020
7517e48
Merge pull request #6108 from systay/vindex-func-plan
harshit-gangal Apr 25, 2020
14c2f08
Add licenses and labeling to the UBI images to conform to the RH
aquarapid Apr 25, 2020
f342314
vtctld: make cell optional
sougou Apr 26, 2020
9177efa
helm: use proxy_tablets
sougou Apr 26, 2020
0534b77
vtctld: add /debug/status to tablet URLs
sougou Apr 26, 2020
6626ddc
messager: use ackWaitTimeout in postpone query
derekperkins Apr 26, 2020
14a4fa4
vtctld: use correct API to get cells
sougou Apr 26, 2020
06ab145
messager: move jitter calculation into vttablet
derekperkins Apr 26, 2020
7cf3b48
Added IN clause routing plan for DML
harshit-gangal Apr 26, 2020
2c38ce2
Added execution for DML with IN variant
harshit-gangal Apr 26, 2020
3021505
updated dml plan test for IN clause
harshit-gangal Apr 26, 2020
c93312d
added update engine test for IN clause
harshit-gangal Apr 26, 2020
200b261
topo: exit if topo info is bad
sougou Apr 27, 2020
a129d14
topo: consul paths don't start with '/'
sougou Apr 27, 2020
d6cdbc8
Added delete IN clause engine
harshit-gangal Apr 27, 2020
e8b3af0
Added delete IN executor test
harshit-gangal Apr 27, 2020
56dfe7d
Added endtoend test for dml with in clause
harshit-gangal Apr 27, 2020
01d2fb4
dml-in-clause: code cleanup
harshit-gangal Apr 27, 2020
30b588e
dml-in-clause: code refactoring addressing review comments
harshit-gangal Apr 27, 2020
752c017
Merge pull request #6116 from planetscale/hg-dml-in-support
systay Apr 27, 2020
78b570b
Merge pull request #6106 from planetscale/rn-local-example-drop-tables
morgo Apr 27, 2020
0fd8aac
Merge pull request #6119 from planetscale/ss-exit-on-bad-topo
morgo Apr 27, 2020
d0511ee
Make SET plans use evalengine
systay Apr 19, 2020
9ef0e31
Minor cleanup
systay Apr 19, 2020
8173c21
Added input to the Set primitive
systay Apr 19, 2020
79da731
Added logic to fetch values from tablet when needed
systay Apr 19, 2020
1451f15
plantabletinput to only return input primitive
harshit-gangal Apr 23, 2020
7007b40
Make everything work again
systay Apr 23, 2020
1d3f8a7
Disallow expressions we should not send to tablet
systay Apr 23, 2020
300c119
Add more whitelisted functions
systay Apr 23, 2020
9a2a967
Add vtgate endtoend tests to CI
systay Apr 27, 2020
0f4e80e
Merge pull request #6113 from planetscale/ss-vtctld-proper-redirect
morgo Apr 27, 2020
52f48e7
Merge pull request #6112 from planetscale/ss-helm-vtctld-proxy
morgo Apr 27, 2020
00a1f21
Merge pull request #6100 from planetscale/jacques_ubi
morgo Apr 27, 2020
95f8082
Merge pull request #6093 from planetscale/fallback-expression-evaluation
harshit-gangal Apr 27, 2020
0d4509f
DropSources: delete reverse streams on source
rohit-nayak-ps Apr 27, 2020
42763d3
Trigger rebuild
rohit-nayak-ps Apr 27, 2020
66386cc
Merge pull request #6114 from derekperkins/messages-ackWait
sougou Apr 27, 2020
9a41b95
Fix automated release script
morgo Apr 27, 2020
bec4139
Merge pull request #6111 from planetscale/ss-vtctld-nocell
morgo Apr 27, 2020
89a58c7
Fix unit tests
rohit-nayak-ps Apr 27, 2020
402ae0a
Merge pull request #6122 from planetscale/morgo-fix-release
morgo Apr 27, 2020
0f1551a
Merge pull request #6121 from planetscale/rn-dropsources-delete-rever…
sougou Apr 27, 2020
f7fa695
Vitess Java driver release for 6.0.0
harshit-gangal Apr 29, 2020
7ad5aa5
Squash of fix of USE and DATABASE()
harshit-gangal May 7, 2020
74bab2f
Backport fix for make-release-package
morgo May 7, 2020
62b17b5
Merge pull request #6160 from planetscale/morgo-backport-6159
morgo May 7, 2020
147bc5a
Merge pull request #6158 from planetscale/use-fix-backport
morgo May 7, 2020
56c3a98
Backports fix from ss-fix-idle-timeout
morgo May 19, 2020
2451a30
Backport pgzip upgrade to release branch
morgo May 19, 2020
d38a5ce
Backport s3 retry from #6182 to release branch
morgo May 19, 2020
96619f8
Merge pull request #6199 from planetscale/morgo-backport-s3-retry
morgo May 19, 2020
d0580c9
Merge pull request #6197 from planetscale/morgo-fix-timeout
morgo May 19, 2020
f758b52
Merge pull request #6198 from planetscale/morgo-upgrade-pgzip
morgo May 19, 2020
a247fb1
Get cached vschema from executor
harshit-gangal May 20, 2020
5245945
Merge pull request #6220 from planetscale/morgo-backport-perf-regression
morgo May 25, 2020
f645412
Fix panic with `select database()` in OLAP mode (#6200)
adsr May 20, 2020
77ce19f
For default() - make sure to escape columns when necessary
systay May 26, 2020
9a9a884
yaml: convert Seconds to float64
sougou May 31, 2020
9d3b80d
yaml: HeartbeatIntervalMilliseconds -> Seconds
sougou May 31, 2020
681c379
yaml: add queryserver-config-stream-pool-timeout
sougou May 31, 2020
f835694
Rollback auto-committable transactions when query fails
systay Jun 10, 2020
bbc866f
Bump Netty to 4.1.48.Final and tcnative to 2.0.30.Final
harshit-gangal Jun 16, 2020
6589103
backport #6308 to 6.0 release branch
harshit-gangal Jun 16, 2020
dfb7102
Fixes #6266
systay Jun 4, 2020
ef7df0f
Protect lookup inserts from bindvar name clashes
systay Jun 16, 2020
4e408d7
fix compilation errors caused by some timeouts being changed from int…
rohit-nayak-ps Jun 16, 2020
a5d3646
Merge pull request #6318 from planetscale/ds-6.0-backport-6205
deepthi Jun 16, 2020
5314068
Merge pull request #6319 from planetscale/ds-6.0-backport-6224
deepthi Jun 16, 2020
904dd62
Merge pull request #6320 from planetscale/ds-6.0-backport-6250
deepthi Jun 16, 2020
b2d9e9e
Merge pull request #6321 from planetscale/ds-6.0-backport-6299
deepthi Jun 16, 2020
4c93709
Merge pull request #6322 from planetscale/ds-6.0-backport-6317
deepthi Jun 16, 2020
e5877ac
Merge pull request #6323 from planetscale/6.0-backport-6308
deepthi Jun 17, 2020
a4d5c67
Merge pull request #6324 from planetscale/release-6.0-bindvars
deepthi Jun 17, 2020
5ba6549
Merge pull request #6327 from planetscale/insert-lookup-bindvar-clashes
deepthi Jun 17, 2020
e763733
Merge branch 'slack-vitess-2020.06.22-r0' into slack-vitess-release-m…
Jun 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ java/*/bin
php/vendor
releases
/dist/
/py-vtdb/
/vthook/
/bin/
/vtdataroot/
21 changes: 21 additions & 0 deletions .github/workflows/check_formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: check_formatting
on: [pull_request]
jobs:

build:
name: Check Formatting
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

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

- name: Run go fmt
run: |
gofmt -l . | grep -vF vendor/ && exit 1 || echo "All files formatted correctly"

35 changes: 35 additions & 0 deletions .github/workflows/check_make_visitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: check_make_visitor
on: [push, pull_request]
jobs:

build:
name: Check Make Visitor
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

- 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 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
run: |
make minimaltools

- name: check_make_visitor
run: |
misc/git/hooks/visitorgen

13 changes: 11 additions & 2 deletions .github/workflows/cluster_endtoend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
name: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
name: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]

steps:
- name: Set up Go
Expand All @@ -32,7 +32,16 @@ jobs:
sudo apt-get update
sudo apt-get install percona-xtrabackup-24

- name: Installing zookeeper and consul
run: |
# Only running for shard 18 and 24 where we need to install consul and zookeeper
if [[ ${{matrix.name}} == 18 || ${{matrix.name}} == 24 ]]; then
make tools
fi

- name: sharded cluster_endtoend
timeout-minutes: 30
run: |
source build.env
eatmydata -- go run test.go -docker=false -print-log -shard ${{matrix.name}}
eatmydata -- go run test.go -docker=false -print-log -follow -shard ${{matrix.name}}

20 changes: 20 additions & 0 deletions .github/workflows/cluster_initial_sharding_multi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: cluster_initial_sharding_multi
on: [push, pull_request]
jobs:

build:
name: cluster initial sharding multi
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

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

- name: Run initial sharding multi
run: |
go run test.go -print-log initial_sharding_multi
22 changes: 22 additions & 0 deletions .github/workflows/cluster_vtctl_web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: cluster_vtctl_web
on: [push, pull_request]
jobs:

build:
name: cluster vtctl web
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

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

- name: Run vtctl web
run: |
# Running web test inside docker
go run test.go -docker=true -print-log -shard 10

4 changes: 2 additions & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.12
go-version: 1.13

- name: Check out code
uses: actions/checkout@v2
Expand All @@ -26,7 +26,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y make ruby ruby-dev
go mod download
sudo gem install --no-ri --no-rdoc fpm
sudo gem install fpm

- name: Make Packages
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ jobs:
make minimaltools

- name: e2e_race
timeout-minutes: 30
run: |
make e2e_test_race
1 change: 1 addition & 0 deletions .github/workflows/endtoend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ jobs:
make build

- name: endtoend
timeout-minutes: 30
run: |
tools/e2e_test_runner.sh
54 changes: 54 additions & 0 deletions .github/workflows/legacy_local_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: local_example
on: [push, pull_request]
jobs:

build:
name: Legacy local example using ${{ matrix.topo }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
topo: [etcd,k8s]

steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

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

- name: Get dependencies
run: |
if [ ${{matrix.os}} = "ubuntu-latest" ]; then
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
elif [ ${{matrix.os}} = "macos-latest" ]; then
brew install mysql@5.7 make unzip etcd curl git wget
fi
go mod download

- name: Run make minimaltools
run: |
make minimaltools

- name: Build
run: |
make build

- name: local_example
timeout-minutes: 30
run: |
export TOPO=${{matrix.topo}}
if [ ${{matrix.os}} = "macos-latest" ]; then
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
fi
# Make sure that testing is entirely non-reliant on config
mv config config-moved
eatmydata -- test/legacy_local_example.sh
5 changes: 4 additions & 1 deletion .github/workflows/local_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ on: [push, pull_request]
jobs:

build:
name: Local Example on ${{ matrix.os }}
name: Local example using ${{ matrix.topo }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
topo: [etcd,k8s]

steps:

Expand Down Expand Up @@ -42,7 +43,9 @@ jobs:
make build

- name: local_example
timeout-minutes: 30
run: |
export TOPO=${{matrix.topo}}
if [ ${{matrix.os}} = "macos-latest" ]; then
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
fi
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/misc_test_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: misc test
on: [push, pull_request]
jobs:

build:
name: Misc Test
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

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

- name: Run Misc test which requires docker
run: |
go run test.go -docker=true -shard 25
53 changes: 53 additions & 0 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: sonar_analysis
on:
push:
branches:
- 'sonartest'
jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

- 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

- name: Execute unit test and cluster endtoend test
run: |
eatmydata -- ./tools/all_test_for_coverage.sh
mkdir report
cp /tmp/*.out ./report/.

- name: Analyse sonar
run: |
export SONAR_SCANNER_VERSION=4.2.0.1873
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
export SONAR_SCANNER_OPTS="-server"

sonar-scanner \
-Dsonar.projectKey=vitessio \
-Dsonar.organization=vitess \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${SONAR_TOKEN} \
-Dsonar.go.coverage.reportPaths=report/*.out
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22 changes: 17 additions & 5 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
name: [percona56, mysql57, mariadb101, mariadb102, mariadb103]
name: [percona56, mysql57, mysql80, mariadb101, mariadb102, mariadb103]

steps:
- name: Set up Go
Expand All @@ -19,14 +19,21 @@ jobs:

- name: Get dependencies
run: |
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update

if [ ${{matrix.name}} = "mysql57" ]; then
sudo apt-get install -y mysql-server mysql-client
else
# Uninstall likely installed MySQL first
sudo apt-get remove -y mysql-server mysql-client

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

if [ ${{matrix.name}} = "percona56" ]; then
sudo rm -rf /var/lib/mysql
sudo apt install -y gnupg2
Expand All @@ -41,7 +48,11 @@ jobs:
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server mysql-client
elif [ ${{matrix.name}} = "mariadb101" ]; then
sudo apt install -y mariadb-server mariadb-client
sudo apt-get install -y software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu bionic main'
sudo apt update
sudo DEBIAN_FRONTEND="noninteractive" apt install -y mariadb-server
elif [ ${{matrix.name}} = "mariadb102" ]; then
sudo apt-get install -y software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
Expand Down Expand Up @@ -74,5 +85,6 @@ jobs:
make tools

- name: unit
timeout-minutes: 30
run: |
eatmydata -- make test
eatmydata -- make unit_test
1 change: 1 addition & 0 deletions .github/workflows/unit_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ jobs:
make tools

- name: unit_race
timeout-minutes: 30
run: |
eatmydata -- make unit_test_race
Loading