-
Notifications
You must be signed in to change notification settings - Fork 482
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
8345937: Update JUnit to 5.11.3 #1662
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mhanl! A progress list of the required criteria for merging this PR into |
@Maran23 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Because this has third-party and build implications, I need to review it. Since it is a test-only usage (we don't distribute anything from it), we don't need to get new approval as long as the license is unchanged (I'll double-check). Reviewers: @kevinrushforth @arapte /reviewers 2 |
@kevinrushforth |
I doubt it. There is at least one test there that is prone to intermittent failures on some (usually slower) systems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work as expected.
All looks good so far. I fired off a CI test job. Once finished, I'll approve and you can integrate. |
The following test consistently fails on macOS and Linux (I haven't tried it on Windows) with JUnit 5.13.1 in our CI and on my local macOS system:
|
Update: I think this is a test bug. @Maran23 Can you confirm a theory I have? We have a situation where an abstract base class of a test has a static |
I'm almost sure that this is the case, given this:
For the test in question, the It will be an easy test fix. I'll file a follow-up bug for it. |
I confirmed my theory about why that test is now failing, and filed a new bug, JDK-8346222, to track this. PR #1664 is out for review. I have a CI build out with the patches from both PRs. Once that completes, I'll approve this. It would probably be best to wait until Monday, unless I'm able to integrate PR #1664 is integrated sooner than that (as a simple testbug I will integrate that one without waiting 24 hours if it is approved sooner). One more thing: I updated the title of the JBS bug to match our usual pattern for third-party updates. Please update the title of your PR to match. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good. The combined patch from this PR and #1664 passes in our CI.
As an FYI, the behavior change that exposed the bug in our test was a deliberate change in JUnit 5.11. Indeed it was the case that before 5.11, a static method annotated with |
The JUnit Platform got some updates over the last years, so it is a good idea to update it to the newest version.
That is from
5.8.1
to5.11.3
.Affected dependencies:
junit.jupiter
junit.platform
opentest4j
Release notes: https://junit.org/junit5/docs/5.11.3/release-notes/
Note:
I did a handful of CI runs and got a test failure once in
ServiceLifecycleTest
. Not sure yet if related to the update or not.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1662/head:pull/1662
$ git checkout pull/1662
Update a local copy of the PR:
$ git checkout pull/1662
$ git pull https://git.openjdk.org/jfx.git pull/1662/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1662
View PR using the GUI difftool:
$ git pr show -t 1662
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1662.diff
Using Webrev
Link to Webrev Comment