diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 56c601b615..f2331a92a5 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -73,8 +73,8 @@ runs: # Mapping of redis version to stack version declare -A redis_stack_version_mapping=( - ["7.4.2"]="rs-7.4.0-v2" - ["7.2.7"]="rs-7.2.0-v14" + ["7.4.4"]="rs-7.4.0-v5" + ["7.2.9"]="rs-7.2.0-v17" ) if [[ -v redis_stack_version_mapping[$REDIS_VERSION] ]]; then @@ -91,8 +91,10 @@ runs: fi invoke devenv --endpoints=all-stack + else echo "Using redis CE for module tests" + export CLIENT_LIBS_TEST_STACK_IMAGE_TAG=$REDIS_VERSION echo "REDIS_MOD_URL=redis://127.0.0.1:6379" >> $GITHUB_ENV invoke devenv --endpoints all fi diff --git a/.github/workflows/hiredis-py-integration.yaml b/.github/workflows/hiredis-py-integration.yaml index d81b9977b1..855e9aa8f2 100644 --- a/.github/workflows/hiredis-py-integration.yaml +++ b/.github/workflows/hiredis-py-integration.yaml @@ -23,8 +23,8 @@ env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # this speeds up coverage with Python 3.12: https://github.com/nedbat/coveragepy/issues/1665 COVERAGE_CORE: sysmon - CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: 'rs-7.4.0-v2' - CURRENT_REDIS_VERSION: '7.4.2' + CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: '8.0.2' + CURRENT_REDIS_VERSION: '8.0.2' jobs: redis_version: diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index e3024713e7..c91fa91d01 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -27,8 +27,8 @@ env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # this speeds up coverage with Python 3.12: https://github.com/nedbat/coveragepy/issues/1665 COVERAGE_CORE: sysmon - CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: 'rs-7.4.0-v2' - CURRENT_REDIS_VERSION: '7.4.2' + CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: '8.0.2' + CURRENT_REDIS_VERSION: '8.0.2' jobs: dependency-audit: @@ -74,7 +74,7 @@ jobs: max-parallel: 15 fail-fast: false matrix: - redis-version: ['8.0.1-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.7'] + redis-version: ['8.2-M01-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.4.4', '7.2.9'] python-version: ['3.9', '3.13'] parser-backend: ['plain'] event-loop: ['asyncio'] diff --git a/docker-compose.yml b/docker-compose.yml index bcf85df1a7..1428e6f96b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,10 @@ --- # image tag 8.0-RC2-pre is the one matching the 8.0 GA release x-client-libs-stack-image: &client-libs-stack-image - image: "redislabs/client-libs-test:${CLIENT_LIBS_TEST_STACK_IMAGE_TAG:-8.0-RC2-pre}" + image: "redislabs/client-libs-test:${CLIENT_LIBS_TEST_STACK_IMAGE_TAG:-8.0.2}" x-client-libs-image: &client-libs-image - image: "redislabs/client-libs-test:${CLIENT_LIBS_TEST_IMAGE_TAG:-8.0-RC2-pre}" + image: "redislabs/client-libs-test:${CLIENT_LIBS_TEST_IMAGE_TAG:-8.0.2}" services: diff --git a/tests/test_commands.py b/tests/test_commands.py index 8758efa771..04574cbb81 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1088,6 +1088,7 @@ def test_lastsave(self, r): @pytest.mark.onlynoncluster @skip_if_server_version_lt("5.0.0") + @skip_if_server_version_gte("8.0.0") def test_lolwut(self, r): lolwut = r.lolwut().decode("utf-8") assert "Redis ver." in lolwut @@ -1095,6 +1096,15 @@ def test_lolwut(self, r): lolwut = r.lolwut(5, 6, 7, 8).decode("utf-8") assert "Redis ver." in lolwut + @pytest.mark.onlynoncluster + @skip_if_server_version_lt("8.0.0") + def test_lolwut_v8_and_higher(self, r): + lolwut = r.lolwut().decode("utf-8") + assert lolwut + + lolwut = r.lolwut(5, 6, 7, 8).decode("utf-8") + assert lolwut + @pytest.mark.onlynoncluster @skip_if_server_version_lt("6.2.0") @skip_if_redis_enterprise()