-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ci: add Spring Data Redis integration test workflow #4499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
uglide
merged 4 commits into
redis:master
from
tishun:topic/tishun/verify-upstream-drivers
Apr 29, 2026
+115
−0
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
09cbcc2
Verify no breaking changes to spring-data-redis
tishun 1d8035b
Actually excecute the integration tests
tishun 8e4a596
Merge branch 'master' into topic/tishun/verify-upstream-drivers
ggivo 551a65d
Merge branch 'master' into topic/tishun/verify-upstream-drivers
uglide File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| --- | ||
|
|
||
| name: Spring Data Redis Integration Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - '[0-9].*' | ||
| workflow_dispatch: | ||
| inputs: | ||
| spring_data_redis_branch: | ||
| description: 'Spring Data Redis branch to test against' | ||
| required: false | ||
| default: 'main' | ||
| redis_version: | ||
| description: 'Redis version (6, 7, 8)' | ||
| required: false | ||
| default: '8' | ||
|
|
||
| jobs: | ||
| integration-test: | ||
| name: SDR Integration Test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout Jedis | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: jedis | ||
|
|
||
| - name: Set up Java 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Cache Maven dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.m2/repository | ||
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-maven- | ||
|
|
||
| - name: Build Jedis (skip tests) | ||
| working-directory: jedis | ||
| run: | | ||
| mvn -B clean install -DskipTests -DskipUnitTests=true -Dgpg.skip=true | ||
| JEDIS_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
| echo "JEDIS_VERSION=$JEDIS_VERSION" >> $GITHUB_ENV | ||
| echo "Built Jedis version: $JEDIS_VERSION" | ||
|
|
||
| - name: Checkout Spring Data Redis | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: spring-projects/spring-data-redis | ||
| ref: ${{ github.event.inputs.spring_data_redis_branch || 'main' }} | ||
| path: spring-data-redis | ||
|
|
||
| - name: Patch Spring Data Redis to use local Jedis | ||
| working-directory: spring-data-redis | ||
| run: | | ||
| echo "Patching Spring Data Redis to use Jedis version: $JEDIS_VERSION" | ||
| mvn versions:set-property -Dproperty=jedis -DnewVersion=$JEDIS_VERSION -DgenerateBackupPoms=false | ||
|
|
||
| - name: Build Spring Data Redis | ||
| working-directory: spring-data-redis | ||
| run: | | ||
| # Verify Jedis changes do not cause compile-time issues in SDR | ||
| ./mvnw -B clean test-compile \ | ||
| -Dmaven.javadoc.skip=true \ | ||
| -Pci | ||
|
|
||
| - name: Run Spring Data Redis unit tests | ||
| working-directory: spring-data-redis | ||
| run: | | ||
| # Verify Jedis changes do not break SDR unit tests (no Redis required) | ||
| ./mvnw -B test \ | ||
| -Dtest="**/jedis/**/*UnitTests,**/jedis/**/*UnitTest" \ | ||
| -DfailIfNoTests=false \ | ||
| -Dmaven.javadoc.skip=true \ | ||
| -Pci | ||
|
|
||
| - name: Setup Redis using SDR infrastructure | ||
| working-directory: spring-data-redis | ||
| run: | | ||
| mkdir -p work | ||
| make start | ||
| env: | ||
| IMAGE: redis:${{ github.event.inputs.redis_version || '8' }} | ||
|
|
||
| - name: Run Spring Data Redis integration tests | ||
| working-directory: spring-data-redis | ||
| run: | | ||
| # Verify Jedis changes do not break SDR integration tests (Redis required) | ||
| ./mvnw -B test \ | ||
| -Dtest="**/jedis/**/*Tests,**/jedis/**/*Test,!**/jedis/**/*UnitTests,!**/jedis/**/*UnitTest" \ | ||
| -DfailIfNoTests=false \ | ||
| -Dmaven.javadoc.skip=true \ | ||
| -Pci | ||
|
|
||
| - name: Cleanup Redis | ||
| if: always() | ||
| working-directory: spring-data-redis | ||
| run: make clean || true | ||
|
|
||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: sdr-test-results | ||
| path: | | ||
| spring-data-redis/target/surefire-reports/ | ||
| retention-days: 7 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.