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

Commit 3f20618

Browse files
authored
Merge branch 'main' into unused-telemetry
2 parents 816671d + 9d3321b commit 3f20618

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+723
-959
lines changed

src/agent/Cargo.lock

Lines changed: 54 additions & 334 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agent/coverage/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cobertura = { path = "../cobertura" }
1010
debuggable-module = { path = "../debuggable-module" }
1111
iced-x86 = "1.17"
1212
log = "0.4.17"
13-
regex = "1.0"
13+
regex = "1.7"
1414
symbolic = { version = "10.1", features = [
1515
"debuginfo",
1616
"demangle",

src/agent/debuggable-module/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ goblin = "0.6.0"
1212
iced-x86 = "1.17"
1313
log = "0.4.17"
1414
pdb = "0.8.0"
15-
regex = "1.0"
15+
regex = "1.7"
1616
symbolic = { version = "10.1", features = ["debuginfo", "demangle", "symcache"] }
1717
thiserror = "1.0"
1818

src/agent/dynamic-library/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ license = "MIT"
66

77
[dependencies]
88
anyhow = "1.0"
9+
clap = { version = "4.1.6", features = ["derive"] }
910
lazy_static = "1.4"
10-
regex = "1.6"
11-
structopt = "0.3"
11+
regex = "1.7"
1212
thiserror = "1.0"
1313

1414
[target.'cfg(windows)'.dependencies]

src/agent/dynamic-library/src/bin/dynamic-library.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
use std::process::{Command, Stdio};
55

66
use anyhow::Result;
7-
use structopt::StructOpt;
7+
use clap::Parser;
88

9-
#[derive(Debug, StructOpt)]
9+
#[derive(Parser, Debug)]
1010
struct Opt {
11-
#[structopt(min_values = 1)]
11+
#[arg(required = true, num_args = 1..)]
1212
argv: Vec<String>,
1313

14-
#[structopt(short, long)]
14+
#[arg(short, long)]
1515
quiet: bool,
1616

17-
#[structopt(short, long)]
17+
#[arg(short, long)]
1818
ld_library_path: Option<String>,
1919
}
2020

2121
fn main() -> Result<()> {
22-
let opt = Opt::from_args();
22+
let opt = Opt::parse();
2323

2424
let exe = &opt.argv[0];
2525
let mut cmd = Command::new(exe);

src/agent/libclusterfuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ description = "Minimal porting of features from libclusterfuzz"
1010

1111
[dependencies]
1212
anyhow = "1.0"
13-
regex = "1.6.0"
13+
regex = "1.7.1"
1414
lazy_static = "1.4"

src/agent/libclusterfuzz/src/generated.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Rust generated by Microsoft, code originally from:
2-
// https://github.com/google/clusterfuzz/blob/master/src/
3-
// python/lib/clusterfuzz/stacktraces/constants.py
2+
// https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/stacktraces/constants.py#:~:text=stack_frame_ignore_regexes
43
//
54
// Original Copyright:
65
//

src/agent/onefuzz-agent/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT"
1010
anyhow = { version = "1.0", features = ["backtrace"] }
1111
async-trait = "0.1"
1212
downcast-rs = "1.2"
13-
env_logger = "0.9"
13+
env_logger = "0.10"
1414
futures = "0.3"
1515
log = "0.4"
1616
onefuzz = { path = "../onefuzz" }
@@ -25,7 +25,7 @@ storage-queue = { path = "../storage-queue" }
2525
tokio = { version = "1.24", features = ["full"] }
2626
url = { version = "2.3", features = ["serde"] }
2727
uuid = { version = "0.8", features = ["serde", "v4"] }
28-
clap = { version = "3.2.4", features = ["derive", "cargo"] }
28+
clap = { version = "4", features = ["derive", "cargo"] }
2929
reqwest-retry = { path = "../reqwest-retry" }
3030
onefuzz-telemetry = { path = "../onefuzz-telemetry" }
3131
backtrace = "0.3"

src/agent/onefuzz-agent/src/main.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,21 @@ enum Opt {
5454

5555
#[derive(Parser, Debug)]
5656
struct RunOpt {
57-
#[clap(short, long = "--config", parse(from_os_str))]
57+
#[arg(short, long = "config")]
5858
config_path: Option<PathBuf>,
59+
5960
/// re-executes as a child process, recording stdout/stderr to files in
6061
/// the specified directory
61-
#[clap(short, long = "--redirect-output", parse(from_os_str))]
62+
#[arg(short, long = "redirect-output")]
6263
redirect_output: Option<PathBuf>,
6364

64-
#[clap(long = "--machine_id")]
65+
#[arg(long = "machine_id")]
6566
machine_id: Option<Uuid>,
6667

67-
#[clap(long = "--machine_name")]
68+
#[arg(long = "machine_name")]
6869
machine_name: Option<String>,
6970

70-
#[clap(long = "--reset_lock", takes_value = false, action = ArgAction::SetTrue )]
71+
#[arg(long = "reset_lock", action = ArgAction::SetTrue )]
7172
reset_node_lock: bool,
7273
}
7374

src/agent/onefuzz-task/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ arraydeque = "0.5"
1515
async-trait = "0.1"
1616
atexit = { path = "../atexit" }
1717
backoff = { version = "0.4", features = ["tokio"] }
18-
clap = "2.34"
18+
clap = { version = "4", features = ["cargo", "string"] }
1919
cobertura = { path = "../cobertura" }
2020
coverage = { path = "../coverage" }
21-
crossterm = "0.22"
22-
env_logger = "0.9"
21+
crossterm = "0.25"
22+
env_logger = "0.10"
2323
flume = "0.10"
2424
futures = "0.3"
2525
hex = "0.4"
2626
lazy_static = "1.4"
2727
log = "0.4"
2828
num_cpus = "1.15"
2929
onefuzz-file-format = { path = "../onefuzz-file-format" }
30-
regex = "1.6.0"
30+
regex = "1.7.1"
3131
reqwest = { version = "0.11", features = [
3232
"json",
3333
"stream",
@@ -49,7 +49,7 @@ thiserror = "1.0"
4949
tokio = { version = "1.24", features = ["full"] }
5050
tokio-util = { version = "0.7", features = ["full"] }
5151
tokio-stream = "0.1"
52-
tui = { version = "0.18", default-features = false, features = ['crossterm'] }
52+
tui = { version = "0.19", default-features = false, features = ['crossterm'] }
5353
url = { version = "2.3", features = ["serde"] }
5454
uuid = { version = "0.8", features = ["serde", "v4"] }
5555
chrono = { version = "0.4", default-features = false, features = [

0 commit comments

Comments
 (0)