Skip to content

[Test] Move two false-passing tests to the whitelist - #157

Merged
superajun-wsj merged 1 commit into
jdk17u-target8from
upstream/bugreport/ptrace-skip-test-case
Jul 31, 2026
Merged

[Test] Move two false-passing tests to the whitelist#157
superajun-wsj merged 1 commit into
jdk17u-target8from
upstream/bugreport/ptrace-skip-test-case

Conversation

@superajun-wsj

Copy link
Copy Markdown
Collaborator

GitHub Actions’ default CI environment does not allow ptrace, causing the following two tests to skip the code paths they are intended to verify while still reporting success:

  • gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
  • serviceability/sa/jmap-hashcode/Test8028623.java

As a result, these tests produce false-positive results in CI. This commit moves both tests to the whitelist to avoid misleading test results. A proper fix will be implemented in a follow-up change.

GitHub Actions’ default CI environment does not allow ptrace, causing the
following two tests to skip the code paths they are intended to verify while
still reporting success:

* gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
* serviceability/sa/jmap-hashcode/Test8028623.java

As a result, these tests produce false-positive results in CI. This commit
moves both tests to the whitelist to avoid misleading test results.
A proper fix will be implemented in a follow-up change.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to prevent misleading CI signal by excluding two HotSpot jtreg tests that can “pass” in GitHub Actions’ default environment without exercising the intended code paths due to ptrace restrictions.

Changes:

  • Add gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java to the HotSpot jtreg exclude lists for x64 and aarch64.
  • Add serviceability/sa/jmap-hashcode/Test8028623.java to the HotSpot jtreg exclude lists for x64 and aarch64.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cvm/conf/jtreg_hotspot8_excludes_x64.list Excludes the two identified false-passing HotSpot tests on x64.
cvm/conf/jtreg_hotspot8_excludes_aarch64.list Excludes the two identified false-passing HotSpot tests on aarch64.
Suppressed comments (2)

cvm/conf/jtreg_hotspot8_excludes_x64.list:103

  • Please add a short reason token to this exclude entry (e.g., ptrace is disabled on GitHub Actions so the test skips intended code paths and can false-pass). This makes it easier to revisit/remove the exclusion later.
serviceability/sa/jmap-hashcode/Test8028623.java

cvm/conf/jtreg_hotspot8_excludes_aarch64.list:107

  • Please add a short reason token to this exclude entry (e.g., ptrace is disabled on GitHub Actions so the test skips intended code paths and can false-pass). This makes it easier to revisit/remove the exclusion later.
serviceability/sa/jmap-hashcode/Test8028623.java

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gc/g1/TestStringSymbolTableStats.java
gc/logging/TestGCId.java
gc/metaspace/TestMetaspaceSizeFlags.java
gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
gc/g1/TestStringSymbolTableStats.java
gc/logging/TestGCId.java
gc/metaspace/TestMetaspaceSizeFlags.java
gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
@superajun-wsj
superajun-wsj merged commit 6565778 into jdk17u-target8 Jul 31, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants