test(diagnose): run binary smoke in CI (#6605)

This commit is contained in:
Zhengchao An
2026-08-26 09:34:21 +08:00
committed by GitHub
parent 54e2dce495
commit 5cce18fef2
+1 -4
View File
@@ -215,11 +215,8 @@ fn cli_parses_diagnose_and_keeps_legacy_server_routing() {
assert!(matches!(legacy, Ok(CommandResult::Server(_)))); assert!(matches!(legacy, Ok(CommandResult::Server(_))));
} }
/// True-binary smoke test. Ignored by default: building the full rustfs /// True-binary smoke test for the user-facing diagnose command.
/// binary is expensive; run locally with
/// `cargo test -p rustfs --test diagnose_e2e -- --ignored`.
#[test] #[test]
#[ignore = "builds the full rustfs binary; run with -- --ignored"]
fn binary_smoke_diagnose_json() { fn binary_smoke_diagnose_json() {
let dir = tempfile::tempdir().expect("tempdir"); let dir = tempfile::tempdir().expect("tempdir");
std::fs::write(dir.path().join("rustfs.log"), quorum_and_faulty_lines()).expect("write"); std::fs::write(dir.path().join("rustfs.log"), quorum_and_faulty_lines()).expect("write");