Skip to content

Commit 2c41fa7

Browse files
committed
fix: only show fifo warnings when perf env is present
1 parent d712959 commit 2c41fa7

File tree

2 files changed

+6
-2
lines changed
  • crates
    • criterion_compat/criterion_fork/src/analysis
    • divan_compat/divan_fork/src

2 files changed

+6
-2
lines changed

crates/criterion_compat/criterion_fork/src/analysis/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ mod codspeed {
305305
uri: uri.clone(),
306306
})
307307
{
308-
if codspeed::utils::running_with_codspeed_runner() {
308+
if codspeed::utils::running_with_codspeed_runner()
309+
&& std::env::var("CODSPEED_PERF_ENABLED").is_ok()
310+
{
309311
eprintln!("Failed to send benchmark URI to runner: {error:?}");
310312
}
311313
}

crates/divan_compat/divan_fork/src/divan.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ mod codspeed {
438438
uri: uri.clone(),
439439
})
440440
{
441-
if codspeed::utils::running_with_codspeed_runner() {
441+
if codspeed::utils::running_with_codspeed_runner()
442+
&& std::env::var("CODSPEED_PERF_ENABLED").is_ok()
443+
{
442444
eprintln!("Failed to send benchmark URI to runner: {error:?}");
443445
}
444446
}

0 commit comments

Comments
 (0)