Pull Request已成功合入, 合并人@openeuler-ci-bot
(感谢 jcccx 的贡献)变更摘要
本 PR 为 openEuler 24.03-lts-sp4 新增 nco 5.4.0-alpha04 镜像,主要包含镜像注册、多阶段构建的 Dockerfile、版本元数据、使用文档以及验证测试与结果。构建阶段从 pinned 的上游源码编译 NCO,并额外安装 antlr-tool 以启用 ncap2;运行时阶段安装运行依赖、复制构建产物并配置库搜索路径与 PATH。测试覆盖版本精确断言以及 ncgen → ncatted → ncks → ncap2 → ncks 的 netCDF 数据通路验证。
主要改动
- 镜像注册与版本映射:
HPC/image-list.yml新增nco: nco条目,HPC/nco/meta.yml将标签5.4.0-alpha04-oe2403sp4映射到5.4.0-alpha04/24.03-lts-sp4/Dockerfile,使新镜像纳入镜像列表管理。 - 多阶段 Dockerfile 构建:
HPC/nco/5.4.0-alpha04/24.03-lts-sp4/Dockerfile在 builder 阶段安装gcc、netcdf-devel、hdf5-devel、antlr-tool、gsl-devel等并执行./configure --prefix=/usr/local --disable-udunits编译安装;运行阶段安装netcdf hdf5 gsl antlr-C++ perl等依赖,复制/usr/local并写入/etc/ld.so.conf.d/nco.conf和ENV PATH=/usr/local/bin:$PATH。 - 文档与镜像元数据:
HPC/nco/doc/image-info.yml定义了名称、类别、描述、tags、docker pull/docker run用法示例、license、依赖列表及upstream版本规则,为镜像提供完整的使用与元信息。 - 验证测试脚本:
HPC/nco/tests/test.sh断言ncks --version输出与EXPECTED_VERSION精确一致,并通过ncgen生成、ncatted写属性、ncks -m回读、ncap2计算temp_sq=temp*temp、ncks -H校验结果temp_sq=0,4,16,36;来验证核心功能。 - 验证结果记录: 新增
HPC/nco/results/.../version_info.json及x86_64.junit.xml、aarch64.junit.xml,记录nco5.4.0-alpha04在 x86_64 与 aarch64 上的系统信息与native_build、runtime_test通过结果。


Welcome To openEuler Community
Hey @qq_42020325 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @gaodaweiky, @jimmieme, @lu-wei-army, @weibaohui, @wonleing, @yangzhao_kl, @zhaoyifan28, @zmr_2020 ,


门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/openeuler/trigger/openeuler-docker-images/2981/console


/retest


门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/openeuler/trigger/openeuler-docker-images/2987/console


/retest


门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/openeuler/trigger/openeuler-docker-images/3005/console


/lgtm
/approve


门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/openeuler/trigger/openeuler-docker-images/3006/console


| Image Tag | Publish Result |
|---|---|
| nco:5.4.0-alpha04-oe2403sp4 | :white_check_mark:SUCCESS |
| HPC/nco/README.md | :white_check_mark:SUCCESS |


Summary
Add
nco5.4.0-alpha04built from the pinned upstream source for openEuler 24.03-lts-sp4.31660957237.15ba76539ec2606c6444c0b3d42d59a7efe19c0a3071acc98e1ca702a5c5a0fa.Changes
HPC/image-list.ymlHPC/nco/5.4.0-alpha04/24.03-lts-sp4/DockerfileHPC/nco/README.mdHPC/nco/doc/image-info.ymlHPC/nco/doc/picture/logo.pngHPC/nco/meta.ymlHPC/nco/results/5.4.0-alpha04/24.03-lts-sp4/aarch64.junit.xmlHPC/nco/results/5.4.0-alpha04/24.03-lts-sp4/version_info.jsonHPC/nco/results/5.4.0-alpha04/24.03-lts-sp4/x86_64.junit.xmlHPC/nco/tests/test.shAdversarial review
Testcase review
approvedafter 1 round.0.9.approved— Tests are correct and sufficient for the NCO CLI contract: exact version assertion plus a genuine netCDF data path (ncgen fabricate -> ncatted write -> ncks -m readback -> ncap2 compute -> ncks -H exact value verification) matching the final Dockerfile with no Docker/network/lifecycle violations;...full.minor—HPC/nco/tests/test.sh: The suite exercises only the netCDF classic (netCDF-3) data path; the netCDF4/HDF5 layer compiled into the image is never touched, so an image with broken HDF5/netCDF4 support (e.g., bad hdf5 linkage or a runtime hdf5 lib missing) would pass every assertion.Fixer process
2.fixed— Both architectures built and passed version + ncatted/ncks data-path tests but failed because ncap2 was never built: NCO's configure gates ncap2 on finding the antlr executable (HAVE_ANTLR != no), and the builder only installed antlr-C++ (headers/static lib), not antlr-tool (which ships /usr/bin/...native_validation_failure; failed architectures:x86_64,aarch64.HPC/nco/5.4.0-alpha04/24.03-lts-sp4/Dockerfile— Added antlr-tool to the builder-stage dnf install list (line 10: antlr-C++ antlr-tool gsl-devel)fixed— Both architectures built and ran ncap2/ncks correctly; the only failure was a stale test assertion expecting the old annotatedtemp_sq[i]=valoutput format that NCO 5.4.0-alpha04 no longer emits. Verified against the pinned upstream 5.4.0-alpha04 source that-H/--hdnmeans data-toggle/hidde...native_validation_failure; failed architectures:x86_64,aarch64.HPC/nco/tests/test.sh— Replaced thetemp_sq[i]=valper-element substring checks with a whitespace-normalized assertion that the ncks output contains the exact CDL data linetemp_sq=0,4,16,36;, and updated the PASS/FAIL messages accordingly.x86_64andaarch64.Repository checks
31660957237.5advisory findings./home/openeuler/actions-runner/_work/_temp/phase1-target/HPC/nco/5.4.0-alpha04/24.03-lts-sp4/Dockerfile:6 DL3041 [1m[93mwarning[0m: Specify version withdnf install -y./home/openeuler/actions-runner/_work/_temp/phase1-target/HPC/nco/5.4.0-alpha04/24.03-lts-sp4/Dockerfile:14 SC2046 [1m[93mwarning[0m: Quote this to prevent word splitting./home/openeuler/actions-runner/_work/_temp/phase1-target/HPC/nco/5.4.0-alpha04/24.03-lts-sp4/Dockerfile:14 DL3003 [1m[93mwarning[0m: Use WORKDIR to switch to a directoryConfidence Score
0.9(auto-merge).5; final metadata contract passed.23a59d858085a33b05fd45fe9affc26dea3e2298.new-image-hpc-nco-5.4.0-alpha04-24.03-lts-sp4.version_info.json,x86_64.junit.xml,aarch64.junit.xml.reports/results.json.Checklist