Skip to content

Commit b134bbb

Browse files
committed
Merge branch 'main' into distinct_from
2 parents 3a8c3dc + 8cfcff6 commit b134bbb

File tree

776 files changed

+53430
-11846
lines changed

Some content is hidden

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

776 files changed

+53430
-11846
lines changed

.github/workflows/pull_request.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,40 @@ jobs:
6464
include-hidden-files: true
6565
retention-days: 1
6666

67+
lucene-tests:
68+
runs-on: ubuntu-latest
69+
permissions:
70+
checks: write
71+
contents: read
72+
pull-requests: write
73+
steps:
74+
- name: Checkout sources
75+
uses: actions/[email protected]
76+
- name: Setup Base Environment
77+
uses: ./actions/setup-base-env
78+
- name: Setup FDB
79+
uses: ./actions/setup-fdb
80+
- name: Run Gradle Test
81+
uses: ./actions/gradle-test
82+
with:
83+
gradle_command: :fdb-record-layer-lucene:test :fdb-record-layer-lucene:destructiveTest
84+
gradle_args: -PreleaseBuild=false -PpublishBuild=false
85+
- name: Publish Test Reports
86+
if: always()
87+
uses: actions/[email protected]
88+
with:
89+
name: lucene-test-reports
90+
path: |
91+
test-reports/fdb-record-layer-lucene/
92+
- name: Publish Coverage Data
93+
uses: actions/[email protected]
94+
with:
95+
name: lucene-coverage-data
96+
path: |
97+
**/.out/jacoco/*.exec
98+
include-hidden-files: true
99+
retention-days: 1
100+
67101
other-tests:
68102
runs-on: ubuntu-latest
69103
permissions:
@@ -80,7 +114,7 @@ jobs:
80114
- name: Run Gradle Test
81115
uses: ./actions/gradle-test
82116
with:
83-
gradle_command: test -x :fdb-record-layer-core:test destructiveTest -x :fdb-record-layer-core:destructiveTest
117+
gradle_command: test -x :fdb-record-layer-core:test -x :fdb-record-layer-lucene:test destructiveTest -x :fdb-record-layer-core:destructiveTest -x :fdb-record-layer-lucene:destructiveTest
84118
gradle_args: -PreleaseBuild=false -PpublishBuild=false
85119
- name: Publish Test Reports
86120
if: always()
@@ -92,7 +126,6 @@ jobs:
92126
test-reports/fdb-extensions/
93127
test-reports/fdb-record-layer-icu/
94128
test-reports/fdb-record-layer-spatial/
95-
test-reports/fdb-record-layer-lucene/
96129
test-reports/fdb-record-layer-jmh/
97130
test-reports/examples/
98131
test-reports/fdb-relational-api/
@@ -113,7 +146,7 @@ jobs:
113146
retention-days: 1
114147

115148
coverage:
116-
needs: [core-tests, other-tests]
149+
needs: [core-tests, lucene-tests, other-tests]
117150
runs-on: ubuntu-latest
118151
permissions:
119152
checks: read

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
# a) all the tests
4040
# b) the mixed-mode tests
4141
test:
42+
needs: [get-update-type]
4243
runs-on: ubuntu-latest
4344
permissions:
4445
contents: read
@@ -50,6 +51,12 @@ jobs:
5051
uses: ./actions/setup-base-env
5152
- name: Setup FDB
5253
uses: ./actions/setup-fdb
54+
# Increment the version here so that the version used in tests matches the eventually published version.
55+
# This is actually important in order to correctly choose appropriate external server versions during
56+
# mixed mode tests (see: https://github.com/FoundationDB/fdb-record-layer/issues/3449)
57+
- name: Increment version
58+
shell: bash
59+
run: python build/versionutils.py gradle.properties --increment -u ${{ needs.get-update-type.outputs.update-type }}
5360
- name: Run Gradle Test
5461
uses: ./actions/gradle-test
5562
with:
@@ -182,9 +189,9 @@ jobs:
182189
env:
183190
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
184191
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
192+
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
193+
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
185194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
186-
MAVEN_USER: ${{ secrets.MAVEN_USER }}
187-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
188195

189196
# Post release: Update various files which reference version
190197
# Updating the yaml files has to be done after the tests complete, or it will mark tests as failing that aren't

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ if (Boolean.parseBoolean(centralPublish)) {
310310
nexusPublishing {
311311
repositories {
312312
sonatype {
313-
username = System.getenv("MAVEN_USER")
314-
password = System.getenv("MAVEN_PASSWORD")
313+
// Update the URL now that the OSSRH service has been sunset: https://central.sonatype.org/news/20250326_ossrh_sunset/
314+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
315315
}
316316
}
317317
}

0 commit comments

Comments
 (0)