dragonwell-releng / issues-repo

0 stars 0 forks source link

[ajdk8][nightly][aarch64]用例runtime/containers/docker/TestMisc.java随机超时报错 #20

Closed dzchun closed 8 months ago

dzchun commented 9 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/280365?tab=1 【环境准备】

BINARY_URL=https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/ajdk8/20240202-153236-317-%23870-linux.aarch64.release.master-2be704b3cc5bc1336697bac6f89c191c9933b9d0.tar.gz
JDK_REPO=https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk8u.git
JDK_BRANCH=master

wget -O  binary.tar.gz $BINARY_URL
mkdir binary-download 
tar xzvf binary.tar.gz -C binary-download
cd binary-download && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -

wget -O jtreg.zip http://114.55.64.175:8666/compiler-ci-bucket/tools/jtreg-6.1.1.zip
unzip jtreg.zip
cd jtreg 
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -
git clone -b $JDK_BRANCH $JDK_REPO jdk-repo

test=runtime/containers/docker/TestMisc.java
args="-Xmixed"

jtreg  -nr -v:fail,error -w tmp  $args $test

手工命令: export test=hotspot/test/runtime/containers/docker/TestMisc.java; export nproc=16 ; cd /tmp/tone/run/jtreg/jdk-repo ; export TONEROOT=/tmp/tone ; . ../../../tone-matrix-compiler/common/common.sh ; for i in seq 0 15 ; do docker rm -f jdk-test-$i ; startCompilerDocker jdk-test-$i; done ; function runJtreg() { index=expr $1 % $nproc ; docker exec jdk-test-$index bash -c ". ../.shrc ; jtreg $args -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test" &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#||"; rm -rf $dir ; mkdir -p $dir ; time seq 1000 | xargs -i -n 1 -P $nproc bash -c "runJtreg {}" ; echo total fail number:ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

手动1W次未复现 5W次未复现

【用例日志】

[COMMAND]
docker build --no-cache --tag jdk-internal:test-misc ./jdk-docker 
[ELAPSED: 734 ms]
[STDERR]
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 116B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/arm64v8/ubuntu:latest
#2 ERROR: failed to do request: Head "https://registry-1.docker.io/v2/arm64v8/ubuntu/manifests/latest": read tcp 172.16.2.1:51572->54.196.99.49:443: read: connection reset by peer
------
 > [internal] load metadata for docker.io/arm64v8/ubuntu:latest:
------
Dockerfile:1
--------------------
   1 | >>> FROM arm64v8/ubuntu:latest
   2 |     COPY /jdk /jdk
   3 |     ENV JAVA_HOME=/jdk
--------------------
ERROR: failed to solve: arm64v8/ubuntu:latest: failed to do request: Head "https://registry-1.docker.io/v2/arm64v8/ubuntu/manifests/latest": read tcp 172.16.2.1:51572->54.196.99.49:443: read: connection reset by peer

[STDOUT]

STDERR:
 stdout: [];
 stderr: [#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 116B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/arm64v8/ubuntu:latest
#2 ERROR: failed to do request: Head "https://registry-1.docker.io/v2/arm64v8/ubuntu/manifests/latest": read tcp 172.16.2.1:51572->54.196.99.49:443: read: connection reset by peer
------
 > [internal] load metadata for docker.io/arm64v8/ubuntu:latest:
------
Dockerfile:1
--------------------
   1 | >>> FROM arm64v8/ubuntu:latest
   2 |     COPY /jdk /jdk
   3 |     ENV JAVA_HOME=/jdk
--------------------
ERROR: failed to solve: arm64v8/ubuntu:latest: failed to do request: Head "https://registry-1.docker.io/v2/arm64v8/ubuntu/manifests/latest": read tcp 172.16.2.1:51572->54.196.99.49:443: read: connection reset by peer
]
 exitValue = 1

java.lang.RuntimeException: Expected to get exit value of [0]

    at com.oracle.java.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:362)
    at com.oracle.java.testlibrary.DockerTestUtils.buildDockerImage(DockerTestUtils.java:171)
    at com.oracle.java.testlibrary.DockerTestUtils.buildJdkDockerImage(DockerTestUtils.java:148)
    at TestMisc.main(TestMisc.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:82)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.lang.Thread.run(Thread.java:879)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

【环境信息】

[root@iZbp1j0vml0nnwakclqcymZ jdk-repo]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux iZbp1j0vml0nnwakclqcymZ 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:           61Gi       1.2Gi       6.5Gi       3.0Mi        53Gi        59Gi
Swap:            0B          0B          0B
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  1
Core(s) per socket:  32
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     virt-rhel7.6.0
Stepping:            r0p0
CPU MHz:             3000.000
CPU max MHz:         3000.0000
CPU min MHz:         3000.0000
BogoMIPS:            100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-31
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (Alibaba 8.9.14) (build 1.8.0_382-b0)
OpenJDK 64-Bit Server VM (Alibaba 8.9.14) (build 25.382-b0-internal, mixed mode)
OpenJDK 64-Bit Server VM (25.382-b0-internal) for linux-aarch64 JRE (1.8.0_382-b0), built on Feb  2 2024 07:35:57 by "" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)