Silence HDF5-DIAG output from netCDF-C tests in CI

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

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
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

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

bug rust tooling

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

  1. Disable the HDF5 automatic error print (H5Eset_auto2(H5E_DEFAULT, NULL, NULL)) once when the netCDF-C backend starts.
  2. Alternatively, disable it only in the test harness of the affected crates.
  3. 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

  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 maris-development/beacon

Tutte le issue di maris-development/beacon

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.