Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua
@ 2020-12-08 16:00 Alexander V. Tikhonov
  2020-12-10 15:28 ` Oleg Koshovetc
  2020-12-11  9:17 ` Kirill Yukhin
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander V. Tikhonov @ 2020-12-08 16:00 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: tarantool-patches

Cc: tarantool-patches@dev.tarantool.org

Added test-run filter on box.snapshot error message:

  'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'

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.

Needed for #4346
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4346-filter-output
Issue: https://github.com/tarantool/tarantool/issues/4346

 test/vinyl/errinj.result   | 5 +++++
 test/vinyl/errinj.test.lua | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/test/vinyl/errinj.result b/test/vinyl/errinj.result
index bf49f4e46..6f12e2b4a 100644
--- a/test/vinyl/errinj.result
+++ b/test/vinyl/errinj.result
@@ -10,6 +10,11 @@ fiber = require('fiber')
 errinj = box.error.injection
 ---
 ...
+test_run:cmd("push filter 'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'" .. \
+             "to 'Invalid VYLOG file: Slice <NUM> deleted but not registered'")
+---
+- true
+...
 --
 -- Lost data in case of dump error
 --
diff --git a/test/vinyl/errinj.test.lua b/test/vinyl/errinj.test.lua
index 2c8121364..cdc695e1b 100644
--- a/test/vinyl/errinj.test.lua
+++ b/test/vinyl/errinj.test.lua
@@ -2,6 +2,10 @@ test_run = require('test_run').new()
 fio = require('fio')
 fiber = require('fiber')
 errinj = box.error.injection
+
+test_run:cmd("push filter 'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'" .. \
+             "to 'Invalid VYLOG file: Slice <NUM> deleted but not registered'")
+
 --
 -- Lost data in case of dump error
 --
-- 
2.25.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua
  2020-12-08 16:00 [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua Alexander V. Tikhonov
@ 2020-12-10 15:28 ` Oleg Koshovetc
  2020-12-11  9:17 ` Kirill Yukhin
  1 sibling, 0 replies; 3+ messages in thread
From: Oleg Koshovetc @ 2020-12-10 15:28 UTC (permalink / raw)
  To: Alexander V. Tikhonov, Kirill Yukhin; +Cc: tarantool-patches

LGTM

NIT:

After concatenation the final command will look like "push filter 
'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'to 'Invalid 
VYLOG file: Slice <NUM> deleted but not registered'" with missing space 
before "to". As far as I am concerned this is still going to be parsed 
correctly, however I would like to see a space there.

On 08.12.2020 19:00, Alexander V. Tikhonov via Tarantool-patches wrote:
> Cc: tarantool-patches@dev.tarantool.org
>
> Added test-run filter on box.snapshot error message:
>
>    'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'
>
> 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.
>
> Needed for #4346
> ---
>
> Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4346-filter-output
> Issue: https://github.com/tarantool/tarantool/issues/4346
>
>   test/vinyl/errinj.result   | 5 +++++
>   test/vinyl/errinj.test.lua | 4 ++++
>   2 files changed, 9 insertions(+)
>
> diff --git a/test/vinyl/errinj.result b/test/vinyl/errinj.result
> index bf49f4e46..6f12e2b4a 100644
> --- a/test/vinyl/errinj.result
> +++ b/test/vinyl/errinj.result
> @@ -10,6 +10,11 @@ fiber = require('fiber')
>   errinj = box.error.injection
>   ---
>   ...
> +test_run:cmd("push filter 'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'" .. \
> +             "to 'Invalid VYLOG file: Slice <NUM> deleted but not registered'")
> +---
> +- true
> +...
>   --
>   -- Lost data in case of dump error
>   --
> diff --git a/test/vinyl/errinj.test.lua b/test/vinyl/errinj.test.lua
> index 2c8121364..cdc695e1b 100644
> --- a/test/vinyl/errinj.test.lua
> +++ b/test/vinyl/errinj.test.lua
> @@ -2,6 +2,10 @@ test_run = require('test_run').new()
>   fio = require('fio')
>   fiber = require('fiber')
>   errinj = box.error.injection
> +
> +test_run:cmd("push filter 'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'" .. \
> +             "to 'Invalid VYLOG file: Slice <NUM> deleted but not registered'")
> +
>   --
>   -- Lost data in case of dump error
>   --

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua
  2020-12-08 16:00 [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua Alexander V. Tikhonov
  2020-12-10 15:28 ` Oleg Koshovetc
@ 2020-12-11  9:17 ` Kirill Yukhin
  1 sibling, 0 replies; 3+ messages in thread
From: Kirill Yukhin @ 2020-12-11  9:17 UTC (permalink / raw)
  To: Alexander V. Tikhonov; +Cc: tarantool-patches

Hello,

On 08 Dec 19:00, Alexander V. Tikhonov wrote:
> Cc: tarantool-patches@dev.tarantool.org
> 
> Added test-run filter on box.snapshot error message:
> 
>   'Invalid VYLOG file: Slice [0-9]+ deleted but not registered'
> 
> 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.
> 
> Needed for #4346
> ---
> 
> Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4346-filter-output
> Issue: https://github.com/tarantool/tarantool/issues/4346

LGTM.
I've checked your patch into 1.10, 2.5, 2.6 and master.

--
Regards, Kirill Yukhin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-11  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 16:00 [Tarantool-patches] [PATCH v1] test: add test filter for vinyl/errinj.test.lua Alexander V. Tikhonov
2020-12-10 15:28 ` Oleg Koshovetc
2020-12-11  9:17 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox