Skip to content

Commit ea96b20

Browse files
committed
chore: hide exact version for codspeed valgrind to allow comparison against older versions
1 parent 77811f8 commit ea96b20

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/codspeed.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ jobs:
1717
cmd:
1818
- testdata/take_strings-aarch64 varbinview_non_null
1919
- echo Hello, World!
20-
- ls bench.py
2120
- python3 testdata/test.py
22-
- stress-ng --cpu 1 --timeout 1s
23-
- stress-ng --cpu 4 --timeout 1s
21+
- stress-ng --cpu 1 --cpu-ops 10
22+
- stress-ng --cpu 4 --cpu-ops 10
2423
valgrind:
2524
- "3.26.0"
2625
- "3.25.1"

bench/bench.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ def pytest_generate_tests(metafunc):
117117
),
118118
]
119119

120+
# If the valgrind version is from CodSpeed, we don't want to display the exact version
121+
# to allow comparison against older versions.
122+
if ".codspeed" in runner.valgrind_version:
123+
runner.valgrind_version = "valgrind.codspeed"
124+
120125
# Create test IDs with format: valgrind-version, command, config-name
121126
test_ids = [
122127
f"{runner.valgrind_version}, {runner.cmd}, {config_name}"

0 commit comments

Comments
 (0)