Stream native failure manifests during publication
This commit is contained in:
1 parent
72ed779749
commit
5aa7dc7331
5 files changed
+46
-9
No files matched your search
@@ -1430,7 +1430,20 @@ fn offline_failed_dump_preserves_primary_error_partial_io_and_new_only_failure_r
|
||||
p.join("partial.dat")
|
||||
);
|
||||
assert!(f.evidence_gaps.iter().any(|g| g.contains("bad-report")));
|
||||
#[derive(serde::Serialize)]
|
||||
struct Report<'a> {
|
||||
schema: u32,
|
||||
failure: &'a CompileFailure,
|
||||
}
|
||||
let report = fs::read(p.join("failure.json")).unwrap();
|
||||
assert_eq!(
|
||||
report,
|
||||
serde_json::to_vec_pretty(&Report {
|
||||
schema: 1,
|
||||
failure: &f,
|
||||
})
|
||||
.unwrap()
|
||||
);
|
||||
let json: serde_json::Value = serde_json::from_slice(&report).unwrap();
|
||||
assert_eq!(json["schema"], 1);
|
||||
assert_eq!(json["failure"]["phase"], "Executing");
|
||||
|
||||
Reference in new issue
Block a user