Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space
@ 2026-11-02 13:11 Sergey Bronnikov via Tarantool-patches
  2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 1/3] test: add unit tests for the write buffer Sergey Bronnikov via Tarantool-patches
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sergey Bronnikov via Tarantool-patches @ 2026-11-02 13:11 UTC (permalink / raw)
  To: tarantool-patches, Sergey Kaplun, e.temirgaleev

The patch series adds a unit test for lj_wbuf.c file, a patch
with fix for sysprof crash with regression test and a fix for
release resources on a halted profiler.

Unfortunately, we don't have a unit test for lj_wbuf, so before
applying the fix for sysprof, I decided to add a test that
provides not just line code coverage, but also branch coverage.

The LuaJIT code coverage before (master):
https://github.com/tarantool/luajit/actions/runs/38898752231/job/116965510306

lines: 93.0% (21919 out of 23560)
functions: 95.0% (1448 out of 1524)
branches: 80.9% (12757 out of 15761)

The LuaJIT code coverage after (gh-11620-insufficient-free-disk-space-sysprof):

lines: 93.2% (21951 out of 23564)
functions: 95.1% (1449 out of 1524)
branches: 80.9% (12768 out of 15777)

CI: https://github.com/tarantool/luajit/tree/ligurio/gh-11620-insufficient-free-disk-space-sysprof

Related links:
- https://github.com/tarantool/tarantool/issues/11620
- https://coveralls.io/github/tarantool/luajit?branch=ligurio/gh-11620-insufficient-free-disk-space-sysprof

Sergey Bronnikov (3):
  test: add unit tests for the write buffer
  sysprof: fix crash on a failed stream flush
  sysprof: release resources on a halted profiler

 src/lj_sysprof.c                              |   4 +-
 src/lj_wbuf.c                                 |  20 +-
 .../gh-11620-sysprof-enospc-crash.test.c      | 182 +++++++
 test/tarantool-c-tests/unit-wbuf.test.c       | 490 ++++++++++++++++++
 4 files changed, 691 insertions(+), 5 deletions(-)
 create mode 100644 test/tarantool-c-tests/gh-11620-sysprof-enospc-crash.test.c
 create mode 100644 test/tarantool-c-tests/unit-wbuf.test.c

-- 
2.56.0


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

end of thread, other threads:[~2026-11-02 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 13:11 [Tarantool-patches] [PATCH luajit 0/3] Fix sysprof crash due to insufficient free disk space Sergey Bronnikov via Tarantool-patches
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 1/3] test: add unit tests for the write buffer Sergey Bronnikov via Tarantool-patches
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 2/3] sysprof: fix crash on a failed stream flush Sergey Bronnikov via Tarantool-patches
2026-11-02 13:12 ` [Tarantool-patches] [PATCH luajit 3/3] sysprof: release resources on a halted profiler Sergey Bronnikov 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