From ea96b20751fffb35d8e9d90f3fe5df464983733d Mon Sep 17 00:00:00 2001 From: not-matthias Date: Wed, 5 Nov 2025 19:07:42 +0100 Subject: [PATCH] chore: hide exact version for codspeed valgrind to allow comparison against older versions --- .github/workflows/codspeed.yml | 5 ++--- bench/bench.py | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 623a84d20..222c2268b 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -17,10 +17,9 @@ jobs: cmd: - testdata/take_strings-aarch64 varbinview_non_null - echo Hello, World! - - ls bench.py - python3 testdata/test.py - - stress-ng --cpu 1 --timeout 1s - - stress-ng --cpu 4 --timeout 1s + - stress-ng --cpu 1 --cpu-ops 10 + - stress-ng --cpu 4 --cpu-ops 10 valgrind: - "3.26.0" - "3.25.1" diff --git a/bench/bench.py b/bench/bench.py index 0c54194e7..18e2c472a 100755 --- a/bench/bench.py +++ b/bench/bench.py @@ -117,6 +117,11 @@ def pytest_generate_tests(metafunc): ), ] + # If the valgrind version is from CodSpeed, we don't want to display the exact version + # to allow comparison against older versions. + if ".codspeed" in runner.valgrind_version: + runner.valgrind_version = "valgrind.codspeed" + # Create test IDs with format: valgrind-version, command, config-name test_ids = [ f"{runner.valgrind_version}, {runner.cmd}, {config_name}"