Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Add coverage_stats metric to inner loop to increase output. #3607

Merged
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/agent/onefuzz-task/src/tasks/coverage/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ impl CoverageTask {

info!("report initial coverage");
context.report_coverage_stats().await;

context.heartbeat.alive();

for dir in &self.config.readonly_inputs {
Expand All @@ -174,7 +173,7 @@ impl CoverageTask {
context.save_and_sync_coverage().await?;
}

info!("report coverage");
info!("report final coverage");
nharper285 marked this conversation as resolved.
Show resolved Hide resolved
context.report_coverage_stats().await;

context.heartbeat.alive();
Expand Down Expand Up @@ -447,6 +446,8 @@ impl<'a> TaskContext<'a> {
if count % 10 == 0 {
self.save_and_sync_coverage().await?;
}
info!("report coverage");
self.report_coverage_stats().await;
}
} else {
warn!("skipping non-file dir entry: {}", entry.path().display());
Expand Down
Loading