[Tarantool-patches] [PATCH v1 1/2] test: filter output message for test

Alexander V. Tikhonov avtikhon at tarantool.org
Thu Nov 5 17:34:00 MSK 2020


Added test-run filter for replication/election_qsync_stress.test.lua
test on error message:

  'error: Found uncommitted sync transactions from other instance with id [0-9]+'

to avoid of printing changing data in results file to be able to use
its checksums in fragile list of test-run to rerun it as flaky issue.
---
 test/replication/election_qsync_stress.result   | 6 ++++++
 test/replication/election_qsync_stress.test.lua | 3 +++
 test/replication/suite.ini                      | 2 +-
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/test/replication/election_qsync_stress.result b/test/replication/election_qsync_stress.result
index 9fab2f1d7..b54dc23c4 100644
--- a/test/replication/election_qsync_stress.result
+++ b/test/replication/election_qsync_stress.result
@@ -6,6 +6,12 @@ netbox = require('net.box')
  | ---
  | ...
 
+test_run:cmd("push filter 'error: Found uncommitted sync transactions from other instance with id [0-9]+'" .. \
+             "to 'error: Found uncommitted sync transactions from other instance with id <NUM>'")
+ | ---
+ | - true
+ | ...
+
 --
 -- gh-1146: Leader election + Qsync
 --
diff --git a/test/replication/election_qsync_stress.test.lua b/test/replication/election_qsync_stress.test.lua
index 0ba15eef7..873aabf00 100644
--- a/test/replication/election_qsync_stress.test.lua
+++ b/test/replication/election_qsync_stress.test.lua
@@ -1,6 +1,9 @@
 test_run = require('test_run').new()
 netbox = require('net.box')
 
+test_run:cmd("push filter 'error: Found uncommitted sync transactions from other instance with id [0-9]+'" .. \
+             "to 'error: Found uncommitted sync transactions from other instance with id <NUM>'")
+
 --
 -- gh-1146: Leader election + Qsync
 --
diff --git a/test/replication/suite.ini b/test/replication/suite.ini
index 6136c934f..a209f0f3c 100644
--- a/test/replication/suite.ini
+++ b/test/replication/suite.ini
@@ -119,7 +119,7 @@ fragile = {
         },
         "election_qsync_stress.test.lua": {
             "issues": [ "gh-5395" ],
-            "checksums": [ "634bda94accdcdef7b1db3e14f28f445", "36bcdae426c18a60fd13025c09f197d0", "209c865525154a91435c63850f15eca0", "ca38ff2cdfa65b3defb26607b24454c6", "3b6c573d2aa06ee382d6f27b6a76657b", "bcf08e055cf3ccd9958af25d0fba29f8", "411e7462760bc3fc968b68b4b7267ea1", "37e671aea27e3396098f9d13c7fa7316" ]
+            "checksums": [ "133676d72249c570f7124440150a8790", "83e1b4d48bd095590283247352b37ebb", "358bf14addaee9c8f2dbfe64374bb771", "e217688aa8c995123506662a1b07f2d1", "7cbb6b62027df3d1f31ea94f298bc2e0" ]
         },
         "gh-3711-misc-no-restart-on-same-configuration.test.lua": {
             "issues": [ "gh-5407" ],
-- 
2.25.1



More information about the Tarantool-patches mailing list