From a42ffb5c9ef10672f97673d55940c2dd73093fe6 Mon Sep 17 00:00:00 2001 From: Sergey Kaplun Date: Thu, 19 Dec 2024 15:05:42 +0300 Subject: [PATCH] test: fix flaky fix-slots-overflow-for-varg-record The aforementioned test is flaky when it is run by Tarantool, since the necessary trace isn't compiled due to hotcount collisions. This patch fixes this by adding the additional reset of hot counters. Reviewed-by: Maxim Kokryashkin Reviewed-by: Sergey Bronnikov Signed-off-by: Sergey Kaplun (cherry picked from commit 21fdfef8f0bac39fc0e5f44ca35d4a907f03e020) --- .../fix-slots-overflow-for-varg-record.test.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tarantool-tests/fix-slots-overflow-for-varg-record.test.lua b/test/tarantool-tests/fix-slots-overflow-for-varg-record.test.lua index b09a722dac..7ffa6719cd 100644 --- a/test/tarantool-tests/fix-slots-overflow-for-varg-record.test.lua +++ b/test/tarantool-tests/fix-slots-overflow-for-varg-record.test.lua @@ -89,6 +89,9 @@ wrapper() assert(not traceinfo(1), 'no traces recorded') +-- Reset hot counters to avoid collisions and blacklisting. +jit.opt.start('hotloop=1') + -- The simplest trace to compile. for _ = 1, 4 do end