Skip to content

Commit 3655e4b

Browse files
authored
Merge branch 'main' into HHH-19555
2 parents 8bbb5dc + 332f309 commit 3655e4b

File tree

2,768 files changed

+101756
-54783
lines changed

Some content is hidden

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

2,768 files changed

+101756
-54783
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ updates:
6969
- "org.hsqldb:hsqldb"
7070
- "org.apache.derby*"
7171
- "org.postgresql:*"
72+
- "com.enterprisedb:*"
7273
- "com.mysql:mysql-connector-j"
7374
- "org.mariadb.jdbc:mariadb-java-client"
7475
- "com.oracle.database.*"

.github/hibernate-github-bot.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ develocity:
6868
licenseAgreement:
6969
enabled: true
7070
ignore:
71-
# See the `build-dependencies` group in the Dependabot's configuration file
7271
- user: dependabot[bot]
7372
titlePattern: "Bump.*"
73+
# Members of this team already agreed to both LGPL and ASL2 for all their contributions.
74+
- team:
75+
name: license-agreement
76+
organization: hibernate
77+
titlePattern: ".*"
78+
branches:
79+
enabled: true
80+
label: "%s"
81+
ignore:
82+
- user: dependabot[bot]
83+
titlePattern: ".*"

.github/workflows/ci.yml

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -142,39 +142,30 @@ jobs:
142142
- name: Omit produced artifacts from build cache
143143
run: ./ci/before-cache.sh
144144

145-
# Job for builds on Atlas (Oracle) infrastructure.
145+
# Job for builds on Oracle TP infrastructure.
146146
# This is untrusted, even for pushes, see below.
147-
atlas:
147+
otp:
148148
permissions:
149149
contents: read
150150
name: GraalVM 21 - ${{matrix.rdbms}}
151-
# runs-on: ubuntu-latest
152-
runs-on: [ self-hosted, Linux, X64, OCI ]
151+
runs-on: [ self-hosted, Linux, X64, OracleTestPilot ]
153152
strategy:
154153
fail-fast: false
155154
matrix:
156155
include:
157-
- rdbms: oracle_atps
158-
- rdbms: oracle_db19c
159-
- rdbms: oracle_db21c
160-
- rdbms: oracle_db23c
156+
#- rdbms: autonomous-transaction-processing-serverless
157+
- rdbms: base-database-service-19c
158+
- rdbms: base-database-service-21c
159+
- rdbms: base-database-service-23ai
161160
steps:
162161
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
163162
with:
164163
persist-credentials: false
165-
- name: Reclaim disk space and sanitize user home
166-
run: .github/ci-prerequisites-atlas.sh
167-
- name: Start database
168-
env:
169-
RDBMS: ${{ matrix.rdbms }}
170-
RUNID: ${{ github.run_number }}
171-
run: ci/database-start.sh
172164
- name: Set up Java 21
173165
uses: graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8
174166
with:
175167
distribution: 'graalvm'
176168
java-version: '21'
177-
178169
- name: Generate cache key
179170
id: cache-key
180171
run: |
@@ -205,7 +196,7 @@ jobs:
205196
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
206197
- name: Restore Maven/Gradle Dependency/Dist Caches
207198
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
208-
# if it a pull request, we restore the cache but we don't save it
199+
# if it is a pull request, we restore the cache but we don't save it
209200
if: github.event_name == 'pull_request'
210201
with:
211202
path: |
@@ -218,17 +209,35 @@ jobs:
218209
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
219210
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
220211
212+
- id: create_database
213+
uses: loiclefevre/test@ce2f5049188a384c17ffcfcb8c8d04cf118e2cd7 # v1.0.20
214+
with:
215+
oci-service: ${{ matrix.rdbms }}
216+
action: create
217+
user: hibernate_orm_test_1,hibernate_orm_test_2,hibernate_orm_test_3,hibernate_orm_test_4
218+
221219
- name: Run build script
222220
env:
223221
RDBMS: ${{ matrix.rdbms }}
224222
RUNID: ${{ github.run_number }}
225-
# These runners have no HOME variable set by default, we need to explicitly set it to make the build work
226-
HOME: /root
223+
TESTPILOT_CONNECTION_STRING_SUFFIX: ${{ steps.create_database.outputs.connection_string_suffix }}
224+
TESTPILOT_PASSWORD: ${{ steps.create_database.outputs.database_password }}
225+
API_HOST: ""
226+
TESTPILOT_CLIENT_ID: ""
227+
TESTPILOT_TOKEN: ""
227228
# Needed for TFO (TCP fast open)
228-
LD_PRELOAD: /home/opc/libtfojdbc1.so
229-
LD_LIBRARY_PATH: /home/opc
229+
LD_PRELOAD: /home/ubuntu/libtfojdbc1.so
230+
LD_LIBRARY_PATH: /home/ubuntu
230231
run: ./ci/build-github.sh
231232
shell: bash
233+
234+
- uses: loiclefevre/test@ce2f5049188a384c17ffcfcb8c8d04cf118e2cd7 # v1.0.20
235+
if: always()
236+
with:
237+
oci-service: ${{ matrix.rdbms }}
238+
action: delete
239+
user: hibernate_orm_test_1,hibernate_orm_test_2,hibernate_orm_test_3,hibernate_orm_test_4
240+
232241
# Upload build scan data.
233242
# The actual publishing must be done in a separate job (see ci-report.yml).
234243
# We don't write to the remote cache as that would be unsafe.

CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Contributions from the community are essential in keeping Hibernate (and any Open Source
44
project really) strong and successful.
55

6-
# Legal
6+
## Legal
77

88
All original contributions to Hibernate are licensed under the
99
[Apache License version 2.0 (Apache-2.0)](https://www.apache.org/licenses/LICENSE-2.0.txt),
@@ -24,6 +24,12 @@ by sending a pull request to the project's GitHub repository,
2424
listing at least one relevant contribution in the pull request description.
2525
Note: one-liner or repetitive patches may not be sufficient to claim copyright.
2626

27+
### Compliance with Laws and Regulations
28+
29+
All contributions must comply with applicable laws and regulations, including U.S. export control and sanctions restrictions.
30+
For background, see the Linux Foundation’s guidance:
31+
[Navigating Global Regulations and Open Source: US OFAC Sanctions](https://www.linuxfoundation.org/blog/navigating-global-regulations-and-open-source-us-ofac-sanctions).
32+
2733
## Guidelines
2834

2935
While we try to keep requirements for contributing to a minimum, there are a few guidelines

Jenkinsfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ stage('Configure') {
4646
// We want to enable preview features when testing newer builds of OpenJDK:
4747
// even if we don't use these features, just enabling them can cause side effects
4848
// and it's useful to test that.
49-
new BuildEnvironment( testJdkVersion: '23', testJdkLauncherArgs: '--enable-preview', additionalOptions: '-PskipJacoco=true' ),
5049
new BuildEnvironment( testJdkVersion: '24', testJdkLauncherArgs: '--enable-preview', additionalOptions: '-PskipJacoco=true' ),
5150
new BuildEnvironment( testJdkVersion: '25', testJdkLauncherArgs: '--enable-preview', additionalOptions: '-PskipJacoco=true' ),
5251
// The following JDKs aren't supported by Hibernate ORM out-of-the box yet:
@@ -158,16 +157,12 @@ stage('Build') {
158157
state[buildEnv.tag]['containerName'] = "edb"
159158
break;
160159
case "sybase_jconn":
161-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
162-
docker.image('nguoianphu/docker-sybase').pull()
163-
}
160+
docker.image('nguoianphu/docker-sybase').pull()
164161
sh "./docker_db.sh sybase"
165162
state[buildEnv.tag]['containerName'] = "sybase"
166163
break;
167164
case "cockroachdb":
168-
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
169-
docker.image('cockroachdb/cockroach:v23.1.12').pull()
170-
}
165+
docker.image('cockroachdb/cockroach:v23.1.12').pull()
171166
sh "./docker_db.sh cockroachdb"
172167
state[buildEnv.tag]['containerName'] = "cockroach"
173168
break;

MAINTAINERS.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ In any case, before the release:
9898

9999
#### Performing the release
100100

101-
Once you trigger the CI job, it automatically pushes artifacts to the
102-
[OSSRH Maven Repository](https://repo1.maven.org/maven2/org/hibernate/orm/),
103-
and the documentation to [docs.jboss.org](https://docs.jboss.org/hibernate/orm/).
101+
Trigger the CI release job to automatically publish artifacts and documentation...
104102

105103
* Do *not* mark the Jira Release as "released" or close issues,
106104
the release job triggers Jira automation that does it for you.
@@ -116,18 +114,6 @@ and the documentation to [docs.jboss.org](https://docs.jboss.org/hibernate/orm/)
116114

117115
After the job succeeds:
118116

119-
* Release the artifacts on the [OSSRH repository manager](https://oss.sonatype.org/#stagingRepositories).
120-
* Log into Nexus. The credentials can be found on Bitwarden; ask a teammate if you don't have access.
121-
* Click "staging repositories" to the left.
122-
* Examine your staging repository: check that all expected artifacts are there.
123-
* If necessary (that's very rare), test the release in the staging repository.
124-
You can drop the staging repo if there is a problem,
125-
but you'll need to revert the commits pushed during the release.
126-
* If everything is ok, select the staging repository and click the "Release" button.
127-
* For branches with automated releases (e.g. 6.6) the "release repository" will happen automatically.
128-
to enable/disable the automatic release of the staging repository update the [jreleaser.yml](jreleaser.yml) file,
129-
in particular change the `deploy.maven.nexus2.maven-central.releaseRepository` to `true`/`false`.
130-
131117
* Update [hibernate.org](https://github.com/hibernate/hibernate.org) as necessary:
132118
* If it is a new major or minor release (new "series"):
133119
* Add a `_data/projects/orm/releases/<series>/series.yml` file,
@@ -141,7 +127,7 @@ After the job succeeds:
141127
make sure to adjust the `status`/`displayed` attributes of the `series.yml` file of the old series.
142128
* Push to the production branch.
143129
* Check that the artifacts are available on Maven Central:
144-
https://repo1.maven.org/maven2/org/hibernate/orm/hibernate-core/.
130+
https://central.sonatype.com/artifact/org.hibernate.orm/hibernate-core.
145131
They should appear after a few minutes, sometimes a few hours.
146132
* Make sure a GitHub release got created and that everything looks ok.
147133

README.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ image:https://img.shields.io/maven-central/v/org.hibernate.orm/hibernate-core.sv
44
image:https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.hibernate.org%2Fjob%2Fhibernate-orm-pipeline%2Fjob%2Fmain%2F&style=for-the-badge[Build Status,link=https://ci.hibernate.org/job/hibernate-orm-pipeline/job/main/]
55
image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?style=for-the-badge&logo=gradle[Develocity,link=https://develocity.commonhaus.dev/scans?search.rootProjectNames=Hibernate%20ORM]
66
image:https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jvm-repo-rebuild/reproducible-central/master/content/org/hibernate/orm/hibernate-core/badge.json&style=for-the-badge[Reproducible Builds,link=https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/hibernate/orm/hibernate-core/README.md]
7+
image:https://testpilot.oracle.com/ords/testpilot/badges/github/hibernate/hibernate-orm[Oracle Test Pilot,link=https://testpilot.oracle.com/]
78

89
Hibernate ORM is a powerful object/relational mapping solution for Java, and makes it easy to develop persistence logic for applications, libraries, and frameworks.
910

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ buildscript {
1919
plugins {
2020
id "local.module"
2121

22-
id "org.hibernate.build.version-injection" version "2.0.0" apply false
22+
id "org.hibernate.build.version-injection" version "2.1.0" apply false
2323
id 'org.hibernate.orm.database-service' apply false
2424
id 'biz.aQute.bnd' version '7.1.0' apply false
2525

2626
id "com.diffplug.spotless" version "7.0.4"
27-
id 'org.checkerframework' version '0.6.55'
27+
id 'org.checkerframework' version '0.6.56'
2828
id 'org.hibernate.orm.build.jdks'
2929

3030
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'

0 commit comments

Comments
 (0)