Skip to content

Commit

Permalink
fix(ci): remove dependency on pprof to fix windows ci
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Apr 27, 2024
1 parent 61c3ab9 commit d241628
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install pdfium
run: brew install pdfium
run: .github/scripts/pdfium.sh
- name: Run tests
run: cargo test --verbose

Expand Down
1 change: 0 additions & 1 deletion data-resource/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ anyhow = "1"
[dev-dependencies]
# benchmarking
criterion = { version = "0.5", features = ["html_reports"] }
pprof = { version = "0.13", features = ["criterion", "flamegraph"] }
rand = "0.8"

[[bench]]
Expand Down
3 changes: 1 addition & 2 deletions data-resource/benches/compute_bytes_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use data_resource::ResourceId;
use pprof::criterion::{Output, PProfProfiler};
use rand::prelude::*;
use std::fs;

Expand Down Expand Up @@ -66,7 +65,7 @@ fn compute_bytes_on_files_benchmark(c: &mut Criterion) {

criterion_group!(
name = benches;
config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None)));
config = Criterion::default();
targets = compute_bytes_on_raw_data, compute_bytes_on_files_benchmark
);
criterion_main!(benches);
1 change: 0 additions & 1 deletion fs-index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ tempdir = "0.3.7"
rstest = '0.18.2'
# benchmarking
criterion = { version = "0.5", features = ["html_reports"] }
pprof = { version = "0.13", features = ["criterion", "flamegraph"] }
rand = "0.8"

[[bench]]
Expand Down
3 changes: 1 addition & 2 deletions fs-index/benches/index_build_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use criterion::{
black_box, criterion_group, criterion_main, BenchmarkId, Criterion,
};
use fs_index::index::ResourceIndex;
use pprof::criterion::{Output, PProfProfiler};

const DIR_PATH: &str = "../test-assets/"; // Set the path to the directory containing the resources here

Expand Down Expand Up @@ -36,7 +35,7 @@ fn index_build_benchmark(c: &mut Criterion) {

criterion_group! {
name = benches;
config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None)));
config = Criterion::default();
targets = index_build_benchmark
}
criterion_main!(benches);

0 comments on commit d241628

Please sign in to comment.