ci: lint all targets, run interop suites for real, compile benches
- clippy --all-targets plus a clawhdf5-format feature matrix (parallel, lz4, zstd, pcodec, fast-checksum); fix the accumulated lint backlog in test, bench and feature-gated code (no behaviour changes). - Install python3 + h5py/numpy/netCDF4/xarray in the CI container and set CLAWHDF5_REQUIRE_INTEROP=1, which makes a missing interop dependency a test failure. Every h5py/netCDF4 interop test used to skip silently in CI. Run the #[ignore]d writer_h5py_tests suite explicitly. - cargo bench --no-run so benches can't rot; fix bench.rs and memory_bench.rs, which no longer compiled against the current strategy/consolidation APIs. - Optional fuzz smoke run via CLAWHDF5_FUZZ_SECONDS. - CHANGELOG and docs/known-issues.md updated. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
706189c3ef
commit
bbe1baa208
@@ -1657,9 +1657,9 @@ mod tests {
|
||||
let chunk_bytes = chunk_size_elems * elem_size; // full chunk allocation
|
||||
|
||||
// Write chunk data (full chunk size, padding with zeros)
|
||||
for i in start..end {
|
||||
for (i, value) in values.iter().enumerate().take(end).skip(start) {
|
||||
let byte_offset = data_offset + (i - start) * elem_size;
|
||||
file_data[byte_offset..byte_offset + 8].copy_from_slice(&values[i].to_le_bytes());
|
||||
file_data[byte_offset..byte_offset + 8].copy_from_slice(&value.to_le_bytes());
|
||||
}
|
||||
|
||||
chunk_infos.push(ChunkInfo {
|
||||
@@ -1837,8 +1837,8 @@ mod tests {
|
||||
for chunk_idx in 0..2 {
|
||||
let start = chunk_idx * chunk_elems;
|
||||
let mut chunk_bytes = Vec::new();
|
||||
for i in start..start + chunk_elems {
|
||||
chunk_bytes.extend_from_slice(&values[i].to_le_bytes());
|
||||
for value in values.iter().skip(start).take(chunk_elems) {
|
||||
chunk_bytes.extend_from_slice(&value.to_le_bytes());
|
||||
}
|
||||
let compressed = compress_chunk(&chunk_bytes, &pipeline, elem_size as u32).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user