microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 198 forks source link

Template creation command #3531

Closed tevoinea closed 11 months ago

tevoinea commented 11 months ago

Summary of the Pull Request

What is this about?

Closes #3421

Info on Pull Request

What does this include?

image image

After pressing enter: Wrote the template to: "/workspaces/onefuzz/src/agent/onefuzz-task/template-1.yaml"

The produced file:

setup_dir: null
extra_setup_dir: null
extra_dir: null
create_job_dir: false
tasks:
- type: LibFuzzer
  inputs: ''
  readonly_inputs: []
  crashes: ''
  crashdumps: null
  target_exe: ''
  target_env: {}
  target_options: []
  target_workers: null
  ensemble_sync_delay: null
  check_fuzzer_help: true
  expect_crash_on_failure: true
- type: Coverage
  target_exe: ''
  target_env: {}
  target_options: []
  target_timeout: null
  module_allowlist: null
  source_allowlist: null
  input_queue: null
  readonly_inputs: []
  coverage: ''
- type: LibfuzzerCrashReport
  target_exe: ''
  target_env: {}
  target_options: []
  target_timeout: null
  input_queue: null
  crashes: null
  reports: null
  unique_reports: null
  no_repro: null
  check_fuzzer_help: true
  check_retry_count: 5
  minimized_stack_depth: null
  check_queue: true

Validation Steps Performed

How does someone test & validate?

Manually tested the command

codecov-commenter commented 11 months ago

Codecov Report

Merging #3531 (fe9decf) into main (e3c4a40) will decrease coverage by 0.43%. Report is 5 commits behind head on main. The diff coverage is 0.29%.

@@            Coverage Diff             @@
##             main    #3531      +/-   ##
==========================================
- Coverage   39.40%   38.98%   -0.43%     
==========================================
  Files         300      301       +1     
  Lines       36381    36758     +377     
==========================================
- Hits        14336    14330       -6     
- Misses      22045    22428     +383     
Files Coverage Δ
src/agent/onefuzz-task/src/local/template.rs 78.72% <50.00%> (-0.57%) :arrow_down:
src/agent/onefuzz-task/src/local/cmd.rs 0.00% <0.00%> (ø)
...rc/agent/onefuzz-task/src/local/libfuzzer_merge.rs 1.88% <0.00%> (-0.56%) :arrow_down:
src/agent/onefuzz-task/src/local/coverage.rs 24.47% <0.00%> (-2.45%) :arrow_down:
...ent/onefuzz-task/src/local/libfuzzer_test_input.rs 2.12% <0.00%> (-0.91%) :arrow_down:
src/agent/onefuzz-task/src/local/libfuzzer.rs 69.81% <0.00%> (-27.56%) :arrow_down:
...c/agent/onefuzz-task/src/local/generic_analysis.rs 1.56% <0.00%> (-0.53%) :arrow_down:
...t/onefuzz-task/src/local/libfuzzer_crash_report.rs 74.64% <0.00%> (-23.51%) :arrow_down:
src/agent/onefuzz-task/src/local/test_input.rs 1.96% <0.00%> (-0.99%) :arrow_down:
...ent/onefuzz-task/src/local/generic_crash_report.rs 1.35% <0.00%> (-0.44%) :arrow_down:
... and 3 more

... and 8 files with indirect coverage changes