From 20ad318d4e3a433355ead2797ad0085b2867e1c9 Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Thu, 27 Aug 2026 00:24:44 -0700 Subject: [PATCH] file_ops: the corpus fan-out test skips without corpus/, like its siblings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The round-14 QA probe asserted the corpus's presence instead of following the house convention, so any checkout that never fetched corpus/ — a bare CI runner, act — panicked instead of skipping. Reported by the owner from an act run. Swept the workspace for other unguarded corpus asserts: every remaining one either guards with the skip or lives inside an #[ignore]d perf probe. Co-Authored-By: Claude Fable 5 --- crates/lucisv_server/src/file_ops.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/lucisv_server/src/file_ops.rs b/crates/lucisv_server/src/file_ops.rs index 96c70d2..8379db9 100644 --- a/crates/lucisv_server/src/file_ops.rs +++ b/crates/lucisv_server/src/file_ops.rs @@ -1391,7 +1391,13 @@ mod tests { let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../corpus"); let target_dir = root.join("ibex/vendor/lowrisc_ip/ip/prim/rtl"); let old = target_dir.join("prim_assert.sv"); - assert!(old.is_file(), "the corpus is checked in: {old:?}"); + // Skipped when `corpus/` is not checked out, like every other + // corpus test in this crate — asserting its presence panicked any + // environment (a bare CI checkout, `act`) that never fetched it. + if !old.is_file() { + eprintln!("corpus/ not checked out — skipping"); + return; + } let new = target_dir.join("prim_assert_renamed.sv"); let mut ws = Workspace::default();