clusterfuzz icon indicating copy to clipboard operation
clusterfuzz copied to clipboard

Automation : Uploading job on clusterfuzz

Open neelPatwa opened this issue 3 years ago • 3 comments

@Dor1s I want to upload libfuzzer job on cluster fuzz through python script(without using clusterfuzz UI).

  1. Is there any fixed google bucket location, such that I can upload my binary there and cluster fuzz will detect that revision?
  2. Or is there any API exposed(other than UI) to upload the job on clusterfuzz?

neelPatwa avatar Mar 29 '22 09:03 neelPatwa

@Dor1s doesn't work on CF anymore (sadly). What do you mean you "want to upload libfuzzer job"? In ClusterFuzz, a job is a configuration that tells ClusterFuzz where to download builds and how to fuzz them. If you mean upload a build, you can do so manually when creating a job (using custom builds) or you can upload it to a gcs bucket and point the job at that bucket.

jonathanmetzman avatar Mar 29 '22 15:03 jonathanmetzman

Is it possible to create a new job using "REST API"/CF_client (there is no such component I know) or something similar? Maybe you exposed the endpoint for that :). Example: We would like to create 2 hundred jobs (all pointed to different buckets/projects), and manually creating them is unacceptable.

rafalnowicki116 avatar Apr 27 '22 11:04 rafalnowicki116

Sorry for the late reply. Maybe do something like this: https://github.com/google/clusterfuzz/blob/55ea0f534bcfda95b98195af9c46eb88f12d4140/src/appengine/handlers/cron/project_setup.py

jonathanmetzman avatar Jul 12 '22 17:07 jonathanmetzman