Commit Graph

177 Commits

Author SHA1 Message Date
Tim Vaillancourt
e1ce2340c1 Add GITHUB_ACTION env 2022-12-04 02:04:10 +01:00
Tim Vaillancourt
b45947e974 Move localtests to golang+docker 2022-12-04 01:40:53 +01:00
lukelewang
da3514253f add support for rocksdb 2022-11-26 01:38:12 +08:00
lukelewang
3ee667a40e Modify tests to support rocksdb tests 2022-11-25 17:18:32 +08:00
dm-2
45cf63c839
Merge branch 'master' into ensure-test-errors-detected 2022-11-18 15:58:20 +00:00
dm-2
8abd584826 fix broken test by removing invalid insert statement 2022-11-18 15:49:04 +00:00
dm-2
756f3d30e8 add error detection for test setup, sort tests to make it easier to track progress 2022-11-18 15:44:14 +00:00
dm-2
7cebc16c6f debugging 2022-11-18 15:32:34 +00:00
dm-2
cd65c7e9ad add extra debugging output 2022-11-18 15:11:44 +00:00
Morgan Tocker
75a346be93 Add tests, incorporate feedback 2022-11-14 11:47:30 -07:00
Tim Vaillancourt
5de91c9f90
Add missing doc from PR #1131 (#1162) 2022-08-11 10:32:00 +02:00
Tim Vaillancourt
bee009b9e3
Allow zero in dates (#1161)
* Merge pull request #31 from openark/zero-date

Support zero date and zero in date, via dedicated command line flag

* Merge pull request #32 from openark/existing-date-with-zero

Support tables with existing zero dates

* Remove un-needed ignore_versions file

* Fix new lint errors from golang-ci update

Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2022-08-10 21:50:59 +02:00
Shlomi Noach
cc38a17e50
compound pk tests (#387)
* compound pk tests

* more details in failure diff

* more elaborate test; the pk-ts one consistently fails

* Fix merge conflict

Co-authored-by: Shlomi Noach <shlomi-noach@github.com>
Co-authored-by: Tim Vaillancourt <timvaillancourt@github.com>
Co-authored-by: Tim Vaillancourt <tim@timvaillancourt.com>
2022-07-06 23:22:21 +02:00
dm-2
f62e9dc4f4 Remove support for MySQL 5.6 (end-of-life Feb 2021) 2022-03-01 11:39:55 +00:00
Tim Vaillancourt
5ea949f31e Remove end-of-life MySQL 5.5.x 2022-02-25 00:02:27 +01:00
Tim Vaillancourt
47d49c6b92
Add go mod (#935)
* Add a go.mod file

* run go mod vendor again

* Move to a well-supported ini file reader

* Remove GO111MODULE=off

* Use go 1.16

* Rename github.com/outbrain/golib -> github.com/openark/golib

* Remove *.go-e files

* Fix for `strconv.ParseInt: parsing "": invalid syntax` error

* Add test for '[osc]' section

Co-authored-by: Nate Wernimont <nate.wernimont@workiva.com>
2021-06-24 20:19:37 +02:00
Shlomi Noach
9bc508f068
Enum to varchar (#963)
* v1.1.0

* WIP: copying AUTO_INCREMENT value to ghost table
Initial commit: towards setting up a test suite

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* greping for 'expect_table_structure' content

* Adding simple test for 'expect_table_structure' scenario

* adding tests for AUTO_INCREMENT value after row deletes. Should initially fail

* clear event beforehand

* parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement

* support GetUint64

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* minor update to test

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* adding test for user defined AUTO_INCREMENT statement

* Generated column as part of UNIQUE (or PRIMARY) KEY

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* skip analysis of generated column data type in unique key

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* All MySQL DBs limited to max 3 concurrent/idle connections

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* hooks: reporting GH_OST_ETA_SECONDS. ETA stored as part of migration context

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* GH_OST_ETA_NANOSECONDS

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* N/A denoted by negative value

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* ETAUnknown constant

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* Convering enum to varchar

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* test: not null

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* first attempt at setting enum-to-string right

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* fix insert query

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* store enum values, use when populating

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* apply EnumValues to mapped column

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* fix compilation error

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* gofmt

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-06-10 17:17:49 +02:00
Tim Vaillancourt
8f42dedef8
Add GO111MODULE=off to build.sh, use Golang 1.16 (#966)
* Add GO111MODULE=off to build.sh

* Use golang 1.16

* Update go version in README.md

* Add missing GO111MODULE=off

* Add missing GO111MODULE=off again

* Use go1.16.3 explicitly

* Use 1.16 for CI test

* Update min go version

* Use go 1.16.4
2021-05-25 13:22:28 +02:00
Shlomi Noach
36c669dd75
Generated column as part of UNIQUE (or PRIMARY) KEY (#919)
* v1.1.0

* WIP: copying AUTO_INCREMENT value to ghost table
Initial commit: towards setting up a test suite

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* greping for 'expect_table_structure' content

* Adding simple test for 'expect_table_structure' scenario

* adding tests for AUTO_INCREMENT value after row deletes. Should initially fail

* clear event beforehand

* parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement

* support GetUint64

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* minor update to test

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* adding test for user defined AUTO_INCREMENT statement

* Generated column as part of UNIQUE (or PRIMARY) KEY

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* skip analysis of generated column data type in unique key

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-05-24 20:16:49 +02:00
Tim Vaillancourt
c71dbf9ef3
Copy auto increment (#967)
* v1.1.0

* WIP: copying AUTO_INCREMENT value to ghost table
Initial commit: towards setting up a test suite

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* greping for 'expect_table_structure' content

* Adding simple test for 'expect_table_structure' scenario

* adding tests for AUTO_INCREMENT value after row deletes. Should initially fail

* clear event beforehand

* parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement

* support GetUint64

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* minor update to test

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* adding test for user defined AUTO_INCREMENT statement

Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2021-05-14 15:32:56 +02:00
Shlomi Noach
eaa1839a9b
Merge branch 'master' into test-latin1text 2020-02-15 09:27:10 +02:00
Shlomi Noach
30e2512b39
Merge branch 'master' into test-latin1text 2020-02-15 08:33:25 +02:00
Shlomi Noach
ef5cbed0ec
Merge branch 'master' into tests-varbinary 2020-02-15 08:33:12 +02:00
Shlomi Noach
4fd4be1308
Merge branch 'master' into tests-varbinary 2020-02-14 09:03:38 +02:00
Shlomi Noach
3cc41e24a8
Merge branch 'master' into test-latin1text 2020-02-14 09:02:53 +02:00
Shlomi Noach
6894916516
Merge branch 'master' into bigint-change-nullable 2020-02-14 09:00:05 +02:00
Shlomi Noach
a6d0d5ca26 not null for unique key test 2020-02-05 10:12:29 +02:00
Shlomi Noach
90ab2368dd graceful sleep; remove extra debug info 2019-08-11 15:21:04 +03:00
Shlomi Noach
1305ff6e01 debug info 2019-08-11 15:17:48 +03:00
Zach Moazeni
84fe34b22c
Bump default-retries to 3
There are some legitimate retries that can occur during testing. Namely
`logic.ExpectProcess()` (in `applier.go`). We'll look for a process that
does exist, but timing-wise doesn't have the `state` or `info` columns
populated.

Without this, the test will fail abruptly.
2019-06-10 09:24:03 -04:00
Shlomi Noach
4d7370529b Always use NO_AUTO_VALUE_ON_ZERO 2019-03-24 11:32:37 +02:00
Shlomi Noach
c37ea5dea0
Merge branch 'master' into tests-updates 2019-02-10 11:24:19 +02:00
Shlomi Noach
dd41d9a4b1 Testing nullable int 2019-01-03 11:18:07 +02:00
Shlomi Noach
6f673fa627
Merge branch 'master' into test-decimal 2018-11-28 10:20:07 +02:00
Shlomi Noach
00f5044f4f Testing DECIMAL datatype 2018-11-28 10:19:28 +02:00
Shlomi Noach
a7aa4eb2c0 adding latin1 2018-11-20 19:48:59 +02:00
Shlomi Noach
5d4d1cd31b more interesting sample data 2018-11-20 19:37:51 +02:00
Shlomi Noach
13b17b93c4 testing: convert to character set utf8mb4 2018-11-20 19:35:03 +02:00
Shlomi Noach
c32823c10a BIT datatype tests 2018-11-01 15:27:28 +02:00
Shlomi Noach
48e01ad39b Adding binary/varbinary tests 2018-10-29 10:09:15 +02:00
Shlomi Noach
02602302a0 more attempts at session time zone 2018-10-16 11:25:46 +03:00
Shlomi Noach
9512a2de40 forcinf UTC timezone 2018-10-16 10:30:19 +03:00
Shlomi Noach
b8e02df0fe reading original_sql_mode once 2018-10-16 10:22:59 +03:00
Shlomi Noach
789d247d83 localtests support throttle flag file 2018-10-16 09:47:30 +03:00
Shlomi Noach
2c6b79c4e7 test: add generated column 2018-05-22 14:09:48 +03:00
Shlomi Noach
03b8dadda6 added generated column rename test 2018-05-22 12:55:57 +03:00
Shlomi Noach
db871b42c4 Support for GENERATED (aka virtual) columns 2018-05-22 12:36:52 +03:00
Shlomi Noach
08637009a6 supporting modified sql_mode 2018-05-15 13:47:33 +03:00
Shlomi Noach
7d3514be08
Merge branch 'master' into incorrect-datetime-1970 2018-05-08 21:17:19 +03:00
Shlomi Noach
fb00a13871 Rejecting RENAME TO|AS 2018-05-06 11:19:03 +03:00