Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>,
	Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record
Date: Fri, 20 Dec 2024 15:31:54 +0300	[thread overview]
Message-ID: <1d75a7de-f58a-42c5-ad17-61170e66de2b@tarantool.org> (raw)
In-Reply-To: <20241219131116.27586-1-skaplun@tarantool.org>

[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]

Hi, Sergey,

thanks for the patch! LGTM

On 19.12.2024 16:11, Sergey Kaplun wrote:
> 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.
> ---
>
> Branch:https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-flaky-test
>
> Tested locally on the Tarantool
> Before the patch:
> | ctest --repeat-until-fail 100 -R fix-slots-overflow-for-varg-record.test.lua
> Failed
>
> With the patch
> | ctest --repeat-until-fail 1000 -R fix-slots-overflow-for-varg-record.test.lua
> |...
> | 100% tests passed, 0 tests failed out of 1
>
>   .../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 b09a722d..7ffa6719 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
>   

[-- Attachment #2: Type: text/html, Size: 1898 bytes --]

      reply	other threads:[~2024-12-20 12:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19 13:11 Sergey Kaplun via Tarantool-patches
2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1d75a7de-f58a-42c5-ad17-61170e66de2b@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=m.kokryashkin@tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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