Skip to content

Commit

Permalink
Adding coverage output to every iteration of coverage task.
Browse files Browse the repository at this point in the history
  • Loading branch information
nharper285 committed Oct 27, 2023
1 parent 55527fb commit ce2a752
Showing 1 changed file with 3 additions and 2 deletions.
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");
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

0 comments on commit ce2a752

Please sign in to comment.