Commit 67cc636
authored
Improve tests for various error scenarios (#1642)
* Improve tests for various error scenarios
- Regex meta characters in index names should not break warning
detection (required code fix)
- Improve tests that only checked number of rows (need to validate data
as well)
- Test positive case allowing ignored duplicates on migration key
- Test behavior with PanicOnWarnings disabled
* Address Copilot feedback
* Add test for warnings on composite unique keys
* Add test for updating pk with duplicate
* Improve replica test debugging
- Print log excerpt on failure
- Upload full log artifacts on failure
* Reduce flakiness in update-pk test
* Revise test
* More robust test fix
* Make MySQL wait strategy less flaky
Removed the `wait.ForExposedPort()` override from test files. The tests
will now use the MySQL module's default wait strategy
(`wait.ForLog("port: 3306 MySQL Community Server")`), which properly
waits for MySQL to be ready to accept connections. Otherwise the port
may be exposed, but MySQL is still initializing and not ready to accept
connections.
* Customize update-pk integration test
Add support for test-specific execution so that we can guarantee that
we're specifically testing the DML apply phase
* Fix regression in integration test harness
* Add test timeouts and fix error propagation
Prevent indefinite test hangs by adding 120-second timeout and
duration reporting. Fix silent error drops by propagating errors from
background write goroutines to PanicAbort channel. Check for abort in
sleepWhileTrue loop and handle its error in cutOver.1 parent b000b24 commit 67cc636
File tree
11 files changed
+656
-85
lines changed- .github/workflows
- go/logic
- localtests
- panic-on-warnings-update-pk-with-duplicate-on-new-unique-index
11 files changed
+656
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
97 | 112 | | |
98 | 113 | | |
99 | 114 | | |
| |||
928 | 943 | | |
929 | 944 | | |
930 | 945 | | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
931 | 952 | | |
932 | 953 | | |
933 | 954 | | |
| |||
936 | 957 | | |
937 | 958 | | |
938 | 959 | | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
| 960 | + | |
943 | 961 | | |
944 | 962 | | |
945 | 963 | | |
| |||
1570 | 1588 | | |
1571 | 1589 | | |
1572 | 1590 | | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
1573 | 1597 | | |
1574 | 1598 | | |
1575 | 1599 | | |
| |||
1578 | 1602 | | |
1579 | 1603 | | |
1580 | 1604 | | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
| 1605 | + | |
1585 | 1606 | | |
1586 | 1607 | | |
1587 | 1608 | | |
| |||
0 commit comments