Skip to content

Commit

Permalink
Warn on leftover JSON objects on firefox
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Jul 31, 2024
1 parent 3aff32b commit 905b6b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moz-webgpu-cts/src/process_reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ pub(crate) fn process_reports(
})
.into_diagnostic()
.wrap_err("failed to parse JSON")
.inspect(|_| {
let count = report_stream.count();
if count > 0 && browser != Browser::Servo {
log::warn!("{} contains {count} leftover objects", path.display());
}
})
})
.wrap_err_with(|| {
format!(
Expand Down

0 comments on commit 905b6b8

Please sign in to comment.