Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Test suite does not compare fully global output

Đang mở
#356 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
jupyter-notebook
Lĩnh vực
testing

Hướng nghiên cứu

Start by finding the test suite code that selects the last file matching an output regex and the baseline generation and comparison entry points. Check how those paths handle the numbered output blocks shown in the issue, then determine where they can be stitched together before baseline generation or comparison. Done means the suite compares the fully global output for the final day rather than only the last block.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Given this block in MOM_input.yaml:

    TARGET_IO_PES:
        description: |
            When AUTO_MASKTABLE is enabled, target number of IO PEs. If the given target
            number of IO PEs is not achievable, the target number of IO PEs is set to the
            nearest smaller number of PEs that is achievable.
        datatype: integer
        value:
            $OCN_GRID in ["tx2_3v2", "tx2_3v3"] and $TEST: = - ( - $NTASKS_OCN // 256)
            $OCN_GRID == "tx2_0v1" and $TEST: = - ( - $NTASKS_OCN // 256)
            $OCN_GRID == "tx0.25v1": = - ( - $NTASKS_OCN // 128)

output is being split across multiple files. For example, in an SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel this value is set to TARGET_IO_PES = 4 so each stream is broken into four pieces:

SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel.GC.20261023_214521_07xxt2.mom6.h.bgc.z.0001-01-05.nc.0000
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel.GC.20261023_214521_07xxt2.mom6.h.bgc.z.0001-01-05.nc.0001
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel.GC.20261023_214521_07xxt2.mom6.h.bgc.z.0001-01-05.nc.0002
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel.GC.20261023_214521_07xxt2.mom6.h.bgc.z.0001-01-05.nc.0003

The test suite finds a list of files matching a regex, and then picks the last file to use in baseline comparisons. This is supposed to correspond to output from the final day of the test, but instead matches the final block of the final day:

$ cd <BASELINE_ROOT>
$ ls SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.*
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.bgc.z.0001-01-05.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.native.0001-01-05.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.ocean_geometry.nc
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.rho2.0001-01-05.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.sfc.0001-01-05.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.static.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.h.z.0001-01-05.nc.0003
SMS.TL319_t233.G1850ABIOMARBL_JRA.derecho_intel/mom6.ic.0001-01-01.nc

Given CIME limitations, I think we need to stitch the blocks back together before the test suite generates or compares baselines

Ngôn ngữ chính
Jupyter Notebook
Star
6
Fork
25
Merge trung bình
12 ngày 2 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ESCOMP/MOM_interface

Tất cả issue của ESCOMP/MOM_interface

Issue tương tự

Thêm issue về Testing & QA

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.