Skip to content

[Test] Add fastdebug test jobs to GitHub Actions CI workflow - #160

Open
sendaoYan wants to merge 1 commit into
bytedance:jdk17u-target8from
sendaoYan:issue-159
Open

[Test] Add fastdebug test jobs to GitHub Actions CI workflow#160
sendaoYan wants to merge 1 commit into
bytedance:jdk17u-target8from
sendaoYan:issue-159

Conversation

@sendaoYan

Copy link
Copy Markdown
Collaborator

Previously CI test jobs hardcoded debug-level=release, so tests were only run against the release build. The fastdebug build was compiled but never tested. This caused tests like JcmdWithNMTDisabled.java to pass in CI but fail locally when running with a fastdebug build.

Add test-linux-x64-fastdebug and test-linux-aarch64-fastdebug jobs that run the same test suites (jdk/tier1, langtools, cvm8, hotspot8) against the fastdebug build.

Assisted by DeepSeek V4 Pro

Issue: #159

@sendaoYan

Copy link
Copy Markdown
Collaborator Author

麻烦maintainer帮我触发下github action测试,看下修改之后CI能否正确触发fastdebug测试

@sendaoYan

Copy link
Copy Markdown
Collaborator Author
  1. java/math/BigInteger/LargeValueExceptions.java运行超时,应该是超时系数1对于linux-aarch64 fastdebug太小了,考虑增加超时系数
  2. langtools 4个失败用例均为超时,考虑增加超时系数
  3. hotspot/runtime/version/CrashReportTest.java用例报错,应该是用例实现有问题,考虑先屏蔽
  4. hotspot8有多个失败用例
  • compiler/intrinsics/unsafe/UnsafeGetAddressTest.java jvm触发assert,可能是cvm实现有问题
  • runtime/containers/cgroup/CgroupSubsystemFactory.java jvm触发assert,可能是cvm实现有问题
  • compiler/ciReplay/TestSA.sh 看日志像是执行机没有正确打开core dump权限,未生成core dump文件:“core wasn't generated on Linux”
  • compiler/ciReplay/TestVM_no_comp_level.sh用例报错“java.lang.NoClassDefFoundError: jdk/internal/misc/Unsafe”,可能是cvm与java api 8的兼容问题
  • runtime/6888954/vmerrors.sh 可能是cvm使用hotspot17与hotspot8用例不兼容
  • runtime/CommandLine/CompilerConfigFileWarning.java与runtime/CommandLine/ConfigFileWarning.java,应该是用例判断是否为fastdebug实现有问题导致用例未跳过相应的测试
  • runtime/NMT/JcmdWithNMTDisabled.java及runtime/NMT/PrintNMTStatisticsWithNMTDisabled.java。NativeMemoryTracking选项jdk8u fastdebug默认值是off,NativeMemoryTracking选项cvm及jdk17u fastdebug默认值是summary,用例预期默认选项jvm打印“Native memory tracking is not enabled”,所以用例报错;因此该错误是由于cvm使用hotspot17与hotspot8用例不兼容导致

@sendaoYan

Copy link
Copy Markdown
Collaborator Author

新增的commit修改如下:
1、增加了cvm/conf/jtreg-debug.list屏蔽列表文件,并在被测jdk为fastdebug或slowdebug时传给jtreg
2、被测jdk为fastdebug或slowdebug时超时系数配置为4,解决部分用例运行超时的问题

Previously CI test jobs hardcoded debug-level=release, so tests were
only run against the release build. The fastdebug build was compiled
but never tested. This caused tests like JcmdWithNMTDisabled.java to
pass in CI but fail locally when running with a fastdebug build.

Add test-linux-x64-fastdebug and test-linux-aarch64-fastdebug jobs
that run the same test suites (jdk/tier1, langtools, cvm8, hotspot8)
against the fastdebug build.

Assisted by DeepSeek V4 Pro

Issue: bytedance#159
@sendaoYan

Copy link
Copy Markdown
Collaborator Author

github action报错:

Error: Unable to download artifact(s): Artifact not found for name: CompoundVM_8.17.4_jvm_patch_linux_aarch64_fastdebug.tar.gz

build阶段只对release生成jvm_patch,fastdebug需要在 "Get bundles jvm patch" 和 "Run sanity test jvm patch"两个step跳过。

@sendaoYan

Copy link
Copy Markdown
Collaborator Author

测试已经通过,麻烦帮忙review下。

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.

1 participant