Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ jobs:
- name: "Rust tests: run"
id: rust-tests
continue-on-error: true
env:
RUST_BACKTRACE: '1'
run: cd native && cargo test --lib --tests

# Makes the advisory failure visible: a warning annotation on the run
Expand Down Expand Up @@ -341,6 +343,7 @@ jobs:
id: rust-tests
env:
CARGO_BUILD_JOBS: '2'
RUST_BACKTRACE: '1'
run: cd native && cargo test --lib --tests

# See the linux job for what is removed and when the entry is saved.
Expand Down
17 changes: 16 additions & 1 deletion native/src/parquet_companion/indexing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2508,10 +2508,25 @@ mod tests {

// Read the manifest from the split bundle
let split_bytes = std::fs::read(&split_path).unwrap();
eprintln!(
"🔍 TEST: Split file size = {} bytes, path = {}",
split_bytes.len(),
split_path.display()
);
let file_slice = tantivy::directory::FileSlice::new(Arc::new(
tantivy::directory::OwnedBytes::new(split_bytes),
));
let bundle = quickwit_directories::BundleDirectory::open_split(file_slice).unwrap();
let bundle = quickwit_directories::BundleDirectory::open_split(file_slice)
.unwrap_or_else(|e| {
// On failure, dump the bundle footer for diagnosis
let split_bytes2 = std::fs::read(&split_path).unwrap();
let len = split_bytes2.len();
let footer_preview = if len > 256 { &split_bytes2[len-256..] } else { &split_bytes2[..] };
eprintln!("❌ BundleDirectory::open_split FAILED: {}", e);
eprintln!(" Split file size: {} bytes", len);
eprintln!(" Last 256 bytes (hex): {:02x?}", footer_preview);
panic!("BundleDirectory::open_split failed: {}", e);
});

use tantivy::directory::Directory;
use crate::parquet_companion::manifest_io::{MANIFEST_FILENAME, deserialize_manifest};
Expand Down
Loading