Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
81bd5bd
Introduce GoogleTest framework for Valkey unit testing (#2956)
harrylin98 Jan 14, 2026
f766e99
Fix unnecessary recompilation in gtest Makefile (#3063)
harrylin98 Jan 15, 2026
329ac61
Blocked_inuse
harrylhl Jan 29, 2026
28aa8c8
Combine the unblocked client lists
harrylhl Feb 4, 2026
4160328
Merge branch 'valkey-io:unstable' into blockedInUse
harrylin98 Feb 4, 2026
30ef060
Merge remote-tracking branch 'origin/unstable' into feature-gtest
madolson Feb 9, 2026
476c5c8
Format code
harrylhl Feb 4, 2026
2af800b
Merge upstream unstable into feature-gtest
madolson Feb 17, 2026
d0a32a7
Add `ALLOW_BUSY` flag to `SELECT` and various `CLIENT` sub-commands (…
gabiganam Feb 19, 2026
13dd4b8
Skip large-memory unit test with ASan that got OOM (#3230)
Nikhil-Manglore Feb 19, 2026
014adf1
Convert Valkey C unit tests to GTEST (#3187)
asagege Feb 19, 2026
df1d5f3
Merge unstable into feature-gtest (#3240)
harrylin98 Feb 21, 2026
4aff5f9
Merge branch 'unstable' into Feb20_final_merge
harrylhl Feb 21, 2026
24b6784
Update deps/libvalkey to version 0.4.0 (#3216)
bjosv Feb 23, 2026
130befc
Dual-channel-replication announces itself at replica-announce-ip if c…
jdheyburn Feb 23, 2026
1f47332
Fix getKeysUsingKeySpecs keynum case ignoring keystep when calc the l…
enjoy-binbin Feb 23, 2026
61f990f
Fix for [CVE-2026-21863] Remote DoS with malformed Valkey Cluster bus…
roshkhatri Feb 23, 2026
0d713a4
Fix for [CVE-2025-67733] RESP Protocol Injectiton via Lua error_reply
roshkhatri Feb 23, 2026
cec912c
Merge branch 'unstable' into Feb20_final_merge
harrylin98 Feb 23, 2026
2565d44
Reset request type after handling empty requests
madolson Feb 22, 2026
2b0a1c3
Fix Tcl 9 compatibility in cluster packet test (#3251)
roshkhatri Feb 23, 2026
537cb07
Logging fix or improvement around new shard ID generation (#3192)
enjoy-binbin Feb 24, 2026
501b315
Skip expired hash fields when loading non-preamble RDB on primary (#3…
hanxizh9910 Feb 24, 2026
262b371
Abort and swap the tables if ht1 is very full during the hashtable sh…
enjoy-binbin Feb 24, 2026
1ee434e
Bugfix for GIL deadlock while unloading script engine, reenable memor…
rainsupreme Feb 24, 2026
e9b10e5
Merge branch 'unstable' into Feb20_final_merge
harrylin98 Feb 24, 2026
4dee322
Fix flake dual-channel-replication primary gets cob overrun before es…
hanxizh9910 Feb 25, 2026
d2eef6a
Address comments
harrylhl Feb 13, 2026
c471364
Fix type of now parameter in rdbLoadObject() to use mstime_t instead …
hanxizh9910 Feb 25, 2026
2188288
Merge branch 'Feb20_final_merge' into blockedInUse
harrylin98 Feb 25, 2026
39332bd
Replace mutexQueuePeek with current_job field for BIO memcheck fix (#…
asagege Feb 25, 2026
994d87a
Deflake test 'LATENCY GRAPH can output the event graph' (#3260)
yanamolo Feb 26, 2026
3a1e5d5
Lazy loading of RDMA libs in CLI/Benchmark when building as module (#…
quanyeyang Feb 26, 2026
9c8130d
Adds scorecard workflow to publish OpenSSF scores (#3163)
gaganhr94 Feb 26, 2026
f3e957c
Introduce GoogleTest for Valkey unit testing (#3241)
harrylin98 Feb 26, 2026
75fb0e6
Deflake Restart target replica during migration (without save) causes…
hanxizh9910 Feb 27, 2026
3be5a11
Adding unit test
harrylin98 Feb 25, 2026
7d449c6
Add Jim Brunner as a committer (#3272)
madolson Feb 27, 2026
52a94f7
Add gtest dependencies to unit test workflows (#3270)
harrylin98 Feb 27, 2026
834dc83
Set read permission in workflow to improve OpenSSF score (#3267)
gaganhr94 Feb 27, 2026
79bab14
Merge branch 'unstable' into blockedInUse
harrylin98 Feb 27, 2026
74ad2f9
Suppress valgrind for BIO jobs (#3277)
asagege Feb 28, 2026
dab36ef
Fix use zfree in cli --eval path (#3281)
bandalgomsu Mar 1, 2026
ec5e8fa
Fix use-after-free in generateSyncSlotsEstablishCommand (#3283)
twooster Mar 2, 2026
153f495
Deflake ttl persistence in aof test (#3285)
ranshid Mar 2, 2026
2937911
Show replica dual-channel replication buffer memory in INFO MEMORY an…
enjoy-binbin Mar 2, 2026
661c62f
Fix weekly release runs checking out unstable in daily workflow (#3295)
sarthakaggarwal97 Mar 3, 2026
323ed03
rename functions - prefix should be zset not zsl (#3278)
rainsupreme Mar 3, 2026
b1f590f
Fix TSAN compatibility for module loading (#3257)
baswanth09 Mar 3, 2026
c21689a
[DEFLAKE] Fix flaky block_keyspace_notification pipelining test (#3294)
rainsupreme Mar 3, 2026
7e110ae
Support TLS authentication using SAN URI (#3078)
yang-z-o Mar 3, 2026
896e9c8
Fix compatibility issue for death test with Valgrind (#3301)
harrylin98 Mar 4, 2026
d49eac9
Update the CodeQL action to resolve v3 deprecation warnings (#3310)
kurtmckee Mar 5, 2026
a731e45
Fix compatibility for OpenSSL < 3.0 and Almalinux version mismatch fo…
roshkhatri Mar 5, 2026
dcfb926
Fix zset to operate defrag scan lexicographically (#3316)
ranshid Mar 5, 2026
35db3e1
fix Codecov v5 input from file to files (#3308)
sarthakaggarwal97 Mar 5, 2026
cb9e7c9
Let script continue if busy-reply-threshold is zero (#3307)
alon-arenberg Mar 5, 2026
d173441
Fix timing issue in LATENCY GRAPH test (#3265)
enjoy-binbin Mar 5, 2026
747af1a
Use ar archiver installed by brew in CI `build-macos-latest` (#3317)
bjosv Mar 6, 2026
acb0b9b
Recommend passwordless users for mTLS certificate-based authenticatio…
yang-z-o Mar 6, 2026
8c397ea
Fixed point arithmetic for x86 TSC (#3314)
dvkashapov Mar 6, 2026
fc217fc
Update cluster config file when NOFAILOVER changes (#3280)
enjoy-binbin Mar 7, 2026
8a4a7b2
CLUSTERSCAN Command (#2934)
nmvk Mar 9, 2026
9f01067
Changed LUA module dependency (#3325)
eifrah-aws Mar 9, 2026
3d8a1b5
Replace long long timestamp references with more specific mstime_t/us…
curious-george-rk Mar 9, 2026
b112f8a
Add connections check in unit test
harrylin98 Feb 28, 2026
8caa292
Adds cluster benchmark support for benchmark-on-label (#3338)
roshkhatri Mar 9, 2026
0ff55de
Make the number of healthy nodes in gossip section configurable (#2746)
hpatro Mar 9, 2026
8dee168
Fixing memory leak in unit test
harrylin98 Mar 9, 2026
cddeeb2
Merge branch 'valkey-io:unstable' into blockedInUse
harrylin98 Mar 9, 2026
5deebd0
[flaky-tests] atomically snapshot dual-channel memory stats (#3336)
sarthakaggarwal97 Mar 9, 2026
9dcc5a3
Merge branch 'valkey-io:unstable' into blockedInUse
harrylin98 Mar 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .config/typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extend-exclude = [
".git/",
"deps/",
# crc16_slottable is primarily pre-generated random strings.
"src/crc16_slottable.h",
"src/crc16_slottable.c",
]
ignore-hidden = false

Expand Down Expand Up @@ -71,3 +71,6 @@ ake = "ake"
[type.tcl.extend-words]
fo = "fo"
tre = "tre"

[type.cpp.extend-words]
fo = "fo"
2 changes: 1 addition & 1 deletion .github/instructions/core-engine.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Apply these standards to core engine C code. Do NOT apply to `deps/` (vendored d
- **PR Scope:** Separate refactoring from functional changes for easier backporting.

## 5. Testing & Documentation
- **Unit Tests:** Required for data structures in `src/unit/`. Test files should follow `test_*.c` naming.
- **Unit Tests:** Required for data structures in `src/unit/`. Test files should follow `test_*.cpp` naming.
- **Integration Tests:** Required for commands in `tests/`.
- **Command Changes:** New/modified commands need corresponding updates in `src/commands/*.json`.
- **New C Files:** Remind to update `CMakeLists.txt` when adding new `.c` source files.
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/benchmark-on-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ permissions:
jobs:
benchmark:
if: |
github.event.action == 'labeled' && github.event.label.name == 'run-benchmark' &&
github.event.action == 'labeled' &&
(github.event.label.name == 'run-benchmark' || github.event.label.name == 'run-cluster-benchmark') &&
github.repository == 'valkey-io/valkey'

runs-on: ["self-hosted", "ec2-al-2023-pr-benchmarking-arm64"]
Expand Down Expand Up @@ -86,6 +87,15 @@ jobs:
echo "VALKEY_BENCHMARK_PATH=$VALKEY_BENCHMARK_PATH" >> $GITHUB_ENV
echo "Latest valkey-benchmark path: $VALKEY_BENCHMARK_PATH"

- name: Enable cluster mode in benchmark config
working-directory: valkey-perf-benchmark
if: github.event.label.name == 'run-cluster-benchmark'
run: |
CONFIG_FILE="../valkey/.github/benchmark_configs/benchmark-config-arm.json"
sed -i 's/"cluster_mode": false/"cluster_mode": true/g' "$CONFIG_FILE"
echo "Updated config for cluster mode:"
cat "$CONFIG_FILE"

- name: Run benchmarks
working-directory: valkey-perf-benchmark
run: |
Expand Down Expand Up @@ -120,7 +130,7 @@ jobs:
continue-on-error: true
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: benchmark-results
name: ${{ github.event.label.name }}-results
path: |
./valkey-perf-benchmark/results/${{ github.event.pull_request.merge_commit_sha }}/metrics.json
./valkey-perf-benchmark/results/${{ github.event.pull_request.base.ref }}/metrics.json
Expand All @@ -137,11 +147,13 @@ jobs:
const sha = '${{ github.event.pull_request.head.sha }}';
const short = sha.slice(0,7);
const link = `[\`${short}\`](https://github.com/${owner}/${repo}/commit/${sha})`
const label = '${{ github.event.label.name }}';
const prefix = label === 'run-cluster-benchmark' ? 'Cluster Benchmark' : 'Benchmark';
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner,
repo,
body: `**Benchmark ran on this commit:** ${link}\n\n${body}`
body: `**${prefix} ran on this commit:** ${link}\n\n${body}`
});

- name: Cleanup any running valkey processes
Expand All @@ -160,7 +172,7 @@ jobs:
fi

- name: Remove ${{ github.event.label.name }} label
if: always() && github.event.label.name == 'run-benchmark'
if: always() && (github.event.label.name == 'run-benchmark' || github.event.label.name == 'run-cluster-benchmark')
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
54 changes: 44 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
- name: make
# Fail build if there are warnings
# build with TLS just for compilation coverage
run: make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
run: |
sudo apt-get install pkg-config libgtest-dev libgmock-dev
make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
- name: test
run: |
sudo apt-get install tcl8.6 tclx
Expand All @@ -50,7 +52,7 @@ jobs:
if [[ ! -z "$dirty" ]]; then echo "$dirty"; exit 1; fi
- name: unit tests
run: |
./src/valkey-unit-tests
./src/unit/valkey-unit-gtests

test-ubuntu-latest-compatibility:
runs-on: ubuntu-latest
Expand All @@ -62,6 +64,9 @@ jobs:
- {version: "8.0.6", file: "valkey-8.0.6-noble-x86_64.tar.gz"}
- {version: "8.1.4", file: "valkey-8.1.4-noble-x86_64.tar.gz"}
steps:
- name: Install gtest
run: |
sudo apt-get install pkg-config libgtest-dev libgmock-dev
- name: Install libbacktrace
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down Expand Up @@ -103,7 +108,7 @@ jobs:
sudo apt-get install -y cmake libssl-dev
mkdir -p build-release
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DBUILD_TLS=yes -DBUILD_UNIT_TESTS=yes
cmake -DCMAKE_BUILD_TYPE=Release .. -DBUILD_TLS=yes -DBUILD_UNIT_GTESTS=yes
make -j$(nproc)
- name: test
run: |
Expand All @@ -112,7 +117,7 @@ jobs:
./build-release/runtest --verbose --tags -slow --dump-logs --tls
- name: unit tests
run: |
./build-release/bin/valkey-unit-tests
./build-release/bin/valkey-unit-gtests

test-sanitizer-address:
runs-on: ubuntu-latest
Expand All @@ -128,15 +133,18 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: make
# build with TLS module just for compilation coverage
run: make -j4 all-with-unit-tests SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module USE_LIBBACKTRACE=yes
run: |
sudo apt-get install pkg-config libgtest-dev libgmock-dev
make -j4 all-with-unit-tests SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module USE_LIBBACKTRACE=yes
- name: testprep
run: sudo apt-get install tcl8.6 tclx -y
- name: test
run: ./runtest --verbose --tags -slow --dump-logs
- name: module api test
run: CFLAGS='-Werror' ./runtest-moduleapi --verbose --dump-logs
- name: unit tests
run: ./src/valkey-unit-tests
run: |
./src/unit/valkey-unit-gtests

test-rdma:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -220,9 +228,17 @@ jobs:
- run: cd libbacktrace && ./configure && make && sudo make install
- name: Checkout Valkey
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install build dependencies
run: brew install llvm googletest
- name: make
# Build with additional upcoming features
run: make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
run: |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export CC=/opt/homebrew/opt/llvm/bin/clang
export CXX=/opt/homebrew/opt/llvm/bin/clang++
export AR=/opt/homebrew/opt/llvm/bin/llvm-ar
export RANLIB=/opt/homebrew/opt/llvm/bin/llvm-ranlib
make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local

build-32bit:
runs-on: ubuntu-latest
Expand All @@ -240,16 +256,34 @@ jobs:
cd libbacktrace && ./configure CFLAGS="-m32" --prefix=/usr/local/libbacktrace32 && make && sudo make install
- name: Checkout Valkey
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install gtest
run: |
sudo apt-get update
sudo apt-get install libgtest-dev
mkdir -p /tmp/gtest32
cd /tmp/gtest32
cmake -B build32 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-m32" \
-DCMAKE_CXX_FLAGS="-m32" \
-DCMAKE_EXE_LINKER_FLAGS="-m32" \
/usr/src/googletest
cmake --build build32 --parallel
sudo cp build32/lib/*.a /usr/lib32/
cd $GITHUB_WORKSPACE
- name: make
# Fast float requires C++ 32-bit libraries to compile on 64-bit ubuntu
# machine i.e. "-cross" suffixed version. Cross-compiling c++ to 32-bit
# also requires multilib support for g++ compiler i.e. "-multilib"
# suffixed version of g++. g++-multilib generally includes libstdc++.
# *cross version as well, but it is also added explicitly just in case.
run: make -j4 SERVER_CFLAGS='-Werror' 32bit USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32
run: |
make -j4 SERVER_CFLAGS='-Werror' 32bit USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32 \
GTEST_CFLAGS="-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include" \
GTEST_LIBS="/usr/lib32/libgtest.a /usr/lib32/libgmock.a"
- name: unit tests
run: |
./src/valkey-unit-tests
./src/unit/valkey-unit-gtests

build-libc-malloc:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -278,7 +312,7 @@ jobs:
path: libbacktrace
- name: Build libbacktrace
run: |
dnf -y install epel-release gcc gcc-c++ make procps-ng which
dnf -y install epel-release gcc gcc-c++ make procps-ng which git cmake
cd libbacktrace && ./configure && make && make install
- name: Checkout Valkey
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Clang Format Check

permissions:
contents: read

on:
push:
paths-ignore:
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:
# Run clang-format and capture the diff
cd src
shopt -s globstar
clang-format-18 -i **/*.c **/*.h
clang-format-18 -i **/*.c **/*.h **/*.cpp **/*.hpp
# Capture the diff output
DIFF=$(git diff)
if [ ! -z "$DIFF" ]; then
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Codecov"

permissions:
contents: read

# Enabling on each push is to display the coverage changes in every PR,
# where each PR needs to be compared against the coverage of the head commit
on:
Expand Down Expand Up @@ -41,4 +44,4 @@ jobs:
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./src/valkey.info
files: ./src/valkey.info
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Initialize CodeQL
uses: github/codeql-action/init@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3.32.2
uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3.32.2
uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3.32.2
uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
Loading
Loading