Skip to content

Commit 321c6e8

Browse files
authored
Merge branch 'master' into ck-ciosx
2 parents 96dabdf + 93fa07e commit 321c6e8

File tree

366 files changed

+19363
-19545
lines changed

Some content is hidden

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

366 files changed

+19363
-19545
lines changed

.github/CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Set up test environments with ```make start```, tear down those environments wit
3333
* You can import code style file (located to hbase-formatter.xml) to Eclipse, IntelliJ
3434
* line break by column count seems not working with IntelliJ
3535
* <strike>You can run ```make format``` anytime to reformat without IDEs</strike>
36+
* DO NOT format the source codes within `io.redis.examples` test package.
37+
* A test class name MUST NOT end with `Example`.
3638

3739
## Adding commands
3840

.github/release-drafter-config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name-template: '$NEXT_MINOR_VERSION'
22
tag-template: 'v$NEXT_MINOR_VERSION'
3+
filter-by-commitish: true
4+
commitish: master
35
autolabeler:
46
- label: 'maintenance'
57
files:
@@ -35,6 +37,8 @@ categories:
3537
labels:
3638
- 'maintenance'
3739
- 'dependencies'
40+
- 'documentation'
41+
- 'docs'
3842
- 'testing'
3943
change-template: '- $TITLE (#$NUMBER)'
4044
exclude-labels:

.github/workflows/codeql-analysis.yml

+9-13
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,20 @@ jobs:
2424
analyze:
2525
name: Analyze
2626
runs-on: ubuntu-latest
27-
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
language: [ 'java' ]
32-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33-
# Learn more:
34-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
27+
permissions:
28+
security-events: write
29+
actions: read
30+
contents: read
3531

3632
steps:
3733
- name: Checkout repository
38-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3935

4036
# Initializes the CodeQL tools for scanning.
4137
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
38+
uses: github/codeql-action/init@v2
4339
with:
44-
languages: ${{ matrix.language }}
40+
languages: java
4541
# If you wish to specify custom queries, you can do so here or in a config file.
4642
# By default, queries listed here will override any specified in a config file.
4743
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -50,7 +46,7 @@ jobs:
5046
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5147
# If this step fails, then you should remove it and run the build manually (see below)
5248
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
49+
uses: github/codeql-action/autobuild@v2
5450

5551
# ℹ️ Command-line programs to run using the OS shell.
5652
# 📚 https://git.io/JvXDl
@@ -64,4 +60,4 @@ jobs:
6460
# make release
6561

6662
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
63+
uses: github/codeql-action/analyze@v2

.github/workflows/doctests.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Documentation Tests
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- '*'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
doctests:
12+
runs-on: ubuntu-latest
13+
services:
14+
redis-stack:
15+
image: redis/redis-stack-server:latest
16+
options: >-
17+
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
18+
ports:
19+
- 6379:6379
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Cache dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.m2/repository
28+
/var/cache/apt
29+
key: jedis-${{hashFiles('**/pom.xml')}}
30+
- name: Set up Java
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: '11'
34+
distribution: 'temurin'
35+
- name: Run doctests
36+
run: |
37+
mvn -Pdoctests test

.github/workflows/integration.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ on:
1010
- '**/*.rst'
1111
branches:
1212
- master
13-
- '[0-9].[0-9]'
13+
- '[0-9].x'
14+
- '[0-9].[0-9].x'
1415
pull_request:
1516
branches:
1617
- master
17-
- '[0-9].[0-9]'
18+
- '[0-9].x'
19+
- '[0-9].[0-9].x'
1820
schedule:
1921
- cron: '0 1 * * *' # nightly build
22+
workflow_dispatch:
2023

2124
jobs:
2225

@@ -45,16 +48,33 @@ jobs:
4548
- name: Maven offline
4649
run: |
4750
mvn -q dependency:go-offline
51+
- name: Build docs
52+
run: |
53+
mvn javadoc:jar
4854
- name: Run tests
4955
run: |
5056
TEST="" make test
5157
env:
5258
JVM_OPTS: -Xmx3200m
5359
TERM: dumb
54-
- name: redismod docker
55-
run: docker run -p 52567:6379 -d redislabs/redismod:edge
56-
- name: Run tests
60+
- name: sleep 10s
61+
run: sleep 10s
62+
- name: Make - start
63+
run: |
64+
make start
65+
sleep 2s
66+
- name: Docker - mod or stack
67+
run: docker run -p 52567:6379 -d redis/redis-stack-server:edge
68+
- name: Test commands - default protocol
69+
run: mvn -Dtest="redis.clients.jedis.commands.**" test
70+
- name: Test commands - RESP3 protocol
71+
run: mvn -DjedisProtocol=3 -Dtest="redis.clients.jedis.commands.**" test
72+
- name: Test module commands - default protocol
5773
run: mvn -DmodulesDocker="localhost:52567" -Dtest="redis.clients.jedis.modules.**" test
74+
- name: Test module commands - RESP3 protocol
75+
run: mvn -DjedisProtocol=3 -DmodulesDocker="localhost:52567" -Dtest="redis.clients.jedis.modules.**" test
76+
- name: Make - stop
77+
run: make stop
5878
- name: Codecov
5979
run: |
6080
bash <(curl -s https://codecov.io/bash)

.github/workflows/snapshot.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
push:
77
branches:
88
- master
9-
- '[0-9].[0-9]'
9+
- '[0-9].x'
10+
workflow_dispatch:
1011

1112
jobs:
1213

.github/workflows/version-and-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
run: |
1717
realversion="${GITHUB_REF/refs\/tags\//}"
1818
realversion="${realversion//v/}"
19-
echo "::set-output name=VERSION::$realversion"
19+
echo "VERSION=$realversion" >> $GITHUB_OUTPUT
2020
2121
- name: Set up publishing to maven central
2222
uses: actions/setup-java@v2
@@ -32,14 +32,14 @@ jobs:
3232

3333
- name: Install gpg key
3434
run: |
35-
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
35+
cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
3636
gpg --list-secret-keys --keyid-format LONG
3737
3838
- name: Publish
3939
run: |
4040
mvn --no-transfer-progress \
4141
--batch-mode \
42-
-Dgpg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}' \
42+
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
4343
-DskipTests deploy -P release
4444
env:
4545
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021-2023, Redis, inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LICENSE.txt

-22
This file was deleted.

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ daemonize yes
209209
protected-mode no
210210
requirepass cluster
211211
port 7379
212-
cluster-node-timeout 50
212+
cluster-node-timeout 15000
213213
pidfile /tmp/redis_cluster_node1.pid
214214
logfile /tmp/redis_cluster_node1.log
215215
save ""
@@ -223,7 +223,7 @@ daemonize yes
223223
protected-mode no
224224
requirepass cluster
225225
port 7380
226-
cluster-node-timeout 50
226+
cluster-node-timeout 15000
227227
pidfile /tmp/redis_cluster_node2.pid
228228
logfile /tmp/redis_cluster_node2.log
229229
save ""
@@ -237,7 +237,7 @@ daemonize yes
237237
protected-mode no
238238
requirepass cluster
239239
port 7381
240-
cluster-node-timeout 50
240+
cluster-node-timeout 15000
241241
pidfile /tmp/redis_cluster_node3.pid
242242
logfile /tmp/redis_cluster_node3.log
243243
save ""
@@ -251,7 +251,7 @@ daemonize yes
251251
protected-mode no
252252
requirepass cluster
253253
port 7382
254-
cluster-node-timeout 50
254+
cluster-node-timeout 15000
255255
pidfile /tmp/redis_cluster_node4.pid
256256
logfile /tmp/redis_cluster_node4.log
257257
save ""
@@ -265,7 +265,7 @@ daemonize yes
265265
protected-mode no
266266
requirepass cluster
267267
port 7383
268-
cluster-node-timeout 5000
268+
cluster-node-timeout 15000
269269
pidfile /tmp/redis_cluster_node5.pid
270270
logfile /tmp/redis_cluster_node5.log
271271
save ""

0 commit comments

Comments
 (0)