From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 211C8DAB18F; Thu, 12 Sep 2024 13:21:58 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 211C8DAB18F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1726136518; bh=V2TpdJ8JXPmxWuCAjCAk8Yp5SK4/x2HAzgg1JA4I81M=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tWqCCT+Qxc7sVLx8pwm63ctg8SuHovBEZnYCfDMRQiKBvy5aNYCcu4nKxlR/l0jy2 T8f7t+9S5pU8xoP1Z633HwZwrhRyHt2xDjZmvvSJpXUW5mwwiEnsV79bQkDDi2cAaM xUZ22sM75BeM/zkhcpzED68bUS47sd42xbsmf2IQ= Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 0470FDAB189 for ; Thu, 12 Sep 2024 13:21:57 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0470FDAB189 Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5365cf5de24so974054e87.1 for ; Thu, 12 Sep 2024 03:21:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726136516; x=1726741316; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HEWZSYJnKsCsiXs95geuAynMMOQLq7CKTMJOO0xA9SA=; b=f1S96LK2qiCM0KcAjVYKeK1ymqpcpIjKvEpI88SmWxx/PhFKgfZLyStCrZ0vZAmUnS rrzd1RBtLFngfRPScX31PoVJmphf/96e+FoIqJe0HJV7I5mQV7gXXIwcHuPPfQuxWvzZ 8+9c0GEHJGfaqm0T/yBkE9wCHpC0W0hQTUYgsikvaqbBrwthxEG+8/hOCUPFhUqhb3J7 sT5W3aSVkavmn6YdDYlthgCIIal1cskKbm90LRe7QYXWsLyrVwV1k9Bckm1mSoFDv/fV djYGAItYYwB7z6amzpqTZdWf5VzXLLEoG1qx6IB75DeXB9pz689B/360VDQBcC7Ucn+m x7Cg== X-Gm-Message-State: AOJu0YwjHtiIJn0TUxuUCQOYbsPzqhcGnr+2xieKNrSE1mpJpTDYhaSw 6955wy1P/Ea0RJVVDz1eTUBNR1cnxBJ2e5oSZLtZYLehdb4zQS3yTfBi3jOJoAM= X-Google-Smtp-Source: AGHT+IGcGchLs08OdWiTITEaRcgFXgWjDMBXPBjVO5Vx0tPTPcdHles5O9I7XzCPaf65kderTHHGOg== X-Received: by 2002:ac2:5685:0:b0:534:543e:1895 with SMTP id 2adb3069b0e04-53678fe64ebmr1414123e87.39.1726136515082; Thu, 12 Sep 2024 03:21:55 -0700 (PDT) Received: from mandesero.www.tendawifi.com ([85.89.127.21]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5365f8cb707sm1848449e87.176.2024.09.12.03.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 03:21:54 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Tyushev Date: Thu, 12 Sep 2024 10:21:50 +0000 Message-Id: <20240912102153.163481-1-mandesero@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 luajit 0/3] Enable running tests with Valgrind, add CI Valgrind testing workflow X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: mandesero--- via Tarantool-patches Reply-To: mandesero@gmail.com Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Maksim Tyushev This patchset enables running LuaJIT tests under Valgrind, with the option to set custom Valgrind options using the `VALGRIND_OPTIONS` environment variable. It also introduces a Valgrind testing workflow with three scenarios: full checks, and two memory checks without leak detection, where memory is filled with `0x00` and `0xff`. Some tests consistently fail under Valgrind due to various reasons, such as SIGPROF, timeouts, or flaky behavior. These tests are disabled when `LUAJIT_USE_VALGRIND=ON`. Branch: https://github.com/tarantool/luajit/tree/mandesero/lj-3705-turn-off-strcmp-opt-in-debug Issue: https://github.com/tarantool/tarantool/issues/3705 Maksim Tiushev (3): cmake: run tests with Valgrind ci: add Valgrind testing workflow test: disable tests failing with Valgrind .github/actions/setup-valgrind/README.md | 12 +++ .github/actions/setup-valgrind/action.yml | 19 ++++ .github/workflows/valgrind-testing.yaml | 91 +++++++++++++++++++ CMakeLists.txt | 5 + test/CMakeLists.txt | 24 ++++- test/tarantool-tests/CMakeLists.txt | 3 +- ...4-add-proto-trace-sysprof-default.test.lua | 1 + .../gh-7745-oom-on-trace.test.lua | 1 + .../lj-1034-tabov-error-frame.test.lua | 1 + .../lj-512-profiler-hook-finalizers.test.lua | 4 +- .../lj-726-profile-flush-close.test.lua | 4 +- .../misclib-sysprof-lapi.test.lua | 1 + 12 files changed, 162 insertions(+), 4 deletions(-) create mode 100644 .github/actions/setup-valgrind/README.md create mode 100644 .github/actions/setup-valgrind/action.yml create mode 100644 .github/workflows/valgrind-testing.yaml -- 2.34.1