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

Use az cli agent when using az-cli wrappers #441

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
254f84d
support local fuzz management
demoray Dec 20, 2020
9d2d947
continued dev
Dec 21, 2020
5528c0d
continued dev
Dec 21, 2020
c23109c
optionally enable coverage as part of the libfuzzer local fuzzing
Dec 21, 2020
09da070
make the managed mode more clear
Dec 22, 2020
2352677
expose generic crash reporting task
Dec 22, 2020
3d19611
remove dup disable check queue
Dec 22, 2020
22f8262
only save reports if they don't already exist
Dec 22, 2020
8815d31
continued dev
Dec 24, 2020
fe1466b
continued dev
Dec 24, 2020
b8c6bd1
continued dev
Dec 24, 2020
557f11d
continued dev
Dec 24, 2020
e790aa1
continued dev
Dec 24, 2020
8a52e54
fmt
Dec 24, 2020
523a42d
Merge branch 'main' into local-fuzzing
bmc-msft Jan 4, 2021
2552028
Merge branch 'main' into local-fuzzing
bmc-msft Jan 4, 2021
a75138f
Merge branch 'main' into local-fuzzing
bmc-msft Jan 4, 2021
4722fe8
Merge branch 'main' into local-fuzzing
bmc-msft Jan 4, 2021
d8d3d69
make continuous monitor/sync NOOPs without URLs
demoray Jan 5, 2021
82be69f
Merge branch 'main' into local-fuzzing
demoray Jan 5, 2021
7096dc1
address feedback
demoray Jan 5, 2021
597e627
log telemetry events locally
demoray Jan 5, 2021
413aa40
Merge branch 'main' into local-fuzzing
demoray Jan 5, 2021
a6ec788
Merge branch 'main' into local-fuzzing
bmc-msft Jan 5, 2021
7fc47ea
fix radamsa tests
demoray Jan 5, 2021
84df28d
Merge branch 'local-fuzzing' of github.com:bmc-msft/onefuzz into loca…
demoray Jan 5, 2021
44a9a3b
address comments
demoray Jan 5, 2021
b7c70fb
Merge branch 'main' into local-fuzzing
bmc-msft Jan 5, 2021
e7ef38d
Merge branch 'main' into local-fuzzing
bmc-msft Jan 6, 2021
4b3196a
Merge branch 'main' into local-fuzzing
bmc-msft Jan 6, 2021
9146ddf
Merge branch 'main' into local-fuzzing
bmc-msft Jan 6, 2021
fdc9ad2
Merge branch 'main' into local-fuzzing
bmc-msft Jan 7, 2021
63a4526
Don't include None and Unset fields (which render to null) in rendere…
demoray Jan 7, 2021
44380ff
Merge branch 'main' into local-fuzzing
bmc-msft Jan 8, 2021
7cd4a66
address feedback
demoray Jan 8, 2021
933f8a5
break early
demoray Jan 8, 2021
7134c00
address feedback
demoray Jan 8, 2021
726157f
revert change to batch processing and add logging
demoray Jan 8, 2021
56dfdbf
add logging
demoray Jan 8, 2021
88cecd5
Merge branch 'main' into local-fuzzing
bmc-msft Jan 8, 2021
42fc9f1
Merge branch 'main' into local-fuzzing
bmc-msft Jan 11, 2021
8bd7996
Merge branch 'main' into local-fuzzing
bmc-msft Jan 11, 2021
2e33c66
Merge branch 'main' into local-fuzzing
demoray Jan 13, 2021
60c3e9e
update support for setup_dir
demoray Jan 13, 2021
135cdda
continued updates
demoray Jan 13, 2021
a3c1107
Merge branch 'main' into local-fuzzing
bmc-msft Jan 13, 2021
23aa7f0
Merge branch 'main' into local-fuzzing
bmc-msft Jan 14, 2021
a79912d
set setup_dir to PathBuf::default() if it doesn't exist
demoray Jan 15, 2021
2096109
Merge branch 'main' into local-fuzzing
bmc-msft Jan 15, 2021
bec0680
ensure we keep the tempdir until after process
demoray Jan 19, 2021
3d39bee
Merge branch 'main' into local-fuzzing
bmc-msft Jan 19, 2021
a62d8d6
use az-cli user agent when using the AZ_CLI wrappers
demoray Jan 19, 2021
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
28 changes: 12 additions & 16 deletions src/agent/onefuzz-agent/src/debug/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,21 @@
use anyhow::Result;
use clap::{App, SubCommand};

pub fn run(args: &clap::ArgMatches) -> Result<()> {
use crate::{debug::libfuzzer_merge, local::common::add_common_config};

const LIBFUZZER_MERGE: &str = "libfuzzer-merge";

pub async fn run(args: &clap::ArgMatches<'_>) -> Result<()> {
match args.subcommand() {
("generic-crash-report", Some(sub)) => crate::debug::generic_crash_report::run(sub)?,
("libfuzzer-coverage", Some(sub)) => crate::debug::libfuzzer_coverage::run(sub)?,
("libfuzzer-crash-report", Some(sub)) => crate::debug::libfuzzer_crash_report::run(sub)?,
("libfuzzer-fuzz", Some(sub)) => crate::debug::libfuzzer_fuzz::run(sub)?,
("libfuzzer-merge", Some(sub)) => crate::debug::libfuzzer_merge::run(sub)?,
_ => println!("missing subcommand\nUSAGE : {}", args.usage()),
(LIBFUZZER_MERGE, Some(sub)) => libfuzzer_merge::run(sub).await,
_ => {
anyhow::bail!("missing subcommand\nUSAGE: {}", args.usage());
}
}

Ok(())
}

pub fn args() -> App<'static, 'static> {
SubCommand::with_name("debug")
pub fn args(name: &str) -> App<'static, 'static> {
SubCommand::with_name(name)
.about("unsupported internal debugging commands")
.subcommand(crate::debug::generic_crash_report::args())
.subcommand(crate::debug::libfuzzer_coverage::args())
.subcommand(crate::debug::libfuzzer_crash_report::args())
.subcommand(crate::debug::libfuzzer_fuzz::args())
.subcommand(crate::debug::libfuzzer_merge::args())
.subcommand(add_common_config(libfuzzer_merge::args(LIBFUZZER_MERGE)))
}
130 changes: 0 additions & 130 deletions src/agent/onefuzz-agent/src/debug/generic_crash_report.rs

This file was deleted.

117 changes: 0 additions & 117 deletions src/agent/onefuzz-agent/src/debug/libfuzzer_coverage.rs

This file was deleted.

Loading