* [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record
@ 2024-12-19 13:11 Sergey Kaplun via Tarantool-patches
2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2024-12-19 13:11 UTC (permalink / raw)
To: Maxim Kokryashkin, Sergey Bronnikov; +Cc: tarantool-patches
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
--
2.47.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record
2024-12-19 13:11 [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record Sergey Kaplun via Tarantool-patches
@ 2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches
2024-12-23 7:45 ` Maxim Kokryashkin via Tarantool-patches
2024-12-23 16:25 ` Sergey Kaplun via Tarantool-patches
2 siblings, 0 replies; 4+ messages in thread
From: Sergey Bronnikov via Tarantool-patches @ 2024-12-20 12:31 UTC (permalink / raw)
To: Sergey Kaplun, Maxim Kokryashkin; +Cc: tarantool-patches
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record
2024-12-19 13:11 [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record Sergey Kaplun via Tarantool-patches
2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches
@ 2024-12-23 7:45 ` Maxim Kokryashkin via Tarantool-patches
2024-12-23 16:25 ` Sergey Kaplun via Tarantool-patches
2 siblings, 0 replies; 4+ messages in thread
From: Maxim Kokryashkin via Tarantool-patches @ 2024-12-23 7:45 UTC (permalink / raw)
To: Sergey Kaplun; +Cc: tarantool-patches
Hi, Sergey!
Thanks for the patch!
LGTM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record
2024-12-19 13:11 [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record Sergey Kaplun via Tarantool-patches
2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches
2024-12-23 7:45 ` Maxim Kokryashkin via Tarantool-patches
@ 2024-12-23 16:25 ` Sergey Kaplun via Tarantool-patches
2 siblings, 0 replies; 4+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2024-12-23 16:25 UTC (permalink / raw)
To: Maxim Kokryashkin, Sergey Bronnikov; +Cc: tarantool-patches
I've applied the patch into all long-term branches in tarantool/luajit
and bumped a new version in master [1], release/3.3 [2], release/3.2 [3]
and release/2.11 [4].
[1]: https://github.com/tarantool/tarantool/pull/10974
[2]: https://github.com/tarantool/tarantool/pull/10975
[3]: https://github.com/tarantool/tarantool/pull/10976
[4]: https://github.com/tarantool/tarantool/pull/10977
--
Best regards,
Sergey Kaplun
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-23 16:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 13:11 [Tarantool-patches] [PATCH luajit] test: fix flaky fix-slots-overflow-for-varg-record Sergey Kaplun via Tarantool-patches
2024-12-20 12:31 ` Sergey Bronnikov via Tarantool-patches
2024-12-23 7:45 ` Maxim Kokryashkin via Tarantool-patches
2024-12-23 16:25 ` Sergey Kaplun via Tarantool-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox