dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【ajdk8】【fp2】aarch64上多个用例涉及docker Ubuntu arm images的用例:docker.io/aarch64/ubuntu:latest: not found #326

Closed owanqian closed 8 months ago

owanqian commented 8 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/268494

【环境准备】

wget -O binary.tar.gz http://114.55.64.175:8666/ajdk-backup/8.16.20_fp2-test-ajdk_fp/OpenJDK8U-jdk_aarch64_linux_ajdk_2024-01-12-08-54.tar.gz
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 -nv http://114.55.64.175:8666/compiler-ci-bucket/tools/jtreg5.1-b01.zip -O jtreg.zip
unzip jtreg.zip
cd jtreg 
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -
git clone -b v8.16.20_fp https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk8u.git jdk-repo
test=runtime/containers/docker/DockerBasicTest.java
args='-Xmixed'
jtreg -w tmp -nr -v:fail,error $args $test

日志分析: docker.io/ubuntu镜像可以找到, 但是docker.io/aarch64/ubuntu确实找不到。

[root@iZbp10m5gxyeaz1iykchhvZ jtreg]# docker run -it docker.io/ubuntu Unable to find image 'ubuntu:latest' locally latest: Pulling from library/ubuntu 005e2837585d: Pull complete Digest: sha256:6042500cf4b44023ea1894effe7890666b0c5c7871ed83a97c36c76ae560bb9b Status: Downloaded newer image for ubuntu:latest

涉及的测试用例: runtime/containers/docker/DockerBasicTest.java runtime/containers/docker/TestCPUAwareness.java runtime/containers/docker/TestCPUSets.java runtime/containers/docker/TestMisc.java jdk/internal/platform/docker/TestDockerCpuMetrics.java jdk/internal/platform/docker/TestUseContainerSupport.java

【用例日志】

[COMMAND]
docker build --no-cache --tag jdk-internal:test-metrics-cpu ./jdk-docker 
[ELAPSED: 2884 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 .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/aarch64/ubuntu:latest
#3 ERROR: docker.io/aarch64/ubuntu:latest: not found
------
 > [internal] load metadata for docker.io/aarch64/ubuntu:latest:
------
Dockerfile:1
--------------------
   1 | >>> FROM aarch64/ubuntu:latest
   2 |     COPY /jdk /jdk
   3 |     ENV JAVA_HOME=/jdk
--------------------
ERROR: failed to solve: aarch64/ubuntu:latest: docker.io/aarch64/ubuntu:latest: not found

【版本信息】

[root@iZbp10m5gxyeaz1iykchhvZ jtreg]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux iZbp10m5gxyeaz1iykchhvZ 5.10.134-15.an8.aarch64 #1 SMP Thu Jul 20 00:33:45 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

              total        used        free      shared  buff/cache   available
Mem:           61Gi       701Mi        57Gi       0.0Ki       3.2Gi        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_332"
OpenJDK Runtime Environment (Alibaba 8.16.20_fp1) (build 1.8.0_332-b0)
OpenJDK 64-Bit Server VM (Alibaba 8.16.20_fp1) (build 25.332-b0-internal, mixed mode)
OpenJDK 64-Bit Server VM (25.332-b0-internal) for linux-aarch64 JRE (1.8.0_332-b0), built on Jan 12 2024 08:59:26 by "root" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)
sendaoYan commented 8 months ago

fp1 fp2版本均fail。应该是上游用例BUG,不再跟踪