Repository navigation
refactor(pod5): remove dead run_info dedup code, unify reads-table builders - #434
Merged
Merged
Conversation
…ilders `utils/run_info.rs` reimplemented run_info dedup in a shape `merge`/`filter` no longer use (it was never wired into `utils/mod.rs`, zero call sites) — superseded by `pod5_assembler::deduplicate_run_infos` and never deleted. `build_reads_table`/`build_reads_table_remapped` had ~200 lines each of identical dictionary-collection/partition/concat/batch-write logic, differing only in input shape (owned pairs vs. borrowed `FlatReadRef`) — already abstracted at the per-row level by `PartitionRow`/`build_partition_inner`. Collapsed the surrounding skeleton into one generic `build_reads_table_generic` with both names as thin wrappers; no behavior or output change. Closes #433
Merged
jayhesselberth
added a commit
that referenced
this pull request
Oct 6, 2026
Patch release. - Fixed: `merge` no longer produces non-portable output when inputs don't share one batch stride (#432) - Internal: dead run_info dedup removed, reads-table builders unified (#434) Version bump in root Cargo.toml (workspace + 5 path deps), CHANGELOG rolled, Cargo.lock regenerated; `cargo check --workspace` clean. Tag `v0.31.1` on the merge commit after merge (publishes to GitHub Releases and PyPI).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up to #432's merge batch-stride fix: an architecture review afterward
surveyed the rest of the workspace for the same cross-module layering smell
(a function stranded in one module that a sibling reaches into, or
near-duplicate logic copy-pasted across modules). Two findings, filed as
#433.
What
utils/run_info.rs—add_run_infos_deduplicated/map_run_info_indexwere never wired intoutils/mod.rsand have zerocall sites; superseded by
pod5_assembler::deduplicate_run_infos, whichmerge/filteralready share.build_reads_table(merge, owned(ReadData, Vec<u64>)pairs) andbuild_reads_table_remapped(filter, borrowedFlatReadRef) behind onegeneric
build_reads_table_generic<R: PartitionRow + Sync>. Both were~200-line copies of the same dictionary-collection/partition/concat/
batch-write skeleton, differing only in input shape — already abstracted
at the per-row level by the existing
PartitionRowtrait andbuild_partition_inner. Both public names stay as thin wrappers socallers in
merge.rs/operations/filter.rsare untouched.No behavior or output change — pure extraction, verified by the existing
test_merge_integration.rs/ filter / subset test suite (unchanged, allpassing) plus a full
cargo test -p escapepod-pod5run.Testing
cargo test -p escapepod-pod5: all green (incl. doctests)cargo fmt --all --check: cleanRUSTFLAGS=-Dwarnings cargo clippy --workspace --all-targets: cleanCloses #433