Skip to content

test: add loader goldens for biologics / batmo / arbin_sql_h5 (#655) - #760

Merged
jepegit merged 3 commits into
masterfrom
655-loader-goldens
Jul 28, 2026
Merged

test: add loader goldens for biologics / batmo / arbin_sql_h5 (#655)#760
jepegit merged 3 commits into
masterfrom
655-loader-goldens

Conversation

@jepegit

@jepegit jepegit commented Jul 28, 2026

Copy link
Copy Markdown
Owner

What

Second slice of #655 (H2). Extends the loader golden matrix from 5/9 to 8/9 — adds regression oracles for three loaders whose raw sources were already committed but had no golden: biologics_mpr, batmo_bdf, arbin_sql_h5.

How

The golden system is spec-driven (LOADER_GOLDEN_SPECS in tests/loader_golden_support.py) and tests/test_loader_goldens.py auto-discovers + auto-skips suites whose artifacts or loader deps are absent — so this is CI-safe regardless of optional dependencies.

  • 3 new LoaderGoldenSpec entries
  • goldens under tests/data/goldens/loader_{biologics_mpr,batmo_bdf,arbin_sql_h5}/ (raw.parquet + raw_units/meta/metrics.json)
  • README suite table updated
suite rows × cols golden size
loader_biologics_mpr 23561 × 47 1.9 MB
loader_batmo_bdf 21206 × 13 705 KB
loader_arbin_sql_h5 47 × 16 25 KB

Deferred

neware_nda is intentionally left out — its fastnda backend isn't in the test env, so the snapshot can't be generated here. Noted inline in the specs; belongs to #655 Phase 2 (generate where fastnda is installed). The SQL-live variants (arbin_sql, arbin_sql_csv/xlsx, neware_xlsx) stay declarations-only.

Verification

  • dev/regenerate_goldens.py <suite> --verify → byte-identical across two runs for all three.
  • pytest tests/test_loader_goldens.py -k "biologics or batmo or arbin_sql_h5"12 passed (raw / raw_units / meta / metrics × 3).

Part of #655 (Phase 1, slice 2 of 3).

🤖 Generated with Claude Code

The loader e2e parity matrix (#655 audit) had goldens for 5 of 9
loaders; biologics_mpr, batmo_bdf, and arbin_sql_h5 had raw sources
committed in testdata/ but no regression oracle. Add their golden
suites (raw.parquet + raw_units/meta/metrics json), generated via the
existing spec-driven dev/regenerate_goldens.py path.

- 3 new LoaderGoldenSpec entries in tests/loader_golden_support.py
- goldens under tests/data/goldens/loader_{biologics_mpr,batmo_bdf,
  arbin_sql_h5}/ (23561x47, 21206x13, 47x16 rows x cols)
- README suite table updated

neware_nda is intentionally deferred: its fastnda backend isn't in the
test env, so the snapshot can't be generated here (noted in the specs;
#655 Phase 2). The remaining SQL-live variants stay declarations-only.

Verified: --verify byte-identical across two runs for all three; the 12
new test_loader_goldens cases (raw / raw_units / meta / metrics x 3)
pass. test_loader_goldens auto-skips any suite whose artifacts or loader
deps are absent, so this is CI-safe.

Part of #655.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jepegit
jepegit enabled auto-merge (squash) July 28, 2026 10:28
@jepegit
jepegit merged commit cbf546f into master Jul 28, 2026
3 checks passed
@jepegit
jepegit deleted the 655-loader-goldens branch July 28, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant