Skip to content

Commit d3848d1

Browse files
Migrate Lettuce test setup to use client-lib-test (#3158)
* add initial skeleton without stunnel * fix up some paths * fix the standalone ones. * fix issues which crash the containers. * add more file renames. * add missed configs * Fix up the docker-compose. TODO: actual testing, after being compliant * fix sentinel to work * fix 70 out of 80 failing tests by fixing configuration * fix make file, this should be committed * fix up more tests, now only ssl stuff seems to remain. (4 tests) * fix up one tls, but we need to fix up the java code for the store * fix some of the ssl tests * reduce test failures to 3 * fix java * fix the last of ssl tests. TODO: retest the key tests * add docker to the makefile * add fixes for several tests * formatting * attempt to create keystore file via java * format * Revert "format" This reverts commit 79c2171. * Revert "attempt to create keystore file via java" This reverts commit c4e3b08. * ad some path fixes * Fix standaloneWithClientCertificates - configure keystore - boostrap a redis server requiring tls-auth-clients * Remove some of old makefile work + fix up paths so they are not destroyed by mvn clean * attempt integration.yml to work with docker * experiment with version * fix clean-up-step * ordering * fix up move versioning and try to debug folder+unix issue * try a sock solution proposed by Ivo * fix up supported version * possible fix * make file name shorte * fix up paths, yet again, idk why there was docker * test out new waiting strategy * revet old waiting * fix default version and disable a test with server regression * "Fix" test. Problem is that acldeluser doesn't delete previous Japanese user. * further fix up acl, and later will create a PR for it * fix up benchmarks + fix up integration sudo and makefile. * format * add some readme fixes * fix docker compose down * fix up benchmarks * remove useless files * Revert ""Fix" test. Problem is that acldeluser doesn't delete previous Japanese user." This reverts commit f30a3d6. * Revert "further fix up acl, and later will create a PR for it" This reverts commit 1aad1a8. * Revert ""Fix" test. Problem is that acldeluser doesn't delete previous Japanese user." This reverts commit f30a3d6. * "Fix" test. Problem is that acldeluser doesn't delete previous Japanese user. * fix up merge issues * fix more merge issues * fix addjirahere thing * fix review issues --------- Co-authored-by: ggivo <[email protected]>
1 parent 805c8e0 commit d3848d1

File tree

47 files changed

+686
-763
lines changed

Some content is hidden

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

47 files changed

+686
-763
lines changed

.github/workflows/benchmarks.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,24 @@ jobs:
4141
- name: Install missing dependencies to container
4242
run: |
4343
sudo apt update
44-
sudo apt install -y stunnel make git gcc
45-
- name: Maven offline
46-
run: |
47-
mvn -q dependency:go-offline
48-
- name: Clean environment
44+
- name: Set up Docker Compose environment
4945
run: |
50-
make cleanup
46+
mkdir -m 777 $REDIS_ENV_WORK_DIR
47+
make docker-start
5148
env:
52-
JVM_OPTS: -Xmx3200m
53-
TERM: dumb
54-
- name: Start servers
49+
REDIS_ENV_WORK_DIR: ${{ github.workspace }}/work
50+
- name: Maven offline
5551
run: |
56-
make start
52+
mvn -q dependency:go-offline
5753
- name: Run benchmarks
5854
run: |
5955
mvn -Pjmh clean test
6056
env:
6157
JVM_OPTS: -Xmx3200m
6258
TERM: dumb
59+
- name: Tear down Docker Compose environment
60+
run: |
61+
docker compose $COMPOSE_ENV_FILES -f src/test/resources/docker-env/docker-compose.yml down
6362
# Download previous benchmark result from cache (if exists)
6463
- name: Download previous benchmark data
6564
uses: actions/cache@v4

.github/workflows/integration.yml

+18-13
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,27 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
redis_version:
27-
- "unstable"
2827
- "8.0"
2928
- "7.4"
3029
- "7.2"
30+
env:
31+
REDIS_ENV_WORK_DIR: ${{ github.workspace }}/work
3132

3233
steps:
3334
- name: Test Redis Server Version
3435
id: map-tags
3536
run: |
3637
# Map requested version to github or tag
3738
case "${{ matrix.redis_version }}" in
38-
"unstable") redis_branch="unstable" stack_version="8.0-M04-pre" ;;
39-
"8.0") redis_branch="8.0" stack_version="8.0-M04-pre" ;;
40-
"7.4") redis_branch="7.4" stack_version="rs-7.4.0-v2" ;;
41-
"7.2") redis_branch="7.2" stack_version="rs-7.2.0-v14" ;;
39+
"8.0") redis_branch="8.0" stack_version="8.0-M04-pre" redis_test_version="8.0-M04-pre";;
40+
"7.4") redis_branch="7.4" stack_version="rs-7.4.0-v2" redis_test_version="7.4.2";;
41+
"7.2") redis_branch="7.2" stack_version="rs-7.2.0-v14" redis_test_version="7.2.7";;
4242
*) echo "Unsupported version: ${{ matrix.redis_version }}" && exit 1 ;;
4343
esac
4444
# Save them as outputs for later use
4545
echo "redis_branch=$redis_branch" >> $GITHUB_OUTPUT
4646
echo "redis_stack_version=$stack_version" >> $GITHUB_OUTPUT
47+
echo "redis_test_version=$redis_test_version" >> $GITHUB_OUTPUT
4748
- name: Checkout project
4849
uses: actions/checkout@v4
4950
- name: Set Java up in the runner
@@ -59,24 +60,28 @@ jobs:
5960
- name: Install missing dependencies to container
6061
run: |
6162
sudo apt update
62-
sudo apt install -y stunnel make git gcc
63+
- name: Set up Docker Compose environment
64+
run: |
65+
mkdir -m 777 $REDIS_ENV_WORK_DIR
66+
export REDIS_VERSION="${{ steps.map-tags.outputs.redis_test_version }}"
67+
make docker-start version=$REDIS_VERSION
6368
- name: Maven offline
6469
run: |
6570
mvn -q dependency:go-offline
66-
- name: Clean environment
67-
run: |
68-
make cleanup
69-
env:
70-
JVM_OPTS: -Xmx3200m
71-
TERM: dumb
71+
continue-on-error: true
7272
- name: Run tests
7373
run: |
74+
export TEST_WORK_FOLDER=$REDIS_ENV_WORK_DIR
75+
echo $TEST_WORK_FOLDER
76+
ls -la $TEST_WORK_FOLDER
7477
make test-coverage
7578
env:
76-
REDIS: ${{ steps.map-tags.outputs.redis_branch }}
7779
REDIS_STACK_VERSION: ${{ steps.map-tags.outputs.redis_stack_version }}
7880
JVM_OPTS: -Xmx3200m
7981
TERM: dumb
82+
- name: Tear down Docker Compose environment
83+
run: |
84+
docker compose $COMPOSE_ENV_FILES -f src/test/resources/docker-env/docker-compose.yml down
8085
- name: Upload coverage reports to Codecov
8186
uses: codecov/codecov-action@v4
8287
with:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ work/
1515
dependency-reduced-pom.xml
1616
.idea
1717
.flattened-pom.xml
18+
*.java-version
19+
*.DS_Store

0 commit comments

Comments
 (0)