Skip to content

Commit 6032f3c

Browse files
authored
Merge branch '5.6' into HHH-14438
2 parents 3b82950 + fbdec58 commit 6032f3c

File tree

1,650 files changed

+68344
-20771
lines changed

Some content is hidden

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

1,650 files changed

+68344
-20771
lines changed

.github/ci-prerequisites.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Reclaim disk space, otherwise we only have 13 GB free at the start of a job
2+
3+
docker rmi node:10 node:12 mcr.microsoft.com/azure-pipelines/node8-typescript:latest
4+
# That is 18 GB
5+
sudo rm -rf /usr/share/dotnet
6+
# That is 1.2 GB
7+
sudo rm -rf /usr/share/swift

.github/hibernate-github-bot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
jira:
3+
projectKey: "HHH"

.github/workflows/codeql.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ '5.6' ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ '5.6' ]
9+
schedule:
10+
- cron: '34 11 * * 4'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'java' ]
25+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
26+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
with:
36+
languages: ${{ matrix.language }}
37+
# If you wish to specify custom queries, you can do so here or in a config file.
38+
# By default, queries listed here will override any specified in a config file.
39+
# Prefix the list here with "+" to use these queries and those in the config file.
40+
41+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
42+
queries: +security-and-quality
43+
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below)
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v2
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
52+
53+
# If the Autobuild fails above, remove it and uncomment the following three lines.
54+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
55+
56+
# - run: |
57+
# echo "Run, Build Application using script"
58+
# ./location_of_script_within_repo/buildscript.sh
59+
60+
- name: Perform CodeQL Analysis
61+
uses: github/codeql-action/analyze@v2
62+
with:
63+
category: "/language:${{matrix.language}}"
Lines changed: 32 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-6.0-h2-main/.
1+
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-5.6-h2/.
22
# However, Hibernate ORM builds run on GitHub actions regularly
33
# to check that it still works and can be used in GitHub forks.
44
# See https://docs.github.com/en/free-pro-team@latest/actions
@@ -9,40 +9,55 @@ name: Hibernate ORM build
99
on:
1010
push:
1111
branches:
12-
- 'master'
13-
- 'wip/6.0'
12+
- '5.6'
1413
pull_request:
1514
branches:
16-
- 'master'
17-
- 'wip/6.0'
15+
- '5.6'
16+
17+
permissions: {} # none
18+
19+
# See https://github.com/hibernate/hibernate-orm/pull/4615 for a description of the behavior we're getting.
20+
concurrency:
21+
# Consider that two builds are in the same concurrency group (cannot run concurrently)
22+
# if they use the same workflow and are about the same branch ("ref") or pull request.
23+
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
24+
# Cancel previous builds in the same concurrency group even if they are in process
25+
# for pull requests or pushes to forks (not the upstream repository).
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'hibernate/hibernate-orm' }}
27+
1828
jobs:
1929
build:
30+
permissions:
31+
contents: read
2032
name: Java 8
2133
runs-on: ubuntu-latest
22-
# We want to know the test results of all matrix entries
23-
continue-on-error: true
2434
strategy:
2535
fail-fast: false
2636
matrix:
27-
# When GitHub Actions supports it: https://github.com/actions/toolkit/issues/399
28-
# We will use the experimental flag as indicator whether a failure should cause a workflow failure
2937
include:
3038
- rdbms: h2
31-
experimental: false
39+
# - rdbms: hsqldb
3240
- rdbms: derby
33-
experimental: true
41+
- rdbms: mysql8
3442
- rdbms: mariadb
35-
experimental: true
36-
- rdbms: postgresql
37-
experimental: true
43+
- rdbms: postgresql_9_5
44+
- rdbms: postgresql_13
3845
- rdbms: oracle
39-
experimental: true
4046
- rdbms: db2
41-
experimental: true
4247
- rdbms: mssql
43-
experimental: true
48+
- rdbms: sybase
49+
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
50+
# - rdbms: hana
4451
steps:
4552
- uses: actions/checkout@v2
53+
with:
54+
persist-credentials: false
55+
- name: Reclaim Disk Space
56+
run: .github/ci-prerequisites.sh
57+
- name: Start database
58+
env:
59+
RDBMS: ${{ matrix.rdbms }}
60+
run: ci/database-start.sh
4661
- name: Set up Java 8
4762
uses: actions/setup-java@v1
4863
with:
@@ -75,44 +90,5 @@ jobs:
7590
path: |
7691
./**/target/reports/tests/
7792
./**/target/reports/checkstyle/
78-
- name: Omit produced artifacts from build cache
79-
run: ./ci/before-cache.sh
80-
build11:
81-
name: Java 11
82-
runs-on: ubuntu-latest
83-
# We want to know the test results of all matrix entries
84-
continue-on-error: true
85-
steps:
86-
- uses: actions/checkout@v2
87-
- name: Set up Java 11
88-
uses: actions/setup-java@v1
89-
with:
90-
java-version: 11
91-
- name: Get year/month for cache key
92-
id: get-date
93-
run: |
94-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
95-
shell: bash
96-
- name: Cache Maven local repository
97-
uses: actions/cache@v2
98-
id: cache-maven
99-
with:
100-
path: |
101-
~/.m2/repository
102-
~/.gradle/caches/
103-
~/.gradle/wrapper/
104-
# refresh cache every month to avoid unlimited growth
105-
key: maven-localrepo-${{ steps.get-date.outputs.yearmonth }}
106-
- name: Run build script
107-
run: ./ci/build-github.sh
108-
shell: bash
109-
- name: Upload test reports (if Gradle failed)
110-
uses: actions/upload-artifact@v2
111-
if: failure()
112-
with:
113-
name: test-reports-java11
114-
path: |
115-
./**/target/reports/tests/
116-
./**/target/reports/checkstyle/
11793
- name: Omit produced artifacts from build cache
11894
run: ./ci/before-cache.sh

.travis.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ While we try to keep requirements for contributing to a minimum, there are a few
2121
we ask that you mind.
2222

2323
For code contributions, these guidelines include:
24-
* respect the project code style - find templates for [IntelliJ IDEA](https://community.jboss.org/docs/DOC-15468) or [Eclipse](https://community.jboss.org/docs/DOC-16649)
24+
* respect the project code style - find templates for [IntelliJ IDEA](https://hibernate.org/community/contribute/intellij-idea/) or [Eclipse](https://hibernate.org/community/contribute/eclipse-ide/)
2525
* have a corresponding JIRA issue and the key for this JIRA issue should be used in the commit message
2626
* have a set of appropriate tests. For bug reports, the tests reproduce the initial reported bug
27-
and illustrates that the solution actually fixes the bug. For features/enhancements, the
27+
and illustrate that the solution actually fixes the bug. For features/enhancements, the
2828
tests illustrate the feature working as intended. In both cases the tests are incorporated into
2929
the project to protect against regressions
3030
* if applicable, documentation is updated to reflect the introduced changes
@@ -47,23 +47,23 @@ GitHub there are a few pre-requisite steps to follow:
4747
the linked page, this also includes:
4848
* [set up your local git install](https://help.github.com/articles/set-up-git)
4949
* clone your fork
50-
* See the wiki pages for setting up your IDE, whether you use
51-
[IntelliJ IDEA](https://community.jboss.org/wiki/ContributingToHibernateUsingIntelliJ)
52-
or [Eclipse](https://community.jboss.org/wiki/ContributingToHibernateUsingEclipse)<sup>(1)</sup>.
50+
* see the wiki pages for setting up your IDE, whether you use
51+
[IntelliJ IDEA](https://hibernate.org/community/contribute/intellij-idea/)
52+
or [Eclipse](https://hibernate.org/community/contribute/eclipse-ide/)<sup>(1)</sup>.
5353

5454

5555
## Create the working (topic) branch
5656

57-
Create a [topic branch](http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches)
57+
Create a [topic branch](https://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches)
5858
on which you will work. The convention is to incorporate the JIRA issue key in the name of this branch,
5959
although this is more of a mnemonic strategy than a hard-and-fast rule - but doing so helps:
6060
* remember what each branch is for
6161
* isolate the work from other contributions you may be working on
6262

6363
_If there is not already a JIRA issue covering the work you want to do, create one._
6464

65-
Assuming you will be working from the master branch and working
66-
on the JIRA HHH-123 : `git checkout -b HHH-123 master`
65+
Assuming you will be working from the `main` branch and working
66+
on the JIRA HHH-123 : `git checkout -b HHH-123 main`
6767

6868

6969
## Code
@@ -87,7 +87,7 @@ appreciated btw), please use rebasing rather than merging. Merging creates
8787
## Submit
8888

8989
* push your changes to the topic branch in your fork of the repository
90-
* initiate a [pull request](http://help.github.com/articles/creating-a-pull-request)
90+
* initiate a [pull request](https://help.github.com/articles/creating-a-pull-request)
9191
* update the JIRA issue by providing the PR link in the **Pull Request** column on the right
9292

9393

0 commit comments

Comments
 (0)