Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Slack vitess 9 2021.03.16r0 #200

Merged
merged 1,218 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1218 commits
Select commit Hold shift + click to select a range
6011849
Add + configure stylelint
doeg Dec 22, 2020
f492939
Add + configure prettier
doeg Dec 22, 2020
8d05597
Update README.md with linter notes
doeg Dec 22, 2020
27de6f3
improve-log: FAILED_PRECONDITION
indera-shsp Dec 22, 2020
c662cd0
Add editor configuration notes to README
doeg Dec 22, 2020
f7d564e
an online DDL 'DROP TABLE' is now transformed into a 'RENAME TABLE'.
shlomi-noach Dec 22, 2020
398e7d2
Add vtadmin/ to CODEOWNERS
doeg Dec 22, 2020
f24ddd8
Add copyright notices
doeg Dec 22, 2020
79b4761
:goat: Nits
doeg Dec 22, 2020
013d286
Add a very (veryyy) simple TabletList component
doeg Dec 22, 2020
d6c51d4
Define react-app-env.d.ts
doeg Dec 22, 2020
3fc66f2
Add :root CSS vars
doeg Dec 22, 2020
892c87d
Add a note about protobufjs to the README
doeg Dec 22, 2020
baa1ef8
:hocho: stock create-react-app logo files
doeg Dec 22, 2020
7b511c9
Fix node version :blush:
doeg Dec 22, 2020
170ccf6
I thieved the vtadmin.proto file without the correct whitespace in a …
doeg Dec 22, 2020
f0037a9
Better tablet naming... I guess?
doeg Dec 22, 2020
79450d2
Merge remote-tracking branch 'upstream/master' into patch-1
shlomi-noach Dec 23, 2020
2b128ba
Merge pull request #7206 from planetscale/online-ddl-executor-pool
shlomi-noach Dec 23, 2020
a3370f5
Merge pull request #7210 from jfg956/patch-1
shlomi-noach Dec 23, 2020
b4da228
Merge remote-tracking branch 'upstream/master' into make-docker-fix-m…
shlomi-noach Dec 23, 2020
33325cb
Merge remote-tracking branch 'upstream/master' into table-gc-skip-uns…
shlomi-noach Dec 23, 2020
1ac737c
vtgate: online DDL normalizes queries
shlomi-noach Dec 23, 2020
30b9682
merge master
shlomi-noach Dec 23, 2020
52699cf
alter column and algorithm added in alter options
GuptaManan100 Dec 23, 2020
3a0e9af
change colunnm added in alter options
GuptaManan100 Dec 23, 2020
d083ed8
alter charset added in alter options
GuptaManan100 Dec 23, 2020
1eaaf5a
online DDL executor converts a DROP TABLE to RENAME TABLE statement
shlomi-noach Dec 23, 2020
f66b840
add tests from DROP TABLE, DROP TABLE IF EXISTS
shlomi-noach Dec 23, 2020
5dcf7e2
validating creation of GC table based on UUID
shlomi-noach Dec 23, 2020
c844a8d
tablet executor: only accept CREATE, DROP, ALTER statements as online…
shlomi-noach Dec 23, 2020
51d6042
one more test
shlomi-noach Dec 23, 2020
2702e72
Fix typos and comments
ajm188 Dec 23, 2020
0628517
Merge branch 'vitessio:master' into am_vtadmin_cluster
ajm188 Dec 23, 2020
a0a85a9
Merge pull request #7187 from tinyspeck/am_vtadmin_cluster
rohit-nayak-ps Dec 23, 2020
33e635c
Merge pull request #7218 from tinyspeck/sarabee-vtadmin-web-hello-world
rohit-nayak-ps Dec 23, 2020
ceeed3e
Merge pull request #7201 from tinyspeck/am_find_all_shards_in_keyspace
rohit-nayak-ps Dec 23, 2020
f371d2b
Add @ajm188 + @doeg as vtadmin codeowners
doeg Dec 23, 2020
8aae5e3
Merge pull request #7223 from tinyspeck/sarabee-codeowners-2-is-a-chr…
rohit-nayak-ps Dec 23, 2020
1e38cde
Embed cluster message, rather than just the name, in VTGates
ajm188 Dec 24, 2020
42c1843
Continue embedding cluster structs
ajm188 Dec 24, 2020
ad88892
Also put the cluster proto in vtsql's VTGateProxy
ajm188 Dec 24, 2020
f43179e
key state and tablespace operations added in alter options
GuptaManan100 Dec 24, 2020
415d2a4
drop operations added in alter options
GuptaManan100 Dec 24, 2020
9702875
Merge pull request #7224 from tinyspeck/am_vtadmin_pass_clusters
rohit-nayak-ps Dec 24, 2020
990fda9
added remaining constructs of alter options
GuptaManan100 Dec 25, 2020
b6fda3a
Merge remote-tracking branch 'upstream/master' into alter-table
GuptaManan100 Dec 25, 2020
e40c659
added explicit parsing for table options
GuptaManan100 Dec 25, 2020
96d5608
Initial commit for switching reads and writes independently
rohit-nayak-ps Nov 19, 2020
8c1d6d1
Added tests for new sr/sw flows. Remove validations no longer applica…
rohit-nayak-ps Nov 23, 2020
88c7a95
Initial commit of a state-machine based MoveTables workflow
rohit-nayak-ps Nov 27, 2020
6bb0454
Minor fixes/cleanup
rohit-nayak-ps Nov 30, 2020
601182c
MoveTablesv2: -v2 flag, Refactored tests/code. Added code for Workflo…
rohit-nayak-ps Dec 6, 2020
0e2016a
Test reverse flows, show copy progress
rohit-nayak-ps Dec 15, 2020
7bdb870
Update wrangler table migration unit tests
rohit-nayak-ps Dec 16, 2020
0f52f23
Removed state machine since it does not fit the use case, use SwitchT…
rohit-nayak-ps Dec 17, 2020
583035d
Add more validations, implement workflow state
rohit-nayak-ps Dec 18, 2020
b990a3f
Add single step switch/reverse traffic test, get existing tests working
rohit-nayak-ps Dec 18, 2020
b64025d
Fix more tests
rohit-nayak-ps Dec 19, 2020
820e6e9
Add tests for Complete/Abort, fix check for switched writes
rohit-nayak-ps Dec 19, 2020
c288334
Fix state computation for reverse writes, add tests for states pre/po…
rohit-nayak-ps Dec 20, 2020
8df1ca7
Common VReplicationWorkflow abstraction for both MoveTables and Reshard
rohit-nayak-ps Dec 21, 2020
d093aa3
Mods for reshard v2 command, Tests for reshard flow
rohit-nayak-ps Dec 22, 2020
2157e91
Minor cleanup
rohit-nayak-ps Dec 22, 2020
a40c31f
Minor cleanup, some comments
rohit-nayak-ps Dec 23, 2020
6d8f21c
Tests for switching cells partially, add rdonly tablets to test
rohit-nayak-ps Dec 24, 2020
3fce881
Unit tests for move tables and copy progress
rohit-nayak-ps Dec 25, 2020
9dcd560
Add tests for reverse and abort
rohit-nayak-ps Dec 25, 2020
2a7a492
Fix Start validation
rohit-nayak-ps Dec 26, 2020
962b81c
Filter out backquotes while checking if query is executed on a tablet…
rohit-nayak-ps Dec 26, 2020
6271514
Remove rdonly for CI and move V2 test to new test shard
rohit-nayak-ps Dec 26, 2020
10b04eb
added readme for the example
ramnar Dec 26, 2020
4df037d
Merge pull request #7226 from ramnar/master
sougou Dec 26, 2020
b3c1d7b
Revert local changes to local example script
rohit-nayak-ps Dec 26, 2020
b4dff7d
Add unit test case to improve test coverage for go/sqltypes/result.go
hs0210 Dec 28, 2020
6978610
parsing for alter table complete
GuptaManan100 Dec 28, 2020
3b792a0
added planning for alter table at vtgate
GuptaManan100 Dec 28, 2020
8197d6f
fixed bug
GuptaManan100 Dec 28, 2020
760b400
fixed routing and permissions bug
GuptaManan100 Dec 28, 2020
5dc963b
charset and character set are equivalent, fixed tests
GuptaManan100 Dec 28, 2020
e713920
Merge remote-tracking branch 'upstream/master' into alter-table
GuptaManan100 Dec 28, 2020
2c2e8f2
fix meta data related operation hang when zk down
inolddays Dec 28, 2020
3bfb75b
Add static file service discovery implementation
doeg Dec 28, 2020
81719f4
Merge pull request #7228 from Johnny-Three/fixzkrelatedcmdhangwhenzkdown
sougou Dec 28, 2020
0a7df91
Assert ElementsMatch instead of Equal for slices returned by Discover…
doeg Dec 28, 2020
75cb52b
Add a case with malformed json to TestDiscoverVTGates
doeg Dec 28, 2020
e2d6b2a
Add example JSON to discovery_static_file.go
doeg Dec 28, 2020
a5fcb14
Merge pull request #7229 from tinyspeck/sarabee-vtadmin-static-discovery
rohit-nayak-ps Dec 28, 2020
a4b5e7e
vttablet: debug/env enforce POST
sougou Dec 29, 2020
8ea1a8d
Merge pull request #7189 from planetscale/ss-tb1-env-change
sougou Dec 29, 2020
b5a52a1
Merge pull request #7124 from planetscale/vtctld-actions-no-req
sougou Dec 29, 2020
26de764
Merge pull request #7212 from imxyb/fixcomment
sougou Dec 29, 2020
1300808
Merge pull request #7227 from hs0210/work
sougou Dec 29, 2020
f869d44
changed test to reflect new behaviour
GuptaManan100 Dec 29, 2020
758fef4
Merge remote-tracking branch 'upstream/master' into online-ddl-drop-t…
shlomi-noach Dec 29, 2020
45a5de7
if table is a GC table, just DROP it
shlomi-noach Dec 29, 2020
35cd400
Improve test coverage, fix reshard test
rohit-nayak-ps Dec 30, 2020
c9b6d60
run go fix ./...
epk Jan 1, 2021
52cdda0
Does this fix lints?
epk Jan 2, 2021
911a32f
Add self-contained client generator, re-ran and this is a no-op
ajm188 Jan 3, 2021
48ae8f0
`git rm -rf codegen; git mv codegen3 codegen`, then update and rerun
ajm188 Jan 3, 2021
0ab8e26
Minor clarity improvements
ajm188 Jan 3, 2021
89ac01c
Small function extraction
ajm188 Jan 3, 2021
c533ab5
More function extraction
ajm188 Jan 3, 2021
4b8eb39
Fix debug flag
rohit-nayak-ps Jan 3, 2021
337e40b
Merge pull request #7071 from planetscale/rn-switch-order
rohit-nayak-ps Jan 3, 2021
0426aed
Delete routing rules on workflow Complete
rohit-nayak-ps Jan 1, 2021
7d2e87f
Add test for Abort
rohit-nayak-ps Jan 1, 2021
39887a0
Remove source tables from vschema on workflow Complete
rohit-nayak-ps Jan 1, 2021
6f9acd3
Update target vschema on MoveTables Abort
rohit-nayak-ps Jan 1, 2021
263a698
Merge branch 'vitessio:master' into am_vtctldclient_generator
ajm188 Jan 3, 2021
b786236
Regenerate after pulling master
ajm188 Jan 3, 2021
54773d7
Fix spacing in template, bring back comments
ajm188 Jan 3, 2021
4c23d82
Remove leftover printing, add make targets in the style of `make parser`
ajm188 Jan 3, 2021
1f8f661
Add env variable + some modest documentation
doeg Jan 3, 2021
a7c45cb
A first pass at testing fetch with msw
doeg Jan 3, 2021
073dc1c
Add react-query + populate UI from API
doeg Jan 3, 2021
92681ca
Add a bunch of commentary about MSW in http.test.ts
doeg Jan 3, 2021
b0e678c
More commentary in api/http.ts
doeg Jan 3, 2021
b46e03d
Add current setup instructions (ugh) to the README (ugh)
doeg Jan 3, 2021
8adcd2e
Update copyright year
ajm188 Jan 3, 2021
776dbc6
Extend Error for API erorrs + add placeholder error UI to the front-end
doeg Jan 3, 2021
cb6087c
Small nit (removes vestigial variable)
doeg Jan 4, 2021
c964fab
Bypass MySQL Cert issue, and update ETCD api
dkhenry Jan 4, 2021
09494c1
Updating test to use custom TLS certificates
dkhenry Jan 4, 2021
3809ef2
Merge pull request #7215 from indera-shsp/improve-log-FAILED_PRECONDI…
harshit-gangal Jan 4, 2021
2b68b6b
clean up one test
GuptaManan100 Jan 4, 2021
199c71f
Merge pull request #7235 from epk/epk/context
harshit-gangal Jan 4, 2021
9d020db
cleanup
GuptaManan100 Jan 4, 2021
9aca4ab
Merge pull request #7199 from GuptaManan100/alter-table
harshit-gangal Jan 4, 2021
5eb241e
Merge remote-tracking branch 'upstream/master' into drop-table
GuptaManan100 Jan 4, 2021
f9f62f2
do not throw error if the table is not found
GuptaManan100 Jan 4, 2021
763cd21
Merge pull request #7178 from GuptaManan100/drop-table
harshit-gangal Jan 4, 2021
a7c3dfa
Merge pull request #7213 from planetscale/make-docker-fix-mysql-server
shlomi-noach Jan 4, 2021
601c13d
Fix all occurrences of `fmt.Sprint(x)` where x is `int`
ajm188 Jan 4, 2021
bf57b8c
Merge pull request #7151 from planetscale/table-gc-skip-unspecified-s…
shlomi-noach Jan 4, 2021
141b1d0
Adding flag to turn on Secure Transport
dkhenry Jan 4, 2021
12ad89b
Turning on v2 api for etcd
dkhenry Jan 4, 2021
a949d9f
Add linter configuration
epk Jan 4, 2021
c7abd87
update git hook
epk Jan 4, 2021
47611bc
goimports -local vitess.io/vitess -w .
epk Jan 4, 2021
afad5c9
Wait for workflow to start and show stream errors or if streams don't…
rohit-nayak-ps Jan 4, 2021
b1024ef
Fix test
rohit-nayak-ps Jan 5, 2021
379e900
test UUID uniqueness
shlomi-noach Jan 5, 2021
59458fb
typo
shlomi-noach Jan 5, 2021
ac4e855
updates per review
shlomi-noach Jan 5, 2021
5b6dfb7
Merge pull request #7234 from planetscale/rn-wf-complete-drop-rr-upda…
rohit-nayak-ps Jan 5, 2021
4aac378
Merge pull request #7248 from planetscale/rn-wait-for-workflow-start
rohit-nayak-ps Jan 5, 2021
16ccb98
Merge branch 'master' into online-ddl-drop-to-rename
shlomi-noach Jan 5, 2021
4428549
test uuid
shlomi-noach Jan 5, 2021
88997a7
Change table rename template during DropSources for a MoveTables work…
rohit-nayak-ps Dec 30, 2020
01ed81b
gofmted
rohit-nayak-ps Jan 5, 2021
ef06391
implementing GetIfExists for DropTable and DropView
shlomi-noach Jan 5, 2021
2e9763e
Merge pull request #7230 from planetscale/rn-rename-table-ptosc-logic
rohit-nayak-ps Jan 5, 2021
30b462a
Merge pull request #7221 from planetscale/online-ddl-drop-to-rename
shlomi-noach Jan 5, 2021
ea65a1c
Merge pull request #7196 from planetscale/plan-cache
systay Jan 5, 2021
199e86c
tweak linter config
epk Jan 5, 2021
807f5ec
remove redundant gofmt CI check
epk Jan 5, 2021
327885f
Empty commit to trigger CI
epk Jan 5, 2021
5b77f0c
clean env before running linter
epk Jan 5, 2021
7851566
local docker: also copy examples/common into /vt/common to match Move…
mackenziestarr Jan 5, 2021
8e01691
Merge pull request #7252 from mackenziestarr/mstarr-fix-docker-local-…
deepthi Jan 5, 2021
f51ac19
Merge pull request #7238 from tinyspeck/am_vtctldclient_generator
deepthi Jan 5, 2021
446725d
Merge pull request #7239 from tinyspeck/sarabee-vtadmin-trying-to-mak…
deepthi Jan 5, 2021
2ec07fa
Merge pull request #7244 from tinyspeck/am_faster_int_prints
deepthi Jan 5, 2021
b820779
Fix incorrect comments
Jan 6, 2021
91d91a8
Merge pull request #7257 from fenggw-fnst/work
shlomi-noach Jan 6, 2021
9b5a2a5
Merge pull request #7204 from dkhenry/dk-update-golang
deepthi Jan 6, 2021
1df5bf3
using golint 1.31.0
shlomi-noach Jan 7, 2021
f0f8e60
merged upstream/master
shlomi-noach Jan 7, 2021
e27fb43
fixing linter errors
shlomi-noach Jan 7, 2021
bcfdcdc
printing linter version
shlomi-noach Jan 7, 2021
59dda4a
force v1.31.0
shlomi-noach Jan 7, 2021
3e8a926
Merge pull request #7247 from epk/epk/golangci-lint
shlomi-noach Jan 7, 2021
b36cb24
Adding @@session_uuid to vtgate; used as 'context' by Online DDL
shlomi-noach Jan 7, 2021
ccd52da
Merge pull request #7263 from planetscale/online-ddl-vtgate-session-uuid
shlomi-noach Jan 7, 2021
d18baa8
goimport proto files correctly
systay Jan 7, 2021
0472d47
Merge pull request #7264 from planetscale/make-proto-fix
shlomi-noach Jan 7, 2021
5d6add9
Initial support for storing db credentials in Vault.
aquarapid Dec 11, 2020
a807678
Add Vault AppRole support.
aquarapid Dec 16, 2020
4a677b8
* First cut of Vault support for vtgate credentials
aquarapid Dec 30, 2020
43e50be
Add end-to-end test for vtgate and tablet Vault support
aquarapid Jan 1, 2021
94f94a6
Allow proper overriding of vault params by environment
aquarapid Jan 1, 2021
2fa7482
Add downloading & caching of vault executable
aquarapid Jan 1, 2021
4143b2c
Add some test comments and logging.
aquarapid Jan 2, 2021
22eef79
Add Vault e2e to shard 23
aquarapid Jan 2, 2021
d1d4eae
Fix e2e Vault test cluster teardown initialization
aquarapid Jan 2, 2021
7a5611f
Update go.sum for Vault lib
aquarapid Jan 2, 2021
6d852dc
Add missing vtgate Vault commandline option help
aquarapid Jan 2, 2021
6916d15
Rework mutex handling to avoid data races.
aquarapid Jan 7, 2021
095ffcc
Revert an unrelated change that snuck into this branch
aquarapid Jan 7, 2021
283497f
Merge pull request #7265 from planetscale/jg_vault_9.0
deepthi Jan 7, 2021
3503ef2
don't try to compare varchars in vtgate
systay Jan 8, 2021
d86632c
Merge pull request #7271 from planetscale/fix-7254-in-9
systay Jan 8, 2021
7c7ea05
Merge pull request #7285 from tinyspeck/am_fix_findallshardsinkeyspace
rafael Jan 12, 2021
eff6ef3
Merge pull request #7292 from tinyspeck/am-backport-7285
deepthi Jan 14, 2021
bcab7f3
default to false for system settings to be changed per session at the…
harshit-gangal Jan 15, 2021
96186a2
Merge pull request #7299 from planetscale/disable-sys-var
harshit-gangal Jan 16, 2021
7410963
Backport: Testing version upgrade/downgrade path from/to 8.0
shlomi-noach Jan 20, 2021
b5e7d77
Merge pull request #7323 from planetscale/v9-rc1-ci-upgrade-path-8-to-9
deepthi Jan 20, 2021
da39b1b
Rename abort to cancel
rohit-nayak-ps Jan 9, 2021
9c017a9
Remove zero padding in prefixes for decimal data types
rohit-nayak-ps Jan 14, 2021
9f0e486
Fix formatting
rohit-nayak-ps Jan 14, 2021
312b3db
Add tests per review comment
rohit-nayak-ps Jan 19, 2021
4cc1eac
Merge pull request #7339 from planetscale/rn-backport-7276
deepthi Jan 21, 2021
d12d85d
Report current dry run results for v2 commands
rohit-nayak-ps Jan 5, 2021
41ced66
Addressed review comments
rohit-nayak-ps Jan 14, 2021
3e7c0fe
Address review comment
rohit-nayak-ps Jan 19, 2021
c8f5d98
Merge pull request #7345 from planetscale/rn-backport-7255
rohit-nayak-ps Jan 22, 2021
3fae163
Add master tablet type in addition to replica as default source table…
rohit-nayak-ps Jan 9, 2021
d650bc1
Add master tablet type in addition to replica as default source table…
rohit-nayak-ps Jan 9, 2021
99c1ffd
gofmted
rohit-nayak-ps Jan 9, 2021
917f7bd
Rename workflow Start to Create
rohit-nayak-ps Jan 9, 2021
82f00bb
Check that workflow is not in copy phase when switching traffic
rohit-nayak-ps Jan 14, 2021
724d1ab
Fix tests
rohit-nayak-ps Jan 14, 2021
35a41f3
Fix unit test merge issues
rohit-nayak-ps Jan 20, 2021
422cac3
Fix e2e test merge issue
rohit-nayak-ps Jan 20, 2021
f3ed336
Merge pull request #7349 from planetscale/rn-backport-7275
rohit-nayak-ps Jan 23, 2021
332d5f2
Merge pull request #7340 from planetscale/rn-backport-7297
deepthi Jan 23, 2021
5c2b257
Use timeUpdated to determine lag instead of transactionTimestamp. Rem…
rohit-nayak-ps Jan 21, 2021
67b380e
update tests for max lag
rohit-nayak-ps Jan 21, 2021
5b780fe
examples/operator: fix tags
sougou Jan 23, 2021
1bb983d
examples/operator: add vtorc support
sougou Oct 7, 2020
f908536
Merge pull request #7354 from planetscale/rn-backport-7342
deepthi Jan 23, 2021
91fa15f
examples/operator: fix tags
sougou Jan 23, 2021
635e65b
Merge pull request #7358 from planetscale/ss-v9-examples
sougou Jan 23, 2021
138bc89
vtctl: Add missing err checks for VReplication v2
jmoldow Jan 23, 2021
7ce6adb
Merge pull request #7363 from planetscale/rn-backport-7361
deepthi Jan 24, 2021
632a72a
Updated java version to 9.0 for release
harshit-gangal Jan 25, 2021
daa6085
Merge pull request #7369 from planetscale/java-9.0
harshit-gangal Jan 25, 2021
dd85b60
9.0.0 Release Notes
askdba Jan 26, 2021
4e1b975
Merge pull request #7384 from planetscale/release-9.0
askdba Jan 26, 2021
4b3ebcb
Add VT_BASE_VER to vtexplain/Dockerfile so that it can be built off a…
deepthi Jan 31, 2021
b63e92d
Merge pull request #7418 from planetscale/ds-90-k8s-dockerfiles
derekperkins Feb 3, 2021
9c7727a
fix table parsing for VSchema generation to include reserved and non …
harshit-gangal Feb 15, 2021
7e0cd63
added parse table tests
harshit-gangal Feb 18, 2021
1158ed4
Merge pull request #7511 from planetscale/fix-vschemagen
systay Feb 18, 2021
1ca335d
show planner to use any keyspace over first sorted keyspace. First So…
harshit-gangal Feb 22, 2021
fbd9430
fix show executor unit test
harshit-gangal Feb 22, 2021
c6393a9
Merge pull request #7530 from planetscale/show-anywhere-plan-fix
harshit-gangal Feb 22, 2021
f54e529
consider connection closed when transaction is not found and reset th…
harshit-gangal Feb 23, 2021
366fb98
Merge pull request #7544 from planetscale/bp-7539
harshit-gangal Feb 23, 2021
3d3f660
Patch sqltypes.MakeRowTrusted to lean on field count (#126)
Feb 25, 2019
00381f4
add a hack to enable routing to RDONLY tablets for REPLICA queries
demmer Mar 5, 2020
60efc91
Backport some panic protection during ERS (#196)
Mar 9, 2021
8da0a14
Backport vitessio#7523 into 8.0 (#198)
Mar 9, 2021
7f8a0bb
Fix bug in vtgate when running with keyspace filtering (#199)
Mar 15, 2021
08c1c42
make sure to not log sensitive information
systay Apr 1, 2021
8725434
addressed review comments
harshit-gangal Apr 1, 2021
3d34061
Merge pull request #7731 from tinyspeck/vitess-7585-dba-vrep
rafael Apr 6, 2021
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
  •  
  •  
  •  
40 changes: 28 additions & 12 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
* @sougou

/config/mycnf/ @askdba @shlomi-noach
/docker/ @derekperkins @dkhenry
/helm/ @derekperkins @dkhenry
/config/mycnf/ @morgo
/go/vt/mysqlctl/mysqld.go @morgo
/examples/compose @shlomi-noach
/examples/local @rohit-nayak-ps
/go/cmd/vtadmin @ajm188 @doeg
/go/cmd/vtctldclient @ajm188 @doeg
/go/mysql @harshit-gangal @systay
/go/test/endtoend/onlineddl @shlomi-noach
/go/test/endtoend/orchestrator @deepthi @shlomi-noach
/go/test/endtoend/vtgate @harshit-gangal @systay
/go/vt/vtgate @harshit-gangal @systay
/go/vt/vttablet/tabletserver @harshit-gangal @systay
/go/vt/vttablet/tabletmanager/vstreamer @rohit-nayak-ps
/go/vt/sqlparser @harshit-gangal @systay
/go/vt/discovery @deepthi
/go/vt/vttablet/tabletmanager @deepthi
/go/vt/vttablet/tabletmanager/vreplication @rohit-nayak-ps
/go/vt/orchestrator @deepthi
/go/vt/mysqlctl @deepthi
/go/vt/proto/vtadmin @ajm188 @doeg
/go/vt/orchestrator @deepthi @shlomi-noach
/go/vt/schema @shlomi-noach
/go/vt/sqlparser @harshit-gangal @systay
/go/vt/vtadmin @ajm188 @doeg
/go/vt/vtctl @deepthi
/go/vt/vtctl/vtctl.go @ajm188 @doeg
/go/vt/vtctl/grpcvtctldclient @ajm188 @doeg
/go/vt/vtctl/grpcvtctldserver @ajm188 @doeg
/go/vt/vtctl/vtctldclient @ajm188 @doeg
/go/vt/vtgate @harshit-gangal @systay
/go/vt/vttablet/tabletmanager @deepthi @shlomi-noach
/go/vt/vttablet/tabletmanager/vreplication @rohit-nayak-ps
/go/vt/vttablet/tabletmanager/vstreamer @rohit-nayak-ps
/go/vt/vttablet/tabletserver @harshit-gangal @systay @shlomi-noach
/go/vt/wrangler @deepthi @rohit-nayak-ps
/go/vt/mysqlctl @deepthi
/helm/ @derekperkins @dkhenry
/proto/vtadmin.proto @ajm188 @doeg
/proto/vtctldata.proto @ajm188 @doeg
/proto/vtctlservice.proto @ajm188 @doeg
/web/vtadmin @ajm188 @doeg
/web/vtctld2 @rohit-nayak-ps
/examples/local @rohit-nayak-ps
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- if this PR is Work in Progress please create it as a Draft Pull Request -->

## Description
<!-- A few sentences describing the overall goals of the pull request's commits. -->

## Related Issue(s)
<!-- List related issues and pull requests: -->

-

## Checklist
- [ ] Should this PR be backported?
- [ ] Tests were added or are not required
- [ ] Documentation was added or is not required

## Deployment Notes
<!-- Notes regarding deployment of the contained body of work. These should note any db migrations, etc. -->

## Impacted Areas in Vitess
Components that this PR will affect:

- [ ] Query Serving
- [ ] VReplication
- [ ] Cluster Management
- [ ] Build
2 changes: 1 addition & 1 deletion .github/workflows/check_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_make_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_make_visitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cluster_endtoend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
105 changes: 105 additions & 0 deletions .github/workflows/cluster_endtoend_upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Cluster (upgrade)
on: [push, pull_request]
jobs:

build:
name: Run endtoend tests on Cluster (upgrade)
runs-on: ubuntu-latest

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

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

- name: Get dependencies
run: |
# This prepares general purpose binary dependencies
# as well as v8.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
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: Building v8.0.0 binaries
timeout-minutes: 10
run: |
# We build v8.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/

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

- name: Run cluster endtoend test v8.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 .
# 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
eatmydata -- go run test.go -skip-build -keep-data -docker=false -print-log -follow -shard 28

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


- name: Building HEAD binaries
timeout-minutes: 10
run: |
go mod download

source build.env
make build
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)
timeout-minutes: 5
run: |
# /tmp/vtdataroot exists from previous test

source build.env
# We built HEAD binaries manually in previous step and there's no need for the test to build.
eatmydata -- go run test.go -skip-build -keep-data -docker=false -print-log -follow -shard 28

- name: Run cluster endtoend test HEAD (create cluster)
timeout-minutes: 5
run: |
# create the directory where we store test data; ensure it is empty:
rm -rf /tmp/vtdataroot
mkdir -p /tmp/vtdataroot

source build.env
# We still have the binaries from previous step. No need to build
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)
timeout-minutes: 5
run: |
# /tmp/vtdataroot exists from previous test
cp -R /tmp/vitess-build-v8.0.0/bin .

source build.env
# We again built manually and there's no need for the test to build.
eatmydata -- go run test.go -skip-build -keep-data -docker=false -print-log -follow -shard 28
4 changes: 2 additions & 2 deletions .github/workflows/cluster_initial_sharding_multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

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

- name: Run initial sharding multi
run: |
go run test.go -print-log initial_sharding_multi
go run test.go -print-log initial_sharding_multi
2 changes: 1 addition & 1 deletion .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.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/endtoend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ensure_bootstrap_updated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ensure_bootstrap_version
on: [pull_request]
jobs:

build:
name: Check Bootstrap Updated
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 ensure_bootstrap_version
run: |
make ensure_bootstrap_version
git status
test -z "$(git diff-index --name-only HEAD --)" || exit 1
30 changes: 17 additions & 13 deletions .github/workflows/golangci-linter.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: golangci-lint
on: [push,pull_request]
on: [push, pull_request]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.31.0

- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Clean Env
run: $(go env GOPATH)/bin/golangci-lint cache clean

- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.27.0
- name: Print linter version
run: $(go env GOPATH)/bin/golangci-lint --version

- name: Run golangci-lint
run: $(go env GOPATH)/bin/golangci-lint run --disable=errcheck --timeout=10m go/...
- name: Run golangci-lint
run: $(go env GOPATH)/bin/golangci-lint run go/...
2 changes: 1 addition & 1 deletion .github/workflows/legacy_local_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/local_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/region_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15

- name: Check out code
uses: actions/checkout@v2
Expand Down
28 changes: 28 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
run:
timeout: 10m

linters-settings:
goimports:
local-prefixes: vitess.io/vitess

linters:
disable-all: true
enable:
# Defaults
- deadcode
# - errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- varcheck

# Extras
- gofmt
- goimports

# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.31.0 # use the fixed version to not introduce new linters unexpectedly
Loading