Skip to content

Commit 7c0d37b

Browse files
authored
Merge branch 'unstable' into feature/automated-test-failure-detector
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
2 parents a064e1a + 6c329df commit 7c0d37b

85 files changed

Lines changed: 7304 additions & 5433 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extend-exclude = [
55
".git/",
66
"deps/",
77
# crc16_slottable is primarily pre-generated random strings.
8-
"src/crc16_slottable.h",
8+
"src/crc16_slottable.c",
99
]
1010
ignore-hidden = false
1111

.github/workflows/benchmark-on-label.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ permissions:
2020
jobs:
2121
benchmark:
2222
if: |
23-
github.event.action == 'labeled' && github.event.label.name == 'run-benchmark' &&
23+
github.event.action == 'labeled' &&
24+
(github.event.label.name == 'run-benchmark' || github.event.label.name == 'run-cluster-benchmark') &&
2425
github.repository == 'valkey-io/valkey'
2526
2627
runs-on: ["self-hosted", "ec2-al-2023-pr-benchmarking-arm64"]
@@ -86,6 +87,15 @@ jobs:
8687
echo "VALKEY_BENCHMARK_PATH=$VALKEY_BENCHMARK_PATH" >> $GITHUB_ENV
8788
echo "Latest valkey-benchmark path: $VALKEY_BENCHMARK_PATH"
8889
90+
- name: Enable cluster mode in benchmark config
91+
working-directory: valkey-perf-benchmark
92+
if: github.event.label.name == 'run-cluster-benchmark'
93+
run: |
94+
CONFIG_FILE="../valkey/.github/benchmark_configs/benchmark-config-arm.json"
95+
sed -i 's/"cluster_mode": false/"cluster_mode": true/g' "$CONFIG_FILE"
96+
echo "Updated config for cluster mode:"
97+
cat "$CONFIG_FILE"
98+
8999
- name: Run benchmarks
90100
working-directory: valkey-perf-benchmark
91101
run: |
@@ -120,7 +130,7 @@ jobs:
120130
continue-on-error: true
121131
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
122132
with:
123-
name: benchmark-results
133+
name: ${{ github.event.label.name }}-results
124134
path: |
125135
./valkey-perf-benchmark/results/${{ github.event.pull_request.merge_commit_sha }}/metrics.json
126136
./valkey-perf-benchmark/results/${{ github.event.pull_request.base.ref }}/metrics.json
@@ -137,11 +147,13 @@ jobs:
137147
const sha = '${{ github.event.pull_request.head.sha }}';
138148
const short = sha.slice(0,7);
139149
const link = `[\`${short}\`](https://github.com/${owner}/${repo}/commit/${sha})`
150+
const label = '${{ github.event.label.name }}';
151+
const prefix = label === 'run-cluster-benchmark' ? 'Cluster Benchmark' : 'Benchmark';
140152
await github.rest.issues.createComment({
141153
issue_number: context.issue.number,
142154
owner,
143155
repo,
144-
body: `**Benchmark ran on this commit:** ${link}\n\n${body}`
156+
body: `**${prefix} ran on this commit:** ${link}\n\n${body}`
145157
});
146158
147159
- name: Cleanup any running valkey processes
@@ -160,7 +172,7 @@ jobs:
160172
fi
161173
162174
- name: Remove ${{ github.event.label.name }} label
163-
if: always() && github.event.label.name == 'run-benchmark'
175+
if: always() && (github.event.label.name == 'run-benchmark' || github.event.label.name == 'run-cluster-benchmark')
164176
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
165177
with:
166178
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# build with TLS just for compilation coverage
3838
run: |
3939
sudo apt-get install pkg-config libgtest-dev libgmock-dev
40-
make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
40+
make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_LIBBACKTRACE=yes
4141
- name: test
4242
run: |
4343
sudo apt-get install tcl8.6 tclx
@@ -79,7 +79,7 @@ jobs:
7979
- name: make
8080
# Fail build if there are warnings
8181
# build with TLS just for compilation coverage
82-
run: make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
82+
run: make -j4 all-with-unit-tests SERVER_CFLAGS='-Werror' BUILD_TLS=yes USE_LIBBACKTRACE=yes
8383

8484
- name: Install old server (${{ matrix.server.version }}) for compatibility testing
8585
run: |
@@ -236,7 +236,9 @@ jobs:
236236
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
237237
export CC=/opt/homebrew/opt/llvm/bin/clang
238238
export CXX=/opt/homebrew/opt/llvm/bin/clang++
239-
make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local
239+
export AR=/opt/homebrew/opt/llvm/bin/llvm-ar
240+
export RANLIB=/opt/homebrew/opt/llvm/bin/llvm-ranlib
241+
make -j3 all-with-unit-tests SERVER_CFLAGS='-Werror' USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local
240242
241243
build-32bit:
242244
runs-on: ubuntu-latest
@@ -276,7 +278,7 @@ jobs:
276278
# suffixed version of g++. g++-multilib generally includes libstdc++.
277279
# *cross version as well, but it is also added explicitly just in case.
278280
run: |
279-
make -j4 SERVER_CFLAGS='-Werror' 32bit USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32 \
281+
make -j4 SERVER_CFLAGS='-Werror' 32bit USE_LIBBACKTRACE=yes LIBBACKTRACE_PREFIX=/usr/local/libbacktrace32 \
280282
GTEST_CFLAGS="-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include" \
281283
GTEST_LIBS="/usr/lib32/libgtest.a /usr/lib32/libgmock.a"
282284
- name: unit tests
@@ -296,7 +298,7 @@ jobs:
296298
- name: Checkout Valkey
297299
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
298300
- name: make
299-
run: make -j4 SERVER_CFLAGS='-Werror' MALLOC=libc USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
301+
run: make -j4 SERVER_CFLAGS='-Werror' MALLOC=libc USE_LIBBACKTRACE=yes
300302

301303
build-almalinux8-jemalloc:
302304
runs-on: ubuntu-latest
@@ -315,7 +317,7 @@ jobs:
315317
- name: Checkout Valkey
316318
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
317319
- name: make
318-
run: make -j4 SERVER_CFLAGS='-Werror' USE_FAST_FLOAT=yes USE_LIBBACKTRACE=yes
320+
run: make -j4 SERVER_CFLAGS='-Werror' USE_LIBBACKTRACE=yes
319321

320322
format-yaml:
321323
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)