Silence HDF5-DIAG output from netCDF-C tests in CI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start by locating the netCDF-C backend startup code and the listed test targets: beacon_arrow_netcdf unit tests, beacon-arrow-hdf5/tests/backend_parity.rs, and the three beacon-core integration tests. Compare disabling HDF5 automatic error printing once in backend startup with doing so in the affected test harnesses, and verify that real HDF5 errors still return as Rust errors while the expected probe diagnostics disappear.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The netCDF-C (libhdf5) test paths write HDF5 diagnostic stacks to stderr. In CI, these stacks fill the test log. The real test failures are hard to find.
Source of the noise
HDF5-DIAG stacks per test binary:
| Test binary | Stacks |
|---|---|
beacon_arrow_netcdf unit tests (src/lib.rs) |
162,996 |
beacon-arrow-hdf5 tests/backend_parity.rs |
900 |
beacon-core tests/read_functions.rs |
210 |
beacon-core tests/output_formats.rs |
78 |
beacon-core tests/file_stats_service.rs |
6 |
All stacks are the same failure. netCDF-C probes for an attribute that does not exist. HDF5 1.10.10 then prints the error stack:
HDF5-DIAG: Error detected in HDF5 (1.10.10) thread 1:
#000: ../../../src/H5A.c line 484 in H5Aopen_by_name(): can't open attribute
major: Attribute
minor: Can't open object
#001: ../../../src/H5Aint.c line 542 in H5A__open_by_name(): unable to load attribute info from object header
#002: ../../../src/H5Oattribute.c line 478 in H5O__attr_open_by_name(): can't open attribute
minor: Object not found
The probe is expected behavior. The tests pass. Only the output is a problem.
Proposal
- Disable the HDF5 automatic error print (
H5Eset_auto2(H5E_DEFAULT, NULL, NULL)) once when the netCDF-C backend starts. - Alternatively, disable it only in the test harness of the affected crates.
- Make sure a real HDF5 error still comes back as a Rust error.
- Lingua principale
- Rust
- Stelle
- 16
- Fork
- 4
- Merge medio
- 19h 58m
- PR unite (30g)
- 39
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
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 maris-development/beacon
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
maris-development/beacon#704 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
maris-development/beacon#681 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort-S python
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
maris-development/beacon#494 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort-S tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
maris-development/beacon#493 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
maris-development/beacon#687 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di maris-development/beacon
Issue simili
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryApertabug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsotto/sotto-authenticator#139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
registrystack/registry-stack#2924 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
foundry-rs/starknet-foundry#4733 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100