refactor: remove migrate-mphf tool and update sibling annex handling
Remove the `migrate-mphf` tool entirely, as its functionality is no longer needed or has been superseded. Update the `phylo` sibling annex logic to build missing annexes on demand under an exclusive lock, ensuring safe concurrent access. Adjust documentation and CI workflows to reflect the removal of the migration tool and clarify sibling annex behavior. - Delete the entire `tools/migrate-mphf` directory, including `Cargo.toml`, `Cargo.lock`, and source files (`main.rs`, `layer.rs`, `plan.rs`, `data.rs`, `commit.rs`, `old.rs`, `verify.rs`, `util.rs`), removing functions such as `convert`, `build`, `permute_all`, `finish`, and `check`. - Update `.gitignore` to remove patterns for `tools/migrate-mphf/target`, `data-stress`, `*.fasta`, and `*.fasta.gz`. - Modify `Makefile` to remove the `migrate-mphf` and `clean-migrate-mphf` phony targets and associated build commands. - Update `.gitea/workflows/release.yml` to remove the "Build migrate-mph (static)" job and the artifact upload step, and adjust the `linux-musl-cargo` job key to hash only `src/Cargo.lock`. - Refactor `src/obikphylo/src/siblings/extensions/sibling_builder.rs` to update `build_family_annexes` documentation, noting that it builds the sibling annex from `siblings.psib` if missing and runs under the index's exclusive lock. - Update `src/obikphylo/src/siblings/siblingannex.rs` documentation to clarify that `open` reports absent files differently when annexes were set aside by `migrate-mphf` or never built. - Update `UserDocMD/usage/phylo.md` to clarify that `--sibling-annex` prepares the quartet annex on demand under an exclusive lock, and update descriptions for `--sibling-stats` and `--sibling-hist` to specify output file formats and contents. - Update `DevDocMD/implementation/mphf_batch_queries.md` to reflect changes in batched query logic, `ptr_hash` versioning, and benchmark descriptions, noting that stale indexes with `ptr_hash` 1.x MPHFs fail on current binaries. - Add `prompts/obi-migration.md` to document the context, decisions, and required actions for the `obikmer` project migration. - Bump `obikmer` package version from 1.4.7 to 1.4.8 in `src/obikmer/Cargo.toml` and update `src/Cargo.lock` accordingly.
This commit is contained in:
1 parent
d7ea6973e3
commit
b95348b226
20 files changed
+57
-3865
No files matched your search
Generated
+1
-1
@@ -1531,7 +1531,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "obikmer"
|
||||
version = "1.4.6"
|
||||
version = "1.4.7"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"csv",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "obikmer"
|
||||
version = "1.4.7"
|
||||
version = "1.4.8"
|
||||
edition = "2024"
|
||||
|
||||
[[bin]]
|
||||
|
||||
@@ -42,8 +42,7 @@ pub(crate) trait SiblingBuilder {
|
||||
fn build_family_annexes(&self, request: &AnnexRequest) -> OKIResult<()>;
|
||||
|
||||
/// Build the sibling annex (`siblings.psib`, every annex above is derived
|
||||
/// from it) if any cached layer lacks it — the state of an index right
|
||||
/// after `migrate-mphf`, which sets every annex aside. The build writes
|
||||
/// from it) if any cached layer lacks it. The build writes
|
||||
/// into every layer, so it runs under the index's exclusive lock
|
||||
/// ([`KmerIndex::with_lock`](obikindex::KmerIndex::with_lock), a no-op
|
||||
/// when the caller already holds it); a process that waited for it finds
|
||||
|
||||
@@ -272,7 +272,7 @@ impl SiblingAnnex {
|
||||
/// The annex of the layer directory `layer_dir`. Same as
|
||||
/// [`open`](Self::open), except that an absent file is reported with its
|
||||
/// path and the way to build it, rather than a bare `NotFound` — the
|
||||
/// state an index is in right after `migrate-mphf` set its annexes aside.
|
||||
/// state of an index whose annexes were never built or were set aside.
|
||||
pub fn open_in(layer_dir: &Path) -> io::Result<Self> {
|
||||
let path = layer_dir.join(super::ANNEX_FILE_NAME);
|
||||
Self::open(&path).map_err(|e| match e.kind() {
|
||||
|
||||
Reference in new issue
Block a user