From c0561f9de6dab516dacbd882ea385691c014334c Mon Sep 17 00:00:00 2001 From: serversdown Date: Fri, 20 Nov 2026 14:31:18 -0500 Subject: [PATCH] docs(changelog): Unreleased -- tests and scripts cleanup Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9 --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ca61f1..fc5e3ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,55 @@ All notable changes to seismo-relay are documented here. --- +## Unreleased + +### Changed +- **A fresh checkout passes the whole test suite on its own** + (`chore/tests-and-scripts-cleanup`, merged 2026-11-20). + - **Before:** a fresh checkout failed 13 tests and skipped 64, because the + tests read files that existed only on the dev box. + - **The fix:** an audit-hook run over the whole suite found exactly which + files: 100, 2.3 MB, out of 1.1 GB of `bridges/captures/` and 45 MB of + `histogram-extension-re/`. + - Captures and example events are now copied into + `tests/fixtures/captures/` and `tests/fixtures/example-events/`. + - The Thor and histogram fixtures that were present but untracked are + force-added in place. + - **The presence skips are removed:** a missing fixture now fails instead of + skipping. + - **Result:** a clean checkout runs **1,788 passed, 0 failed, 0 skipped** + (the dev box had skipped 20). +- **A `test` dependency group** (`pip install -e .[test]`: pytest and httpx). + The 3 API tests in `test_db_snapshot_endpoints.py` had always skipped for + want of httpx. +- **`bridges/` leaves the production image.** The bench and lab tools were + copied into the SFM image and installed as a package, though SFM imports + nothing from them (ADR 0003). + - The Dockerfile and the package list now carry `minimateplus`, + `micromate`, `sfm` and `scripts`. + - Checked: the image builds, and `sfm.server` and the backfill and import + scripts import inside it. + - ⚠ **Operational:** after the next image build, the prod container has no + `bridges/` tools. Nothing in production runs them. No schema change, no + backfill. +- **CLAUDE.md:** a test reads only tracked files, never skips on a missing + fixture, and a fresh worktree is the check. + +### Removed +- **`tests/test_5a_protocol.py` and the four 5A helpers only it used** + (`build_5a_frame`, `bulk_waveform_params`, `bulk_waveform_term_params`, + `bulk_waveform_term_v2`). + - Its 19 tests pinned the 5A model retracted on 2026-10-26. + - Their capture no longer existed, so they skipped everywhere. + - `test_5a_blastware_walk.py` covers 5A: all 540 of Blastware's requests, + from tracked fixtures. +- **Four obsolete scripts:** + - `scripts/backfill_event_zc_freq.py`: ZC frequency is read from the file + since v0.35.0. + - `scripts/backfill_record_type.py`: a one-time fix from May. + - `scripts/test_thor_render.py`: a one-off re-import. + - `scratch/next_experiment_skeleton.py`: early codec scaffolding. + ## v0.35.0 — 2026-11-16 **The file-only decode reaches 80 of Blastware's 88 report fields, and SFM