Skip to content

Commit 36365a3

Browse files
committed
Merge remote-tracking branch 'origin/main' into rien/junit-platform-suite-engine-documentation
2 parents f74202e + 077cd99 commit 36365a3

File tree

68 files changed

+1108
-247
lines changed

Some content is hidden

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

68 files changed

+1108
-247
lines changed

.github/actions/main-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
with:
1717
arguments: ${{ inputs.arguments }}
1818
encryptionKey: ${{ inputs.encryptionKey }}
19-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
19+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
2020
if: ${{ always() }}
2121
with:
2222
name: Open Test Reports (${{ github.job }})

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
persist-credentials: false
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
48+
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4949
with:
5050
languages: ${{ matrix.language }}
5151
build-mode: ${{ matrix.build-mode }}
@@ -60,6 +60,6 @@ jobs:
6060
-Dscan.tag.CodeQL \
6161
classes
6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
63+
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
6464
with:
6565
category: "/language:${{matrix.language}}"

.github/workflows/cross-version.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
type: ea
3434
- version: 26
3535
type: ea
36-
release: leydenpremain
36+
release: leyden
37+
- version: 26
38+
type: ea
39+
release: valhalla
3740
name: "OpenJDK ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }})"
3841
runs-on: ubuntu-latest
3942
steps:
@@ -71,7 +74,7 @@ jobs:
7174
-Dscan.tag.JDK_${{ matrix.jdk.version }} \
7275
build \
7376
--no-configuration-cache #Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
74-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
77+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7578
if: ${{ always() }}
7679
with:
7780
name: Open Test Reports (${{ github.job }} ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }}))
@@ -114,7 +117,7 @@ jobs:
114117
-Dscan.tag.OpenJ9 \
115118
build \
116119
--no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
117-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
120+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
118121
if: ${{ always() }}
119122
with:
120123
name: Open Test Reports (${{ github.job }})

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 1
3232
persist-credentials: false
3333
- name: Install GraalVM
34-
uses: graalvm/setup-graalvm@2a2412009026a83f51d179f92dc2b3fd4c8142df # v1.4.1
34+
uses: graalvm/setup-graalvm@eec48106e0bf45f2976c2ff0c3e22395cced8243 # v1.4.2
3535
with:
3636
distribution: graalvm-community
3737
version: 'latest'

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4949
# format to the repository Actions tab.
5050
- name: "Upload artifact"
51-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
51+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5252
with:
5353
name: SARIF file
5454
path: results.sarif
@@ -57,6 +57,6 @@ jobs:
5757
# Upload the results to GitHub's code scanning dashboard (optional).
5858
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
60+
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
6161
with:
6262
sarif_file: results.sarif

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ To deprecate an item:
180180
Please refer to [the readme](README.md#building-from-source) and [the documentation readme](documentation/README.md) for
181181
the most common build commands.
182182

183+
### Build Cache
184+
185+
Local builds can reuse outputs from previous CI builds via Gradle's [Build Cache](https://docs.gradle.org/current/userguide/build_cache.html).
186+
The default build cache server is located in the US.
187+
If you're in Europe, you can configure the build to use a build cache node located in the EU by adding the following to the `gradle.properties` file in your [Gradle user home](https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home):
188+
189+
```properties
190+
junit.develocity.buildCache.server=https://eu-build-cache-ge.junit.org
191+
```
192+
183193
### Build Parameters
184194

185195
The build can be influenced by a number of parameters. For example, measuring

documentation/src/docs/asciidoc/link-attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ endif::[]
251251
:Log4j: https://logging.apache.org/log4j/2.x/[Log4j]
252252
:Log4j_JDK_Logging_Adapter: https://logging.apache.org/log4j/2.x/log4j-jul/index.html[Log4j JDK Logging Adapter]
253253
:Logback: https://logback.qos.ch/[Logback]
254-
:LogManager: https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[LogManager]
254+
:LogManager: https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/LogManager.html[LogManager]
255255
:Maven_Central: https://central.sonatype.com/[Maven Central]
256256
:MockitoExtension: https://github.com/mockito/mockito/blob/release/2.x/subprojects/junit-jupiter/src/main/java/org/mockito/junit/jupiter/MockitoExtension.java[MockitoExtension]
257257
:ServiceLoader: {jdk-javadoc-base-url}/java.base/java/util/ServiceLoader.html[ServiceLoader]

documentation/src/docs/asciidoc/release-notes/release-notes-6.0.0.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
*Scope:*
77

8-
* Java 17 and Kotlin 2.2 baseline
8+
* Java 17 and Kotlin 2.1 baseline
99
* Single version number for Platform, Jupiter, and Vintage
1010
* Use of JSpecify annotations to express nullability
1111
* Integration of JFR functionality in `junit-platform-launcher`

documentation/src/docs/asciidoc/release-notes/release-notes-6.0.1.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ repository on GitHub.
1616
[[release-notes-6.0.1-junit-platform-bug-fixes]]
1717
==== Bug Fixes
1818

19-
* ❓
19+
* The `jdk.jfr` package is now an optional import when using the `junit-platform-launcher`
20+
as an OSGi bundle.
21+
* Remove remnants of Java 8 compatibility from User Guide.
2022

2123
[[release-notes-6.0.1-junit-platform-deprecations-and-breaking-changes]]
2224
==== Deprecations and Breaking Changes
@@ -43,6 +45,10 @@ repository on GitHub.
4345
to avoid conflicts with other control characters.
4446
* Fix `IllegalAccessError` thrown when using the Kotlin-specific `assertDoesNotThrow`
4547
assertion.
48+
* Stop reporting discovery issues for synthetic methods, particularly in conjunction with
49+
Kotlin suspend functions.
50+
* Fix support for test methods with the same signature as a package-private methods
51+
declared in super classes in different packages.
4652

4753
[[release-notes-6.0.1-junit-jupiter-deprecations-and-breaking-changes]]
4854
==== Deprecations and Breaking Changes
@@ -54,6 +60,10 @@ repository on GitHub.
5460

5561
* The `@CsvSource` and `@CsvFileSource` annotations now allow specifying
5662
a custom comment character using the new `commentCharacter` attribute.
63+
* Improve error message when using `@ParameterizedClass` with field injection and not
64+
providing enough arguments.
65+
* Allow calling `TypedArgumentConverter` constructor for `@Nullable T` target types
66+
without having to cast class literals to `Class<@Nullable T>`.
5767

5868

5969
[[release-notes-6.0.1-junit-vintage]]

documentation/src/docs/asciidoc/release-notes/release-notes-6.1.0-M1.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ repository on GitHub.
2828

2929
* Support for creating a `ModuleSelector` from a `java.lang.Module` and using
3030
its classloader for test discovery.
31+
* `OpenTestReportGeneratingListener` now supports redirecting XML events to a socket via
32+
the new `junit.platform.reporting.open.xml.socket` configuration parameter. When set to a
33+
port number, events are sent to `127.0.0.1:<port>` instead of being written to a file.
34+
* Allow implementations of `HierarchicalTestEngine` to specify which nodes require the
35+
global read lock by overriding the `Node.isGlobalReadLockRequired()` method to return
36+
`false`.
3137

3238

3339
[[release-notes-6.1.0-M1-junit-jupiter]]

0 commit comments

Comments
 (0)