mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Merge #2357
2357: chore(dump): add dump tests r=Kerollmops a=irevoire Add tests on the import of dump v1, v2, v3 and v4. Since the dumps are slow to decompress, I made the `flate2` crate always compile in optimized. And since they're also slow to index, I also made the `milli` crate always compile in optimized. What do you think of this `@MarinPostma?` Should we keep milli unoptimized in case it could help us debug some things? 👀 Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
@ -256,13 +256,8 @@ fn extract_dump(
|
||||
.parent()
|
||||
.map(ToOwned::to_owned)
|
||||
.unwrap_or_else(|| ".".into());
|
||||
if cfg!(windows) {
|
||||
std::env::set_var("TMP", temp_path);
|
||||
} else {
|
||||
std::env::set_var("TMPDIR", temp_path);
|
||||
}
|
||||
|
||||
let tmp_src = tempfile::tempdir()?;
|
||||
let tmp_src = tempfile::tempdir_in(temp_path)?;
|
||||
let tmp_src_path = tmp_src.path();
|
||||
|
||||
from_tar_gz(&src_path, tmp_src_path)?;
|
||||
|
Reference in New Issue
Block a user