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

Reporting coverage on task start up #3502

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 2 additions & 1 deletion src/agent/onefuzz-task/src/tasks/coverage/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ impl CoverageTask {

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

if seen_inputs {
context.report_coverage_stats().await;
context.save_and_sync_coverage().await?;
}

Expand Down
4 changes: 2 additions & 2 deletions src/agent/onefuzz/src/syncdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl SyncedDir {
Event::new_coverage => {
jr_client
.send_direct(
JobResultData::CoverageData,
JobResultData::NewCoverage,
HashMap::from([("count".to_string(), 1.0)]),
)
.await;
Expand Down Expand Up @@ -351,7 +351,7 @@ impl SyncedDir {
Event::new_coverage => {
jr_client
.send_direct(
JobResultData::CoverageData,
JobResultData::NewCoverage,
HashMap::from([("count".to_string(), 1.0)]),
)
.await;
Expand Down