diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec3263c..5d6fcbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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. diff --git a/native/src/parquet_companion/indexing.rs b/native/src/parquet_companion/indexing.rs index 2b19c6c..eb118a0 100644 --- a/native/src/parquet_companion/indexing.rs +++ b/native/src/parquet_companion/indexing.rs @@ -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};