78 Commits

Author SHA1 Message Date
Marco Belladelli
38c73704cb HHH-18870 Set HOME to /root for atlas CI runners 2024-11-21 15:47:51 +01:00
Marco Belladelli
f468d92c89 HHH-18678 Specific task for CI build and separate step for format checks 2024-11-13 08:09:48 -06:00
Yoann Rodière
b5b4693466 Update GitHub bot rules to ignore changes to nested git/build files 2024-11-13 07:27:53 -06:00
Yoann Rodière
a63716dab7
Fix upload of Devbelocity build scans
Forgot this line.
2024-10-28 12:02:21 +01:00
Yoann Rodière
6551aa59c5 Fix upload of Develocity build scans
Don't tar them, as this was broken: we ended up uploading the
build-scan-data directory instead of the tar, while still expecting a
tar when dowloading, which made everything fail.

We don't need tars anyway, as workflow artifacts are already zipped.
2024-10-28 12:00:03 +01:00
Yoann Rodière
013bb46470 Do not include the whole Gradle cache in GH Actions caches
We don't need the whole cache, since most (all?) of it is stored on
Develocity already.

Including ./gradle/caches/modules-2 is enough, because that's where
Maven dependencies are stored, and *those* are not stored on Develocity.
2024-10-25 12:29:15 +02:00
Yoann Rodière
62fe772cc0
Fix invalid arguments in GitHub Actions for download of build-scan-data artifacts 2024-10-25 12:07:21 +02:00
Yoann Rodière
5eaaff2e63 Improve build cache strategy
Ripped off from Quarkus.

Here's how it will work:

1. We create a cache entry on push only. Pull requests only restore it.
2. We create a new cache entry every day, prefixed with something like
   2024-10-25.
3. When restoring the cache, we try the entry for the day first
   (2024-10-25) and default to the one for the month (2024-10-*).
   Critically, this means we will build each day's cache based on the
   previous day's cache.
4. Atlas infra uses its own, separate cache entries.

Co-Authored-By: Guillaume Smet <guillaume.smet@gmail.com>
2024-10-25 12:02:27 +02:00
Yoann Rodière
4e8eb91562 Sanitize user home on GitHub Action job start on Atlas 2024-10-25 11:52:58 +02:00
Christian Beikov
df8b16369f Rework/simplify GH Actions jobs
* Use `pull_request` instead of `pull_request_target`
* Move Develocity build scan publishing for untrusted code to a separate workflow
* Merge Atlas workflow into the main CI workflow
* Split caches between trusted and untrusted code
* Update secrets to use "Develocity" name instead of "Gradle Enterprise"
* Update comments

Co-Authored-By: Yoann Rodière <yoann@hibernate.org>
2024-10-25 11:52:58 +02:00
Gavin King
054aeff78b completely remove checkstyle and replace it with a simple regex check
This is ~ 2 orders of magnitude faster on my machine, so it can be
executed as part of the compileJava task. Also, it actually logs the
failures, instead of making me go hunt for them in some generated
HTML-based report.
2024-09-30 13:10:09 -05:00
Christian Beikov
4a447ac819 Change branch names to main 2024-08-16 13:42:59 +02:00
Jan Schatteman
5dd0aa1e1a HHH-18037 - Move DerbyDialect to hibernate-community-dialects
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-08-15 13:52:32 -05:00
Christian Beikov
9f58dc1b98 Enabled CodeQL and Atlas again 2024-08-15 13:52:27 -05:00
Steve Ebersole
5a52290e9c HHH-17460 - Ongoing JPA 32 work 2024-08-15 13:52:25 -05:00
Steve Ebersole
0e4702ec32 HHH-17377 - Migrate to JPA 3.2
https://hibernate.atlassian.net/browse/HHH-17377

CodeQL
2024-08-15 13:52:22 -05:00
Steve Ebersole
f8865106c1 HHH-17377 - Migrate to JPA 3.2
https://hibernate.atlassian.net/browse/HHH-17377

jpamodelgen
2024-08-15 13:52:22 -05:00
Steve Ebersole
5781bdd30f HHH-17377 - Migrate to JPA 3.2
https://hibernate.atlassian.net/browse/HHH-17377

Change GitHub workflow to use Java 17
2024-08-15 13:52:22 -05:00
Steve Ebersole
30993f1367 HHH-17377 - Migrate to JPA 3.2
https://hibernate.atlassian.net/browse/HHH-17377

Change GitHub workflow to use Java 17
2024-08-15 13:52:22 -05:00
marko-bekhta
ea468e774b Add a PR template 2024-06-26 14:07:12 +02:00
Christian Beikov
0f8ef48e7b Don't fail the build if build scan publishing fails 2024-05-21 13:21:02 +02:00
Yoann Rodière
8031e211e9
Fix invalid s390x config in Hibernate GitHub Bot config 2024-04-29 13:44:31 +02:00
Yoann Rodière
1c3ac99e44
Fix DB tag regexp in Hibernate GitHub Bot configuration
Java apparently throws exception when the replacement string references
non-matching groups.

This new regexp no longer relies on optional groups,
and thus should work fine.
2024-04-29 12:52:33 +02:00
Yoann Rodière
46c553dc3c
Simpler DB tag regexp in Hibernate GitHub Bot config 2024-04-29 09:16:17 +02:00
Yoann Rodière
e6b6f4b145 Handle s390x in Develocity build scan reports 2024-04-29 09:10:03 +02:00
Yoann Rodière
9f682b85dc Improve cleanup of DB tags in Develocity build scan reports 2024-04-29 09:10:03 +02:00
Yoann Rodière
f7bea4805c Custom columns in develocity build scan reports 2024-04-26 15:52:34 +02:00
marko-bekhta
477be17b8d Update Develocity build scan configuration 2024-04-17 13:04:46 +02:00
Yoann Rodière
631beeb1fb Publish build scans on Atlas builds too 2024-04-11 16:49:15 +02:00
Yoann Rodière
6863174a8c Safely publish build scans even for pull requests 2024-04-11 16:49:15 +02:00
Yoann Rodière
786fbd6b84 Use an organization secret for Develocity access keys 2024-04-11 16:49:15 +02:00
Yoann Rodière
3dcaa20c25 Don't populate Develocity cache in pull requests
That's potentially dangerous.
2024-04-11 16:49:15 +02:00
Yoann Rodière
6f640e1d6d List build scans in a GitHub check
Using hibernate-github-bot.
2024-03-21 10:59:24 -05:00
LLEFEVRE
4d7b9f063f HHH-17319 Use Oracle GraalVM for Atlas builds 2024-01-31 18:37:56 +01:00
dependabot[bot]
7d08f94429 Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 18:29:00 +01:00
Steve Ebersole
b771afda5b Populate remote Gradle build cache from CI jobs 2024-01-19 11:58:41 -06:00
Steve Ebersole
0307ee7c7a Develocity access token for publishing build scans 2023-12-21 09:40:18 -06:00
dependabot[bot]
0c2ba8290e Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 15:40:37 +01:00
dependabot[bot]
ff86531fdc Bump github/codeql-action from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-14 09:27:25 +01:00
dependabot[bot]
971a96d5bd Bump actions/setup-java from 3 to 4
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-01 19:27:13 +01:00
Yoann Rodière
8766c6f973 Ignore JIRA checks for commits targeting only build-related files 2023-10-31 13:32:11 +01:00
Christian Beikov
b8e8169c09 Cancel in-progress CodeQL workflows on new PR pushes 2023-10-09 18:00:40 +02:00
dependabot[bot]
50a1d78721 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 10:06:45 +02:00
Christian Beikov
86a1cf20f6 HHH-17237 Add Atlas workflow 2023-10-05 22:31:54 +02:00
dependabot[bot]
81a7898162 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 17:18:09 +02:00
Marco Belladelli
1f0bfdcb86 HHH-16850 Enable GH Bot automatic issue links 2023-07-17 14:57:02 +02:00
dependabot[bot]
d52a44c8eb Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 16:31:13 +01:00
Christian Beikov
8bce5959a2 Update 'com.gradle.enterprise' to '3.12.3', 'com.gradle.common-custom-user-data-gradle-plugin' to '1.8.2', GitHub actions workflow steps setup-java, cache and upload-artifact to v3, and run dependabot on github actions versions 2023-02-03 18:00:08 +01:00
Christian Beikov
1ee34ac0a1 Switch from LGTM to CodeQL 2022-12-16 12:52:58 +01:00
Christian Beikov
4914d14a43 HHH-15626 Move old databases to nightly pipeline and add some SQL Server 2022 features 2022-11-18 11:06:39 +01:00