Skip to content

Conversation

@dholmes-ora
Copy link
Member

@dholmes-ora dholmes-ora commented Dec 15, 2025

This test is checking for backsliding on the use of NULL in the hotspot source files. The test only needs to be run once per change but it is defined as a regular tier1 test which then gets run for each os-arch combination, plus product and debug, and then again with a bunch of flags in tier3. This is just a waste of resources. At a minimum we should make the test flagless so that it doesn't run in tier3, but we can also restrict it to a single platform.

Before the change the test ran 27 times in tier1-3 in our CI. After it runs once.

EDIT: Updated to include both tests in sources/

Thanks


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8373654: Tests in sources/ should only run once (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28818/head:pull/28818
$ git checkout pull/28818

Update a local copy of the PR:
$ git checkout pull/28818
$ git pull https://git.openjdk.org/jdk.git pull/28818/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28818

View PR using the GUI difftool:
$ git pr show -t 28818

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28818.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 15, 2025

👋 Welcome back dholmes! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Dec 15, 2025

@dholmes-ora 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:

8373654: Tests in sources/ should only run once

Reviewed-by: shade, lmesnik

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 54 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Dec 15, 2025

@dholmes-ora To determine the appropriate audience for reviewing this pull request, one or more labels corresponding to different subsystems will normally be applied automatically. However, no automatic labelling rule matches the changes in this pull request. In order to have an "RFR" email sent to the correct mailing list, you will need to add one or more applicable labels manually using the /label pull request command.

Applicable Labels
  • build
  • client
  • compiler
  • core-libs
  • hotspot
  • hotspot-compiler
  • hotspot-gc
  • hotspot-jfr
  • hotspot-runtime
  • i18n
  • ide-support
  • javadoc
  • jdk
  • jmx
  • net
  • nio
  • security
  • serviceability
  • shenandoah

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flagless -- I agree!
linux and amd64 -- as someone who re-runs this test on my M1 Mac to reproduce CI failures, I disagree!
vm.debug -- I am on the fence here, but probably fine to restrict it to debug only, as we expect most folks to run tests with debug VMs.

You might want to do this for other sources/ tests?

@dholmes-ora
Copy link
Member Author

/label add hotspot

Thanks for taking a look @shipilev !

linux and amd64 -- as someone who re-runs this test on my M1 Mac to reproduce CI failures, I disagree!

Reality is that for every changeset integrated only one entity in the world actually needs to run this test. But I can drop the platform restriction - 4 runs is still better than 27.

You might want to do this for other sources/ tests?

I'll take a look at what they do. I only tripped over this one when a stray file caused it to fail.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Dec 15, 2025
@openjdk
Copy link

openjdk bot commented Dec 15, 2025

@dholmes-ora
The hotspot label was successfully added.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 15, 2025
@mlbridge
Copy link

mlbridge bot commented Dec 15, 2025

Webrevs

Add TestIncludesAreSorted
@dholmes-ora dholmes-ora changed the title 8373654: Test sources/TestNoNull should only run once 8373654: Tests in sources/ should only run once Dec 15, 2025
Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, with only stylistic nits.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 16, 2025
@dholmes-ora
Copy link
Member Author

Thanks for the review @shipilev !

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Dec 16, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 16, 2025
@shipilev
Copy link
Member

Important bit: Hotspot tests are running with fastdebug in GHA (job: hs/tier1 common), so the tests still run as PR check.

@dholmes-ora
Copy link
Member Author

Thanks for the review @lmesnik !

/integrate

@openjdk
Copy link

openjdk bot commented Dec 17, 2025

Going to push as commit b3fab41.
Since your change was applied there have been 54 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 17, 2025
@openjdk openjdk bot closed this Dec 17, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 17, 2025
@openjdk
Copy link

openjdk bot commented Dec 17, 2025

@dholmes-ora Pushed as commit b3fab41.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@dholmes-ora dholmes-ora deleted the 8373654-nonull branch December 18, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants