RFR: 8344270: Update tier1_common and hotspot_misc groups to better organize hotspot non-component tests

David Holmes dholmes at openjdk.org
Mon May 19 20:40:53 UTC 2025


On Tue, 6 May 2025 17:43:51 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Can you please review following PR that improve test groups.
> The bug was originally filed  to eliminate duplication between tier1_common and hotspot_misc test groups.  However while looked on the test content of these groups I realized that there are some other issues. 
> 1) hotspot_resourcehogs groups should be executed always separately from other tests to don't cause intermittent failures.
> 2) it makes sense to run all gtest tests in tier1 but don't run in any other tiers (with any VM flags) 
> 3) testlibrary_tests and  sources should be a separate groups that don't need to be executed with any VM flags, or event with all builds 
> 
> So tier1_common includes non-component tests that should be executed in tier1. 
> **all** sanity tests
> **all** gttest tests (were not all of them)
> testlibrary_tests (might be os/cpu specifc, so need to run them with all builds)
> source code checking tests (no need to run them an all builds, but it takes only few seconds)
> 
> And it doesn't makes any sense to execute  tier1_common with any external VM flags.
> 
> While hotspot_misc now includes on 2 sanity tests.  It doesn't looks useful, but main purpose for this group would be to catch all tests that somehow missed from other groups. So let keep it. 
> 
> The new test groups were added mostly to add comments explaining their specific.

I find it very hard to judge the necessity or merit of these changes. I guess it reflects the complexity of the overall testing system. But this really needs feedback from other "test system managers" to see how the changes would impact their test setup.

test/hotspot/jtreg/TEST.groups line 29:

> 27:   :hotspot_all
> 28: 
> 29: # The resourcehos tests might require a lot of resources  and

Suggestion:

# The resourcehogs tests might require a lot of resources  and

test/hotspot/jtreg/TEST.groups line 36:

> 34: 
> 35: hotspot_all = \
> 36:   -:hotspot_resourcehogs \

When "all" was defined it was specifically intended to be all. If you want all-but-something then you define a group that is all-but -something. I don't know if these groups even get used regularly by anyone.

test/hotspot/jtreg/TEST.groups line 161:

> 159: # gtest and non_hotspot tests shouldn't be executed with VM flags
> 160: # hotspot_misc includes sanity testing and might be used
> 161: # for execution non-component tests with VM flags

Suggestion:

# for execution of non-component tests with VM flags

test/hotspot/jtreg/TEST.groups line 165:

> 163:   sanity \
> 164:   native_sanity \
> 165:   :non_hotspot_tests \

Why should we want to execute the non-hotspot-tests in tier1 ??

-------------

PR Review: https://git.openjdk.org/jdk/pull/25070#pullrequestreview-2851932142
PR Review Comment: https://git.openjdk.org/jdk/pull/25070#discussion_r2096446181
PR Review Comment: https://git.openjdk.org/jdk/pull/25070#discussion_r2096445931
PR Review Comment: https://git.openjdk.org/jdk/pull/25070#discussion_r2096447774
PR Review Comment: https://git.openjdk.org/jdk/pull/25070#discussion_r2096449516


More information about the hotspot-dev mailing list