From e5d20eacc2be544c90aaa6cc24ba4033dd9fb7d4 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 3 Sep 2024 08:34:08 +1000 Subject: [PATCH] Work around for JobRun not having the fuzz_target name set. (#4218) Workaround for #4217. --- src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py b/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py index 26c1a30566..937c38a573 100644 --- a/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py +++ b/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py @@ -859,8 +859,10 @@ def postprocess_process_crashes(uworker_input: uworker_msg_pb2.Input, # Artificial delay to throttle appengine updates. time.sleep(1) - upload_job_run_stats(fully_qualified_fuzzer_name, uworker_input.job_type, - fuzz_task_output.crash_revision, + # TODO(metzman): Replace fuzz_task_output.fully_qualified_fuzzer_name` with + # `fuzz_task_input.fuzz_target` instead. + upload_job_run_stats(fuzz_task_output.fully_qualified_fuzzer_name, + uworker_input.job_type, fuzz_task_output.crash_revision, fuzz_task_output.job_run_timestamp, new_crash_count, known_crash_count, fuzz_task_output.testcases_executed, crash_groups_for_stats)