Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Test suite does not compare fully global output

Aperta
#356 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
jupyter-notebook
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Jupyter Notebook
Stelle
6
Fork
25
Merge medio
12g 2h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ESCOMP/MOM_interface

Tutte le issue di ESCOMP/MOM_interface

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.