Skip to content

Commit 838c2d1

Browse files
committed
Disable tests on vinyl blocked by Tarantool bug
Related to tarantool/tarantool#6448
1 parent 78cb1fd commit 838c2d1

5 files changed

+32
-0
lines changed

test/helper.lua

+24
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,28 @@ function helpers.is_expired_debug(_, tuple)
237237
return true
238238
end
239239

240+
function helpers.tarantool_version()
241+
local major_minor_patch = _G._TARANTOOL:split('-', 1)[1]
242+
local major_minor_patch_parts = major_minor_patch:split('.', 2)
243+
244+
local major = tonumber(major_minor_patch_parts[1])
245+
local minor = tonumber(major_minor_patch_parts[2])
246+
local patch = tonumber(major_minor_patch_parts[3])
247+
248+
return major, minor, patch
249+
end
250+
251+
function helpers.vinyl_is_broken()
252+
-- Blocked by https://github.com/tarantool/tarantool/issues/6448
253+
local major, minor, patch = helpers.tarantool_version()
254+
255+
-- Since Tarantool 1.10.11.
256+
local broken_v1_10 = major >= 1 and (minor > 10 or minor == 10 and patch >= 11)
257+
258+
-- Tarantool >= 2.1.0 and < 2.8.2.
259+
local broken_v2 = (major >= 2 and major < 3) and (minor >= 1 and minor < 8 or minor == 8 and patch <= 2)
260+
261+
return broken_v1_10 or broken_v2
262+
end
263+
240264
return helpers

test/unit/custom_index_test.lua

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ local g = t.group('custom_index', {
1010
})
1111

1212
g.before_each({index_type = 'TREE'}, function(cg)
13+
t.skip_if(cg.params.engine == 'vinyl' and helpers.vinyl_is_broken(),
14+
'Blocked by https://github.com/tarantool/tarantool/issues/6448')
1315
g.space = helpers.create_space_with_tree_index(cg.params.engine)
1416
end)
1517

test/unit/expirationd_stats_test.lua

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ local g = t.group('expirationd_stats', {
1111
})
1212

1313
g.before_each({index_type = 'TREE'}, function(cg)
14+
t.skip_if(cg.params.engine == 'vinyl' and helpers.vinyl_is_broken(),
15+
'Blocked by https://github.com/tarantool/tarantool/issues/6448')
1416
g.space = helpers.create_space_with_tree_index(cg.params.engine)
1517
end)
1618

test/unit/iterator_type_test.lua

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ local g = t.group('iterator_type', {
1111
})
1212

1313
g.before_each({index_type = 'TREE'}, function(cg)
14+
t.skip_if(cg.params.engine == 'vinyl' and helpers.vinyl_is_broken(),
15+
'Blocked by https://github.com/tarantool/tarantool/issues/6448')
1416
g.space = helpers.create_space_with_tree_index(cg.params.engine)
1517
end)
1618

test/unit/start_key_test.lua

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ local g = t.group('start_key', {
1010
})
1111

1212
g.before_each({index_type = 'TREE'}, function(cg)
13+
t.skip_if(cg.params.engine == 'vinyl' and helpers.vinyl_is_broken(),
14+
'Blocked by https://github.com/tarantool/tarantool/issues/6448')
1315
g.space = helpers.create_space_with_tree_index(cg.params.engine)
1416
end)
1517

0 commit comments

Comments
 (0)