Skip to content
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

Rebase to tag 5.6 #2

Open
wants to merge 201 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
6fae23a
5.6.6-SNAPSHOT
Hibernate-CI Jan 25, 2022
29b896b
HHH-14932 Use the correct WKB Dialect
maesenka Feb 2, 2022
1f4162a
HHH-15069 Fix backwards-incompatible changes for callers of Persisten…
yrodiere Feb 4, 2022
9f4ebca
HHH-15069 Fix backwards-incompatible changes for implementors of Inse…
yrodiere Feb 4, 2022
97f8732
HHH-15069 Fix backwards-incompatible changes for implementors of Uniq…
yrodiere Feb 4, 2022
1afcae2
HHH-15069 Fix backwards-incompatible changes for implementors of Bulk…
yrodiere Feb 4, 2022
36050cb
HHH-15069 Fix backwards-incompatible changes for implementors of Comp…
yrodiere Feb 4, 2022
4eb683b
HHH-15069 Fix backwards-incompatible changes for callers of Relationa…
yrodiere Feb 4, 2022
3c7c6f3
back-port JUnit5 based testing support
sebersole Feb 10, 2022
82815cc
back-port JUnit5 based testing support
sebersole Feb 14, 2022
582faaa
HHH-15082 Abort JDBC batches on runtime exceptions as well as SQLExce…
yrodiere Feb 17, 2022
8f5c0b7
HHH-15082 Test that batch statements are aborted if a RuntimeExceptio…
yrodiere Feb 17, 2022
5febc70
HHH-15082 Correctly propagate the original exception when aborting a …
yrodiere Feb 17, 2022
1f84125
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 3, 2022
a297a62
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 4, 2022
6d1a47e
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 11, 2022
b1e590c
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 11, 2022
1097914
HHH-15060 Add test for issue
dreab8 Jan 13, 2022
c200eaa
HHH-15060 Associations with @NotFound should always be left joined wh…
dreab8 Jan 13, 2022
d530de4
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 23, 2022
60283ce
HHH-15060 - fix bad test
sebersole Feb 23, 2022
c2bc599
HHH-15084 Remove use of BeanManager.createInjectionTarget(AnnotatedType)
bstansberry Feb 18, 2022
99cf560
HHH-15094 Remove duplicate DTD descriptor
yrodiere Mar 1, 2022
a3be8c0
HHH-15094 Test LocalXmlResourceResolver
yrodiere Mar 1, 2022
24df531
HHH-15094 Handle both HTTP and HTTPS versions of DTDs in LocalXmlReso…
yrodiere Mar 1, 2022
c19a825
HHH-15094 Handle http://hibernate.org and https://hibernate.org for D…
yrodiere Mar 1, 2022
3de2799
HHH-15060 - Associations with @NotFound should always be left joined …
sebersole Feb 26, 2022
e46752c
HHH-15060 - Fix handling of associations with @NotFound
sebersole Mar 1, 2022
251884a
HHH-15060 Add additional test
dreab8 Feb 28, 2022
2ea04dc
HHH-15060 - Fix handling of associations with @NotFound
sebersole Mar 1, 2022
223856c
HHH-15090 Fix access to public field with extended bytecode enhanceme…
yrodiere Feb 24, 2022
f0331f3
HHH-15090 Test lazy loading with extended bytecode enhancement and in…
yrodiere Feb 24, 2022
6ad45e2
HHH-15090 Allow passing unloaded types and a TypePool to ByteBuddyPro…
yrodiere Mar 1, 2022
9554ab9
HHH-15060 - Fix handling of associations with @NotFound
sebersole Mar 3, 2022
c5e95e5
HHH-14817 Make sure *-jakarta modules generate source and javadoc jars
beikov Mar 8, 2022
48d3da6
HHH-15097 Report VARCHAR as recommended type for UUID to fix issues w…
beikov Mar 8, 2022
2ced271
HHH-15097 Add test for boot error when using AttributeConverter for UUID
beikov Mar 8, 2022
37ef062
HHH-15106 - fk() HQL function
sebersole Mar 9, 2022
83b6e6e
HHH-15105 Test and fix for NPE when access default query cache region…
beikov Mar 8, 2022
c3cefd7
HHH-15115 Deleting an entity with Joined inheritance and default sche…
dreab8 Mar 11, 2022
f78ae8b
HHH-15113 Exception setting ParameterExpressions on Update Queries
dreab8 Mar 9, 2022
c030dc4
HHH-14996 Upgrade to JBoss Logging Processor (and matching Annotation…
Sanne Dec 22, 2021
dba829e
HHH-15119 Upgrade to ByteBuddy 1.12.8
Sanne Mar 14, 2022
b54ffe3
HHH-15051 Add property mapping for target FK attributes for associati…
beikov Jan 26, 2022
7bb2685
Disable uploading to Sourceforge
Sanne Mar 15, 2022
64272ba
5.6.6.Final
Hibernate-CI Mar 15, 2022
7d9fc87
5.6.7-SNAPSHOT
Hibernate-CI Mar 15, 2022
beae63a
remove a deprecation that was probably an accident
Mar 15, 2022
6a7afe8
HHH-15067: Set add() method as public to allow non-nullable associati…
blafond Feb 2, 2022
8c8a097
HHH-15124 Relax usage of DeprecationLogger: avoid some confusing reports
Sanne Mar 16, 2022
8c2b960
5.6.7.Final
Hibernate-CI Mar 16, 2022
3b9fbdc
5.6.8-SNAPSHOT
Hibernate-CI Mar 16, 2022
6d21f7e
HHH-15118 Fix duplicate ids with PooledOptimizer when sequence value …
Mar 12, 2022
e4e3573
HHH-13694 fix numeric overflow exception for large sequence min values
beikov Mar 18, 2022
adcc54f
HHH-14487 Fix usage of wrong Map in PropertyAccessStrategyMapImpl
beikov Mar 18, 2022
3b9c9ae
HHH-15147 Fix jpamodelgen-jakarta annotation processor processing jav…
yrodiere Mar 28, 2022
3fba2f2
HHH-15146 Run tests for hibernate-jpamodelgen-jakarta
yrodiere Mar 28, 2022
0c5486a
HHH-15146 Remove bogus artifact from hibernate-jpamodelgen-jakarta
yrodiere Mar 28, 2022
4b45beb
HHH-14819 Add test for issue
dreab8 Mar 21, 2022
cb738ce
HHH-15196 - Use default locale when lowercasing
andygithubmf Apr 7, 2022
39e0cca
Gradle release script removed --protocol=28 for rsync
dreab8 Apr 10, 2022
03f1cce
Gradle changed uploadDocumentation rsync url and port
dreab8 Apr 11, 2022
06a9572
HHH-15209 Upgrade to bytebuddy 1.12.9
yrodiere Apr 13, 2022
527103d
HHH-15141 Test bytecode enhancement on cross-package inheritance tree…
yrodiere Mar 24, 2022
9690769
Use annotated tags for release
yrodiere Apr 13, 2022
0b86f5a
5.6.8.Final
Hibernate-CI Apr 13, 2022
323f725
5.6.9-SNAPSHOT
Hibernate-CI Apr 13, 2022
ebfc6b4
HHH-15178 Backport Jenkinsfile and GH actions
beikov Apr 6, 2022
dad493d
HHH-15178 Introduce internal init_sql config and by default enable an…
beikov Sep 2, 2021
3094185
Ignore jakarta projects for javadoc aggregation
beikov Apr 25, 2022
f1c4627
HHH-15142 Add test for issue
ettavolt Mar 28, 2022
ee3129d
HHH-15142 CriteriaQuery with Like predicate fails when repeated with …
dreab8 Apr 13, 2022
73d0727
HHH-15212 Fix SimpleAuxiliaryDatabaseObject ignoring the default cata…
yrodiere Apr 27, 2022
863369c
HHH-15212 Test placeholders in auxiliary object SQL strings
yrodiere Apr 27, 2022
404020f
HHH-4384 Allow join column override if @JoinColumn is absent on @OneT…
ettavolt Oct 4, 2019
2506a84
HHH-15091 Add test for issue
dreab8 Mar 16, 2022
929af9c
HHH-15091 EntityManager.persist does not verify the existence of the …
dreab8 Mar 16, 2022
74d73a7
HHH-15274 Optimise LazyAttributeLoadingInterceptor's routines to iden…
Sanne May 14, 2022
88b5f49
HHH-15274 Field LazyAttributeLoadingInterceptor#lazyFields can never …
Sanne May 14, 2022
dabdc56
HHH-15222 Introduce a SessionLazyDelegator SPI
Sanne Apr 21, 2022
791fa98
HHH-15134 Update a bytecode enanchhed Entity with a Version attribute…
Apr 6, 2022
66bd426
HHH-15270 Test default catalog/schema with hbm.xml/orm.xml mapping wh…
yrodiere May 13, 2022
0b25a0e
HHH-15270 Fix inconsistent precedence of orm.xml implicit catalog ove…
yrodiere May 13, 2022
24d23c4
HHH-15265 Test that default catalog/schema are taken into account in …
yrodiere May 13, 2022
9a2e625
HHH-15265 Take default catalog/schema into account when generating DD…
yrodiere May 13, 2022
eb4a7a6
HHH-15265 Adjust inconsistent package names in tests
Sanne May 14, 2022
3691ca7
5.6.9.Final
Hibernate-CI May 14, 2022
592453e
5.6.10-SNAPSHOT
Hibernate-CI May 14, 2022
ff428b6
Add missing entry to changelog
yrodiere May 25, 2022
54b98d0
HHH-15281 Add test for issue
dreab8 May 23, 2022
4159a7b
HHH-15281 INSERTs/UPDATEs no longer executed as JDBC Batch statements…
dreab8 May 23, 2022
a69ffc8
HHH-15325 Avoid allocations from BitSet.stream() in AbstractEntityPer…
dreis2211 Jun 15, 2022
665004f
HHH-7525 For @Formula, use property name when there is no column name.
r-murphy Mar 6, 2019
828a192
HHH-7525 Reintroduce FailureExpected test case
Jan 22, 2020
8353743
Update hibernate-core/src/main/java/org/hibernate/loader/ColumnEntity…
beikov Jun 20, 2022
3f5b12c
HHH-15218 Add test for issue
dreab8 Jul 5, 2022
6b4ac62
HHH-15218 @OptimisticLocking(DIRTY) leads to wrong query during delet…
dreab8 Jul 5, 2022
c53050c
HHH-15322 Allow JNDI lookups using the osgi scheme
Sanne Jul 6, 2022
a900ace
5.6.10.Final
Hibernate-CI Jul 7, 2022
adfbbd4
5.6.11-SNAPSHOT
Hibernate-CI Jul 7, 2022
d0e5692
Backport snapshot-publish.Jenkinsfile
yrodiere Jul 12, 2022
c35f5f5
HHH-15425 Add test for issue
dreab8 Jul 28, 2022
f3422a3
HHH-15425 org.hibernate.QueryException: could not resolve property is…
dreab8 Jul 28, 2022
51b22ec
HHH-15425 Implemented Hibernate Criteria Projections.fk() and Restric…
dreab8 Jul 31, 2022
ab28812
HHH-15425 Improved association @NotFound documentation
dreab8 Aug 1, 2022
3b3ed8d
HHH-15425 Add additional test
dreab8 Aug 11, 2022
1c5f118
HHH-15425 Avoid creating an implicit join when the association has al…
dreab8 Aug 11, 2022
33362e8
HHH-15440 Add test for issue
dreab8 Aug 18, 2022
541ddb7
HHH-15440 @OneToOne and @OptimisticLock(excluded = true) not working …
dreab8 Aug 16, 2022
067d357
HHH-15100 Limitation of metamodel imports cache causes severe perform…
Sanne Aug 22, 2022
4b41584
HHH-15454 create test where metamodel for primitive type field is use…
karge-itestra Feb 1, 2022
570969c
HHH-15454 correct get(alias, class) method in CriteriaQueryTupleTrans…
karge-itestra Aug 18, 2022
2a0a618
HHH-15359 Add test for issue
dreab8 Aug 25, 2022
fd3ab8b
HHH-15359 The entity returned by a merge doesn't contain @ManyToMany …
dreab8 Aug 24, 2022
1fb744c
HHH-15388 Upgrade to Micrometer 1.9.3
dreab8 Aug 25, 2022
0867972
HHH-15451 Upgrade to version 42.5.0 of the PostgreSQL JDBC driver
Sanne Aug 25, 2022
e55f09c
HHH-15468 Set permissions
sashashura Aug 27, 2022
52f39f8
HHH-15466 Compatibility with Jandex 3.0.0
Ladicek Aug 24, 2022
0be6e7d
5.6.11.Final
Hibernate-CI Aug 30, 2022
307b746
5.6.12-SNAPSHOT
Hibernate-CI Aug 30, 2022
146038c
HHH-15216 Cannot change MetadataProvider implementation because JPAXM…
reda-alaoui Aug 31, 2022
4dc69d4
HHH-15216 Revert moving classes out of the internal package
beikov Sep 5, 2022
d2af91e
HHH-14943 Add test for issue
Nov 30, 2021
1350c71
HHH-14943 byNaturalId API creates unparseable query (AND keyword inst…
dreab8 Sep 14, 2022
58fe4a3
HHH-15505 Fix bytecode enhancement on entity whose field is defined b…
yrodiere Sep 13, 2022
5d2c451
HHH-15505 Test bytecode enhancement on entity whose field is defined …
yrodiere Sep 13, 2022
a67a08d
HHH-15508 Backport Session#getReference(Object)
yrodiere Sep 14, 2022
11c1b38
HHH-15523 Test case showing schema is missing in map key subquery
beikov Sep 19, 2022
a3a99d0
HHH-15523 Make use of SqlStringGenerationContext in MapBinder#getFrom…
beikov Sep 19, 2022
0720631
HHH-15520 Add test for issue
dreab8 Sep 19, 2022
9bd8a95
HHH-15520 ValueGeneration on @OneToOne leads to boot error
dreab8 Sep 19, 2022
e218b8f
HHH-15522 Add hibernate isInitialized tests on envers collections
fgsofis Sep 17, 2022
1987d69
HHH-15522 Implement a LazyInitializable interface that PersistentColl…
fgsofis Sep 17, 2022
a4b47d3
HHH-15538 Move Jenkinsfile timeout around shell command
beikov Sep 21, 2022
d4b2af9
HHH-15336 Deprecate SharedSessionContractImplementor#getTransactionSt…
dreab8 Sep 20, 2022
6e1b17c
HHH-15045 Add test for issue
dreab8 Sep 21, 2022
974201a
HHH-15235 Add test for issue
dreab8 Sep 20, 2022
4eea316
HHH-15045 + HHH-15235 onFlushDirty() invoked on parent entity in a @O…
dreab8 Sep 20, 2022
48834a5
HHH-15555 Remove use of @AutomaticFeature in GraalVM module
Sanne Sep 6, 2022
41bbd5d
HHH-15555 Fixing a typo, add Feature Description support
gastaldi Sep 19, 2022
ee08830
HHH-15555 Renaming GraalVMStaticAutofeature to GraalVMStaticFeature
Sanne Sep 26, 2022
e9147dd
5.6.12.Final
Hibernate-CI Sep 27, 2022
be8a297
5.6.13-SNAPSHOT
Hibernate-CI Sep 27, 2022
b275e66
HHH-15559/HHH-15257 - Add tests for issues
jrenaat Sep 29, 2022
c48d25f
HHH-15554 Add test for issue
dreab8 Oct 3, 2022
b493b51
HHH-15554 Merge of an Entity with an immutable composite user type th…
dreab8 Oct 3, 2022
0b3dd79
HHH-15594 Remove oracle_ee test matrix entry
beikov Oct 11, 2022
a2555cf
HHH-15561 - Fixed and added test for issue
jrenaat Oct 11, 2022
c6bfc29
HHH-15575 Make getter org.hibernate.criterion.SimpleExpression#getOp(…
dreab8 Oct 19, 2022
7c99277
HHH-15639 Upgrade to ByteBuddy 1.12.18
Sanne Oct 27, 2022
420c932
HHH-15637 Upgrade to Byteman 4.0.20
Sanne Oct 27, 2022
83e22ee
HHH-15585 Add test for issue
dreab8 Oct 19, 2022
bc5b725
HHH-15585 Add support for DB2 aliases for schema validation
dreab8 Oct 7, 2022
5ea8768
HHH-15616 Mitigate performance impact of entity enhancement on Klass'…
Sanne Oct 13, 2022
9054f11
HHH-15634 Fix naming of LazyBasicFieldAccessTest/LazyBasicPropertyAcc…
yrodiere Oct 26, 2022
8bf23ef
HHH-15634 Test updating a single lazy property with no lazy group
yrodiere Oct 26, 2022
01842e2
HHH-15634 Test updating one or all of multiple lazy basic properties
yrodiere Oct 26, 2022
e333af6
HHH-15634 Run the tests also without dirty checking enabled
dreab8 Oct 27, 2022
33053cd
HHH-15634 Lazy basic property does not get updated on change
dreab8 Oct 27, 2022
3be1c29
HHH-15634 Lazy basic property does not get updated on change: inline …
dreab8 Oct 27, 2022
dd7cbe8
HHH-15649 Additional performance fixes relating to Klass's _secondary…
Sanne Oct 31, 2022
e7fe516
HHH-15634 Extracting constant for @Transient annotation in ByteBuddy …
Sanne Nov 3, 2022
1d539ea
HHH-15634 Extracting reusable Type constants from ByteBuddy InlineDir…
Sanne Nov 3, 2022
5a1d6f6
5.6.13.Final
Hibernate-CI Nov 3, 2022
9b065d0
5.6.14-SNAPSHOT
Hibernate-CI Nov 3, 2022
ca28c00
HHH-15662 ClasscastException caused by check for Managed rather than …
Sanne Nov 3, 2022
81624b0
5.6.14.Final
Hibernate-CI Nov 4, 2022
073d65c
5.6.15-SNAPSHOT
Hibernate-CI Nov 4, 2022
803ee1c
HHH-15685 Improve efficiency of accessing Dialect from Loader
Sanne Nov 7, 2022
1d68355
HHH-15685 Improve efficiency of accessing Dialect from HqlSqlWalker
Sanne Nov 7, 2022
055c603
HHH-15690 HQLQueryPlan to have a direct reference to QueryTranslatorF…
Sanne Nov 8, 2022
bcf3fbe
HHH-13106 - Remove erroneous (incomplete) test and add a new one for …
jrenaat Nov 9, 2022
9f9ed15
HHH-15693 Introduce a fast-path access for ClassLoaderService being r…
Sanne Nov 8, 2022
d7fa18a
HHH-15792: Explicitly add JavaDoc to make @deprecated hint for create…
csware Dec 2, 2022
cc3b389
Switch from LGTM to CodeQL
beikov Dec 16, 2022
45c7fc5
Add TCK build throttling
beikov Dec 20, 2022
49fbe84
HHH-15618 Accept TypedParameterValue for procedure
quaff Oct 21, 2022
84662bf
HHH-16049 Restructure lazy-basic tests for easier re-execution and be…
yrodiere Jan 16, 2023
ac55bb2
HHH-16049 Test setting a property to its current value with bytecode …
yrodiere Jan 16, 2023
802fc76
HHH-16049 Test setting a property to its current value with bytecode …
dreab8 Jan 17, 2023
1078caa
HHH-16049 Setting a property to its current value with bytecode enhan…
dreab8 Jan 17, 2023
38ec412
HHH-15665 - Fix and added test for issue
jrenaat Feb 2, 2023
e924c27
5.6.15.Final
Hibernate-CI Feb 6, 2023
4374ada
5.6.16-SNAPSHOT
Hibernate-CI Feb 6, 2023
7be5455
HHH-14514 Fix auto eviction of collection cache
beikov Feb 14, 2023
82b89e2
HHH-16177 Take into account the default catalog/schema when creating/…
yrodiere Feb 13, 2023
0a2bf3f
HHH-16177 Test catalog/schema creation/dropping in DefaultCatalogAndS…
yrodiere Feb 13, 2023
64e9637
HHH-13627 Add test for issue
mbladel Mar 10, 2023
0247c03
HHH-13627 Invalidate cache on update for CacheMode GET and IGNORE
mbladel Mar 10, 2023
b36c7dd
HHH-16378 Reproducer for failure to resolve target type of associatio…
yrodiere Mar 27, 2023
8c01165
Disable HANA tests
beikov Mar 30, 2023
b38cf9b
HHH-16545 PersistenceUtil.MetadataCache needs to be threadsafe
Sanne May 4, 2023
c102b83
HHH-16609 SQLFunctionRegistry#findSQLFunction needs to guard against …
Sanne May 16, 2023
5201a45
HHH-14944 - Detaching an entity removes natural-id cross-reference fr…
pb00068 May 2, 2023
f55fa0c
HHH-16892 Fix LocalXmlResourceResolver not resolving some dtd URLs th…
yrodiere Jul 5, 2023
4bf9bfa
HHH-16977 Fixed in NullPointerException in EntityEntryContext.downgra…
klockla Jul 24, 2023
30241bb
HHH-17295 Change which constructor is looked-up in DialectContext tes…
marko-bekhta Sep 6, 2023
fbdec58
HHH-18475 fix race condition in AbstractRowMapper
obourgain Aug 12, 2024
db2fde2
Update `nu.studer.credentials` gradle plugin to version 2.2
mbladel Nov 27, 2024
32c2bad
Update and migrate to asciidoc gradle plugin `3.3.2`
mbladel Dec 5, 2024
d7e8a69
Update deprecated `actions/upload-artifact`
mbladel Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 63 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "CodeQL"

on:
push:
branches: [ '5.6' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ '5.6' ]
schedule:
- cron: '34 11 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
queries: +security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
79 changes: 22 additions & 57 deletions .github/workflows/contributor-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-6.0-h2-main/.
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-5.6-h2/.
# However, Hibernate ORM builds run on GitHub actions regularly
# to check that it still works and can be used in GitHub forks.
# See https://docs.github.com/en/free-pro-team@latest/actions
Expand All @@ -13,35 +13,41 @@ on:
pull_request:
branches:
- '5.6'

permissions: {} # none

# See https://github.com/hibernate/hibernate-orm/pull/4615 for a description of the behavior we're getting.
concurrency:
# Consider that two builds are in the same concurrency group (cannot run concurrently)
# if they use the same workflow and are about the same branch ("ref") or pull request.
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
# Cancel previous builds in the same concurrency group even if they are in process
# for pull requests or pushes to forks (not the upstream repository).
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'hibernate/hibernate-orm' }}

jobs:
build:
permissions:
contents: read
name: Java 8
runs-on: ubuntu-latest
# We want to know the test results of all matrix entries
continue-on-error: true
strategy:
fail-fast: false
matrix:
# When GitHub Actions supports it: https://github.com/actions/toolkit/issues/399
# We will use the experimental flag as indicator whether a failure should cause a workflow failure
include:
- rdbms: h2
experimental: false
# - rdbms: hsqldb
- rdbms: derby
experimental: true
- rdbms: mysql8
- rdbms: mariadb
experimental: true
- rdbms: postgresql
experimental: true
- rdbms: postgresql_9_5
- rdbms: postgresql_13
- rdbms: oracle
experimental: true
- rdbms: db2
experimental: true
- rdbms: mssql
experimental: true
- rdbms: sybase
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
# - rdbms: hana
# experimental: true
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -77,53 +83,12 @@ jobs:
run: ./ci/build-github.sh
shell: bash
- name: Upload test reports (if Gradle failed)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-java8-${{ matrix.rdbms }}
path: |
./**/target/reports/tests/
./**/target/reports/checkstyle/
- name: Omit produced artifacts from build cache
run: ./ci/before-cache.sh
build11:
name: Java 11
runs-on: ubuntu-latest
# We want to know the test results of all matrix entries
continue-on-error: true
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get year/month for cache key
id: get-date
run: |
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven local repository
uses: actions/cache@v2
id: cache-maven
with:
path: |
~/.m2/repository
~/.gradle/caches/
~/.gradle/wrapper/
# refresh cache every month to avoid unlimited growth
key: maven-localrepo-${{ steps.get-date.outputs.yearmonth }}
- name: Run build script
run: ./ci/build-github.sh
shell: bash
- name: Upload test reports (if Gradle failed)
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-reports-java11
path: |
./**/target/reports/tests/
./**/target/reports/checkstyle/
- name: Omit produced artifacts from build cache
run: ./ci/before-cache.sh
run: ./ci/before-cache.sh
Loading