Output file name for errors in check_netcdf2
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
Start by tracing the functions that call check_netcdf2 directly, then inspect check_netcdf and file_desc_t to understand how filenames could be available. Compare the three approaches described in the issue and confirm the affected call sites. Done means netCDF errors identify the relevant output file, with appropriate coverage for the changed paths.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Emerging from https://github.com/ESCOMP/CDEPS/issues/254 - we'd like for PIO to print the filename that leads to netcdf errors that are caught in the check_netcdf2 function. I'm happy to take this on (but I don't have permission to assign myself).
From a quick look through the code, it looks like most / all of the functions that call check_netcdf2 directly have a filename that they could pass in as an extra argument. Then I'm thinking that we'd modify the error message returned from netcdf to append the file name to the output message.
I'm not sure the best way to handle the call from check_netcdf to check_netcdf2. Options I see are:
- Don't handle calls to check_netcdf for now. (It looks like the above CDEPS issue would be handled via one of the direct calls to check_netcdf2.)
- Extend check_netcdf to also accept a filename argument. However, there are a lot of calls to check_netcdf, so this would be a pretty invasive change.
- check_netcdf has a file_desc_t object. (So does check_netcdf2, but the direct calls to check_netcdf2 appear to pass NULL in for that argument.) Currently file_desc_t doesn't contain the filename but I wonder if it makes sense to extend file_desc_t to store the associated filename. Then calls to check_netcdf2 via check_netcdf could get the file name from that file_desc_t object.
I like the idea of (3), but I haven't looked into what it would involve. @jedwards4b do you have thoughts on whether this would be a reasonable solution?
- Lingua principale
- C
- Stelle
- 162
- Fork
- 60
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NCAR/ParallelIO
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NCAR/ParallelIO#2026 ·
-
Invalid memory access for stack-allocated arrays in `pio_read_darray_nc[_serial]` and `write_darray_multi_[par|serial]`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
NCAR/ParallelIO#2029 · 6 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
NCAR/ParallelIO#2009 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
NCAR/ParallelIO#2001 · 14 commenti ·
-
Some tests failedAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
NCAR/ParallelIO#1996 ·
Tutte le issue di NCAR/ParallelIO
Issue simili
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
389ds/389-ds-base#8251 ·
I maintainer di solito rispondono entro 1 giorno
-
ColumnDecimal::Append(Int128) stores a value outside the Decimal(P, S) range with no error: cut to 32/64 bits, or with too many digitsForse già presa @RUSHIT305 l’ha presa oggi. Apertabug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ROCm/hrx-system#3628 ·
I maintainer di solito rispondono entro 1 giorno