Skip to content
Merged
Changes from all commits
Commits
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
14 changes: 12 additions & 2 deletions crates/deacon/tests/workspace_mounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1472,8 +1472,18 @@ mod performance_tests {
use std::time::{Duration, Instant};
use tempfile::TempDir;

/// Maximum allowed time for workspace discovery + mount rendering path
const MAX_DURATION_MS: u64 = 200;
/// Catastrophe ceiling for the workspace-discovery + mount-rendering hot path.
///
/// These tests exercise the hot path functionally (the per-iteration
/// assertions below verify each operation succeeds) and measure its average
/// duration. The measured value is a *soft* signal: a precise wall-clock
/// budget (this was 200ms) flaky-fails under parallel CI load — nextest runs
/// many test processes at once, and filesystem canonicalization/git-root
/// detection can spike under IO contention (worst on Windows' locking FS).
/// The bound below is deliberately generous so it can only trip on a genuine
/// hang or an order-of-magnitude regression, never on ordinary CI jitter,
/// while the functional assertions still guard correctness on every run.
const MAX_DURATION_MS: u64 = 5000;

/// Test that workspace discovery completes within time budget
///
Expand Down